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; 13+ 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] 13+ messages in thread
* [Bug libgcj/44341] [4.6 Regression] libjava cross build fails when configured with --with-gmp=
2010-05-31 1:02 [Bug libgcj/44341] New: [4.6 Regression] libjava cross build fails when configured with --with-gmp= kkojima at gcc dot gnu dot org
@ 2010-06-24 21:33 ` rguenth at gcc dot gnu dot org
2010-09-02 10:48 ` rguenth at gcc dot gnu dot org
1 sibling, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-06-24 21:33 UTC (permalink / raw)
To: java-prs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.6.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44341
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug libgcj/44341] [4.6 Regression] libjava cross build fails when configured with --with-gmp=
2010-05-31 1:02 [Bug libgcj/44341] New: [4.6 Regression] libjava cross build fails when configured with --with-gmp= 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
1 sibling, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-09-02 10:48 UTC (permalink / raw)
To: java-prs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mrs at gcc dot gnu dot org
Priority|P3 |P1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44341
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug libgcj/44341] [4.6 Regression] libjava cross build fails when configured with --with-gmp=
[not found] <bug-44341-8172@http.gcc.gnu.org/bugzilla/>
` (8 preceding siblings ...)
2011-01-31 5:22 ` aoliva at gcc dot gnu.org
@ 2011-02-02 18:23 ` dnovillo at gcc dot gnu.org
9 siblings, 0 replies; 13+ messages in thread
From: dnovillo at gcc dot gnu.org @ 2011-02-02 18:23 UTC (permalink / raw)
To: java-prs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44341
--- Comment #14 from Diego Novillo <dnovillo at gcc dot gnu.org> 2011-02-02 18:08:42 UTC ---
Author: dnovillo
Date: Wed Feb 2 18:08:30 2011
New Revision: 169710
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=169710
Log:
ChangeLog:
PR libgcj/44341
* configure.ac: Discard --with-* flags for host when configuring
target libraries for cross build.
* configure: Rebuilt.
gcc/ChangeLog:
PR libgcj/44341
* doc/install.texi: Document host options discarded when cross
configuring target libraries.
Modified:
branches/google/integration/ChangeLog
branches/google/integration/configure
branches/google/integration/configure.ac
branches/google/integration/gcc/ChangeLog
branches/google/integration/gcc/doc/install.texi
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug libgcj/44341] [4.6 Regression] libjava cross build fails when configured with --with-gmp=
[not found] <bug-44341-8172@http.gcc.gnu.org/bugzilla/>
` (7 preceding siblings ...)
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
9 siblings, 0 replies; 13+ messages in thread
From: aoliva at gcc dot gnu.org @ 2011-01-31 5:22 UTC (permalink / raw)
To: java-prs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44341
Alexandre Oliva <aoliva at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #13 from Alexandre Oliva <aoliva at gcc dot gnu.org> 2011-01-31 05:21:59 UTC ---
Fixed
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug libgcj/44341] [4.6 Regression] libjava cross build fails when configured with --with-gmp=
[not found] <bug-44341-8172@http.gcc.gnu.org/bugzilla/>
` (6 preceding siblings ...)
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
9 siblings, 0 replies; 13+ messages in thread
From: aoliva at gcc dot gnu.org @ 2011-01-31 5:20 UTC (permalink / raw)
To: java-prs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44341
--- Comment #12 from Alexandre Oliva <aoliva at gcc dot gnu.org> 2011-01-31 05:20:31 UTC ---
Author: aoliva
Date: Mon Jan 31 05:20:17 2011
New Revision: 169430
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=169430
Log:
ChangeLog:
PR libgcj/44341
* configure.ac: Discard --with-* flags for host when configuring
target libraries for cross build.
* configure: Rebuilt.
gcc/ChangeLog:
PR libgcj/44341
* doc/install.texi: Document host options discarded when cross
configuring target libraries.
Modified:
trunk/ChangeLog
trunk/configure
trunk/configure.ac
trunk/gcc/ChangeLog
trunk/gcc/doc/install.texi
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug libgcj/44341] [4.6 Regression] libjava cross build fails when configured with --with-gmp=
[not found] <bug-44341-8172@http.gcc.gnu.org/bugzilla/>
` (5 preceding siblings ...)
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
` (2 subsequent siblings)
9 siblings, 0 replies; 13+ messages in thread
From: aoliva at gcc dot gnu.org @ 2011-01-14 9:55 UTC (permalink / raw)
To: java-prs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44341
--- Comment #11 from Alexandre Oliva <aoliva at gcc dot gnu.org> 2011-01-14 09:54:54 UTC ---
Yeah, sorry, the *s were not supposed to be there in the variable names, only
in the help message. I fixed that shortly after posting the patch here, when I
first noticed the problem.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug libgcj/44341] [4.6 Regression] libjava cross build fails when configured with --with-gmp=
[not found] <bug-44341-8172@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
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
` (3 subsequent siblings)
9 siblings, 0 replies; 13+ messages in thread
From: kkojima at gcc dot gnu.org @ 2011-01-14 0:12 UTC (permalink / raw)
To: java-prs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44341
--- Comment #10 from Kazumoto Kojima <kkojima at gcc dot gnu.org> 2011-01-14 00:11:39 UTC ---
(In reply to comment #9)
> Another approach to fix the problem
It looks that the patch fixes the issue, though I've got
...
../LOCAL/trunk/configure: line 5232: ${with_target_mpc_*+set}: bad substitution
../LOCAL/trunk/configure: line 5285: ${with_target_mpfr_*+set}: bad
substitution
../LOCAL/trunk/configure: line 5338: ${with_target_gmp_*+set}: bad substitution
checking for the correct version of gmp.h... buggy but acceptable
checking for the correct version of mpfr.h... buggy but acceptable
checking for the correct version of mpc.h... buggy but acceptable
checking for the correct version of the gmp/mpfr/mpc libraries... yes
../LOCAL/trunk/configure: line 5701: ${with_target_ppl_*+set}: bad substitution
../LOCAL/trunk/configure: line 5794: ${with_target_cloog_*+set}: bad
substitution
...
when configuring with
../LOCAL/trunk/configure --host=i686-pc-linux-gnu
--target=sh4-unknown-linux-gnu --enable-lto --enable-shared
--enable-threads=posix --enable-clocale=gnu --enable-libgcj
--with-ld=/usr/local/bin/sh4-unknown-linux-gnu-ld
--with-as=/usr/local/bin/sh4-unknown-linux-gnu-as --with-sysroot=/exp/ldroot
--with-gmp=/opt2/i686-pc-linux-gnu --with-mpfr=/opt2/i686-pc-linux-gnu
--with-mpc=/opt2/i686-pc-linux-gnu --with-libelf=/opt2/i686-pc-linux-gnu
--with-ppl=no --enable-languages=c,c++,fortran,java,objc
on my Fedora 13 box.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug libgcj/44341] [4.6 Regression] libjava cross build fails when configured with --with-gmp=
[not found] <bug-44341-8172@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
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
` (4 subsequent siblings)
9 siblings, 0 replies; 13+ messages in thread
From: aoliva at gcc dot gnu.org @ 2011-01-06 21:52 UTC (permalink / raw)
To: java-prs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44341
Alexandre Oliva <aoliva at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2011.01.06 21:52:36
CC| |aoliva at gcc dot gnu.org
AssignedTo|unassigned at gcc dot |aoliva at gcc dot gnu.org
|gnu.org |
Ever Confirmed|0 |1
--- Comment #8 from Alexandre Oliva <aoliva at gcc dot gnu.org> 2011-01-06 21:52:36 UTC ---
Taking over, per Jakub's request
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug libgcj/44341] [4.6 Regression] libjava cross build fails when configured with --with-gmp=
[not found] <bug-44341-8172@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
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
` (5 subsequent siblings)
9 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-12-22 13:23 UTC (permalink / raw)
To: java-prs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44341
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-12-22 13:23:22 UTC ---
Another alternative would be to make the behavior different between cross and
native builds. In native builds, --with-gmp{,-lib,-include} would be passed
through to both gcc configury and libjava/classpath (of course, if present,
--with-target-gmp* would override it for libjava/classpath), and for
crosses it would do what the patch does right now (for the patch it means that
for
native it wouldn't add --with-gmp=$with_target_gmp to ac_configure_args if
$with_target_gmp is empty (and similarly for -lib and -include).
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug libgcj/44341] [4.6 Regression] libjava cross build fails when configured with --with-gmp=
[not found] <bug-44341-8172@http.gcc.gnu.org/bugzilla/>
2010-12-21 10:43 ` 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
` (6 subsequent siblings)
9 siblings, 0 replies; 13+ messages in thread
From: kkojima at gcc dot gnu.org @ 2010-12-22 13:20 UTC (permalink / raw)
To: java-prs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44341
--- Comment #6 from Kazumoto Kojima <kkojima at gcc dot gnu.org> 2010-12-22 13:19:40 UTC ---
I've tried the patch on x86 cross sh4-unknown-linux-gnu. It looks
all possible combinations of --with-gmp and --with-target-gmp
work as expected.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug libgcj/44341] [4.6 Regression] libjava cross build fails when configured with --with-gmp=
[not found] <bug-44341-8172@http.gcc.gnu.org/bugzilla/>
2010-12-21 10:43 ` 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
` (7 subsequent siblings)
9 siblings, 0 replies; 13+ messages in thread
From: gnu_andrew at member dot fsf.org @ 2010-12-21 13:12 UTC (permalink / raw)
To: java-prs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44341
Andrew John Hughes <gnu_andrew at member dot fsf.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gnu_andrew at member dot
| |fsf.org
--- Comment #4 from Andrew John Hughes <gnu_andrew at member dot fsf.org> 2010-12-21 13:12:11 UTC ---
libjava/configure should pass the right option to libjava/classpath/configure.
libjava/classpath/configure is merged from the upstream GNU Classpath project
and changing it would create a divergence, which doesn't seem necessary in this
case.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug libgcj/44341] [4.6 Regression] libjava cross build fails when configured with --with-gmp=
[not found] <bug-44341-8172@http.gcc.gnu.org/bugzilla/>
@ 2010-12-21 10:43 ` jakub at gcc dot gnu.org
2010-12-21 13:12 ` gnu_andrew at member dot fsf.org
` (8 subsequent siblings)
9 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-12-21 10:43 UTC (permalink / raw)
To: java-prs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44341
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-12-21 10:43:02 UTC ---
I guess either the libjava/classpath/configure* option should be renamed, e.g.
to --with-target-gmp*, or libjava/configure* shouldn't pass --with-gmp* down to
classpath configure, but instead should pass --with-target-gmp* as --with-gmp*
to classpath configure.
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2011-02-02 18:23 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-31 1:02 [Bug libgcj/44341] New: [4.6 Regression] libjava cross build fails when configured with --with-gmp= 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
[not found] <bug-44341-8172@http.gcc.gnu.org/bugzilla/>
2010-12-21 10:43 ` 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
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).