java/1383: gcj: command not found (during make)

mech20@home.com mech20@home.com
Wed Dec 20 12:25:00 GMT 2000


>Number:         1383
>Category:       java
>Synopsis:       gcj: command not found (during make)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apbianco
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 20 12:19:29 PST 2000
>Closed-Date:    Thu Oct 12 12:00:54 PDT 2000
>Last-Modified:  Thu Oct 12 12:16:00 PDT 2000
>Originator:     Originator?
>Release:        libgcj-2.95.1
>Organization:
>Environment:
Using a default Linux Mandrake 7.1 install (i586-pc-linux-gnu)
>Description:
I run configure, then make. During make, when I think is the
first time a .java file is attempted to be compiled I get
and error the the command 'gcj' isn't found. And indeed I
could not find it anywhere on my whole system with a 'find'.
It seems like 'gcj' wasn't even compiled at all, but I don't
know how make could've gotten that far if it wasn't. Anyhow,
here's the end of the make output, and I have tried starting
all over again, many times:

fi
make[2]: Leaving directory `/opt/libgcj-2.95.1/build/i586-pc-linux-gnu/libjava'
Making all in testsuite
make[2]: Entering directory `/opt/libgcj-2.95.1/build/i586-pc-linux-gnu/libjava/
testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/opt/libgcj-2.95.1/build/i586-pc-linux-gnu/libjava/t
estsuite'
make[2]: Entering directory `/opt/libgcj-2.95.1/build/i586-pc-linux-gnu/libjava'
make java/lang/ConcreteProcess.class
make[3]: Entering directory `/opt/libgcj-2.95.1/build/i586-pc-linux-gnu/libjava'
javac="gcj -C"; \
$javac -g0 -classpath /opt/libgcj-2.95.1/build/i586-pc-linux-gnu/libjava:`cd ../
../../libjava && /bin/pwd` \
  -d /opt/libgcj-2.95.1/build/i586-pc-linux-gnu/libjava java/lang/ConcreteProces
s.java
/bin/sh: gcj: command not found
make[3]: *** [java/lang/ConcreteProcess.class] Error 127
make[3]: Leaving directory `/opt/libgcj-2.95.1/build/i586-pc-linux-gnu/libjava'
make[2]: *** [libgcj.zip] Error 2
make[2]: Leaving directory `/opt/libgcj-2.95.1/build/i586-pc-linux-gnu/libjava'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/libgcj-2.95.1/build/i586-pc-linux-gnu/libjava'
make: *** [all-target-libjava] Error 2

I really don't know what to do from this point, so I'm trying
here, it may just be some misconfiguration on my system, I
don't know, but any help would be great, thanks. =)

Mech
>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:

Formerly PR gcj/355


From: Alexandre Petit-Bianco <apbianco@cygnus.com>
To: mech20@home.com
Cc: java-gnats@sourceware.cygnus.com
Subject: Re: gcj/355: gcj: command not found (during make)
Date: Tue, 10 Oct 2000 23:25:58 -0700 (PDT)

 mech20@home.com writes:
 
 > I really don't know what to do from this point, so I'm trying here,
 > it may just be some misconfiguration on my system, I don't know, but
 > any help would be great, thanks. =)
 
 Short answer: Gcc and Libgcj are still two separate trees and they
 need to be built, installed (and eventually pointed at) separately.
 This should change fairly soon.
 
 Long answer: I think I see what's wrong. You haven't built gcc yet
 (you have a gcc installed on your system, but it most likely doesn't
 feature gcj.) So first, get the gcc source tree (you could start by
 downloading a snapshot: http://gcc.gnu.org/snapshots.html ), build and
 install it ( http://gcc.gnu.org/install/index.html ), tell your system
 where gcj should be found (that is where you specified things should
 be installed during the configuration of gcc, suffixed by bin -- if
 you specified --prefix=<something> as an argument to `configure' then
 gcj will be install under <something>/bin after you did a `make
 install') by adjusting and properly exporting PATH and then you can
 configure and build libgcj, gcj will be picked up when needed if your
 PATH is right. As a sanity check, try `which gcj' first before
 configuring and building libgcj.
 
 ./A

From: Jeff Sturm <jeff.sturm@appnet.com>
To: mech20@home.com
Cc: java-gnats@sourceware.cygnus.com
Subject: Re: gcj/355: gcj: command not found (during make)
Date: Wed, 11 Oct 2000 11:01:01 -0400

 Alexandre Petit-Bianco wrote:
 >  Long answer: I think I see what's wrong. You haven't built gcc yet
 >  (you have a gcc installed on your system, but it most likely doesn't
 >  feature gcj.) So first, get the gcc source tree (you could start by
 >  downloading a snapshot: http://gcc.gnu.org/snapshots.html ), build and
 >  install it ( http://gcc.gnu.org/install/index.html ), tell your system
 >  where gcj should be found (that is where you specified things should
 >  be installed during the configuration of gcc, suffixed by bin -- if
 >  you specified --prefix=<something> as an argument to `configure' then
 >  gcj will be install under <something>/bin after you did a `make
 >  install') by adjusting and properly exporting PATH and then you can
 >  configure and build libgcj, gcj will be picked up when needed if your
 >  PATH is right. As a sanity check, try `which gcj' first before
 >  configuring and building libgcj.
 
 And the gcj frontend must be configured when you build gcc (obviously).  The
 following will usually work:
 
 ../configure --prefix=... --enable-languages=c++,java --enable-threads
 
 Make sure ${prefix}/bin is in your PATH before any other gcc (usually
 /usr/bin/gcc).  Try a "which gcc" or "gcc --version" to make sure you are
 getting the right version.  (This has bitten me a few times.)
 
 --
 Jeff Sturm
 jeff.sturm@commerceone.com
State-Changed-From-To: open->closed
State-Changed-By: tromey
State-Changed-When: Thu Oct 12 12:00:54 2000
State-Changed-Why:
    I'm closing this PR.  It seems to be (1) solved, and (2)
    more of a system configuration problem than anything else.

From: tromey@cygnus.com
To: apbianco@cygnus.com, java-gnats@sourceware.cygnus.com, mech20@home.com
Cc:  
Subject: Re: gcj/355
Date: 12 Oct 2000 19:00:54 -0000

 Synopsis: gcj: command not found (during make)
 
 State-Changed-From-To: open->closed
 State-Changed-By: tromey
 State-Changed-When: Thu Oct 12 12:00:54 2000
 State-Changed-Why:
     I'm closing this PR.  It seems to be (1) solved, and (2)
     more of a system configuration problem than anything else.
 
 http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view&pr=355&database=java
>Unformatted:




More information about the Gcc-prs mailing list