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

relocation R_X86_64_32 against .rodata libqd #270

Open
adambaskerville opened this issue Nov 9, 2018 · 0 comments
Open

relocation R_X86_64_32 against .rodata libqd #270

adambaskerville opened this issue Nov 9, 2018 · 0 comments

Comments

@adambaskerville
Copy link

I am trying to install the Elemental library on Ubuntu 16.04 and right at the end of the cmake process where the linking of libEl.so is done, I get the following error:

/usr/local/lib/libqd.a(dd_real.o): relocation R_X86_64_32 against .rodata can not be used when making a shared object; recompile with -fPIC

I removed the build directory from Elemental, uninstalled the QD library and reinstalled it with the CXXFLAG = -fPIC yet the same error occurs when I run cmake to install Elemental. The full error is:

/usr/bin/ld: /usr/local/lib/libqd.a(dd_real.o): relocation R_X86_64_32 against .rodata can not be used when making a shared object; recompile with -fPIC /usr/local/lib/libqd.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status CMakeFiles/El.dir/build.make:11363: recipe for target 'libEl.so.88-dev' failed make[2]: *** [libEl.so.88-dev] Error 1 CMakeFiles/Makefile2:453: recipe for target 'CMakeFiles/El.dir/all' failed make[1]: *** [CMakeFiles/El.dir/all] Error 2 Makefile:160: recipe for target 'all' failed make: *** [all] Error 2

Any tips on how to progress? Many thanks.

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

No branches or pull requests

1 participant