ld testsuite tcl trouble: can't read "flags": no such variable
Andreas K. Huettel
dilfridge@gentoo.org
Fri Oct 20 20:52:00 GMT 2017
Hi,
I'm currently trying to "fix" the testsuite so it runs properly in spite of
our Gentoo patches (which I inherited). One thing I keep seeing is the
following tcl errors - any advice what could be causing that, or how to make
sense of them?
Changing tcl (8.5.17, 8.6.6, 8.6.7) or dejagnu (1.4.4, 1.6), version seems to
have no effect.
TIA,
Andreas
ERROR: tcl error sourcing /var/tmp/portage/sys-devel/binutils-2.29.1-r1/work/
binutils-2.29.1/ld/testsuite/ld-bootstrap/bootstrap.exp.
ERROR: can't read "flags": no such variable
while executing
"run_host_cmd_yesno "$ld" "$HOSTING_EMU --hash-style=sysv $flags -o $target
$objs $libs""
(procedure "default_ld_relocate" line 5)
invoked from within
"default_ld_relocate $ld $target $objects"
(procedure "ld_relocate" line 2)
invoked from within
"ld_relocate $ld tmpdir/ld-partial.o "$partial_flags $OFILES""
("foreach" body line 45)
invoked from within
"foreach flags $test_flags {
set gcc_B_opt $gcc_B_opt_save
set do_strip "no"
if {"$flags" == "strip"} {
set testname "bootstrap with $fla..."
(file "/var/tmp/portage/sys-devel/binutils-2.29.1-r1/work/binutils-2.29.1/
ld/testsuite/ld-bootstrap/bootstrap.exp" line 68)
invoked from within
"source /var/tmp/portage/sys-devel/binutils-2.29.1-r1/work/binutils-2.29.1/ld/
testsuite/ld-bootstrap/bootstrap.exp"
("uplevel" body line 1)
invoked from within
"uplevel #0 source /var/tmp/portage/sys-devel/binutils-2.29.1-r1/work/
binutils-2.29.1/ld/testsuite/ld-bootstrap/bootstrap.exp"
invoked from within
"catch "uplevel #0 source $test_file_name""
Running /var/tmp/portage/sys-devel/binutils-2.29.1-r1/work/binutils-2.29.1/ld/
testsuite/ld-cdtest/cdtest.exp ...
ERROR: tcl error sourcing /var/tmp/portage/sys-devel/binutils-2.29.1-r1/work/
binutils-2.29.1/ld/testsuite/ld-cdtest/cdtest.exp.
ERROR: can't read "flags": no such variable
while executing
"run_host_cmd_yesno "$ld" "$HOSTING_EMU --hash-style=sysv $flags -o $target
$objs $libs""
(procedure "default_ld_relocate" line 5)
invoked from within
"default_ld_relocate $ld $target $objects"
(procedure "ld_relocate" line 2)
invoked from within
"ld_relocate $ld tmpdir/cdtest.o {-Ur tmpdir/cdtest-foo.o tmpdir/cdtest-bar.o
tmpdir/cdtest-main.o}"
(file "/var/tmp/portage/sys-devel/binutils-2.29.1-r1/work/binutils-2.29.1/
ld/testsuite/ld-cdtest/cdtest.exp" line 95)
invoked from within
"source /var/tmp/portage/sys-devel/binutils-2.29.1-r1/work/binutils-2.29.1/ld/
testsuite/ld-cdtest/cdtest.exp"
("uplevel" body line 1)
invoked from within
"uplevel #0 source /var/tmp/portage/sys-devel/binutils-2.29.1-r1/work/
binutils-2.29.1/ld/testsuite/ld-cdtest/cdtest.exp"
invoked from within
"catch "uplevel #0 source $test_file_name""
[...]
Running /var/tmp/portage/sys-devel/binutils-2.29.1-r1/work/binutils-2.29.1/ld/
testsuite/ld-scripts/crossref.exp ...
ERROR: tcl error sourcing /var/tmp/portage/sys-devel/binutils-2.29.1-r1/work/
binutils-2.29.1/ld/testsuite/ld-scripts/crossref.exp.
ERROR: can't read "flags": no such variable
while executing
"run_host_cmd_yesno "$ld" "$HOSTING_EMU --hash-style=sysv $flags -o $target
$objs $libs""
(procedure "default_ld_relocate" line 5)
invoked from within
"default_ld_relocate $ld $target $objects"
(procedure "ld_relocate" line 2)
invoked from within
"ld_relocate $ld tmpdir/cross3-partial.o "tmpdir/cross1.o tmpdir/cross4.o""
(file "/var/tmp/portage/sys-devel/binutils-2.29.1-r1/work/binutils-2.29.1/
ld/testsuite/ld-scripts/crossref.exp" line 143)
invoked from within
"source /var/tmp/portage/sys-devel/binutils-2.29.1-r1/work/binutils-2.29.1/ld/
testsuite/ld-scripts/crossref.exp"
("uplevel" body line 1)
invoked from within
"uplevel #0 source /var/tmp/portage/sys-devel/binutils-2.29.1-r1/work/
binutils-2.29.1/ld/testsuite/ld-scripts/crossref.exp"
invoked from within
"catch "uplevel #0 source $test_file_name""
Running /var/tmp/portage/sys-devel/binutils-2.29.1-r1/work/binutils-2.29.1/ld/
testsuite/ld-scripts/data.exp ...
--
Andreas K. Hüttel
dilfridge@gentoo.org
Gentoo Linux developer (council, perl, libreoffice)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 981 bytes
Desc: This is a digitally signed message part.
URL: <https://sourceware.org/pipermail/binutils/attachments/20171020/0943d676/attachment.sig>
More information about the Binutils
mailing list