JuliaLang/julia — Issue #326: Build problem (LAPACK)
Author: drjdn
Created: 2012-01-03 21:07:22+00:00
State: open

When building julia I get the following error when compiling LAPACK:

make[2]: Leaving directory `/usr/local/julia/external/lapack-3.4.0'
cd lapack-3.4.0 && gfortran -shared -static-libgfortran SRC/*.o INSTALL/dlamch.o INSTALL/dsecnd_INT_ETIME.o INSTALL/ilaver.o INSTALL/slamch.o ../openblas-v0.1alpha2.4/libopenblas.a -o liblapack.so
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/libgfortran.a(stop.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/libgfortran.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [lapack-3.4.0/liblapack.so] Error 1
make[1]: Leaving directory `/usr/local/julia/external'
make: *** [julia-release] Error 2

this seems to indicate that stop.c in the gfortran runtime was not compiled with -fPIC... I haven't rebuild julia's dependencies is several weeks so I'm not sure what could have caused this issue (same libgfortran.a that is the stock version that ships with Ubuntu that I used to build previously).

Jason