Dan Nicholson wrote:
>>I also ended up with multiple copies of the compilers (not symlinked) as in:
>>g++
>>i686-pc-linux-gnu-g++
>>(IIRC, there were 3 variants for g++ all the same size, a couple gcc, ..)
>
> That seems normal to me. On my current system I have
>
> $ ls -l /usr/bin/*{c,g}++
> -rwxr-xr-x 4 root root 81144 2005-11-04 10:54 /usr/bin/c++
> -rwxr-xr-x 4 root root 81144 2005-11-04 10:54 /usr/bin/g++
> -rwxr-xr-x 4 root root 81144 2005-11-04 10:54 /usr/bin/i686-pc-linux-gnu-c++
> -rwxr-xr-x 4 root root 81144 2005-11-04 10:54 /usr/bin/i686-pc-linux-gnu-g++
Note that those are all actually *the same* file, not multiple copies.
They all have the same inode number; they're all hardlinks to each other
(as evidenced by the -i option to ls):
$ ls -1 /usr/bin/*{g,c}++ -i
247693 /usr/bin/c++*
247693 /usr/bin/g++*
247693 /usr/bin/i686-pc-linux-gnu-c++*
247693 /usr/bin/i686-pc-linux-gnu-g++*
(This is gcc 3.4.3, not 4.0.whatever, because this is an old system. I
doubt that changed in 4.x, but it might be worth double-checking just in
case.)
(I believe gcc does this because symlinks are not supported everywhere,
but hardlinks are, as long as all the filenames are in one directory.)
signature.asc
Description: OpenPGP digital signature
-- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
