g++ -g -mfpmath=sse -msse -I/home/jstateson/Projects/Einstein/install/include -I/home/jstateson/Projects/Einstein/install/include -I/home/jstateson/Projects/Einstein/install/include -I/home/jstateson/Projects/Einstein/install/include/libxml2 -I/home/jstateson/Projects/Einstein/install/include/boinc -I/usr/local/cuda/cuda/include -I/opt/AMDAPPSDK-3.0/include -I../include -malign-double -DHAVE_INLINE -DBOINCIFIED -DUSE_OPENCL -DNDEBUG -DLOGLEVEL=info -rdynamic -O3 -Wall -ggdb3 -fprofile-use -static-libgcc /home/jstateson/Projects/Einstein/src/erp_boinc_wrapper.cpp -o einsteinbinary_x86_64-pc-linux-gnu__opencl demod_binary.o demod_binary_ocl.o ocl_utilities.o hs_common.o rngmed.o erp_boinc_ipc.o erp_getopt.o erp_getopt1.o erp_utilities.o erp_execinfo_plus.o -Wl,-Bstatic -L/home/jstateson/Projects/Einstein/install/lib64 -L/home/jstateson/Projects/Einstein/install/lib -L/home/jstateson/Projects/Einstein/install/lib -lgsl -lgslcblas -lm -L/home/jstateson/Projects/Einstein/install/lib -lfftw3f -lm -L/home/jstateson/Projects/Einstein/install/lib -lxml2 -lm -lclfft -lboinc_opencl -lboinc_api -lboinc -lbfd -liberty -L/usr/lib -lstdc++ -Wl,-Bdynamic -L/opt/AMDAPPSDK-3.0/lib/`uname -m` -lOpenCL -lpthread -lm -lc /home/jstateson/Projects/Einstein/install/lib/libz.a /home/jstateson/Projects/Einstein/src/erp_boinc_wrapper.cpp: In function ‘void sighandler(int, siginfo_t*, void*)’: /home/jstateson/Projects/Einstein/src/erp_boinc_wrapper.cpp:135:17: warning: unused variable ‘uc’ [-Wunused-variable] ucontext_t *uc = (ucontext_t *)secret; ^~ /home/jstateson/Projects/Einstein/src/erp_boinc_wrapper.cpp: In function ‘int worker()’: /home/jstateson/Projects/Einstein/src/erp_boinc_wrapper.cpp:477:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 1; i < forward_argv.size(); ++i) { ~~^~~~~~~~~~~~~~~~~~~~~ /usr/lib/x86_64-linux-gnu/libm-2.27.a(e_atan2.o): In function `__ieee754_atan2_ifunc': (.text+0x3fe2): undefined reference to `_dl_x86_cpu_features' /usr/lib/x86_64-linux-gnu/libm-2.27.a(e_log.o): In function `__ieee754_log_ifunc': (.text+0x1602): undefined reference to `_dl_x86_cpu_features' /usr/lib/x86_64-linux-gnu/libm-2.27.a(s_atan.o): In function `__atan_ifunc': (.text+0x20b2): undefined reference to `_dl_x86_cpu_features' /usr/lib/x86_64-linux-gnu/libm-2.27.a(s_sin.o): In function `__sin_ifunc': (.text+0x4d42): undefined reference to `_dl_x86_cpu_features' /usr/lib/x86_64-linux-gnu/libm-2.27.a(s_sin.o): In function `__cos_ifunc': (.text+0x4da2): undefined reference to `_dl_x86_cpu_features' /usr/lib/x86_64-linux-gnu/libm-2.27.a(s_tan.o):(.text+0x5782): more undefined references to `_dl_x86_cpu_features' follow collect2: error: ld returned 1 exit status Makefile:91: recipe for target 'einsteinbinary_x86_64-pc-linux-gnu__opencl' failed ======================= googling "more undefined references to `_dl_x86_cpu_features' follow" has almost exact hit: https://github.com/mesonbuild/meson/issues/3879 other hits shows up with the suggeston do to all static link or all dynamic or to "package" the static link using "-Wl,--whole_archive" ... "-Wl,--no-whole-archive"