This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libgcj/44341] New: [4.6 Regression] libjava cross build fails when configured with --with-gmp=


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]