From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8565 invoked by alias); 5 Dec 2007 17:44:09 -0000 Received: (qmail 8557 invoked by uid 22791); 5 Dec 2007 17:44:08 -0000 X-Spam-Check-By: sourceware.org Received: from mu-out-0910.google.com (HELO mu-out-0910.google.com) (209.85.134.188) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 05 Dec 2007 17:43:56 +0000 Received: by mu-out-0910.google.com with SMTP id g7so1012262muf for ; Wed, 05 Dec 2007 09:43:53 -0800 (PST) Received: by 10.82.158.12 with SMTP id g12mr5738046bue.1196876632338; Wed, 05 Dec 2007 09:43:52 -0800 (PST) Received: by 10.82.107.17 with HTTP; Wed, 5 Dec 2007 09:43:52 -0800 (PST) Message-ID: <20fbb8bc0712050943j1d23c473la21ef27586d4e082@mail.gmail.com> Date: Wed, 05 Dec 2007 17:44:00 -0000 From: "Mathieu Velten" To: gcc-help@gcc.gnu.org Subject: libgcj and MinGW, compilation problem MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2007-12/txt/msg00129.txt.bz2 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