This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug testsuite/38526] New: WARNING: Could not compile gcc.dg/compat/struct-layout-1 generator
- From: "danglin at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Dec 2008 18:31:20 -0000
- Subject: [Bug testsuite/38526] New: WARNING: Could not compile gcc.dg/compat/struct-layout-1 generator
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Executing on build: gcc -g -O2 -o
/Users/dave/gnu/gcc/objdir/gcc/testsuite/gcc/g
cc.dg-struct-layout-1_generate.exe -DSKIP_DECIMAL_FLOAT
/Users/dave/gnu/gcc/gcc/
gcc/testsuite/gcc.dg/compat/struct-layout-1_generate.c
/Users/dave/gnu/gcc/gcc/g
cc/testsuite/gcc.dg/compat/generate-random.c
/Users/dave/gnu/gcc/gcc/gcc/testsui
te/gcc.dg/compat/generate-random_r.c (timeout = 300)
gcc: error trying to exec 'cc1': execvp: No such file or directory
gcc: error trying to exec 'cc1': execvp: No such file or directory
gcc: error trying to exec 'cc1': execvp: No such file or directory
WARNING: Could not compile gcc.dg/compat/struct-layout-1 generator
testcase
/Users/dave/gnu/gcc/gcc/gcc/testsuite/gcc.dg/compat/struct-layout-1.exp
completed in 0 seconds
This doesn't happen when I use the system's gcc compiler for initial bootstrap.
However, it doesn't support Ada, so I use my own gcc build for bootstrap.
export CC=gcc
export
PATH=/opt/gnu/gcc/gcc-4.3.2/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/
bin:/usr/X11/bin
When GCC_EXEC_PREFIX is not set in the environment, gcc finds the installed
cc1. However, when GCC_EXEC_PREFIX is set in the environment to the null
string, gcc doesn't find cc1.
We have this code in struct-layout-1.exp:
# Temporarily unset GCC_EXEC_PREFIX from environment, as that might
# confuse the $HOSTCC.
set orig_gcc_exec_prefix_saved 0
if [info exists env(GCC_EXEC_PREFIX)] {
set orig_gcc_exec_prefix "$env(GCC_EXEC_PREFIX)"
set orig_gcc_exec_prefix_saved 1
unsetenv GCC_EXEC_PREFIX
}
For some reason, the dejagnu "unsetenv" command doesn't actually unset
GCC_EXEC_PREFIX on darwin9.
--
Summary: WARNING: Could not compile gcc.dg/compat/struct-layout-1
generator
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: testsuite
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: danglin at gcc dot gnu dot org
GCC build triplet: i686-apple-darwin9
GCC host triplet: i686-apple-darwin9
GCC target triplet: i686-apple-darwin9
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38526