This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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: building a gcc-3.3-prerelease cross-compiler


On Mon, May 12, 2003 at 01:54:53PM +0200, Rene Rebe wrote:
> 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?

You can't build target libraries until after you've built glibc.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


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