Hi Justs, I am not exactly sure what's causing your issues. When looking at your script, I noticed that you don't use the CMake Toolchain file I strongly recommend to use when working on a cray (See here for more info: http://stellar-group.github.io/hpx/docs/html/hpx/manual/build_system/building_hpx/ cmake_toolchains.html). The current name fo the file, Cray-Intel.cmake, might suggest that it is only really usable with the Intel compiler. However, it should really work with gcc just as fine. It sets all the necessary compiler options, like -dynamic etc.. So that cmake sets up the correct compiler flags. The PR #2440 (https:// github.com/STEllAR-GROUP/hpx/pull/2440) is going to rename that file to remedy that situation.
Your cmake invocation should then look like that: cmake \ -DBOOST_ROOT=$BOOSTDIR \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DHWLOC_ROOT=$HWLOCDIR \ -DTCMALLOC_ROOT=$TCMALLOCDIR \ -DHPX_WITH_MALLOC=tcmalloc \ -DHPX_WITH_TESTS=OFF \ -DHPX_WITH_EXAMPLES=OFF \ -DCMAKE_INSTALL_PREFIX=$HPXDIR -DCMAKE_TOOLCHAIN_FILE=$WORKDIR/hpx-0.9.99/cmake/toolchains/Cray.cmake $WORKDIR/hpx-0.9.99/ Using that toolchain should fix your problem. John's instruction should work just as fine, he sets all the stuff manually. Hope that helps, Thomas On Donnerstag, 29. Dezember 2016 15:40:45 CET Justs Zarins wrote: > Hi Hartmut, > > I’m attaching my build script, that has most of the relevant information. > I’m using gcc 6.2.0 > > Regards, > Justs > > From: Hartmut Kaiser <[email protected]> > Reply-To: "[email protected]" <[email protected]> > Date: Thursday, December 29, 2016 at 3:30 PM > To: "[email protected]" <[email protected]> > Cc: Justs Zarins <[email protected]> > Subject: RE: [hpx-users] HPX build fail > > Hey Justs, > > Could you please give us a bit more information about how you built things? > What compiler, what Boost version, what command lines, etc.? > Thanks! > Regards Hartmut > --------------- > http://boost-spirit.com > http://stellar.cct.lsu.edu > > From: [email protected] > [mailto:[email protected]] On Behalf Of Justs Zarins > Sent: Thursday, December 29, 2016 9:10 AM > To: [email protected] > Subject: [hpx-users] HPX build fail > > 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
