public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* libgcj and MinGW, compilation problem
@ 2007-12-05 17:44 Mathieu Velten
  2007-12-05 17:56 ` Andrew Haley
  0 siblings, 1 reply; 2+ messages in thread
From: Mathieu Velten @ 2007-12-05 17:44 UTC (permalink / raw)
  To: gcc-help

Hello !

I am trying to make a build of GCC 4.2.2 with GCJ for MinGW.

I first tried with :
../gcc-4.2.2/configure --enable-languages=c,c++,java -v
--enable-optimize --prefix=/mingw --oldincludedir=/mingw/include
--enable-threads --disable-nls --disable-win32-registry
--disable-shared --without-x

it compiled without any problem but when I try to launch gcj it
complains about the lack of libgcj, and effectivly libgcj is not
present. No problems with gcc or g++.

so I tried to add --enable-libgcj
and then I now have problems at the compilation time. the errors begin
like that :

make[4]: Entering directory
`/D/SVN/compil/i686-pc-mingw32/libjava/classpath/tools'
mkdir -p classes/gnu/classpath/tools/giop/grmic/templates
mkdir -p classes/gnu/classpath/tools/rmi/rmic/templates
mkdir -p classes/gnu/classpath/tools/appletviewer
mkdir -p classes/gnu/classpath/tools/jarsigner
mkdir -p classes/gnu/classpath/tools/keytool
cp ../../../../../gcc-4.2.2/libjava/classpath/tools/gnu/classpath/tools/rmi/rmic/templates/*.jav
classes/gnu/classpath/tools/rmi/rmic/templates
cp ../../../../../gcc-4.2.2/libjava/classpath/tools/gnu/classpath/tools/giop/grmic/templates/*.jav
classes/gnu/classpath/tools/giop/grmic/templates
cp ../../../../../gcc-4.2.2/libjava/classpath/tools/gnu/classpath/tools/rmi/*.txt
classes/gnu/classpath/tools/rmi/
cp ../../../../../gcc-4.2.2/libjava/classpath/tools/gnu/classpath/tools/giop/*.txt
classes/gnu/classpath/tools/giop/
/D/SVN/compil/gcc/gcj -B/D/SVN/compil/i686-pc-mingw32/libjava/
-B/D/SVN/compil/gcc/ -encoding UTF-8 --bootclasspath
'../lib':'../lib/glibj.zip' --classpath . -C -d classes
../../../../../gcc-4.2.2/libjava/classpath/tools/gnu/classpath/tools/*.java
../../../../../gcc-4.2.2/libjava/classpath/tools/gnu/classpath/tools/*/*.java
../../../../../gcc-4.2.2/libjava/classpath/tools/gnu/classpath/tools/*/*/*.java
../../../../../gcc-4.2.2/libjava/classpath/tools/gnu/classpath/tools/AbstractMethodGenerator.java:0:
error: Can't find default package 'java.lang'. Check the CLASSPATH
environment variable and the access to the archives

and finish like that :

../../../../../gcc-4.2.2/libjava/classpath/tools/gnu/classpath/tools/rmi/rmic/WrapUnWrapper.java:0:
error: cannot find file for class java.lang.Object
2651 errors
make[4]: *** [tools.jar] Error 1
make[4]: Leaving directory
`/D/SVN/compil/i686-pc-mingw32/libjava/classpath/tools'
make[4]: Entering directory `/D/SVN/compil/i686-pc-mingw32/libjava/classpath'
true  DO=all multi-do # make
make[4]: Leaving directory `/D/SVN/compil/i686-pc-mingw32/libjava/classpath'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/D/SVN/compil/i686-pc-mingw32/libjava/classpath'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/D/SVN/compil/i686-pc-mingw32/libjava'
make[1]: *** [all-target-libjava] Error 2
make[1]: Leaving directory `/D/SVN/compil'
make: *** [bootstrap] Error 2

I tried to add also --enable-libjava but I have the same errors.

my build environment :
w32api-3.10.tar.gz
binutils-2.17.50-20060824-1.tar.gz
mingw32-make-3.81-2.tar.gz
mingw-runtime-3.13.tar.gz
pthreads-2.8.0
bison-2.1.0
gcc-4.2.2

Any suggestions to solve this problem ?

Thanks in advance for your answers.

Kind regards,

Mathieu Velten

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: libgcj and MinGW, compilation problem
  2007-12-05 17:44 libgcj and MinGW, compilation problem Mathieu Velten
@ 2007-12-05 17:56 ` Andrew Haley
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Haley @ 2007-12-05 17:56 UTC (permalink / raw)
  To: Mathieu Velten; +Cc: gcc-help

Mathieu Velten writes:

 > Any suggestions to solve this problem ?

You probably should post this to java@gcc.gnu.org.  I think some mingw
mavens read that list.

Andrew.

-- 
Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, UK
Registered in England and Wales No. 3798903

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-12-05 17:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-05 17:44 libgcj and MinGW, compilation problem Mathieu Velten
2007-12-05 17:56 ` Andrew Haley

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).