Linking error: cannot find crti.o

Joseph Rushton Wakeling joseph.wakeling at
Tue Oct 2 15:00:50 PDT 2012

Hello all,

I'm trying to build GDC from the gdc-4.7 branch and using the gcc-4.7.2 sources, 
on Ubuntu 12.10.

When setting up, I called configure as follows:

../gcc-4.7.2/configure --enable-languages=d --disable-bootstrap 
--with-bugurl="" --enable-checking=yes 
--enable-lto --enable-ld --enable-multilib --enable-shared

After going through most of the compile process, I wind up with the following error:

/usr/bin/ld: cannot find crti.o: No such file or directory
collect2: error: ld returned 1 exit status
make[2]: *** [] Error 1
make[2]: Leaving directory 
make[1]: *** [all-target-libgcc] Error 2
make[1]: Leaving directory `/home/joseph/code/D/gdc-4.7/objdir'
make: *** [all] Error 2

I'm a complete novice where anything GCC-related is concerned (apart from using 
it) so the error message isn't really meaningful to me.  Googling suggests to 
either install libc0.1-dev (not an Ubuntu package) or libc6-dev (already installed).

Can anyone advise?

Thanks & best wishes,

     -- Joe

More information about the D.gnu mailing list