Closed Makefile-dot-in closed 5 years ago
In Termux running on Android 8.1, compilation fails with the following error:
ata/data/com.termux/files/usr/bin/arm-linux-androideabi-ld: CMakeFiles/tmatrix.dir/src/tmatrix.cpp.o: in function `resizeHandler(int)': tmatrix.cpp:(.text+0x18): undefined reference to `__atomic_store_1' /data/data/com.termux/files/usr/bin/arm-linux-androideabi-ld: CMakeFiles/tmatrix.dir/src/tmatrix.cpp.o: in function `render(RainProperties const&)': tmatrix.cpp:(.text+0xf4): undefined reference to `__atomic_load_1' /data/data/com.termux/files/usr/bin/arm-linux-androideabi-ld: tmatrix.cpp:(.text+0x118): undefined reference to `__atomic_store_1' clang-8: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [CMakeFiles/tmatrix.dir/build.make:191: tmatrix] Error 1 make[1]: *** [CMakeFiles/Makefile2:73: CMakeFiles/tmatrix.dir/all] Error 2 make: *** [Makefile:130: all] Error 2
This is fixed by explicitly linking atomic in CMakeLists.txt.
atomic
CMakeLists.txt
Thanks for the report. Can you send a pull request with the commit that fixes it for you?
@M4444 Done.
Patch merged.
In Termux running on Android 8.1, compilation fails with the following error:
This is fixed by explicitly linking
atomic
inCMakeLists.txt
.