This is the mail archive of the java@gcc.gnu.org mailing list for the Java 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]

Re: crosscompiling gcc to run on windows an compile for linux


I solved this one: I had some ld 3.x and 4.x mixing problems. Now it works...

regards
Marco


Marco Trudel wrote:
Hello list

I'm creating a gcc that runs on windows and compiles for linux. I can successfully build it, if not using "with-sysroot". But if I set --with-sysroot=foobar/sys-root and --with-build-sysroot=foobar/sys-root, compilation always fails with:

checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile

I guess that I'm missing some includes or libs, but can't figure out which ones... I copy:
/usr/include to sys-root/usr/include
/lib to sys-root/lib
i686-pc-linux-gnu/4.1.1/include to sys-root/include


Unfortunately I haven't found anything useful on google. If someone got the same problem, there never was an answer.


Another thing that surprised me:
Firstly, I compile gcc so that it runs on linux and compiles for windows.
If I use this compiler to create a gcc that runs on windows and compiles for windows, it works.
If I use this compiler to create a gcc that runs on windows and compiles for linux, I additionally need a gcc that runs on linux and compiles for linux (i686-pc-linux-gnu-cc and i686-pc-linux-gnu-nm is needed).



Hm, should I better ask such questions to the gcc-help mailinglist?



regards Marco




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