Public bug reported:

Ubuntu 10.04.4 LTS

uname -a output: "Linux zuma2 2.6.32-41-generic #94-Ubuntu SMP Fri Jul 6
18:00:34 UTC 2012 x86_64 GNU/Linux"

The problem is with /usr/lib64/libgslcblas.a, which is from the package
libgsl0-dev

Trying to build CERN root_5.26.00 from source, I get an error during
"make" saying /usr/lib64/libgslcblas.a should be recompiled using -fPIC.
However, "configure" seems to check and find the libgslcblas.a WAS
compiled with -fPIC...

Fixed location installation using "./configure --prefix=/usr --enable-
soversion"

>From config.log ...

> Checking whether /usr/lib64/libgslcblas.a is compiled with -fPIC
> Checking if /usr/lib64/libgslcblas.a contains relocatable code
>  ar t /usr/lib64/libgslcblas.a | awk '{ if (NR==1) {print $1 } }'
>  ar x /usr/lib64/libgslcblas.a sasum.o
>  objdump -r sasum.o | grep 'R_X86_64_32'
>  result: 1
> Result: yes

However, "make" errors out with this text...

g++ -shared -Wl,-soname,libMathMore.so.5.26 -m64 -O2 -o lib/libMathMore.so.5.26 
math/mathmore/src/Chebyshev.o math/mathmore/src/Derivator.o 
math/mathmore/src/GSLDerivator.o math/mathmore/src/GSLIntegrator.o 
math/mathmore/src/GSLInterpolator.o math/mathmore/src/GSLMCIntegrator.o 
math/mathmore/src/GSLMinimizer1D.o math/mathmore/src/GSLMinimizer.o 
math/mathmore/src/GSLNLSMinimizer.o math/mathmore/src/GSLRndmEngines.o 
math/mathmore/src/GSLRootFinder.o math/mathmore/src/GSLRootFinderDeriv.o 
math/mathmore/src/GSLRootHelper.o math/mathmore/src/GSLSimAnMinimizer.o 
math/mathmore/src/GSLSimAnnealing.o math/mathmore/src/Interpolator.o 
math/mathmore/src/KelvinFunctions.o math/mathmore/src/MultiNumGradFunction.o 
math/mathmore/src/Polynomial.o math/mathmore/src/QuantFuncMathMore.o 
math/mathmore/src/RootFinderAlgorithms.o math/mathmore/src/SpecFuncMathMore.o 
math/mathmore/src/zsolve_cubic.o math/mathmore/src/G__MathMore.o 
/usr/lib64/libgsl.a /usr/lib64/libgslcblas.a
/usr/bin/ld: /usr/lib64/libgslcblas.a(sgemm.o): relocation R_X86_64_32 against 
`.rodata.str1.1' can not be used when making a shared object; recompile with 
-fPIC
/usr/lib64/libgslcblas.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [lib/libMathMore.so] Error 1

** Affects: gsl (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1037634

Title:
  relocation error in libgslcblas.a(sgemm.o)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gsl/+bug/1037634/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to