On 2015-01-30 03:38, Walter Webb wrote:
Armin K. wrote:
On 01/29/2015 05:24 PM, Bruce Dubbs wrote:
Robert Duffy wrote:
Hello!
I've build a fresh stable LFS 7.6 x86 and installed openssl and openssh
from current BLFS.
After that I stripped chrooted like described in
http://www.linuxfromscratch.org/lfs/view/stable/chapter06/strippingagain.html
but with "--strip-unneeded" instead of "--strip-debug" ( as mentioned
under
http://www.linuxfromscratch.org/blfs/view/svn/introduction/unpacking.html
).
After that my GRUB2 (and probably something else too) was destroyed.
"grub-install /dev/sda1" doesn't work after that. I got "error: disk
'hd0,msdos1' not found."
When I strip just with "--strip-debug" everything is fine.
Did I used the "--strip-unneeded" option in a wrong way?
--strip-unneeded should not be run on libraries.
-- Bruce
I have been using --strip-unneeded on shared libraries for a long time
now and no problems are present.
Maybe the issue is a bit different with static libs, but then again, I
used it on llvm static libs and
didn't notice a single problem there either. Also, --strip-unneeded is
the only way to strip kernel
modules properly. I can confirm though that the grub package is
affected by that and the modules get
destroyed.
Maybe what "--strip-unneeded" does has changed since it was new.
I used it once on libs, My system still worked but had problems.
It took me a rather long time to associate my problems with strip.
The only thing I remember doing about it was using ranlib on libfl.a.
By then, I probably had the next version of Slackware.
Thank you! I think there should be a hint for this issue in "Notes on
Building Software" section "Stripping One More Time".
Sincerely,
Robert Duffy
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page