This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

problem in compiling libgcj 2.95.1


Hi,

I tried to compile the libgcj version 2.95.1 (libgcj-2.95.1.tar.gz -
Isn't this the latest stable version) taken from sourceware.cygnus.com
ftp site. The following are the steps i followed:

../libgcj-2.95.1/configure --prefix=<dir> --enable-threads=posix
make

where <dir> is the Target directory where i succesfully installed gcc
2.95.1 (the  compilation of gcc gave no problems, sources from
gcc-core-2.95.1.tar.gz and gcc-java-2.95.1.tar.gz). During the make
phase i got the following error after some time:


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?

sincerely
Rajesh


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]