public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/17290] New: [3.5 Regression] Wrong Java dependencies are generated
@ 2004-09-02 16:27 hjl at lucon dot org
2004-09-02 16:41 ` [Bug java/17290] " jsm at polyomino dot org dot uk
` (11 more replies)
0 siblings, 12 replies; 13+ messages in thread
From: hjl at lucon dot org @ 2004-09-02 16:27 UTC (permalink / raw)
To: java-prs
When I have gcc 3.5 installed under /usr/gcc-3.5, libjava dependencies generated by
gcc use the installed files instead of those just built:
[hjl@gnu-64 libjava]$ /export/build/gnu/gcc/build-x86_64-linux/gcc/gcj
-B/export/build/gnu/gcc/build-x86_64-linux/gcc/
-B/usr/gcc-3.5/x86_64-unknown-linux-gnu/bin/
-B/usr/gcc-3.5/x86_64-unknown-linux-gnu/lib/ -isystem
/usr/gcc-3.5/x86_64-unknown-linux-gnu/include -isystem
/usr/gcc-3.5/x86_64-unknown-linux-gnu/sys-include -ffloat-store
-fno-omit-frame-pointer --encoding=UTF-8 -Wno-deprecated -g -O2 -MT
javax/swing/border/AbstractBorder.lo -MD -MP -MF
javax/swing/border/.deps/AbstractBorder.Tpo -c
/net/gnu/export/gnu/src/gcc/gcc/libjava/javax/swing/border/AbstractBorder.java
-o javax/swing/border/AbstractBorder.o
[hjl@gnu-64 libjava]$ !cat
cat javax/swing/border/.deps/AbstractBorder.Tpo
javax/swing/border/AbstractBorder.lo: \
/net/gnu/export/gnu/src/gcc/gcc/libjava/javax/swing/border/AbstractBorder.java \
/usr/gcc-3.5/share/java/libgcj-3.5.0.jar java/io/Serializable.class \
java/lang/Object.class java/awt/Rectangle.class \
java/awt/geom/Rectangle2D.class java/awt/geom/RectangularShape.class \
java/lang/Cloneable.class java/awt/Shape.class \
java/awt/geom/Rectangle2D$$Double.class \
java/awt/geom/Rectangle2D$$Float.class java/awt/Insets.class \
java/awt/Graphics.class java/awt/Component.class \
java/awt/MenuContainer.class java/awt/image/ImageObserver.class \
java/awt/Component$$AccessibleAWTComponent.class \
javax/accessibility/AccessibleContext.class \
javax/accessibility/AccessibleComponent.class \
java/awt/Component$$AccessibleAWTComponent$$AccessibleAWTComponentHandler.class \
java/awt/event/ComponentListener.class java/util/EventListener.class \
java/awt/Component$$AccessibleAWTComponent$$AccessibleAWTFocusHandler.class \
java/awt/event/FocusListener.class \
java/awt/Component$$BltBufferStrategy.class \
java/awt/image/BufferStrategy.class \
java/awt/Component$$FlipBufferStrategy.class \
javax/swing/border/Border.class java/awt/Point.class \
java/awt/geom/Point2D.class java/awt/geom/Point2D$$Double.class \
java/awt/geom/Point2D$$Float.class java/awt/Dimension.class \
java/awt/geom/Dimension2D.class java/lang/Class.class
--
Summary: [3.5 Regression] Wrong Java dependencies are generated
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: hjl at lucon dot org
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17290
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug java/17290] [3.5 Regression] Wrong Java dependencies are generated
2004-09-02 16:27 [Bug java/17290] New: [3.5 Regression] Wrong Java dependencies are generated hjl at lucon dot org
@ 2004-09-02 16:41 ` jsm at polyomino dot org dot uk
2004-09-02 16:50 ` [Bug java/17290] " hjl at lucon dot org
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: jsm at polyomino dot org dot uk @ 2004-09-02 16:41 UTC (permalink / raw)
To: java-prs
------- Additional Comments From jsm at polyomino dot org dot uk 2004-09-02 16:41 -------
Subject: Re: New: [3.5 Regression] Wrong Java dependencies
are generated
On Thu, 2 Sep 2004, hjl at lucon dot org wrote:
> When I have gcc 3.5 installed under /usr/gcc-3.5, libjava dependencies generated by
> gcc use the installed files instead of those just built:
I've seen such a problem in the following form: building libjava goes
fine, then my install script deletes the prefix before reinstalling and
"make install" fails because the installed libgcj.jar isn't present.
i.e.
(with a previous 3.5 version already installed under somewhere)
configure --prefix=somewhere
make bootstrap
rm -rf somewhere
make install
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17290
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug java/17290] Wrong Java dependencies are generated
2004-09-02 16:27 [Bug java/17290] New: [3.5 Regression] Wrong Java dependencies are generated hjl at lucon dot org
2004-09-02 16:41 ` [Bug java/17290] " jsm at polyomino dot org dot uk
@ 2004-09-02 16:50 ` hjl at lucon dot org
2004-09-02 16:53 ` jsm at polyomino dot org dot uk
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: hjl at lucon dot org @ 2004-09-02 16:50 UTC (permalink / raw)
To: java-prs
------- Additional Comments From hjl at lucon dot org 2004-09-02 16:50 -------
In my case, I didn't delete the previous gcc 3.5 installation and used the same
prefix to configure the new
one. "make install" will install /usr/gcc-3.5/share/java/libgcj-3.5.0.jar, which
leads to recompile many
files.
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|[3.5 Regression] Wrong Java |Wrong Java dependencies are
|dependencies are generated |generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17290
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug java/17290] Wrong Java dependencies are generated
2004-09-02 16:27 [Bug java/17290] New: [3.5 Regression] Wrong Java dependencies are generated hjl at lucon dot org
2004-09-02 16:41 ` [Bug java/17290] " jsm at polyomino dot org dot uk
2004-09-02 16:50 ` [Bug java/17290] " hjl at lucon dot org
@ 2004-09-02 16:53 ` jsm at polyomino dot org dot uk
2004-09-02 17:30 ` hjl at lucon dot org
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: jsm at polyomino dot org dot uk @ 2004-09-02 16:53 UTC (permalink / raw)
To: java-prs
------- Additional Comments From jsm at polyomino dot org dot uk 2004-09-02 16:53 -------
Subject: Re: Wrong Java dependencies are generated
I think this problem started appearing around the time libjava moved to
automake 1.9.x.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17290
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug java/17290] Wrong Java dependencies are generated
2004-09-02 16:27 [Bug java/17290] New: [3.5 Regression] Wrong Java dependencies are generated hjl at lucon dot org
` (2 preceding siblings ...)
2004-09-02 16:53 ` jsm at polyomino dot org dot uk
@ 2004-09-02 17:30 ` hjl at lucon dot org
2004-09-02 17:38 ` mckinlay at redhat dot com
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: hjl at lucon dot org @ 2004-09-02 17:30 UTC (permalink / raw)
To: java-prs
------- Additional Comments From hjl at lucon dot org 2004-09-02 17:30 -------
I don't think it is entirely automake's fault. It there a way to tell gcj not to
look at the installed directory?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17290
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug java/17290] Wrong Java dependencies are generated
2004-09-02 16:27 [Bug java/17290] New: [3.5 Regression] Wrong Java dependencies are generated hjl at lucon dot org
` (3 preceding siblings ...)
2004-09-02 17:30 ` hjl at lucon dot org
@ 2004-09-02 17:38 ` mckinlay at redhat dot com
2004-09-02 18:37 ` mckinlay at redhat dot com
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: mckinlay at redhat dot com @ 2004-09-02 17:38 UTC (permalink / raw)
To: java-prs
------- Additional Comments From mckinlay at redhat dot com 2004-09-02 17:38 -------
GCJ should never look at the installed directory when running from the build tree.
I think the problem is that there are install directories being passed to gcj as
a -B argument:
[hjl@gnu-64 libjava]$ /export/build/gnu/gcc/build-x86_64-linux/gcc/gcj
-B/export/build/gnu/gcc/build-x86_64-linux/gcc/
-B/usr/gcc-3.5/x86_64-unknown-linux-gnu/bin/
-B/usr/gcc-3.5/x86_64-unknown-linux-gnu/lib/
^^^^
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17290
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug java/17290] Wrong Java dependencies are generated
2004-09-02 16:27 [Bug java/17290] New: [3.5 Regression] Wrong Java dependencies are generated hjl at lucon dot org
` (4 preceding siblings ...)
2004-09-02 17:38 ` mckinlay at redhat dot com
@ 2004-09-02 18:37 ` mckinlay at redhat dot com
2004-09-02 19:21 ` hjl at lucon dot org
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: mckinlay at redhat dot com @ 2004-09-02 18:37 UTC (permalink / raw)
To: java-prs
------- Additional Comments From mckinlay at redhat dot com 2004-09-02 18:37 -------
Confirmed.
Actually, the -B shouldn't matter, it appears to be weirdness with automake. It
is using a different command line when re-building a changed file than it does
for other dependencies. The second command line appears to not use GCJCOMPILE,
so it does not pick up the classpath and bootclasspath args.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-09-02 18:37:28
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17290
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug java/17290] Wrong Java dependencies are generated
2004-09-02 16:27 [Bug java/17290] New: [3.5 Regression] Wrong Java dependencies are generated hjl at lucon dot org
` (5 preceding siblings ...)
2004-09-02 18:37 ` mckinlay at redhat dot com
@ 2004-09-02 19:21 ` hjl at lucon dot org
2004-09-03 1:23 ` [Bug libgcj/17290] [3.5 Regression] " pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: hjl at lucon dot org @ 2004-09-02 19:21 UTC (permalink / raw)
To: java-prs
------- Additional Comments From hjl at lucon dot org 2004-09-02 19:21 -------
This change may do the trick:
--- libjava/Makefile.am.1.9 2004-09-02 12:18:20.312025027 -0700
+++ libjava/Makefile.am 2004-09-02 12:19:43.744246843 -0700
@@ -138,6 +138,7 @@ ZIP = @ZIP@
GCJ_WITH_FLAGS = $(GCJ) --encoding=UTF-8 -Wno-deprecated
GCJCOMPILE = $(LIBTOOL) --tag=GCJ --mode=compile $(GCJ_WITH_FLAGS) -fclasspath=
-fbootclasspath=$(here) $(JC1FLAGS) -MD -MT $@ -MF $(@:.lo=.d) -c
+LTGCJCOMPILE = $(GCJCOMPILE)
GCJLINK = $(LIBTOOL) --tag=GCJ --mode=link $(GCJ) -L$(here) $(JC1FLAGS)
$(LDFLAGS) -o $@
LIBLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXX) -L$(here) $(JC1FLAGS)
$(LDFLAGS) -o $@
--- libjava/Makefile.in.1.9 2004-09-02 12:18:20.340021410 -0700
+++ libjava/Makefile.in 2004-09-02 12:19:49.180544556 -0700
@@ -4130,6 +4130,7 @@ propdir = $(libdir)
bin_SCRIPTS = addr2name.awk
GCJ_WITH_FLAGS = $(GCJ) --encoding=UTF-8 -Wno-deprecated
GCJCOMPILE = $(LIBTOOL) --tag=GCJ --mode=compile $(GCJ_WITH_FLAGS) -fclasspath=
-fbootclasspath=$(here) $(JC1FLAGS) -MD -MT $@ -MF $(@:.lo=.d) -c
+LTGCJCOMPILE = $(GCJCOMPILE)
GCJLINK = $(LIBTOOL) --tag=GCJ --mode=link $(GCJ) -L$(here) $(JC1FLAGS)
$(LDFLAGS) -o $@
LIBLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXX) -L$(here) $(JC1FLAGS)
$(LDFLAGS) -o $@
JAVAC = $(GCJ_WITH_FLAGS) -C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17290
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug libgcj/17290] [3.5 Regression] Wrong Java dependencies are generated
2004-09-02 16:27 [Bug java/17290] New: [3.5 Regression] Wrong Java dependencies are generated hjl at lucon dot org
` (6 preceding siblings ...)
2004-09-02 19:21 ` hjl at lucon dot org
@ 2004-09-03 1:23 ` pinskia at gcc dot gnu dot org
2004-09-03 16:03 ` hjl at lucon dot org
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-03 1:23 UTC (permalink / raw)
To: java-prs
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|Wrong Java dependencies are |[3.5 Regression] Wrong Java
|generated |dependencies are generated
Target Milestone|--- |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17290
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug libgcj/17290] [3.5 Regression] Wrong Java dependencies are generated
2004-09-02 16:27 [Bug java/17290] New: [3.5 Regression] Wrong Java dependencies are generated hjl at lucon dot org
` (7 preceding siblings ...)
2004-09-03 1:23 ` [Bug libgcj/17290] [3.5 Regression] " pinskia at gcc dot gnu dot org
@ 2004-09-03 16:03 ` hjl at lucon dot org
2004-09-04 3:30 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: hjl at lucon dot org @ 2004-09-03 16:03 UTC (permalink / raw)
To: java-prs
------- Additional Comments From hjl at lucon dot org 2004-09-03 16:03 -------
A patch is posted at
http://gcc.gnu.org/ml/gcc-patches/2004-09/msg00357.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17290
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug libgcj/17290] [3.5 Regression] Wrong Java dependencies are generated
2004-09-02 16:27 [Bug java/17290] New: [3.5 Regression] Wrong Java dependencies are generated hjl at lucon dot org
` (8 preceding siblings ...)
2004-09-03 16:03 ` hjl at lucon dot org
@ 2004-09-04 3:30 ` cvs-commit at gcc dot gnu dot org
2004-09-04 3:31 ` mckinlay at redhat dot com
2004-09-07 8:43 ` pinskia at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-09-04 3:30 UTC (permalink / raw)
To: java-prs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-09-04 03:30 -------
Subject: Bug 17290
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: bryce@gcc.gnu.org 2004-09-04 03:30:13
Modified files:
libjava : ChangeLog Makefile.am Makefile.in
Log message:
2004-09-03 Bryce McKinlay <mckinlay@redhat.com>
H.J. Lu <hongjiu.lu@intel.com>
PR libgcj/17290
* Makefile.am (GCJCOMPILE): Remove definition.
(AM_CFLAGS): Add -fclasspath and -fbootclasspath flags.
Use LTGCJCOMPILE, not GCJCOMPILE, to build .lo targets.
* Makefile.in: Rebuilt.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/ChangeLog.diff?cvsroot=gcc&r1=1.3037&r2=1.3038
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/Makefile.am.diff?cvsroot=gcc&r1=1.405&r2=1.406
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/Makefile.in.diff?cvsroot=gcc&r1=1.432&r2=1.433
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17290
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug libgcj/17290] [3.5 Regression] Wrong Java dependencies are generated
2004-09-02 16:27 [Bug java/17290] New: [3.5 Regression] Wrong Java dependencies are generated hjl at lucon dot org
` (9 preceding siblings ...)
2004-09-04 3:30 ` cvs-commit at gcc dot gnu dot org
@ 2004-09-04 3:31 ` mckinlay at redhat dot com
2004-09-07 8:43 ` pinskia at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: mckinlay at redhat dot com @ 2004-09-04 3:31 UTC (permalink / raw)
To: java-prs
------- Additional Comments From mckinlay at redhat dot com 2004-09-04 03:31 -------
Fix checked in.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17290
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug libgcj/17290] [3.5 Regression] Wrong Java dependencies are generated
2004-09-02 16:27 [Bug java/17290] New: [3.5 Regression] Wrong Java dependencies are generated hjl at lucon dot org
` (10 preceding siblings ...)
2004-09-04 3:31 ` mckinlay at redhat dot com
@ 2004-09-07 8:43 ` pinskia at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-07 8:43 UTC (permalink / raw)
To: java-prs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-09-07 08:43 -------
I wonder if this is what was causing the bootstrap parallel failure in libjava.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17290
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2004-09-07 8:43 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-02 16:27 [Bug java/17290] New: [3.5 Regression] Wrong Java dependencies are generated hjl at lucon dot org
2004-09-02 16:41 ` [Bug java/17290] " jsm at polyomino dot org dot uk
2004-09-02 16:50 ` [Bug java/17290] " hjl at lucon dot org
2004-09-02 16:53 ` jsm at polyomino dot org dot uk
2004-09-02 17:30 ` hjl at lucon dot org
2004-09-02 17:38 ` mckinlay at redhat dot com
2004-09-02 18:37 ` mckinlay at redhat dot com
2004-09-02 19:21 ` hjl at lucon dot org
2004-09-03 1:23 ` [Bug libgcj/17290] [3.5 Regression] " pinskia at gcc dot gnu dot org
2004-09-03 16:03 ` hjl at lucon dot org
2004-09-04 3:30 ` cvs-commit at gcc dot gnu dot org
2004-09-04 3:31 ` mckinlay at redhat dot com
2004-09-07 8:43 ` pinskia 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).