Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1242428

Bug#1103415: weakforced: Append -latomic to LDFLAGS on loong64

From zhangdandan <zhangdandan@loongson.cn>
Newsgroups linux.debian.bugs.dist
Subject Bug#1103415: weakforced: Append -latomic to LDFLAGS on loong64
Date 2025-04-17 12:10 +0200
Message-ID <KCulX-e9zR-7@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Source: weakforced
Version: 2.10.2-2
Severity: normal
Tags: patch
User: debian-loongarch@lists.debian.org
Usertags: loong64

Dear maintainers,

Compiling the weakforced failed for loong64 in the Debian Package 
Auto-Building environment.
The error log is as follows,
```
......
/usr/bin/ld: trackalert.o: in function `std::_Rb_tree<std::pair<Netmask, 
bool>*, std::pair<Netmask, bool>*, std::_Identity<std::pair<Netmask, 
bool>*>, std::less<std::pair<Netmask, bool>*>, 
std::allocator<std::pair<Netmask, bool>*> 
 >::_M_erase(std::_Rb_tree_node<std::pair<Netmask, bool>*>*)':
/usr/include/c++/14/bits/stl_tree.h:1930:(.text+0x6e0): undefined 
reference to `__atomic_load_16'
/usr/bin/ld: trackalert.o: in function `std::_Rb_tree<std::pair<Netmask, 
bool>*, std::pair<Netmask, bool>*, std::_Identity<std::pair<Netmask, 
bool>*>, std::less<std::pair<Netmask, bool>*>, 
std::allocator<std::pair<Netmask, bool>*> 
 >::_S_left(std::_Rb_tree_node_base*)':
/usr/include/c++/14/bits/stl_tree.h:778:(.text+0x710): undefined 
reference to `__atomic_compare_exchange_16'
......
```
The full build log can be found at 
https://buildd.debian.org/status/logs.php?pkg=weakforced&arch=loong64.

Please consider the patch I attached.
Append -latomic to LDFLAGS on loong64, and weakforced was built 
successfully on locally.
Your opinions are welcome.

Best regards,
Dandan Zhang

Back to linux.debian.bugs.dist | Previous | Next | Find similar | Unroll thread


Thread

Bug#1103415: weakforced: Append -latomic to LDFLAGS on loong64 zhangdandan <zhangdandan@loongson.cn> - 2025-04-17 12:10 +0200

csiph-web