This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

ld testsuite tcl trouble: can't read "flags": no such variable


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)

Attachment: signature.asc
Description: This is a digitally signed message part.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]