This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: binutils-2.11 ld testsuite problems + PATCH
"H . J . Lu" wrote:
>
> On Tue, May 08, 2001 at 04:23:09PM -0700, Matthew Schalit wrote:
> >
> > Did you recall that my configuration is being done
> > using the SCO native ld? So I don't have a --verbose
> > option to /usr/ccs/bin/ld.
> >
>
> I thought you had problem with ld from binutils. I am confused. Please
> do
I'm sorry for the confusion.
Let me try to clear it up and answer your questions.
Yes it's the ld-2.11 that fails, and it fails
some tests in gmake check-ld.
ld-2.11 is being built with SCO's ld and SCO's cc.
But I've also built ld-2.11 with gcc and ld-2.10.1.
Regardless of whether I build binutils-2.11 with SCO's
ld and SCO's cc or with ld-2.10.1 and gcc-2.95.3, I get
the same gmake check-ld fails because ld-new isn't finding
/usr/lib/libc.so.1 in both build methods.
Thus, I can figure:
These testsuite failures are compiler independent.
These testsuite failures are linker independent.
These testsuite failures depend, rather, on how ld-new
behaves, not what was used to build it.
I always intended to provide you with ld/ld.log,
but I just realized that I forgot and posted the output
of gmake check-ld instead.
My apologies. That was bad.
> 1. First find out which ld tests fail.
>
> 2. RERUN THOSE FAILED COMMANDS by hand, adding "-Wl,-verbose" to cc
> or "-verbose" to the GNU ld.
>
> I need the output FROM THE GNU LD.
Roger that. I ran the whole build with gcc and ld-2.10.1
this time around, and I added the -Wl,-verbose option
the whole time by doing
CC="gcc -Wl,-verbose" ./configure --enable-shared
So both your questions are answered now, in the
output of ld/ld.log, if I understand you correctly,
because the -Wl,-verbose got added into the soup.
It's a bit messy to paste in, so please allow me
to attach ld/ld.log.
Regards,
Matthew
Test Run By root on Tue May 8 16:14:49 2001
Native configuration is i586-sco-sysv5uw7.1.1
=== ld tests ===
Schedule of variations:
unix
Running target unix
Using /usr/local/share/dejagnu/baseboards/unix.exp as board description file for target.
Using /usr/local/share/dejagnu/config/unix.exp as generic interface file for target.
Using /home/matthew/Uber/CVS/binutils/src/ld/testsuite/config/default.exp as tool-and-target-specific interface file.
Running /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-bootstrap/bootstrap.exp ...
/home/matthew/Uber/CVS/binutils/src/ld/ld-new -m elf_i386 -o tmpdir/ld-partial.o -r ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldfile.o ldcref.o eelf_i386.o
/home/matthew/Uber/CVS/binutils/src/ld/ld-new -m elf_i386 -o tmpdir/ld1 /usr/ccs/lib/crt1.o tmpdir/ld-partial.o ../bfd/.libs/libbfd.a ../libiberty/libiberty.a ./../intl/libintl.a -lc /usr/ccs/lib/crtn.o
/home/matthew/Uber/CVS/binutils/src/ld/ld-new: cannot find -lc
FAIL: bootstrap
/home/matthew/Uber/CVS/binutils/src/ld/ld-new -m elf_i386 -o tmpdir/ld-partial.o -r ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldfile.o ldcref.o eelf_i386.o
/home/matthew/Uber/CVS/binutils/src/ld/ld-new -m elf_i386 -o tmpdir/ld1 /usr/ccs/lib/crt1.o tmpdir/ld-partial.o ../bfd/.libs/libbfd.a ../libiberty/libiberty.a ./../intl/libintl.a -lc /usr/ccs/lib/crtn.o
/home/matthew/Uber/CVS/binutils/src/ld/ld-new: cannot find -lc
FAIL: bootstrap with strip
/home/matthew/Uber/CVS/binutils/src/ld/ld-new -m elf_i386 -o tmpdir/ld-partial.o -r --static ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldfile.o ldcref.o eelf_i386.o
/home/matthew/Uber/CVS/binutils/src/ld/ld-new -m elf_i386 -o tmpdir/ld1 /usr/ccs/lib/crt1.o --static tmpdir/ld-partial.o ../bfd/.libs/libbfd.a ../libiberty/libiberty.a ./../intl/libintl.a -lc /usr/ccs/lib/crtn.o
/home/matthew/Uber/CVS/binutils/src/ld/ld-new: cannot find -lc
FAIL: bootstrap with --static
/home/matthew/Uber/CVS/binutils/src/ld/ld-new -m elf_i386 -o tmpdir/ld-partial.o -r --traditional-format ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldfile.o ldcref.o eelf_i386.o
/home/matthew/Uber/CVS/binutils/src/ld/ld-new -m elf_i386 -o tmpdir/ld1 /usr/ccs/lib/crt1.o --traditional-format tmpdir/ld-partial.o ../bfd/.libs/libbfd.a ../libiberty/libiberty.a ./../intl/libintl.a -lc /usr/ccs/lib/crtn.o
/home/matthew/Uber/CVS/binutils/src/ld/ld-new: cannot find -lc
FAIL: bootstrap with --traditional-format
/home/matthew/Uber/CVS/binutils/src/ld/ld-new -m elf_i386 -o tmpdir/ld-partial.o -r --no-keep-memory ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldfile.o ldcref.o eelf_i386.o
/home/matthew/Uber/CVS/binutils/src/ld/ld-new -m elf_i386 -o tmpdir/ld1 /usr/ccs/lib/crt1.o --no-keep-memory tmpdir/ld-partial.o ../bfd/.libs/libbfd.a ../libiberty/libiberty.a ./../intl/libintl.a -lc /usr/ccs/lib/crtn.o
/home/matthew/Uber/CVS/binutils/src/ld/ld-new: cannot find -lc
FAIL: bootstrap with --no-keep-memory
testcase /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-bootstrap/bootstrap.exp completed in 3 seconds
Running /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-cdtest/cdtest.exp ...
c++ -L/home/matthew/Uber/CVS/binutils/src/ld -g -O2 -fgnu-linker -B/home/matthew/Uber/CVS/binutils/src/ld/tmpdir/gas/ -I/home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-cdtest -g -c /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-cdtest/cdtest-foo.cc -o tmpdir/cdtest-foo.o
c++ -L/home/matthew/Uber/CVS/binutils/src/ld -g -O2 -fgnu-linker -B/home/matthew/Uber/CVS/binutils/src/ld/tmpdir/gas/ -I/home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-cdtest -g -c /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-cdtest/cdtest-bar.cc -o tmpdir/cdtest-bar.o
c++ -L/home/matthew/Uber/CVS/binutils/src/ld -g -O2 -fgnu-linker -B/home/matthew/Uber/CVS/binutils/src/ld/tmpdir/gas/ -I/home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-cdtest -g -c /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-cdtest/cdtest-main.cc -o tmpdir/cdtest-main.o
/home/matthew/Uber/CVS/binutils/src/ld/ld-new -m elf_i386 -o tmpdir/cdtest /usr/ccs/lib/crt1.o tmpdir/cdtest-foo.o tmpdir/cdtest-bar.o tmpdir/cdtest-main.o -lc /usr/ccs/lib/crtn.o
/home/matthew/Uber/CVS/binutils/src/ld/ld-new: cannot find -lc
FAIL: cdtest
/home/matthew/Uber/CVS/binutils/src/ld/ld-new -m elf_i386 -o tmpdir/cdtest.o -r -Ur tmpdir/cdtest-foo.o tmpdir/cdtest-bar.o tmpdir/cdtest-main.o
/home/matthew/Uber/CVS/binutils/src/ld/ld-new -m elf_i386 -o tmpdir/cdtest /usr/ccs/lib/crt1.o tmpdir/cdtest.o -lc /usr/ccs/lib/crtn.o
/home/matthew/Uber/CVS/binutils/src/ld/ld-new: cannot find -lc
FAIL: cdtest with -Ur
testcase /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-cdtest/cdtest.exp completed in 0 seconds
Running /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-checks/checks.exp ...
/home/matthew/Uber/CVS/binutils/src/ld/../gas/as-new -o tmpdir/asm.o /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-checks/asm.s
/home/matthew/Uber/CVS/binutils/src/ld/ld-new -o tmpdir/asm.x --check-sections tmpdir/asm.o
PASS: check sections 1
PASS: check sections 2
testcase /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-checks/checks.exp completed in 1 seconds
Running /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-elfvers/vers.exp ...
testcase /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-elfvers/vers.exp completed in 0 seconds
Running /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-elfvsb/elfvsb.exp ...
testcase /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-elfvsb/elfvsb.exp completed in 0 seconds
Running /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-empic/empic.exp ...
testcase /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-empic/empic.exp completed in 0 seconds
Running /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-scripts/crossref.exp ...
gcc -Wl,-verbose -L/home/matthew/Uber/CVS/binutils/src/ld -B/home/matthew/Uber/CVS/binutils/src/ld/tmpdir/gas/ -I/home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-scripts -g -c /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-scripts/cross1.c -o tmpdir/cross1.o
gcc -Wl,-verbose -L/home/matthew/Uber/CVS/binutils/src/ld -B/home/matthew/Uber/CVS/binutils/src/ld/tmpdir/gas/ -I/home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-scripts -g -c /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-scripts/cross2.c -o tmpdir/cross2.o
/home/matthew/Uber/CVS/binutils/src/ld/ld-new -o tmpdir/cross1 -T /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-scripts/cross1.t tmpdir/cross1.o tmpdir/cross2.o
tmpdir/cross1.o: In function `func':
/home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-scripts/cross1.c:5: prohibited cross reference from .text to `foo' in .data
PASS: NOCROSSREFS 1
gcc -Wl,-verbose -L/home/matthew/Uber/CVS/binutils/src/ld -B/home/matthew/Uber/CVS/binutils/src/ld/tmpdir/gas/ -I/home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-scripts -g -c /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-scripts/cross3.c -o tmpdir/cross3.o
/home/matthew/Uber/CVS/binutils/src/ld/ld-new -o tmpdir/cross2 -T /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-scripts/cross2.t tmpdir/cross3.o
tmpdir/cross3.o: In function `foo':
/home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-scripts/cross3.c:6: prohibited cross reference from .text to `i' in .data
PASS: NOCROSSREFS 2
testcase /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-scripts/crossref.exp completed in 0 seconds
Running /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-scripts/defined.exp ...
/home/matthew/Uber/CVS/binutils/src/ld/../gas/as-new -o tmpdir/def.o /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-scripts/defined.s
/home/matthew/Uber/CVS/binutils/src/ld/ld-new -o tmpdir/def -T /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-scripts/defined.t tmpdir/def.o
/home/matthew/Uber/CVS/binutils/src/ld/../binutils/nm-new tmpdir/def >tmpdir/nm.out
PASS: DEFINED (PRMS 5699)
testcase /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-scripts/defined.exp completed in 0 seconds
Running /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-scripts/phdrs.exp ...
testcase /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-scripts/phdrs.exp completed in 0 seconds
Running /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-scripts/script.exp ...
/home/matthew/Uber/CVS/binutils/src/ld/../gas/as-new -o tmpdir/script.o /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-scripts/script.s
/home/matthew/Uber/CVS/binutils/src/ld/ld-new -o tmpdir/script -T /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-scripts/script.t tmpdir/script.o
/home/matthew/Uber/CVS/binutils/src/ld/../binutils/nm-new tmpdir/script >tmpdir/nm.out
PASS: script
/home/matthew/Uber/CVS/binutils/src/ld/ld-new -o tmpdir/script -c /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-scripts/scriptm.t
/home/matthew/Uber/CVS/binutils/src/ld/../binutils/nm-new tmpdir/script >tmpdir/nm.out
PASS: MRI script
testcase /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-scripts/script.exp completed in 0 seconds
Running /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-scripts/sizeof.exp ...
/home/matthew/Uber/CVS/binutils/src/ld/../gas/as-new -o tmpdir/sizeof.o /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-scripts/sizeof.s
/home/matthew/Uber/CVS/binutils/src/ld/ld-new -o tmpdir/sizeof -T /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-scripts/sizeof.t tmpdir/sizeof.o
/home/matthew/Uber/CVS/binutils/src/ld/../binutils/nm-new tmpdir/sizeof >tmpdir/nm.out
PASS: SIZEOF
testcase /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-scripts/sizeof.exp completed in 0 seconds
Running /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-scripts/weak.exp ...
testcase /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-scripts/weak.exp completed in 0 seconds
Running /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-selective/selective.exp ...
gcc -Wl,-verbose -L/home/matthew/Uber/CVS/binutils/src/ld -w -O -ffunction-sections -fdata-sections -B/home/matthew/Uber/CVS/binutils/src/ld/tmpdir/gas/ -I/home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-selective -g -c /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-selective/1.c -o tmpdir/1.o
/home/matthew/Uber/CVS/binutils/src/ld/ld-new -o tmpdir/1.x --gc-sections -Bstatic tmpdir/1.o
/home/matthew/Uber/CVS/binutils/src/ld/../binutils/nm-new tmpdir/1.x >tmpdir/nm.out
selective1: dropme1 == 0x0804807c
FAIL: selective1
gcc -Wl,-verbose -L/home/matthew/Uber/CVS/binutils/src/ld -w -O -ffunction-sections -fdata-sections -B/home/matthew/Uber/CVS/binutils/src/ld/tmpdir/gas/ -I/home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-selective -g -c /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-selective/2.c -o tmpdir/2.o
/home/matthew/Uber/CVS/binutils/src/ld/ld-new -o tmpdir/2.x --gc-sections -Bstatic tmpdir/2.o
/home/matthew/Uber/CVS/binutils/src/ld/../binutils/nm-new tmpdir/2.x >tmpdir/nm.out
selective2: foo == 0x08048084
FAIL: selective2
gcc -Wl,-verbose -L/home/matthew/Uber/CVS/binutils/src/ld -w -O -ffunction-sections -fdata-sections -B/home/matthew/Uber/CVS/binutils/src/ld/tmpdir/gas/ -I/home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-selective -g -c /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-selective/2.c -o tmpdir/2.o
/home/matthew/Uber/CVS/binutils/src/ld/ld-new -o tmpdir/2.x --gc-sections -Bstatic -u foo tmpdir/2.o
/home/matthew/Uber/CVS/binutils/src/ld/../binutils/nm-new tmpdir/2.x >tmpdir/nm.out
PASS: selective3
gcc -Wl,-verbose -L/home/matthew/Uber/CVS/binutils/src/ld -w -O -ffunction-sections -fdata-sections -fvtable-gc -fno-exceptions -fno-rtti -B/home/matthew/Uber/CVS/binutils/src/ld/tmpdir/gas/ -I/home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-selective -g -c /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-selective/3.cc -o tmpdir/3.o
UX:as: ERROR: /var/tmp/ccKY21A9.s:111:unknown directive: .vtable_entry
UX:as: ERROR: /var/tmp/ccKY21A9.s:173:unknown directive: .vtable_inherit
UX:as: ERROR: /var/tmp/ccKY21A9.s:190:unknown directive: .vtable_inherit
ERROR: /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-selective/3.cc: compilation failed
UNRESOLVED: selective4
testcase /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-selective/selective.exp completed in 0 seconds
Running /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-sh/sh.exp ...
testcase /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-sh/sh.exp completed in 0 seconds
Running /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-shared/shared.exp ...
testcase /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-shared/shared.exp completed in 0 seconds
Running /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-srec/srec.exp ...
gcc -Wl,-verbose -L/home/matthew/Uber/CVS/binutils/src/ld -B/home/matthew/Uber/CVS/binutils/src/ld/tmpdir/gas/ -I/home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-srec -g -c /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-srec/sr1.c -o tmpdir/sr1.o
gcc -Wl,-verbose -L/home/matthew/Uber/CVS/binutils/src/ld -B/home/matthew/Uber/CVS/binutils/src/ld/tmpdir/gas/ -I/home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-srec -g -c /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-srec/sr2.c -o tmpdir/sr2.o
/home/matthew/Uber/CVS/binutils/src/ld/ld-new -o tmpdir/sr1 -Ttext 0x1000 tmpdir/sr1.o tmpdir/sr2.o
/home/matthew/Uber/CVS/binutils/src/ld/ld-new -o tmpdir/sr2.sr -Ttext 0x1000 --oformat srec tmpdir/sr1.o tmpdir/sr2.o
/home/matthew/Uber/CVS/binutils/src/ld/../binutils/objcopy -O srec tmpdir/sr1 tmpdir/sr1.sr
PASS: S-records
c++ -L/home/matthew/Uber/CVS/binutils/src/ld -g -O2 -fgnu-linker -B/home/matthew/Uber/CVS/binutils/src/ld/tmpdir/gas/ -I/home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-srec -g -c /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-srec/sr3.cc -o tmpdir/sr3.o
UX:as: WARNING: /var/tmp/ccy2I1AJ.s:161:name already bound as global: __throw
ERROR: /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-srec/sr3.cc: compilation failed
UNRESOLVED: S-records with constructors
testcase /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-srec/srec.exp completed in 1 seconds
Running /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-undefined/undefined.exp ...
gcc -Wl,-verbose -L/home/matthew/Uber/CVS/binutils/src/ld -g -B/home/matthew/Uber/CVS/binutils/src/ld/tmpdir/gas/ -I/home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-undefined -g -c /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-undefined/undefined.c -o tmpdir/undefined.o
/home/matthew/Uber/CVS/binutils/src/ld/ld-new -e start -o tmpdir/undefined tmpdir/undefined.o
/home/matthew/Uber/CVS/binutils/src/ld/ld-new: warning: cannot find entry symbol start; defaulting to 08048074
tmpdir/undefined.o: In function `function':
/home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-undefined/undefined.c:9: undefined reference to `this_function_is_not_defined'
PASS: undefined
PASS: undefined function
PASS: undefined line
testcase /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-undefined/undefined.exp completed in 0 seconds
Running /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-undefined/weak-undef.exp ...
testcase /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-undefined/weak-undef.exp completed in 0 seconds
Running /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-versados/versados.exp ...
testcase /home/matthew/Uber/CVS/binutils/src/ld/testsuite/ld-versados/versados.exp completed in 0 seconds
=== ld Summary ===
# of expected passes 13
# of unexpected failures 9
# of unresolved testcases 2
/home/matthew/Uber/CVS/binutils/src/ld/ld-new 2.11.90
runtest completed at Tue May 8 16:14:54 2001