Info about libatomic not automatically linked with C11 code
Vincenzo Palazzo
vincenzopalazzodev@gmail.com
Tue Feb 6 18:37:40 GMT 2024
Hi,
I was looking to contribute to GCC, and I think the best way to contribute
to it
is to patch some problems that I have on my codebase.
The error that I am debugging is the following one
tmp.c:(.text+0x68): undefined reference to `__atomic_load'
/bin/ld: tmp.c:(.text+0xfa): undefined reference to
`__atomic_compare_exchange'
/bin/ld: tmp.c:(.text+0x13e): undefined reference to
`__atomic_feraiseexcept'
/bin/ld: tmp.c:(.text+0x172): undefined reference to `__atomic_load'
/bin/ld: tmp.c:(.text+0x198): undefined reference to `__atomic_load'
collect2: error: ld returned 1 exit status
I also found an older report [1] and I was looking to discuss it with
someone that
can you help me find a way to patch this currently I have no idea why this
is happening
at the compiler level.
[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81358
Thanks,
Vincent.
More information about the Gcc-help
mailing list