This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
building a gcc-3.3-prerelease cross-compiler
- From: Rene Rebe <rene dot rebe at gmx dot net>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 12 May 2003 13:54:53 +0200 (CEST)
- Subject: building a gcc-3.3-prerelease cross-compiler
Hi,
I just started to test how far the gcc-3.3-prerelease progresses
compiling our distribution build kit, but I get into trouble in the
first step creating a cross compiler. (The configuration and scripts
work flawlessly for gcc-2.95.3 and gxx-3.x).
After the configure it claims to be configured as:
Links are now set up to build a cross-compiler for i586-pc-linux-gnu
from i686-nocross-linux-gnu.
But running "make" it compiles the initial xgcc but bails out:
checking whether the C compiler ( /home/rock-linux/rock-trunk/src.gccx.1052738245
.1392.3356848690/gcc-3.3-20030508/objdir/gcc/xgcc -B/home/rock-linux/rock-trunk/s
rc.gccx.1052738245.1392.3356848690/gcc-3.3-20030508/objdir/gcc/ -B/home/rock-linu
x/rock-trunk/build/test-2.0.0-beta3-x86-pentium-mmx-generic-expert/tools.cross/us
r/i586-pc-linux-gnu/bin/ -B/home/rock-linux/rock-trunk/build/test-2.0.0-beta3-x86
-pentium-mmx-generic-expert/tools.cross/usr/i586-pc-linux-gnu/lib/ -isystem /home
/rock-linux/rock-trunk/build/test-2.0.0-beta3-x86-pentium-mmx-generic-expert/tool
s.cross/usr/i586-pc-linux-gnu/include -O2 -g ) works... no
configure: error: installation or configuration problem: C compiler cannot create
executables.
make: *** [configure-target-libiberty] Error 1
Where the error is:
/home/rock-linux/rock-trunk/build/test-2.0.0-beta3-x86-pentium-mmx-generic-expert/tools.cross/usr/i586-pc-linux-gnu/bin/ld: cannot open crt1.o: No such file or directory
collect2: ld returned 1 exit status
configure: failed program was:
#line 2407 "configure"
#include "confdefs.h"
main(){return(0);}
But the crt1.o is installed by the glibc which would be built after we
created the cross-compiler ...
Any ideas?
- René Rebe
/ ROCK Linux stable release maintainer
--
René Rebe - Europe/Germany/Berlin
rene@rocklinux.org rene.rebe@gmx.net
http://gsmp.tfh-berlin.de/gsmp http://www.rocklinux.org
http://www.rocklinux.org/people/rene http://gsmp.tfh-berlin.de/rene/