Compiling GCC 4.4.1 for a new "linux distro"

Andrew Haley aph@redhat.com
Sun Sep 13 13:07:00 GMT 2009


Pieter De Wit wrote:
> Hi Guys,
> 
> I am trying to create my own "little" linux distro. I am going to use
> this in a project that I am working on. I am however hitting a bit of a
> brick wall compiling GCC. My idea is to build a chroot and then from
> there build the rest of the apps inside that. I am using Ubuntu 9.04 as
> my build host. I have built binutils,gmp,mpfr and made them install
> their bin's into my chroot directory. I am using the lfs book as a
> guide. Here is my configure flags:
> 
> configure --bindir=/bin --sbindir=/sbin --libexecdir=/usr/libexec
> --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var
> --libdir=/lib --includedir=/usr/include --infodir=/usr/share/info
> --mandir=/usr/share/man --target=x86_64-pg-linux-gnu
> --prefix=/home/pieter/projectgate/root_fs/64bit --disable-nls
> --disable-shared --disable-multilib --disable-decimal-float
> --disable-threads --disable-libmudflap --disable-libssp
> --disable-libgomp --enable-languages=c
> --with-gmp-include=/home/pieter/projectgate/root_fs/64bit/usr/include
> --with-gmp-lib=/home/pieter/projectgate/root_fs/64bit/lib
> --with-mpfr-include=/home/pieter/projectgate/root_fs/64bit/usr/include
> --with-mpfr-lib=/home/pieter/projectgate/root_fs/64bit/lib
> --enable-bootstrap
> 
> Attached is the config.log of libgcc which fails the compile.
> 
> Any help would be nice and even pointers for doing what I would like to do.

The "exec: permission denied" error is a clue.

Andrew.



More information about the Gcc-help mailing list