From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15344 invoked by alias); 31 May 2010 01:02:57 -0000 Received: (qmail 13101 invoked by uid 48); 31 May 2010 01:02:36 -0000 Date: Mon, 31 May 2010 01:02:00 -0000 Subject: [Bug libgcj/44341] New: [4.6 Regression] libjava cross build fails when configured with --with-gmp= X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "kkojima at gcc dot gnu dot org" 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: 2010-05/txt/msg03305.txt.bz2 Java enabled cross build for sh4-unknown-linux-gnu on i686-pc-linux-gnu host fails during linking libjavamath.so: libtool: link: /exp/ldroot/dodes/xsh-gcc-orig/./gcc/xgcc -B/exp/ldroot/dodes/xsh-gcc-orig/./gcc/ -B/usr/local/sh4-unknown-linux-gnu/bin/ -B/usr/local/sh4-unknown-linux-gnu/lib/ -isystem /usr/local/sh4-unknown-linux-gnu/include -isystem /usr/local/sh4-unknown-linux-gnu/sys-include -shared .libs/gnu_java_math_GMP.o ../../../native/jni/classpath/.libs/jcl.o -L/opt2/i686-pc-linux-gnu/lib /opt2/i686-pc-linux-gnu/lib/libgmp.so -Wl,-soname -Wl,libjavamath.so -o .libs/libjavamath.so /opt2/i686-pc-linux-gnu/lib/libgmp.so: could not read symbols: File in wrong format collect2: ld returned 1 exit status make[6]: *** [libjavamath.la] Error 1 when configured with --with-gmp=/opt2/i686-pc-linux-gnu. It seems that svn log libjava/classpath/configure.ac | head ------------------------------------------------------------------------ r160037 | mrs | 2010-05-30 05:54:18 +0900 (Sun, 30 May 2010) | 4 lines * configure.ac: Add multilib support for gmp. Proper -I and -L flags for gmp are added. * configure: Regenerate. doesn't work for cross builds and now attempts to link a host gmp library specified with --with-gmp to the target library. -- Summary: [4.6 Regression] libjava cross build fails when configured with --with-gmp= Product: gcc Version: 4.6.0 Status: UNCONFIRMED Keywords: build Severity: normal Priority: P3 Component: libgcj AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: kkojima at gcc dot gnu dot org GCC host triplet: i686-pc-linux-gnu GCC target triplet: sh4-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44341