« Return to Thread: Error when compiling ATLAS 3.9.6 dynamic libraries / sonames with version number? / interface libs

Re: Error when compiling ATLAS 3.9.6 dynamic libraries / sonames with version number? / interface libs

by Berthold "Höllmann" :: Rate this Message:

Reply to Author | View in Thread

whaley@... (Clint Whaley) writes:

(I tried to answer this from another email account, but did not get past
the moderator yet)


>>The following make runs for some time, but bails out with
>>
>>    make[6]: Entering directory `/data/tmp/hoel/atlas3.9.6/build/lib'
>>    ld -melf_x86_64 -shared -soname /usr/local/gltools/linux_x86_64/lib/libatlas.so -o libatlas.so \
>>               -rpath-link /usr/local/gltools/linux_x86_64/lib \
>>               --whole-archive libatlas.a --no-whole-archive -lc -lpthread -lm
>>    ld -melf_x86_64 -shared -soname /usr/local/gltools/linux_x86_64/lib/libf77blas.so \
>>               -o libf77blas.so -rpath-link /usr/local/gltools/linux_x86_64/lib \
>>               --whole-archive libf77blas.a --no-whole-archive
>>    ld: libf77blas.a(ilaenv.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
>>    libf77blas.a(ilaenv.o): could not read symbols: Bad value
>>  
>>It works if I add "-F alg -fPIC" to the configure line.
>
> Well, of course it will fail of you don't add -fPIC, since that is the
>way you signal gcc you want a shared object (position indepedent code).
>W/o -fPIC code you cannot build shared libs.

But what is the point then of using the "--shared" or "--dylibs" switch
for the configure command, if it does not set the "-fPIC" flag for the
compiler?

Kind regards

Berthold Höllmann
--
Germanischer Lloyd AG
CAE Development
Vorsetzen 35
20459 Hamburg
Phone: +49(0)40 36149-7374
Fax: +49(0)40 36149-7320
e-mail: berthold.hoellmann@...
Internet: http://www.gl-group.com



------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Math-atlas-devel mailing list
Math-atlas-devel@...
https://lists.sourceforge.net/lists/listinfo/math-atlas-devel

attachment0 (199 bytes) Download Attachment
disclaimer.txt (4K) Download Attachment

 « Return to Thread: Error when compiling ATLAS 3.9.6 dynamic libraries / sonames with version number? / interface libs