This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: problem in compiling libgcj 2.95.1
- To: Bryce McKinlay <bryce at albatross dot co dot nz>
- Subject: Re: problem in compiling libgcj 2.95.1
- From: arajesh <arajesh at india dot adventnet dot com>
- Date: Fri, 26 May 2000 12:20:50 +0530
- CC: "java-discuss at sourceware dot cygnus dot com" <java-discuss at sourceware dot cygnus dot com>
- Organization: AdventNet Inc.
- References: <392D1424.B470A3F7@india.adventnet.com> <392D2589.9322B965@albatross.co.nz>
- Reply-To: arajesh at india dot adventnet dot com
Hi Bryce,
Bryce McKinlay wrote:
> The build is picking up an older compiler from your path. Make sure that
> gcc-2.95.1 is found compiler on your path. You can verify this by typing
> "gcc -v".
>
I verified this and i am getting the following when i type 'gcc -v'
Reading specs from
/home/guest/gcj/GCCBIN/lib/gcc-lib/i686-pc-linux-gnu/2.95.1/specs
gcc version 2.95.1 19990816 (release)
Here '/home/guest/gcj/GCCBIN/ ' is the target directory where i installed
gcc. I added '/home/guest/gcj/GCCBIN/bin' to the PATH env variable so that
the new gcc is used during compilation of libgcj.
So what is going wrong?
> regards
>
> [ bryce ]
>
regards
Rajesh
>
> arajesh wrote:
>
> > cc1plus: Invalid option `-fpermissive'
> > In file included from ../../../libgcj-2.95.1/libjava/prims.cc:25:
> > java/lang/Runtime.h:42: warning: `class ::java::lang::Runtime' only
> > defines private constructors and has no friends
> > In file included from ../../../libgcj-2.95.1/libjava/prims.cc:38:
> > java/lang/System.h:48: warning: `class ::java::lang::System' only
> > defines private constructors and has no friends
> > make[2]: *** [prims.lo] Error 1
> > make[2]: Leaving directory
> > `/home/guest/gcj/GCJ/i686-pc-linux-gnu/libjava'
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory
> > `/home/guest/gcj/GCJ/i686-pc-linux-gnu/libjava'
> > make: *** [all-target-libjava] Error 2
> >
> > Am i doing something wrong? Since even the versions of gcc and libgcj
> > match why am i getting this error?