-
Notifications
You must be signed in to change notification settings - Fork 365
Description
Describe the bug
When I compile the project on a debian loongarch64 environment, I get an atomic-related error.
To Reproduce
The problem can be reproduced by executing the following command on Debian loongarch64 platform:
colcon build --symlink-install
Expected behavior
When I build the project on a Debian loongarch64 platform, I get an error:
Finished <<< controller_manager_msgs [1.27s]
--- stderr: hardware_interface
/usr/bin/ld: /opt/ros/jazzy/lib/libpal_statistics.so: undefined reference to `__atomic_store_16'
/usr/bin/ld: /opt/ros/jazzy/lib/libpal_statistics.so: undefined reference to `__atomic_load_16'
/usr/bin/ld: /opt/ros/jazzy/lib/libpal_statistics.so: undefined reference to `__atomic_compare_exchange_16'
collect2: error: ld returned 1 exit status
Environment
OS:debian
Version: trixie
System Architecture: LoongArch
Solution
I created a patch for this issue and verified it locally:
zhaixiaojuan@a4cbc33
Additional context
The LoongArch architecture (LoongArch) is an Instruction Set Architecture (ISA) that has a RISC style.
Documentations:
ISA:
https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html
ABI:
https://loongson.github.io/LoongArch-Documentation/LoongArch-ELF-ABI-EN.html
More docs can be found at:
https://loongson.github.io/LoongArch-Documentation/README-EN.html