Skip to content

relocation R_X86_64_32 against .rodata libqd #270

@adambaskerville

Description

@adambaskerville

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions