------- Comment #6 from David dot Biesack at sas dot com  2010-01-15 16:45 
-------
I had this problem on a Linux x86_64 build, manifested with the error
 /usr/local/lib/libgmp.so: could not read symbols: File in wrong format
 collect2: ld returned 1 exit status

( http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42750 )

I'm adding that text here so that if someone else has that problem
and searches for it, they can find this bug entry.

How does one configure gmp to build correctly so that it can be used by gcc?
I can't find any doc in the gmp configure/texinfo that describes how to do
that.
I ran configure for it and it says -fPIC works in the log, but it does not put
-fPIC in the Makefile. I explicitly added it to the CFLAGS in my Makefile 

 CFLAGS = -O2 -pedantic -m64 -mtune=k8 -fPIC

and rebuilt it; make check work (in gmp).


-- 

David dot Biesack at sas dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |David dot Biesack at sas dot
                   |                            |com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39747

Reply via email to