Re: [lfs-dev] pass1 gcc 4.7.0 glibc 2.15 fails

2012-03-23 Thread Pierre Labastie
Le 23/03/2012 12:09, Thierry Nuttens a écrit : >Anyway install_root=/tools should have been install_root=$LFS in fact. Actually, this is the correct way to cross-compile a package: Use a cross-compiler (binutils-pass1+gcc-pass1) and install the package to a place where it can be transferred t

Re: [lfs-dev] pass1 gcc 4.7.0 glibc 2.15 fails

2012-03-23 Thread Thierry Nuttens
Tanks Andrew, I guess that will make it. Anyway install_root=/tools should have been install_root=$LFS in fact. for info, I had in the configure libc_cv_ctors_header=yes means I have now ../glibc-$version/configure --prefix=/tools \ --host=$LFS_TGT --build=$(../glibc-$version/scripts/co

Re: [lfs-dev] pass1 gcc 4.7.0 glibc 2.15 fails

2012-03-23 Thread Andrew Benton
On Fri, 23 Mar 2012 08:46:11 + wrote: > This was necessary otherwise make install was trying to creating the > directory /var/db (for nss) So after checking various Makefile and as a > probably temporary solution I specifiy > > make install_root=/tools install Another option is to: sed -

Re: [lfs-dev] pass1 gcc 4.7.0 glibc 2.15 fails

2012-03-23 Thread thierryn1
Pierre Labastie a écrit : > Why do you use : > > + make install_root=/tools install? > > With --prefix=/tools, all the files are installed in > /tools/tools/{lib,include} > > Of course the sanity check fails, because it looks for files in > /tools/{lib,include} > > Pierre This was nec

Re: [lfs-dev] pass1 gcc 4.7.0 glibc 2.15 fails

2012-03-22 Thread Jeremy Huntwork
On 3/22/12 6:01 PM, Pierre Labastie wrote: > Why do you use : > > + make install_root=/tools install? > > With --prefix=/tools, all the files are installed in > /tools/tools/{lib,include} > > Of course the sanity check fails, because it looks for files in > /tools/{lib,include} Yep, thanks, I th

Re: [lfs-dev] pass1 gcc 4.7.0 glibc 2.15 fails

2012-03-22 Thread Pierre Labastie
Le 22/03/2012 22:43, Thierry Nuttens a écrit : > Hello, > > I'm facing some trouble which I could partially solved but pass1 glibc 2.15 > is not compiling successfully. Any idea > > > GNU C (GCC) version 4.7.0 (x86_64-lfs-linux-gnu) > compiled by GNU C version 4.6.3, GMP version 5.0.4, MPFR

Re: [lfs-dev] pass1 gcc 4.7.0 glibc 2.15 fails

2012-03-22 Thread Jeremy Huntwork
On 3/22/12 5:43 PM, Thierry Nuttens wrote: > In file included from /mnt/lfs/tools/include/features.h:382:0, > from /mnt/lfs/tools/include/limits.h:27, > from > /mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/4.7.0/include-fixed/limits.h:169, >