Ken Moffat wrote:
After I re-entered chroot to do the actual stripping, I got:

/tools/bin/strip:/usr/lib/libm.a: File format not recognized
/tools/bin/find: paths must precede expression: (-name
Usage: /tools/bin/find [-H] [-L] [-P] [-Olevel] [-D
help|tree|search|stat|rates|opt|exec] [path...] [expression]

That returned non-zero, which broke my script (I knew there was a
reason I don't normally bother stripping, apart from often dropping
-g from my CFLAGS, but I figured I'd see if I could hack this change
into my own build process).  Solved the typo, but this one leaves me
cold - it all _looks_ sensible (I pasted from the book).

The first line is, of course, expected.  So are the 130ish similar
lines after that.  But I can't quite work out which of the
invocations of find is flagging that up.


The only line that has changed in the last few years is:

/tools/bin/find /lib /usr/lib -type f \(-name \*.so* -a ! -name \*dbg\) \
   -exec /tools/bin/strip --strip-unneeded {} ';'

Are you sure you escaped everything? I know you said you copy/pasted the line but the (-name entry above is suspicious.

I just ran a full jhalfs build earlier today and that line is in the script and it executed without any problem.

  -- Bruce



--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to