This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: crosscompiling gcc to run on windows an compile for linux
- From: Marco Trudel <mtrudel at gmx dot ch>
- To: Marco Trudel <mtrudel at gmx dot ch>
- Cc: java at gcc dot gnu dot org
- Date: Sat, 17 Jun 2006 17:10:13 +0200
- Subject: Re: crosscompiling gcc to run on windows an compile for linux
- References: <4493050C.10203@gmx.ch>
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