[SATLUG] LFS devel book - Section "6.10. Re-adjusting
the Toolchain" problem
Bruce Dubbs
bruce.dubbs at gmail.com
Wed May 16 21:56:42 CDT 2007
Travis M. wrote:
> I have been reading the LFS devel book for a couple of days now, and
> I've never built a LFS system before. I decided to use the devel book
> because my laptop is not stable with the NVIDIA and the MadWiFi
> modules until I have at least Linux kernel version 2.6.20.
Welcome to the world of LFS. You will learn a lot.
> All commands at section 6.10 seem to work fine up to: grep -o
> '/usr/lib.*/crt[1in].* .*' dummy.log . This is just great,
> because I compiled so much stuff only to have this happen.
>
> I accidentally messed up at section "5.30. Stripping", by doing this,
> 'strip --strip-debug /tools/lib/*strip --strip-unneeded
> /tools/{,s}bin/*' , instead of:
>
> strip --strip-debug /tools/lib/*
> strip --strip-unneeded /tools/{,s}bin/*
> I re-executed those commands after I messed up.
> ...I think it could have messed up something.
It shouldn't be a problem. /tools/lib/*strip won't match anything.
Depending on the way the strip program works, you;e either strip the
unneeded symbols or all symbols out of /tools/{,s}bin/*. You knwo what
that expands to, right?
In any case, nothing is hurt as long as you don't strip all symbols out
of libraries (removing debug symbols for libs is OK) and it doesn't look
like you did.
> I was talking on #lfs-support on irc.linuxfromscratch.org, and I
> didn't get much of an answer. Anyway, I posted a bunch of things to a
> pastebin post, maybe the contents contained therein will help:
> http://pastebin.linuxfromscratch.org/?show=3523
>
> Here's the output of 'grep -o '/usr/lib.*/crt[1in].* .*' dummy.log':
>
> root:/sources# grep -o '/usr/lib.*/crt[1in].* .*' dummy.log
> /usr/lib/crt1.o /usr/lib/crti.o
> /tools/lib/gcc/i686-pc-linux-gnu/4.1.2/crtbegin.o
> -L/tools/lib/gcc/i686-pc-linux-gnu/4.1.2
> -L/tools/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/lib
> /tmp/cclF0orl.o --verbose -lgcc --as-needed -lgcc_s --no-as-needed -lc
> -lgcc --as-needed -lgcc_s --no-as-needed
> /tools/lib/gcc/i686-pc-linux-gnu/4.1.2/crtend.o /usr/lib/crtn.o
> /usr/lib/crt1.o succeeded
> /usr/lib/crti.o succeeded
> /usr/lib/crtn.o succeeded
> root:/sources#
>
> The output should have been:
>
> /usr/lib/crt1.o succeeded
> /usr/lib/crti.o succeeded
> /usr/lib/crtn.o succeeded
> ---------------
You're getting carried away here. The grep worked as designed. You got
the succeeded messages. The other output is just a side effect. It
doesn't say you will *only* get the succeeded messages. In fact you got
exatcly four lines. The first line happens to be very long and wraps.
Note that we are matching /usr/lib ... crt[1in] ... and the first line
matches too.
Keep going. You are doing fine.
-- Bruce
More information about the SATLUG
mailing list