lfs build-logs

Bruce Dubbs bruce.dubbs at gmail.com
Thu Jul 26 00:12:27 PDT 2007

Jeremy Huntwork wrote:

> Also, for a while now, the gcc dummy tests have not been totally
> accurate for one section. This command ends up producing a lot more
> output than the book says it will:
> grep -o '/usr/lib.*/crt[1in].* .*' dummy.log
> Should we refine the above command or the expectd output?

I'm trying to figure out how to modify the pattern.  We are getting:

/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/collect2 --eh-frame-hdr -m elf_i386
-dynamic-linker /lib/ld-linux.so.2
-L/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../.. /tmp/ccsdiSZO.o
--verbose -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed
-lgcc_s --no-as-needed /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/crtend.o

(One line, wrapped)

in addition to our desired output.

How about:

  grep -o -E '/usr/lib.*/crt[1in].* .{5,20}$' dummy.log

or just:

  grep -o '/usr/lib.*/crt[1in].*succeeded' dummy.log

even shorter, but more obscure:

  grep -o '/usr/lib.*/crt[1in].*d$' dummy.log

  -- Bruce

More information about the lfs-dev mailing list