From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1878 invoked by alias); 15 Jan 2010 16:45:45 -0000 Received: (qmail 1614 invoked by uid 48); 15 Jan 2010 16:45:43 -0000 Date: Fri, 15 Jan 2010 16:45:00 -0000 Message-ID: <20100115164543.1613.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug libgcj/39747] [4.4/4.5 Regression] Installation documentation should suggest building libgmp as PIC for building with libjava In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: java-prs@gcc.gnu.org From: "David dot Biesack at sas dot com" Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org X-SW-Source: 2010-q1/txt/msg00050.txt.bz2 ------- 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