Re: Book-5.8_Adjusting the ToolChain (v6.7)

2010-10-26 Thread lfs
On 10/26/10 02:52, Simon Geard wrote: > On Mon, 2010-10-25 at 22:14 -0700, lfs wrote: >> So the question is, Should I create the gcc-build directory and *then* >> untar gmp,mpfr, mpc, from that(gcc-build) directory > No. Remember the rule - before starting on a particular page, extract > it's tar

Re: Book-5.8_Adjusting the ToolChain (v6.7)

2010-10-26 Thread Brett Mahar
> > Editors, can we perhaps add some extra text to the GCC Pass 1 > instructions (and perhaps a short reminder to Pass 2 as well)? Right > now, all the book has to say is: > >    "GCC now requires the GMP, MPFR and MPC packages. As these >     packages may not be included in your host distribution,

Re: Book-5.8_Adjusting the ToolChain (v6.7)

2010-10-26 Thread Simon Geard
On Mon, 2010-10-25 at 22:14 -0700, lfs wrote: > So the question is, Should I create the gcc-build directory and *then* > untar gmp,mpfr, mpc, from that(gcc-build) directory No. Remember the rule - before starting on a particular page, extract it's tarball, and cd into the directory. So, when extr

Re: Book-5.8_Adjusting the ToolChain (v6.7)

2010-10-25 Thread lfs
On 10/22/10 16:04, Ken Moffat wrote: > When you follow the instructions for *any* page in chapters 5 and > 6, you should first untar any tarball specified (so, > gcc-4.5.1.tar.bz2 in this case) *and then cd into the directory it > creates*. If you remember that last part, the problem disappears.

Re: Book-5.8_Adjusting the ToolChain (v6.7)

2010-10-24 Thread Bruce Dubbs
lfs wrote: > On 10/23/10 04:04, Andrew Benton wrote: >> /tools is available in chroot, that's why we make the >> /tools => /mnt/lfs/tools symlink. The programs are installed >> into /tools, the linker links to it's libraries in /tools/lib. Then >> when you're in chroot everything is in the right

Re: Book-5.8_Adjusting the ToolChain (v6.7)

2010-10-24 Thread lfs
On 10/23/10 04:04, Andrew Benton wrote: > /tools is available in chroot, that's why we make the > /tools => /mnt/lfs/tools symlink. The programs are installed > into /tools, the linker links to it's libraries in /tools/lib. Then > when you're in chroot everything is in the right place using the

Re: Book-5.8_Adjusting the ToolChain (v6.7)

2010-10-23 Thread Andrew Benton
On Fri, 22 Oct 2010 15:21:58 -0700 Nolan <4030...@gmail.com> wrote: > My question is, where are these installed? My first guess would be in > /mnt/lfs/tools/{bin,lib}, would be be correct? > As this is for pass2, they cannot be in the /tools directory, as it > would not be available in the chroot

Re: Book-5.8_Adjusting the ToolChain (v6.7)

2010-10-22 Thread Simon Geard
On Fri, 2010-10-22 at 08:59 -0700, Nolan wrote: > Can I change the directory and file ownership to "lfs" with a chown, or > is the fact that the programs were compiled as > "root" have a detrimental effect? The problem isn't that you're running as root - it's that you found that you needed to run

Re: Book-5.8_Adjusting the ToolChain (v6.7)

2010-10-22 Thread Mike Hollis
On Fri, Oct 22, 2010 at 03:21:58PM -0700, Nolan wrote: > PING: Mike > I might(should) have make it clearer, IIRC="[I]f [I] [R]emember > [C]orrectly). :) TXS 4 the clarification.I googled IRC jargon with no hits, but found 26 IIRC's under acronyn finder.I like this one: International Interpretat

Re: Book-5.8_Adjusting the ToolChain (v6.7)

2010-10-22 Thread littlebat
On Fri, 22 Oct 2010 10:51:48 +0100 Andrew Benton wrote: > On Fri, 22 Oct 2010 01:22:34 -0700 > Nolan <4030...@gmail.com> wrote: > > This is now the error after I changed to user 'lfs'. > > > > AS: lfs > > > > l...@retired:~$ whoami > > lfs > > l...@retired:~$ cd /mnt/lfs/sources > > l...@retir

Re: Book-5.8_Adjusting the ToolChain (v6.7)

2010-10-22 Thread Bruce Dubbs
Nolan wrote: > I am now at unpacking, configuring && make && make installing the three > files > gmp, mpfr, and mpc. In Chapter 5, follow the instructions. You *always* unpack the package specified in the title, cd, and then follow the instructions. They are not built separately. > My ques

Re: Book-5.8_Adjusting the ToolChain (v6.7)

2010-10-22 Thread Ken Moffat
On Fri, Oct 22, 2010 at 03:21:58PM -0700, Nolan wrote: > > I am now to 5.10.1 and have applied the gcc-startfiles patch, and it was > successful. > I am now at unpacking, configuring && make && make installing the three > files > gmp, mpfr, and mpc. > My question is, where are these installed? M

Re: Book-5.8_Adjusting the ToolChain (v6.7)

2010-10-22 Thread Nolan
On 10/22/2010 09:24 AM, Andrew Benton wrote: On Fri, 22 Oct 2010 08:59:55 -0700 Nolan<4030...@gmail.com> wrote: IIRC ubuntu will not allow me to create anything in the native environment without a 'sudo'. Sure, so use sudo to create the user lfs, format and mount the partition, cre

Re: Book-5.8_Adjusting the ToolChain (v6.7)

2010-10-22 Thread Mike Hollis
On Fri, Oct 22, 2010 at 11:25:11AM -0500, Bruce Dubbs wrote: > Nolan wrote: > > I am sure I followed the book. Will recheck my steps, and if need be > > will start over with a reformat of my LFS parition. > > IIRC ubuntu will not allow me to create anything in the native > > environment without a

Re: Book-5.8_Adjusting the ToolChain (v6.7)

2010-10-22 Thread Bruce Dubbs
Nolan wrote: > On 10/22/2010 02:51 AM, Andrew Benton wrote: >> No, never. If you followed the book /tools would be owned (and hence >> writable) by the user lfs. I would suggest that you start again. >> >> Andy >> > I am sure I followed the book. Will recheck my steps, and if need be > will st

Re: Book-5.8_Adjusting the ToolChain (v6.7)

2010-10-22 Thread Andrew Benton
On Fri, 22 Oct 2010 08:59:55 -0700 Nolan <4030...@gmail.com> wrote: > IIRC ubuntu will not allow me to create anything in the native > environment without a 'sudo'. > Sure, so use sudo to create the user lfs, format and mount the partition, create the folders /mnt/lfs/sources and /mnt/lfs/tools,

Re: Book-5.8_Adjusting the ToolChain (v6.7)

2010-10-22 Thread Nolan
On 10/22/2010 02:51 AM, Andrew Benton wrote: > > No, never. If you followed the book /tools would be owned (and hence > writable) by the user lfs. I would suggest that you start again. > > Andy > I am sure I followed the book. Will recheck my steps, and if need be will start over with a reform

Re: Book-5.8_Adjusting the ToolChain (v6.7)

2010-10-22 Thread Andrew Benton
On Fri, 22 Oct 2010 01:22:34 -0700 Nolan <4030...@gmail.com> wrote: > This is now the error after I changed to user 'lfs'. > > AS: lfs > > l...@retired:~$ whoami > lfs > l...@retired:~$ cd /mnt/lfs/sources > l...@retired:/mnt/lfs/sources$ SPECS=`dirname $($LFS_TGT-gcc > -print-libgcc-file-name)

Re: Book-5.8_Adjusting the ToolChain (v6.7)

2010-10-22 Thread littlebat
On Fri, 22 Oct 2010 01:22:34 -0700 Nolan <4030...@gmail.com> wrote: > On 10/22/2010 12:54 AM, littlebat wrote: > > On Fri, 22 Oct 2010 00:35:18 -0700 > > Nolan<4030...@gmail.com> wrote: > > > > > >> I have tried everything I could think of to get this command to > >> work... > >> > > It

Re: Book-5.8_Adjusting the ToolChain (v6.7)

2010-10-22 Thread littlebat
On Fri, 22 Oct 2010 00:35:18 -0700 Nolan <4030...@gmail.com> wrote: > > I have tried everything I could think of to get this command to > work... > > Code: > SPECS=`dirname $($LFS_TGT-gcc -print-libgcc-file-name)`/specs > $LFS_TGT-gcc -dumpspecs | sed \ > >-e 's@/lib\(64\)\?/ld@/tools&@g' \

Re: Book-5.8_Adjusting the ToolChain (v6.7)

2010-10-22 Thread Nolan
On 10/22/2010 12:54 AM, littlebat wrote: On Fri, 22 Oct 2010 00:35:18 -0700 Nolan<4030...@gmail.com> wrote: I have tried everything I could think of to get this command to work... It seems $LFS_TGT is missing in environment. -- littlebat Thanks littlebat When I read about the

Re: Book-5.8_Adjusting the ToolChain (v6.7)

2010-10-22 Thread Nolan
On 10/22/2010 12:54 AM, littlebat wrote: On Fri, 22 Oct 2010 00:35:18 -0700 Nolan<4030...@gmail.com> wrote: I have tried everything I could think of to get this command to work... It seems $LFS_TGT is missing in environment. -- littlebat Here is the contents of .bashrc set +h

Re: Book-5.8_Adjusting the ToolChain (v6.7)

2010-10-22 Thread littlebat
On Fri, 22 Oct 2010 00:35:18 -0700 Nolan <4030...@gmail.com> wrote: > > I have tried everything I could think of to get this command to > work... It seems $LFS_TGT is missing in environment. -- littlebat -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscrat

Book-5.8_Adjusting the ToolChain (v6.7)

2010-10-22 Thread Nolan
I have tried everything I could think of to get this command to work... Code: SPECS=`dirname $($LFS_TGT-gcc -print-libgcc-file-name)`/specs $LFS_TGT-gcc -dumpspecs | sed \ -e 's@/lib\(64\)\?/ld@/tools&@g' \ -e "/^\*cpp:$/{n;s,$, -isystem /tools/include,}"> $SPECS echo "New specs file is: $