Chapter 6 building against /tools still?

Dan Nicholson dbn.lists at
Fri Nov 14 12:12:42 PST 2008

On Fri, Nov 14, 2008 at 1:00 AM, Simon Geard <delgarde at> wrote:
> On Fri, 2008-11-14 at 20:44 +1300, Simon Geard wrote:
>> My concern isn't that there are debug symbols referencing /tools - my
>> concern is that they're almost certainly a sign that things are being
>> linked against the wrong binaries, causing things like bison to fail.
>> As I said, I'm assuming this problem is caused by something I've done
>> wrong, causing Chapter 6 to favor /tools libraries and executables when
>> it shouldn't. I just can't see quite why.
> Ok, I've been looking at the logs from a fresh build, got a few
> questions.
> 1. Should Chapter 6 binutils be using /tools/i686-pc-linux-gnu/bin/ld as
> it's linker?
> 2. Should Chapter 6 GMP (i.e the package after binutils) be
> using /tools/i686-pc-linux-gnu/bin/ld?
> 3. Should Chapter 6 GCC be using the same linker?
> It looks like all packages after GCC are using /usr/bin/ld, but I guess
> by then the damage is done? Seems to me that everything after the final
> binutils build ought to be using it...

I think /usr/bin/ld should be used as soon as it's available, but I
don't think it is. In DIY, Greg has been using -B/usr/bin/ for a long
time in from readjusting through gcc build.


More information about the lfs-support mailing list