Re: [lfs-support] ln -sv ../usr/bin/cpp /lib

2012-03-22 Thread Simon Geard
On Wed, 2012-03-21 at 21:54 +0200, Alexander Kapshuk wrote: (6). While still in $LFS/sources/gcc-build, I ran ln -sv ../usr/bin/cpp /lib; And this is where I found it confusing, ../usr/bin/cpp == $LFS/sources/usr/bin/cpp; but /usr/bin/cpp isn't found in $LFS/sources. It's found is

Re: [lfs-support] ln -sv ../usr/bin/cpp /lib

2012-03-22 Thread Alexander Kapshuk
On Thu, Mar 22, 2012 at 8:51 AM, Simon Geard delga...@ihug.co.nz wrote: On Wed, 2012-03-21 at 21:54 +0200, Alexander Kapshuk wrote: (6). While still in $LFS/sources/gcc-build, I ran ln -sv ../usr/bin/cpp /lib; And this is where I found it confusing, ../usr/bin/cpp ==

Re: [lfs-support] ln -sv ../usr/bin/cpp /lib

2012-03-21 Thread Simon Geard
On Tue, 2012-03-20 at 16:50 +0200, Alexander Kapshuk wrote: So in other words, 'ln -sv ../usr/bin/cpp /lib' and 'ln -sv /usr/bin/cpp /lib' are equivalent? Not quite, and the difference can be seen when you look at the link *outside* the chroot environment (i.e where the filesystem is mounted to

Re: [lfs-support] ln -sv ../usr/bin/cpp /lib

2012-03-21 Thread Alexander Kapshuk
Here's what I did to build gcc: (1). Extracted the gcc archive within the $LFS/sources directory; (2). cd'd into gcc-4.6.2; (3). Ran the instructions from 6.17.1. Installation of GCC; (4). Created $LFS/sources/gcc-build and cd'd into it; (5). Configured and compiled gcc; (6). While still in

Re: [lfs-support] ln -sv ../usr/bin/cpp /lib

2012-03-21 Thread Ken Moffat
On Wed, Mar 21, 2012 at 09:54:18PM +0200, Alexander Kapshuk wrote: (6). While still in $LFS/sources/gcc-build, I ran ln -sv ../usr/bin/cpp /lib; And this is where I found it confusing, ../usr/bin/cpp == $LFS/sources/usr/bin/cpp; but /usr/bin/cpp isn't found in $LFS/sources. It's found is

Re: [lfs-support] ln -sv ../usr/bin/cpp /lib

2012-03-21 Thread Alexander Kapshuk
Got it. Thanks. It's relative to /lib, not $LFS/sources/gcc-build as I had thought initially. I'll have another look at ln(1). On 03/21/2012 10:25 PM, Ken Moffat wrote: On Wed, Mar 21, 2012 at 09:54:18PM +0200, Alexander Kapshuk wrote: (6). While still in $LFS/sources/gcc-build, I ran

Re: [lfs-support] ln -sv ../usr/bin/cpp /lib

2012-03-20 Thread Alexander Kapshuk
While working on '6.17.1. Installation of GCC', I created and cd'd into '/sources/gcc-build'. One of the instructions suggests creating this symlink, 'ln -sv ../usr/bin/cpp /lib'. I assumed that I was supposed to run the command line while still in '/sources/gcc-build'. If that is the case,

Re: [lfs-support] ln -sv ../usr/bin/cpp /lib

2012-03-20 Thread Rick Shelton
On Tue, Mar 20, 2012 at 7:41 AM, Alexander Kapshuk alexander.kaps...@gmail.com wrote: While working on '6.17.1. Installation of GCC', I created and cd'd into '/sources/gcc-build'. One of the instructions suggests creating this symlink, 'ln -sv ../usr/bin/cpp /lib'. I assumed that I was supposed

Re: [lfs-support] ln -sv ../usr/bin/cpp /lib

2012-03-20 Thread Alexander Kapshuk
On Tue, Mar 20, 2012 at 4:39 PM, Rick Shelton rick.shel...@gmail.comwrote: On Tue, Mar 20, 2012 at 7:41 AM, Alexander Kapshuk alexander.kaps...@gmail.com wrote: While working on '6.17.1. Installation of GCC', I created and cd'd into '/sources/gcc-build'. One of the instructions suggests

Re: [lfs-support] ln -sv ../usr/bin/cpp /lib

2012-03-20 Thread Bruce Dubbs
Alexander Kapshuk wrote: On Tue, Mar 20, 2012 at 4:39 PM, Rick Shelton rick.shel...@gmail.comwrote: On Tue, Mar 20, 2012 at 7:41 AM, Alexander Kapshuk alexander.kaps...@gmail.com wrote: While working on '6.17.1. Installation of GCC', I created and cd'd into '/sources/gcc-build'. One of the

Re: [lfs-support] ln -sv ../usr/bin/cpp /lib

2012-03-20 Thread Andrew Benton
On Tue, 20 Mar 2012 14:55:28 + Alexander Kapshuk alexander.kaps...@gmail.com wrote: So in other words, 'ln -sv ../usr/bin/cpp /lib' and 'ln -sv /usr/bin/cpp /lib' are equivalent? ln -sv ../usr/bin/cpp /lib is a relative symbolic link. ln -sv /usr/bin/cpp /lib is an absolute symbolic link.