This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: compiling gcc-4.1.1 for windows on linux
- From: Marco Trudel <mtrudel at gmx dot ch>
- To: Ranjit Mathew <rmathew at gmail dot com>
- Cc: Marco Trudel <trudemar at zhwin dot ch>, java at gcc dot gnu dot org
- Date: Tue, 06 Jun 2006 11:44:52 +0200
- Subject: Re: compiling gcc-4.1.1 for windows on linux
- References: <44843F8A.3090201@zhwin.ch> <4484F23E.6000805@gmail.com>
Hey Ranjit
Thank you very much for your answer. I was finally able to cross-compile
gcc-4.1.1 (though some kludges were needed) and it seems to work. But
see the below:
>> Following this tutorial http://rmathew.com/articles/gcj/bldgcj.html,
>> I'm trying to compile gcj on linux for windows.
>
> Since that article and the associated scripts were written
> a while ago, they're not up-to-date w.r.t. GCC 4.1 and the
> current mainline. :-( I'm trying to rectify matters right
> now, but I'm still struggling with the magic incantation
> needed to get it all working.
Actually it works quite good. Thank you for it...
>> Compiling a java programm with a System.out.println() works. But it
>> doesn't do anything when starting it on windows (the console just
>> keeps empty). Any ideas?
>
> Not from me, sorry.
Actually, it doesn't mather.
With the final compiler that runs on windows, it will work!
>> - configure: cannot find javac, try --with-gcj, --with-jikes,
>
> Add "--with-gcj=$TARGET-gcj" to the configure command at the
> end of the "cfgwingcc.sh" script, clean up your build folder
> and try again. As I said before, I will update my scripts/article
> once I can get stuff working properly again.
That did it! With that it runs through and gcj on windows seems to work.
>> Any help would really be appreciated... I'm now trying to get the
>> gcc-4.1.1 compiled for over a week and begin to be a little
>> desperated...
>
> My apologies for letting that page and the scripts rot for
> so long, but please be a little patient as I try to get things
> working again.
Oh, sorry for my bad expression, you must have got it wrong.
I begun to be pissed of of the whole compile the compiler thing, your
tutorial was the only bright spot in the dark!
I tried nearly a week with mingw on windows, your approach needed about
two days to finally work...
I will post a step by step description of what I did around end of the
week. Maybe you can use it in your tutorial...
But overall, I think the only new thing is the "--with-gcj=$TARGET-gcj"
(besides two or three workarounds for some compiling problems).
regards
Marco