On cray machines you need to add a link flag –dynamic

From: 
<[email protected]<mailto:[email protected]>>
 on behalf of Justs Zarins <[email protected]<mailto:[email protected]>>
Reply-To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Date: Thursday 29 December 2016 at 16:40
To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Subject: Re: [hpx-users] HPX build fail

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]<mailto:[email protected]>>
Reply-To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Date: Thursday, December 29, 2016 at 3:30 PM
To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Cc: Justs Zarins <[email protected]<mailto:[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]>
 [mailto:[email protected]] On Behalf Of Justs Zarins
Sent: Thursday, December 29, 2016 9:10 AM
To: [email protected]<mailto:[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

Reply via email to