public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/38526]  New: WARNING: Could not compile gcc.dg/compat/struct-layout-1 generator
@ 2008-12-14 18:32 danglin at gcc dot gnu dot org
  2008-12-14 20:09 ` [Bug testsuite/38526] " hjl dot tools at gmail dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: danglin at gcc dot gnu dot org @ 2008-12-14 18:32 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-07-24  7:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-14 18:32 [Bug testsuite/38526] New: WARNING: Could not compile gcc.dg/compat/struct-layout-1 generator danglin at gcc dot gnu dot org
2008-12-14 20:09 ` [Bug testsuite/38526] " hjl dot tools at gmail dot com
2008-12-14 22:26 ` dave at hiauly1 dot hia dot nrc dot ca
2008-12-15 15:52 ` hjl dot tools at gmail dot com
2009-02-27 23:41 ` janis at gcc dot gnu dot org
2009-02-28  3:12 ` dave at hiauly1 dot hia dot nrc dot ca
2009-03-17 17:36 ` janis at gcc dot gnu dot org
2010-07-24  7:46 ` iains at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).