This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Errors with Building GCJ 3.1.1 to run with mingw


Hello

I'm trying full time to build GCJ....But i have errors in building GCJ 3.1.1 (cross compiler Building on Cygwin to target mingw). I don't know how to fix them. Someone can help ?

This is the error i have when i used the command Make for my building:

---------
Makefile:3341: target `java/lang/Object.h' given more than once in the
same
rule
.
Makefile:3341: target `java/lang/Class.h' given more than once in the
same
rule.

./gnu/java/security/provider/gnu.java:42: Class
`gnu.java.security.provider.Gnu'
already defined in ./gnu/java/security/provider/Gnu.java:42.
public final class Gnu extends Provider
^
./gnu/java/security/provider/gnu.java:45: confused by earlier errors,
bailing ou
t
make[1]: *** [java/lang/Class.class] Error 1
make: *** [all-target-libjava] Error 2
----------


This is the instructions i followed for GCC:

Using;
- Windows 2000 SP2
- Cygwin 1.3.10
- gcc 3.1 & 3.1.1
- mingw runtime 2.0-20020430
- w32api 1.4-2

1) Building GCC 3.1.

2) Run configure to setup gcc 3.1.1 build;
../gcc-3.1.1/configure
--prefix=/usr/local/gcc-3.1.1
--host=i686-pc-cygwin
--target=i686-pc-mingw32
--enable-languages=c,c++,java
--disable-nls
--with-as=/bin/as.exe
--with-ld=/bin/ld.exe
--enable-libgcj
--enable-gc-type=boehm
--disable-shared
--enable-threads=win32
--disable-hash-synchronization
--disable-interpreter
--enable-sjlj-exceptions
--with-headers=/usr/local/mingw/w32api/include
--program-transform-name='s,^,,'

3) Copy the mingw runtime bin/lib/include into
/usr/local/gcc-3.1.1/i686-pc-mingw32

4) Copy the w32api libs into /usr/local/gcc-3.1.1/i686-pc-mingw32/lib
(include files is
copied automatically by configure into
/usr/local/gcc-3.1.1/i686-pc-mingw32/sys-include)

5) Using the previously compiled c/c++ gcc 3.1
- make
- make install


I succed all the step except the 5) launching "make", I get the errors.


So does someone know the errors and how to fix ?
Thanks a lot for your help.

Regards

Tabaqui.




_________________________________________________________________
Rejoignez MSN Hotmail, le plus important service de messagerie http://www.hotmail.com/fr


--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/


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