JuliaLang/julia — comment on commit e03add1e9fe57304ed659e903486ac5c0ddb3c6e
File:  line 0
By ViralBShah:

Ok, this whole build process is a major mess. I don't have access to 64-bit linux to test. Can you build with

gfortran -shared -fPIC -O2 UTIL/*.f SRC/*.f ../../lapack-3.4.0/liblapack.a -o libarpack.so

and see if it works on 64-bit linux? If so, we can use that to build libarpack.so, rather than use the configure/make process provided by arpack-ng.

-viral

On Jan 29, 2012, at 12:25 AM, JeffBezanson wrote:

> Now it seems to work on 32-bit (beowulf1) but I get this on 64-bit linux:
>
> ```
> libtool: link: ranlib .libs/libarpack.a
> libtool: link: rm -fr .libs/libarpack.lax
> libtool: link: ( cd ".libs" && rm -f "libarpack.la" && ln -s "../libarpack.la" "libarpack.la" )
> /usr/bin/ld: SRC/cgetv0.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
> SRC/cgetv0.o: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> make[1]: *** [/home/jeff/src/julia2/julia/external/root/lib/libarpack.so] Error 1
> ```
>
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/JuliaLang/julia/commit/e03add1e9fe57304ed659e903486ac5c0ddb3c6e#commitcomment-911098