This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcj/39747] [4.4/4.5 Regression] Installation documentation should suggest building libgmp as PIC for building with libjava
- From: "David dot Biesack at sas dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jan 2010 16:45:42 -0000
- Subject: [Bug libgcj/39747] [4.4/4.5 Regression] Installation documentation should suggest building libgmp as PIC for building with libjava
- References: <bug-39747-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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