As a workaround, please try doing:
cmake –DHPX_WITH_RUNTIME=OFF …
I’m not sure why the static build is trying to link with the shared library
here. I’ll investigate.
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 11:39 AM
To: [email protected]
Subject: Re: [hpx-users] HPX build fail
A more verbose final command:
Linking CXX executable ../bin/hpx_runtime
cd /lus/scratch/jzarins/HPX/runtime && /opt/cmake/3.0.1/bin/cmake -E
cmake_link_script CMakeFiles/hpx_runtime_exe.dir/link.txt --verbose=1
/opt/cray/craype/2.5.9/bin/CC -Wall -Wextra -Wno-unused-local-typedefs
-Wno-strict-aliasing -Wno-sign-promo -Wno-attributes -Wno-cast-align
-Wno-unused-parameter -Wformat=2 -Wno-format-nonliteral -Winit-self
-Wdouble-promotion -Wcast-qual -Wcast-align -Werror=trampolines
-Werror=parentheses -Werror=reorder -Werror=return-type -Werror=sequence-point
-Werror=format -Werror=missing-braces -Werror=sign-compare
-fdiagnostics-show-option -Werror=vla -Werror=return-type
-Wno-unused-but-set-parameter -Wno-unused-but-set-variable
-Werror=uninitialized -Wno-unused-local-typedefs -Wno-sync-nand
-Wno-delete-non-virtual-dtor -fvisibility=hidden -O2 -g -DNDEBUG -Wl,-z,defs
-fvisibility=hidden CMakeFiles/hpx_runtime_exe.dir/hpx_runtime.cpp.o -o
../bin/hpx_runtime -L/lus/scratch/jzarins/HPX/lib
-L/lus/scratch/jzarins/lib/boost/lib -rdynamic ../lib/libhpx_init.a
../lib/libhpx.so.0.9.99 -ldl -lrt
/lus/scratch/jzarins/lib/boost/lib/libboost_chrono.so
/lus/scratch/jzarins/lib/boost/lib/libboost_date_time.so
/lus/scratch/jzarins/lib/boost/lib/libboost_filesystem.so
/lus/scratch/jzarins/lib/boost/lib/libboost_program_options.so
/lus/scratch/jzarins/lib/boost/lib/libboost_regex.so
/lus/scratch/jzarins/lib/boost/lib/libboost_system.so
/lus/scratch/jzarins/lib/boost/lib/libboost_thread.so -lpthread
/lus/scratch/jzarins/lib/boost/lib/libboost_context.so
/lus/scratch/jzarins/lib/boost/lib/libboost_random.so
/lus/scratch/jzarins/lib/boost/lib/libboost_atomic.so
/lus/scratch/jzarins/lib/tcmalloc/lib/libtcmalloc_minimal.so
/lus/scratch/jzarins/lib/hwloc/lib/libhwloc.so
-Wl,-rpath,/lus/scratch/jzarins/HPX/lib:/lus/scratch/jzarins/lib/boost/lib:/lus/scratch/jzarins/lib/tcmalloc/lib:/lus/scratch/jzarins/lib/hwloc/lib:
/usr/bin/ld: attempted static link of dynamic object `../lib/libhpx.so.0.9.99'
collect2: error: ld returned 1 exit status
gmake[2]: *** [bin/hpx_runtime] Error 1
gmake[2]: Leaving directory `/lus/scratch/jzarins/HPX'
gmake[1]: *** [runtime/CMakeFiles/hpx_runtime_exe.dir/all] Error 2
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