"Building GCJ for Windows" Scripts Issues (was Re: compiling gcj 4.0.2 for windows on unbuntu)

Mohan Embar gnustuff@thisiscool.com
Sun Jul 23 03:20:00 GMT 2006


Hi Ranjit,
>> Andi> I just gave this a try and it got me past the first error. The compile then
>> Andi> still fails on libjava/prims.cc. It looks like /usr/include and windows header
>> Andi> files are clashing. See below.
>>>> I'm getting the exact same error on the 4.2 tree I checked out yesterday
>> with Ranjit's scripts. Why in the world would the cross compiler be looking in
>> /usr/include? And why didn't Ranjit come across this?
>>I haven't built GCJ/MinGW in about a week or so. Perhaps you're
>not following the sysroot thingy properly? You might also want to
>take a look at the updated scripts. See:
>> http://rmathew.com/articles/gcj/bldgcj.html
>>I'm sorry for not being concrete, but I haven't faced these issues
>with mainline for GCJ/Windows.

I downloaded your scripts today and they fail. You need to add
"--without-x --disable-java-awt" to cfgxgcc.sh and cfgwingcc.sh,
otherwise (and you can verify this by checking config.status and
Makefile in your libjava build directory if you still have one lying around)
X_CFLAGS gets set to -I/usr/include and this gets added to the compiler
flags list. I'm guessing that you have an older gcc installed on your build
machine and that the erroneous headers you're picking up don't conflict 
enough with the MinGW ones to stop the build in its tracks. Just a guess,
though.
BTW: Thanks for all the work you've done on the MinGW port
recently.
-- Mohan
http://www.thisiscool.com/
http://www.animalsong.org/


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /