Hello, I’m trying to build HPX on a Cray XC40 machine. The build is failing when linking:
[100%] Built target iostreams_component Linking CXX executable ../bin/hpx_runtime /usr/bin/ld: attempted static link of dynamic object `../lib/libhpx.so.0.9.99' collect2: error: ld returned 1 exit status make[2]: *** [bin/hpx_runtime] Error 1 make[1]: *** [runtime/CMakeFiles/hpx_runtime_exe.dir/all] Error 2 Has cmake generated incorrect Makefiles? I’ve tried to set –DHPX_WITH_STATIC_LINKING=ON but this results in a different linking error: [100%] Building CXX object runtime/CMakeFiles/hpx_runtime_exe.dir/hpx_runtime.cpp.o Linking CXX executable ../bin/hpx_runtime ../lib/libhpx.a(runtime_support_server.cpp.o): In function `hpx::util::plugin::dll::LoadLibrary(hpx::error_code&, bool) [clone .constprop.2162]': runtime_support_server.cpp:(.text+0x147a): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking /usr/bin/ld: attempted static link of dynamic object `/lus/scratch/jzarins/lib/tcmalloc/lib/libtcmalloc_minimal.so' collect2: error: ld returned 1 exit status make[2]: *** [bin/hpx_runtime] Error 1 make[1]: *** [runtime/CMakeFiles/hpx_runtime_exe.dir/all] Error 2 make: *** [all] Error 2 Any pointers? Regards, Justs
_______________________________________________ hpx-users mailing list [email protected] https://mail.cct.lsu.edu/mailman/listinfo/hpx-users
