[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#683135: plplot FTBFS on Alpha: Missing -fPIC causes link error.

Source: plplot
Version: 5.9.9-4
Severity: normal
User: debian-alpha@lists.debian.org
Usertags: alpha
X-Debbugs-CC: debian-alpha@lists.debian.org

plplot FTBFS on Alpha with:

Linking Ada shared library libplplotadad.so
/usr/bin/ld: CMakeFiles/plplotadad.dir/plplot.o: gp-relative relocation
against dynamic symbol plplot__default_label_string_array
[...plus many more relocation errors...]
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status

Full build log at:

The link fails because a shared library is being built and -fPIC has not
been used in the compilation of the contributing object files.  Building
with VERBOSE=1 reveals that -fPIC is used by the C++ compiler, but it is
not used with the Ada compiler.  -fPIC should also be passed to
gnatgcc/gnatmake when building object files for the shared library on Alpha.


Reply to: