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
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../crt1.o
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../crti.o
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/crtbegin.o
-L/usr/lib/gcc/i686-pc-linux-gnu/4.1.2
-L/usr/lib/gcc/i686-pc-linux-gnu/4.1.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
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../crtn.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
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page