public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/44341]  New: [4.6 Regression] libjava cross build fails when configured with --with-gmp=
@ 2010-05-31  1:02 kkojima at gcc dot gnu dot org
  2010-06-24 21:33 ` [Bug libgcj/44341] " rguenth at gcc dot gnu dot org
  2010-09-02 10:48 ` rguenth at gcc dot gnu dot org
  0 siblings, 2 replies; 12+ messages in thread
From: kkojima at gcc dot gnu dot org @ 2010-05-31  1:02 UTC (permalink / raw)
  To: java-prs

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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-02-02 18:23 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-44341-8172@http.gcc.gnu.org/bugzilla/>
2010-12-21 10:43 ` [Bug libgcj/44341] [4.6 Regression] libjava cross build fails when configured with --with-gmp= jakub at gcc dot gnu.org
2010-12-21 13:12 ` gnu_andrew at member dot fsf.org
2010-12-22 13:20 ` kkojima at gcc dot gnu.org
2010-12-22 13:23 ` jakub at gcc dot gnu.org
2011-01-06 21:52 ` aoliva at gcc dot gnu.org
2011-01-14  0:12 ` kkojima at gcc dot gnu.org
2011-01-14  9:55 ` aoliva at gcc dot gnu.org
2011-01-31  5:20 ` aoliva at gcc dot gnu.org
2011-01-31  5:22 ` aoliva at gcc dot gnu.org
2011-02-02 18:23 ` dnovillo at gcc dot gnu.org
2010-05-31  1:02 [Bug libgcj/44341] New: " kkojima at gcc dot gnu dot org
2010-06-24 21:33 ` [Bug libgcj/44341] " rguenth at gcc dot gnu dot org
2010-09-02 10:48 ` rguenth at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).