building gcc trunk on ubuntu11.10

Marc Glisse
Mon Nov 14 18:01:00 GMT 2011

On Mon, 14 Nov 2011, Dirk Moermans wrote:

> I am trying to build the gcc svn-trunk, in order to play with the
> latest C++0x-features.
> Since upgrading from Ubuntu 11.04, I have trouble building gcc.
> The configure command below used to work:
> configure --prefix=/home/dirk/local --enable-languages=c,c++,lto
> With the new release I get an error-message:
> /usr/bin/ld: cannot find crti.o: No such file or directory
> This is caused by the new multiarch system-layout within Ubuntu/Debian.
> Can anyone send me the correct ./configure or environment variables to
> build the gcc-trunk on a stock Ubuntu 11.10?

export LIBRARY_PATH=/usr/lib/your_machines_triplet

or you can reuse the patches from the gcc-snapshot package (or even just 
use that package so you don't need to compile).

Marc Glisse

More information about the Gcc-help mailing list