Skip to content

[dejagnu] When the compilation result is normal, default_{target_compile,target_assemble,link} may return unexpected ANSI escape sequences. #5897

@Fourish

Description

@Fourish

Description / Steps to reproduce the issue

When running the testsuite of gcc libstdc++ in windows, dejagnu reports an error

cd /PATH_TO_PACKAGE/src/build-UCRT
runtest --tool libstdc++ --srcdir=/PATH-TO-PACKAGE/src/gcc-15.2.0/libstdc++-v3/testsuite

Expected behavior

Running /PATH-TO-PACKAGE/src/gcc-15.2.0/libstdc++-v3/testsuite/libstdc++-abi/abi.exp ...
...
Running /PATH-TO-PACKAGE/src/gcc-15.2.0/libstdc++-v3/testsuite/libstdc++-dg/conformance.exp ...
...
Running /PATH-TO-PACKAGE/src/gcc-15.2.0/libstdc++-v3/testsuite/libstdc++-xmethods/xmethods.exp.
...

Actual behavior

Running /PATH-TO-PACKAGE/src/gcc-15.2.0/libstdc++-v3/testsuite/libstdc++-abi/abi.exp ...
ERROR: tcl error sourcing /PATH-TO-PACKAGE/src/gcc-15.2.0/libstdc++-v3/testsuite/libstdc++-abi/abi.exp.
ERROR: tcl error code NONE
ERROR: could not compile testsuite_abi.cc 
while executing
"error "could not compile $f"" 
(procedure "v3-build_support" line 63) 
invoked from within
"v3-build_support" 
(file "/PATH-TO-PACKAGE/src/gcc-15.2.0/libstdc++-v3/testsuite/libstdc++-abi/abi.exp" line 34) 
invoked from within
"source /PATH-TO-PACKAGE/src/gcc-15.2.0/libstdc++-v3/testsuite/libstdc++-abi/abi.exp" 
("uplevel" body line 1) 
invoked from within
"uplevel #0 source /PATH-TO-PACKAGE/src/gcc-15.2.0/libstdc++-v3/testsuite/libstdc++-abi/abi.exp" 
invoked from within
"catch "uplevel #0 source $test_file_name" msg"
Running /PATH-TO-PACKAGE/src/gcc-15.2.0/libstdc++-v3/testsuite/libstdc++-dg/conformance.exp ...
ERROR: tcl error sourcing /PATH-TO-PACKAGE/src/gcc-15.2.0/libstdc++-v3/testsuite/libstdc++-dg/conformance.exp.
ERROR: tcl error code NONE
ERROR: could not compile testsuite_abi.cc
    while executing
"error "could not compile $f""
    (procedure "v3-build_support" line 63)
    invoked from within
"v3-build_support"
    (file "/PATH-TO-PACKAGE/src/gcc-15.2.0/libstdc++-v3/testsuite/libstdc++-dg/conformance.exp" line 26)
    invoked from within
"source /PATH-TO-PACKAGE/src/gcc-15.2.0/libstdc++-v3/testsuite/libstdc++-dg/conformance.exp"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 source /PATH-TO-PACKAGE/src/gcc-15.2.0/libstdc++-v3/testsuite/libstdc++-dg/conformance.exp"
    invoked from within
"catch "uplevel #0 source $test_file_name" msg"
Running /PATH-TO-PACKAGE/src/gcc-15.2.0/libstdc++-v3/testsuite/libstdc++-prettyprinters/prettyprinters.exp ...
ERROR: tcl error sourcing /PATH-TO-PACKAGE/src/gcc-15.2.0/libstdc++-v3/testsuite/libstdc++-xmethods/xmethods.exp.
ERROR: tcl error code NONE
ERROR: could not compile testsuite_abi.cc
    while executing
"error "could not compile $f""
    (procedure "v3-build_support" line 63)
    invoked from within
"v3-build_support"
    (file "/PATH-TO-PACKAGE/src/gcc-15.2.0/libstdc++-v3/testsuite/libstdc++-xmethods/xmethods.exp" line 26)
    invoked from within
"source /PATH-TO-PACKAGE/src/gcc-15.2.0/libstdc++-v3/testsuite/libstdc++-xmethods/xmethods.exp"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 source /PATH-TO-PACKAGE/src/gcc-15.2.0/libstdc++-v3/testsuite/libstdc++-xmethods/xmethods.exp"
    invoked from within
"catch "uplevel #0 source $test_file_name" msg"

Verification

Windows Version

MINGW64_NT-10.0-26200

Are you willing to submit a PR?

yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions