← All tasks
cpppistacheio/pistache #762Not a task: not reproduced

Linking error on Raspberry Pi 4

envgap__pistacheio__pistache-762

01 / FAILURE SIGNATURE

As reported upstream

client.cc:(.text+0x6aec): undefined reference to '__atomic_fetch_add_8'
Not a benchmark task.
  • In a clean container the reported failure did not reproduce, or the known fix did not make the project run.

02 / ENVIRONMENT RECIPE

Base commit
192bbc42981341640746fec2facab71f35c5256f
Manifest
CMakeLists.txt
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

pistacheio/pistache #762 · read the original issue
Hi,



I was trying to use compile pistache on Raspberry Pi 4 Model B and I found out that it fails when it is compiling a test:



`

[ 93%] Linking CXX executable run_request_size_test

/usr/bin/ld: ../src/libpistache.a(client.cc.o): in function 'Pistache::Http::Client::doRequest(Pistache::Http::Request)':

client.cc:(.text+0x6aec): undefined reference to '__atomic_fetch_add_8'

collect2: error: ld returned 1 exit status

make[2]: *** [tests/CMakeFiles/run_threadname_test.dir/build.make:88: tests/run_threadname_test] Error 1

make[1]: *** [CMakeFiles/Makefile2:1688: tests/CMakeFiles/run_threadname_test.dir/all] Error 2

/usr/bin/ld: ../src/libpistache.a(client.cc.o): in function 'Pistache::Http::Client::doRequest(Pistache::Http::Request)':

client.cc:(.text+0x6aec): undefined reference to '__atomic_fetch_add_8'

collect2: error: ld returned 1 exit status

make[2]: *** [tests/CMakeFiles/run_request_size_test.dir/build.make:88: tests/run_request_size_test] Error 1

make[1]: *** [CMakeFiles/Makefile2:2585: tests/CMakeFiles/run_request_size_test.dir/all] Error 2

[ 94%] Linking CXX executable run_headers_test

`



I think the pistache's CMakeLists.txt is not linking the `atomic` library.

I patched the file to include the missing call and it does work fine. If you are interested in the patch I can start a pull request.



Thanks!

Simone
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]