This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Bugs in cross-compilation
It seems like the is a problem with cross-compilation in
the latest snapshot.
First, I configured with languages=c and run make all-gcc
on a new machine. I then installed with make install-gcc.
The next step was to use this compiler to compile newlib.
The third step then was to build libstdc++-v3 ( a new
configure with languages="c++") but this failed in libsupc++
with an error (no C++ compiler). I then reconfigured with
languages="c,c++" and rerun the build. Same error.
I removed all files and packed-up the entire gcc-4.2-20060114
archive and configured with languages="c,c++".
Strangely, this time libstdc++-v3 built without problems!
I should mention that it is necesary to follow the first
procedure on a clean machine, since crt0.o is not
available before newlib is built, and linkng will fail
in libstdc++-v3 without this file.
There is also another problem I had to fix. libgcc.a
is not installed at the correct location. The linker
looks at files at /usr/local/rdos/lib, but libgcc.a is
installed in /usr/local/lib/gcc/rdos/gcc/4.2.0 (or
something like that.
Leif Ekblad
www.rdos.net/rdos