Bug 12010 - g++.exp and libstdc++.exp fail to find testsuite_flags when cross-compiling
Summary: g++.exp and libstdc++.exp fail to find testsuite_flags when cross-compiling
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: testsuite (show other bugs)
Version: 3.3.1
: P2 enhancement
Target Milestone: 3.4.0
Assignee: Not yet assigned to anyone
URL: http://gcc.gnu.org/ml/gcc-patches/200...
Keywords: build, patch
Depends on:
Blocks:
 
Reported: 2003-08-21 13:17 UTC by dank
Modified: 2024-02-16 04:49 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2005-10-30 17:25:49


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dank 2003-08-21 13:17:15 UTC
If you try to run 'make check' on a cross-compiler, it fails with

/testsuite_flags: /testsuite_flags: No such file or directory
    while executing
"exec sh ${odir_v3}/testsuite_flags --build-includes"
    (procedure "g++_include_flags" line 21)
    invoked from within
"g++_include_flags [get_multilibs] "
    (procedure "g++_init" line 63)
    invoked from within
"${tool}_init $test_file_name"
    (procedure "runtest" line 19)
...
make[1]: [check-g++] Error 1 (ignored)

See the first hunk of
http://www.kegel.com/crosstool/current/gcc-3.3.1-patches/gcc-3.2.3-g++.exp.patch
or
http://www.kegel.com/crosstool/current/gcc-3.4-20030813-patches/gcc-3.4-20030813-g++.exp.patch
respectively for a fix.
Comment 2 Andrew Pinski 2003-08-21 13:35:16 UTC
Can you please post your patches to gcc-patches@gcc.gnu.org?
Comment 3 dank 2003-08-21 14:25:18 UTC
OK.  Cleaned-up patch posted as
http://gcc.gnu.org/ml/gcc-patches/2003-08/msg01259.html
Comment 4 Dara Hazeghi 2003-08-24 22:53:03 UTC
Confirmed.
Comment 5 Andrew Pinski 2004-01-10 22:43:54 UTC
Move to 3.5 for now.
Comment 6 Andrew Pinski 2024-02-16 04:49:43 UTC
Actually this was fixed with r0-46571-ga15791b0c9f8ab in GCC 3.4.0.

And then r0-50801-g7dfa28ba07d486 removed the non-v3 related changes too.

The patch was not needed when it was posted nor it was needed for a GCC 3.4.0.