[Bug libgcj/44341] [4.6 Regression] libjava cross build fails when configured with --with-gmp=
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44341 --- Comment #14 from Diego Novillo 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
[Bug libgcj/44341] [4.6 Regression] libjava cross build fails when configured with --with-gmp=
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44341 Alexandre Oliva changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED --- Comment #13 from Alexandre Oliva 2011-01-31 05:21:59 UTC --- Fixed
[Bug libgcj/44341] [4.6 Regression] libjava cross build fails when configured with --with-gmp=
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44341 --- Comment #12 from Alexandre Oliva 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
[Bug libgcj/44341] [4.6 Regression] libjava cross build fails when configured with --with-gmp=
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44341 --- Comment #11 from Alexandre Oliva 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.
[Bug libgcj/44341] [4.6 Regression] libjava cross build fails when configured with --with-gmp=
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44341 --- Comment #10 from Kazumoto Kojima 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.
[Bug libgcj/44341] [4.6 Regression] libjava cross build fails when configured with --with-gmp=
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44341 --- Comment #9 from Alexandre Oliva 2011-01-13 09:07:09 UTC --- Created attachment 22956 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22956 Another approach to fix the problem Here's another approach that IMHO is more consistent: instead of depending on a target library to mangle arguments for another target library, get the top level to distinguish target and host arguments and pass them down, adjusted as needed.
[Bug libgcj/44341] [4.6 Regression] libjava cross build fails when configured with --with-gmp=
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44341 Alexandre Oliva 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 2011-01-06 21:52:36 UTC --- Taking over, per Jakub's request
[Bug libgcj/44341] [4.6 Regression] libjava cross build fails when configured with --with-gmp=
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44341 --- Comment #7 from Jakub Jelinek 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).
[Bug libgcj/44341] [4.6 Regression] libjava cross build fails when configured with --with-gmp=
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44341 --- Comment #6 from Kazumoto Kojima 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.
[Bug libgcj/44341] [4.6 Regression] libjava cross build fails when configured with --with-gmp=
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44341 --- Comment #5 from Jakub Jelinek 2010-12-21 18:24:08 UTC --- Created attachment 22837 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22837 gcc46-pr44341.patch So is this what we want to do?
[Bug libgcj/44341] [4.6 Regression] libjava cross build fails when configured with --with-gmp=
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44341 Andrew John Hughes changed: What|Removed |Added CC||gnu_andrew at member dot ||fsf.org --- Comment #4 from Andrew John Hughes 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.
[Bug libgcj/44341] [4.6 Regression] libjava cross build fails when configured with --with-gmp=
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44341 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #3 from Jakub Jelinek 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.
[Bug libgcj/44341] [4.6 Regression] libjava cross build fails when configured with --with-gmp=
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44341 --- Comment #2 from Chris Faylor 2010-09-27 17:23:18 UTC --- once again. sorry for the noise.
[Bug libgcj/44341] [4.6 Regression] libjava cross build fails when configured with --with-gmp=
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44341 Chris Faylor changed: What|Removed |Added CC||cgf at gcc dot gnu.org --- Comment #1 from Chris Faylor 2010-09-27 17:18:01 UTC --- additional comment to check mail to java-prs.
[Bug libgcj/44341] [4.6 Regression] libjava cross build fails when configured with --with-gmp=
-- 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
[Bug libgcj/44341] [4.6 Regression] libjava cross build fails when configured with --with-gmp=
-- 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