-
Notifications
You must be signed in to change notification settings - Fork 111
Description
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.