From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28313 invoked by alias); 17 Jul 2012 12:16:01 -0000 Received: (qmail 28289 invoked by uid 22791); 17 Jul 2012 12:15:54 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED,TW_GM X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 17 Jul 2012 12:15:40 +0000 From: "windward at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/53798] [4.7] Bootstrap fails on Linux x86_64 with pre-built libmpc/mpfr/gmp due to multilib path problem Date: Tue, 17 Jul 2012 12:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: windward at gmx dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-07/txt/msg01305.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53798 --- Comment #5 from Martin 2012-07-17 12:15:38 UTC --- IMHO nothing special with the configure call. SRCDIR=/opt/SP/build/gcc/gcc-4.7.1 Build dir=/opt/SP/build/gcc/gcc-4.7.1-build INSTPATH=/opt/SP/gcc/gcc-4.7.1 A set of tools including current binutils have been built & installed in $INSTPATH beforehand, especially libgmp, libmpfr and libmpc. 64 bit libs in ${INSTPATH}/lib64, 32 bit in ${INSTPATH}/lib. ${SRCDIR}/configure --prefix=${INSTPATH} \ --with-gmp=${INSTPATH} --with-mpfr=${INSTPATH} --with-mpc=${INSTPATH} \ --with-gmp-lib=${INSTPATH}/lib64 --with-libelf=${INSTPATH} \ --with-gnu-as --with-as=/opt/SP/gcc/bin/as \ --with-gnu-ld --with-ld=/opt/SP/gcc/bin/ld The bootstrapping worked perfectly before (4.4-4.6) with the same script, I just didn't have to build 32 bit MPC, MPFR and GMP libs (and obviously did not use the corresponding parameters). The crude workaround in my last attachment works fine as long as LDFLAGS and LD_LIBRARY_PATH include both ${INSTPATH}/lib64 and ${INSTPATH}/lib. If the configure script adds _any_ "-Lpath" to $gmplibs / GMPLIBS, libtool will mess up the linker call by adding the library with full path and filename. If this wasn't the case, the configure parameters as given above should work. Any idea why this happens, and only with libjava? BR Martin