Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling hpx master fails with /usr/bin/ld: final link failed: Bad value #2621

Closed
diehlpk opened this issue May 11, 2017 · 2 comments · Fixed by #2622
Closed

Compiling hpx master fails with /usr/bin/ld: final link failed: Bad value #2621

diehlpk opened this issue May 11, 2017 · 2 comments · Fixed by #2622

Comments

@diehlpk
Copy link
Member

diehlpk commented May 11, 2017

Using this cmake command with hpx master

cmake
-DBOOST_ROOT=/RQusagers/p108903/opt/boost/1.64/
-DHWLOC_INCLUDE_DIR=/RQusagers/p108903/opt/hwloc/include
-DHWLOC_LIBRARY=/RQusagers/p108903/opt/hwloc/lib/libhwloc.so
-DTCMALLOC_LIBRARY=/RQusagers/p108903/opt/gperftools/lib/libtcmalloc_minimal.so
-DTCMALLOC_INCLUDE_DIR=/RQusagers/p108903/opt/gperftools/include
..

delivers

/usr/bin/ld: CMakeFiles/hpx.dir/performance_counters/registry.cpp.o: relocation R_X86_64_PC32 against `_ZTVN3hpx20performance_counters6server19arithmetics_counterISt10multipliesIdEEE' can not be used when making a shared object; recompile with -fPIC
<diehlpk_work> /usr/bin/ld: final link failed: Bad value

Compiler:

-bash-3.2$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/RQAutofs/users/p108903/opt/gcc/6.3/bin/../libexec/gcc/x86_64-pc-linux-gnu/6.3.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ./configure --prefix=/RQusagers/p108903/opt/gcc/6.3 -enable-languages=c,fortran,c++ --disable-multilib
Thread model: posix
gcc version 6.3.0 (GCC)

Plattform:

Linux cottos.rqchp.qc.ca 2.6.18-128.el5 #1 SMP Wed Jan 21 10:41:14 EST 2009 x86_64 x86_64 x86_64 GNU/Linux

@diehlpk diehlpk changed the title Compiling hpx master Compiling hpx master fails with /usr/bin/ld: final link failed: Bad value May 11, 2017
@diehlpk
Copy link
Member Author

diehlpk commented May 11, 2017

CMake version is 2.8.12

@diehlpk
Copy link
Member Author

diehlpk commented May 11, 2017

CMake >= 3.0.0 works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants