public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* java/1394: gcj cant find libgcj.zip
@ 2000-12-20 12:26 bryce
0 siblings, 0 replies; only message in thread
From: bryce @ 2000-12-20 12:26 UTC (permalink / raw)
To: java-gnats
>Number: 1394
>Category: java
>Synopsis: gcj cant find libgcj.zip
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apbianco
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Dec 20 12:19:34 PST 2000
>Closed-Date: Fri Nov 03 15:40:36 PST 2000
>Last-Modified: Fri Nov 3 15:50:00 PST 2000
>Originator: Bryce McKinlay
>Release: gcc version 2.97 20001028 (experimental)
>Organization:
>Environment:
>Description:
The latest compiler appears to be unable to find libgcj.zip
unless it is explicitly referenced in the CLASSPATH
environment variable, even though I have it installed in the
right place:
$ unset CLASSPATH
$ gcj BitSetTest.java -o bst --main=BitSetTest
BitSetTest.java:0: Can't find default package `java.lang'. Check the CLASSPATH environment variable and the access to the archives.
1 error
$ export CLASSPATH=~/gcc/share/libgcj.zip
$ gcj BitSetTest.java -o bst --main=BitSetTest
[ok...]
$ which gcj
~/gcc/bin/gcj
$ ls -l ~/gcc/share/libgcj.zip
-rw-r--r-- 1 bryce bryce 1521471 Oct 29 14:55 /home/bryce/gcc/share/libgcj.zip
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
Formerly PR gcj/365
From: Alexandre Petit-Bianco <apbianco@cygnus.com>
To: bryce@albatross.co.nz
Cc: java-gnats@sourceware.cygnus.com
Subject: Re: gcj/365: gcj cant find libgcj.zip
Date: Sun, 29 Oct 2000 14:52:32 -0800 (PST)
bryce@albatross.co.nz writes:
> The latest compiler appears to be unable to find libgcj.zip unless
> it is explicitly referenced in the CLASSPATH environment variable,
> even though I have it installed in the right place:
That seems to be the result of a Makefile rearrangement. Try this patch.
./A
2000-10-29 Alexandre Petit-Bianco <apbianco@cygnus.com>
* Make-lang.in (LIBGCJ_ZIP_FILE): Define with `$(prefix)'.
Index: Make-lang.in
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/Make-lang.in,v
retrieving revision 1.39
diff -u -p -r1.39 Make-lang.in
--- Make-lang.in 2000/10/27 20:22:28 1.39
+++ Make-lang.in 2000/10/29 22:48:30
@@ -281,6 +281,6 @@ java/jcf-io.o: java/jcf-io.c $(CONFIG_H)
# jcf-path.o needs a -D.
java/jcf-path.o: java/jcf-path.c $(CONFIG_H) system.h java/jcf.h
$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
- -DLIBGCJ_ZIP_FILE='"$(libgcj_zip)"' \
+ -DLIBGCJ_ZIP_FILE='"$(prefix)/share/libgcj.zip"' \
$(srcdir)/java/jcf-path.c $(OUTPUT_OPTION)
State-Changed-From-To: open->feedback
State-Changed-By: apbianco
State-Changed-When: Sun Oct 29 20:21:43 2000
State-Changed-Why:
I posted a patch:
http://sources.redhat.com/ml/java-prs/2000-q4/msg00090.html
From: apbianco@cygnus.com
To: apbianco@cygnus.com, bryce@albatross.co.nz,
java-gnats@sourceware.cygnus.com
Cc:
Subject: Re: gcj/365
Date: 30 Oct 2000 04:21:43 -0000
Synopsis: gcj cant find libgcj.zip
State-Changed-From-To: open->feedback
State-Changed-By: apbianco
State-Changed-When: Sun Oct 29 20:21:43 2000
State-Changed-Why:
I posted a patch:
http://sources.redhat.com/ml/java-prs/2000-q4/msg00090.html
http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view&pr=365&database=java
From: Bryce McKinlay <bryce@albatross.co.nz>
To: Alexandre Petit-Bianco <apbianco@cygnus.com>
Cc: java-gnats@sourceware.cygnus.com
Subject: Re: gcj/365: gcj cant find libgcj.zip
Date: Fri, 03 Nov 2000 21:42:11 +1300
Alexandre Petit-Bianco wrote:
> > The latest compiler appears to be unable to find libgcj.zip unless
> > it is explicitly referenced in the CLASSPATH environment variable,
> > even though I have it installed in the right place:
>
> That seems to be the result of a Makefile rearrangement. Try this patch.
This patch works fine.
However, it looks like using the value LIBGCJ_ZIP_FILE is supposed to be a
last resort for jc1, especially given that it breaks relocatability of the
compiler.
The real problem appears to be that the gcc.c driver fails to set the
environment variable GCC_EXEC_PREFIX that jc1 uses to locate libgcj.zip
(make_relative_prefix() returns NULL when its supposed to return its value).
regards
[ bryce ]
From: Tom Tromey <tromey@cygnus.com>
To: Bryce McKinlay <bryce@albatross.co.nz>
Cc: apbianco@cygnus.com, java-gnats@sourceware.cygnus.com
Subject: Re: gcj/365: gcj cant find libgcj.zip
Date: 03 Nov 2000 02:11:27 -0700
Bryce> The real problem appears to be that the gcc.c driver fails to
Bryce> set the environment variable GCC_EXEC_PREFIX that jc1 uses to
Bryce> locate libgcj.zip (make_relative_prefix() returns NULL when
Bryce> its supposed to return its value).
If this is a bug introduced by someone making an incompatible change,
feel free to complain to the gcc list and ask that person to fix it.
Incompatible changes shouldn't screw us, since we are in the tree.
Tom
From: Bryce McKinlay <bryce@albatross.co.nz>
To: tromey@cygnus.com
Cc: apbianco@cygnus.com, java-gnats@sourceware.cygnus.com
Subject: Re: gcj/365: gcj cant find libgcj.zip
Date: Fri, 03 Nov 2000 22:26:39 +1300
Tom Tromey wrote:
> Bryce> The real problem appears to be that the gcc.c driver fails to
> Bryce> set the environment variable GCC_EXEC_PREFIX that jc1 uses to
> Bryce> locate libgcj.zip (make_relative_prefix() returns NULL when
> Bryce> its supposed to return its value).
>
> If this is a bug introduced by someone making an incompatible change,
> feel free to complain to the gcc list and ask that person to fix it.
> Incompatible changes shouldn't screw us, since we are in the tree.
Well, presumably its been broken for a long time and its only the
fallback method which broke recently. I've sent a complaint to gcc-bugs
anyway ;-)
regards
[ bryce ]
From: Alexandre Petit-Bianco <apbianco@cygnus.com>
To: Bryce McKinlay <bryce@albatross.co.nz>
Cc: java-gnats@sourceware.cygnus.com
Subject: Re: gcj/365: gcj cant find libgcj.zip
Date: Fri, 3 Nov 2000 01:29:58 -0800 (PST)
Bryce McKinlay writes:
> Well, presumably its been broken for a long time and its only the
> fallback method which broke recently. I've sent a complaint to
> gcc-bugs anyway ;-)
Yeah, and the fallback I fixed. I'm going to check this patch
in. Thank you.
./A
State-Changed-From-To: feedback->closed
State-Changed-By: apbianco
State-Changed-When: Fri Nov 3 15:40:36 2000
State-Changed-Why:
I checked in a patch -- probably not fixing the root
of the problem (see http://gcc.gnu.org/ml/gcc-bugs/2000-11/msg00046.html )
but a fix nonetheless:
http://gcc.gnu.org/ml/gcc-patches/2000-11/msg00130.html
From: apbianco@cygnus.com
To: apbianco@cygnus.com, bryce@albatross.co.nz,
java-gnats@sourceware.cygnus.com
Cc:
Subject: Re: gcj/365
Date: 3 Nov 2000 23:40:36 -0000
Synopsis: gcj cant find libgcj.zip
State-Changed-From-To: feedback->closed
State-Changed-By: apbianco
State-Changed-When: Fri Nov 3 15:40:36 2000
State-Changed-Why:
I checked in a patch -- probably not fixing the root
of the problem (see http://gcc.gnu.org/ml/gcc-bugs/2000-11/msg00046.html )
but a fix nonetheless:
http://gcc.gnu.org/ml/gcc-patches/2000-11/msg00130.html
http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view&pr=365&database=java
>Unformatted:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-12-20 12:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-20 12:26 java/1394: gcj cant find libgcj.zip bryce
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).