compiling gcc-4.1.1 for windows on linux
Marco Trudel
mtrudel@gmx.ch
Tue Jun 6 09:45:00 GMT 2006
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
More information about the Java
mailing list