On Wed, Jan 29, 2014 at 03:10:42AM +0000, Ken Moffat wrote:
> On Wed, Jan 29, 2014 at 04:53:21AM +0200, Markku Pesonen wrote:
> > 
> > The binutils testsuite creates detailed logs in binutils/binutils.log,
> > ld/ld.log, and gas/testsuite/gas.log in the binutils-build directory.
> > I have found them to be very useful in figuring out unexpected test
> > failures.
> > 
>  Thanks!  I've just blown the first attempt away, but I'll have a
> look at these in the second attempt.
> 
 Verily, it was written:
cannot find -ldl

 So, the ld testsuite needs /usr/lib/libdl.a for the -static tests.

 But now I wish I'd gone to bed hours ago : I'm still getting the
same 5 failures-
ld-elf.exp
 static preinit array
 static init array
 static fini array
 static init array mixed : all still fail
ifunc.exp - could not link a static executable : still fails

 For the first four, ld.log tells me PASS !! :

Executing on host: sh -c {/building/binutils-build/ld/ld-new -m
elf_x86_64  -o tmpdir/preinit -dynamic-linker
/lib64/ld-linux-x86-64.so.2 /usr/lib/../lib64/crt1.o
/usr/lib/../lib64/crti.o
/tools/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/crtbegin.o
-L/building/binutils-2.23.2/ld/testsuite/ld-elf -static
tmpdir/preinit.o -lz -ldl  -L/usr/lib/../lib64 --start-group
/tools/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/libgcc.a
/tools/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/libgcc_eh.a -lc
--end-group /tools/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/crtend.o
/usr/lib/../lib64/crtn.o 2>&1}  /dev/null ld.tmp (timeout = 300)
spawn [open ...]^M
Running: tmpdir/preinit > tmpdir/preinit.out
diff tmpdir/preinit.out
/building/binutils-2.23.2/ld/testsuite/ld-elf/preinit.out
PASS: static preinit array

Executing on host: sh -c {/building/binutils-build/ld/ld-new -m
elf_x86_64  -o tmpdir/init -dynamic-linker
/lib64/ld-linux-x86-64.so.2 /usr/lib/../lib64/crt1.o
/usr/lib/../lib64/crti.o
/tools/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/crtbegin.o
-L/building/binutils-2.23.2/ld/testsuite/ld-elf -static
tmpdir/init.o -lz -ldl  -L/usr/lib/../lib64 --start-group
/tools/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/libgcc.a
/tools/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/libgcc_eh.a -lc
--end-group /tools/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/crtend.o
/usr/lib/../lib64/crtn.o 2>&1}  /dev/null ld.tmp (timeout = 300)
spawn [open ...]^M
Running: tmpdir/init > tmpdir/init.out
diff tmpdir/init.out
/building/binutils-2.23.2/ld/testsuite/ld-elf/init.out
PASS: static init array

Executing on host: sh -c {/building/binutils-build/ld/ld-new -m
elf_x86_64  -o tmpdir/fini -dynamic-linker
/lib64/ld-linux-x86-64.so.2 /usr/lib/../lib64/crt1.o
/usr/lib/../lib64/crti.o
/tools/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/crtbegin.o
-L/building/binutils-2.23.2/ld/testsuite/ld-elf -static
tmpdir/fini.o -lz -ldl  -L/usr/lib/../lib64 --start-group
/tools/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/libgcc.a
/tools/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/libgcc_eh.a -lc
--end-group /tools/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/crtend.o
/usr/lib/../lib64/crtn.o 2>&1}  /dev/null ld.tmp (timeout = 300)
spawn [open ...]^M
Running: tmpdir/fini > tmpdir/fini.out
diff tmpdir/fini.out
/building/binutils-2.23.2/ld/testsuite/ld-elf/fini.out
PASS: static fini array

Executing on host: sh -c {/building/binutils-build/ld/ld-new -m
elf_x86_64  -o tmpdir/init-mixed -dynamic-linker
/lib64/ld-linux-x86-64.so.2 /usr/lib/../lib64/crt1.o
/usr/lib/../lib64/crti.o
/tools/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/crtbegin.o
-L/building/binutils-2.23.2/ld/testsuite/ld-elf -static
tmpdir/init-mixed.o -lz -ldl  -L/usr/lib/../lib64 --start-group
/tools/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/libgcc.a
/tools/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/libgcc_eh.a -lc
--end-group /tools/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/crtend.o
/usr/lib/../lib64/crtn.o 2>&1}  /dev/null ld.tmp (timeout = 300)
spawn [open ...]^M
Running: tmpdir/init-mixed > tmpdir/init-mixed.out
diff tmpdir/init-mixed.out
/building/binutils-2.23.2/ld/testsuite/ld-elf/init-mixed.out
PASS: static init array mixed

 for ifunc.exp I'm not exactly sure what I'm looking for, but all
the tests seem to pass.

 I'm _sorely_ tempted to give up attempting to run testsuites on
lfs (yes, I still remember the erratic problems people had in LFS-4
which led to "pure lfs" in which toolchain testsuites were run, but
I'm getting hacked off by this heap of foetid dingos' kidneys).

 The logs (binutils-2.23.2.log.check and ld.log) are now at
http://higgs.linuxfromscratch.org/~ken/binutils-failures/
and changed to m644 so that people can read them.

 Undoubtedly the fault is still in what _I'm_ doing, but I'm
distinctly unimpressed by tests which report that they fail, but
show as pass in the detailed log.

 Now, if you will excuse me, I'll go and shout some language which
would get me banned from the lists if I posted it.

ĸen
-- 
das eine Mal als Tragödie, dieses Mal als Farce
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to