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

* [Bug testsuite/38526] WARNING: Could not compile gcc.dg/compat/struct-layout-1 generator
  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 ` hjl dot tools at gmail dot com
  2008-12-14 22:26 ` dave at hiauly1 dot hia dot nrc dot ca
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: hjl dot tools at gmail dot com @ 2008-12-14 20:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from hjl dot tools at gmail dot com  2008-12-14 20:07 -------
This is really PR 36443.


-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |36443


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38526


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

* [Bug testsuite/38526] WARNING: Could not compile gcc.dg/compat/struct-layout-1 generator
  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
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2008-12-14 22:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from dave at hiauly1 dot hia dot nrc dot ca  2008-12-14 22:25 -------
Subject: Re:  WARNING: Could not compile gcc.dg/compat/struct-layout-1
generator

> This is really PR 36443.

Aside from darwin specific issues with the environment, the problem looks
the same.  Did anybody try Mark's suggestion (i.e., setting HOSTCC to
"unset GCC_EXEC_PREFIX && gcc")?

Dave


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38526


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

* [Bug testsuite/38526] WARNING: Could not compile gcc.dg/compat/struct-layout-1 generator
  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
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: hjl dot tools at gmail dot com @ 2008-12-15 15:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from hjl dot tools at gmail dot com  2008-12-15 15:51 -------
(In reply to comment #2)
> Subject: Re:  WARNING: Could not compile gcc.dg/compat/struct-layout-1
> generator
> 
> > This is really PR 36443.
> 
> Aside from darwin specific issues with the environment, the problem looks
> the same.  Did anybody try Mark's suggestion (i.e., setting HOSTCC to
> "unset GCC_EXEC_PREFIX && gcc")?
> 

Other C cpmpilers may be used for bootstrap.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38526


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

* [Bug testsuite/38526] WARNING: Could not compile gcc.dg/compat/struct-layout-1 generator
  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
                   ` (2 preceding siblings ...)
  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
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: janis at gcc dot gnu dot org @ 2009-02-27 23:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from janis at gcc dot gnu dot org  2009-02-27 23:40 -------
If this is still a problem, please try the patch at

  http://gcc.gnu.org/ml/gcc-patches/2009-01/msg01496.html

I'd rather not make changes like that so late in the release cycle but I'll do
it if it's needed and not just cosmetic.


-- 

janis at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |janis at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38526


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

* [Bug testsuite/38526] WARNING: Could not compile gcc.dg/compat/struct-layout-1 generator
  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
                   ` (3 preceding siblings ...)
  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
  6 siblings, 0 replies; 8+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2009-02-28  3:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from dave at hiauly1 dot hia dot nrc dot ca  2009-02-28 03:12 -------
Subject: Re:  WARNING: Could not compile gcc.dg/compat/struct-layout-1
generator

> If this is still a problem, please try the patch at
> 
>   http://gcc.gnu.org/ml/gcc-patches/2009-01/msg01496.html

Yes, this is still a problem on darwin.  The patch fixes the PR.

> I'd rather not make changes like that so late in the release cycle but I'll do
> it if it's needed and not just cosmetic.

I would say the issue is more than cosmetic, but testsuite issues aren't
crucial unless the test results are misleading.

Dave


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38526


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

* [Bug testsuite/38526] WARNING: Could not compile gcc.dg/compat/struct-layout-1 generator
  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
                   ` (4 preceding siblings ...)
  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
  6 siblings, 0 replies; 8+ messages in thread
From: janis at gcc dot gnu dot org @ 2009-03-17 17:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from janis at gcc dot gnu dot org  2009-03-17 17:36 -------
Subject: Bug 38526

Author: janis
Date: Tue Mar 17 17:35:55 2009
New Revision: 144908

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144908
Log:
gcc/
        PR testsuite/38526
        * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
        its use.
        (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
        (check-parallel-%): Ditto.
        (check-consistency): Ditto.
testsuite/
        PR testsuite/38526
        * lib/target-libpath.exp (set_ld_library_path_env_vars): Save
        existing GCC_EXEC_PREFIX, set to TEST_GCC_EXEC_PREFIX if that
        is defined.
        (restore_ld_library_path_env_vars): Restore GCC_EXEC_PREFIX to
        its original value, or unset if it was not defined.
        * gcc.dg/compat/struct-layout-1.exp: Use set/restore library
        path procs around use of HOSTCC.
        * g++.dg/compat/struct-layout-1.exp: Ditto.
        * objc.dg/gnu-encoding/gnu-encoding.exp: Ditto.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/Makefile.in
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/compat/struct-layout-1.exp
    trunk/gcc/testsuite/gcc.dg/compat/struct-layout-1.exp
    trunk/gcc/testsuite/lib/target-libpath.exp
    trunk/gcc/testsuite/objc.dg/gnu-encoding/gnu-encoding.exp


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38526


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

* [Bug testsuite/38526] WARNING: Could not compile gcc.dg/compat/struct-layout-1 generator
  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
                   ` (5 preceding siblings ...)
  2009-03-17 17:36 ` janis at gcc dot gnu dot org
@ 2010-07-24  7:46 ` iains at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: iains at gcc dot gnu dot org @ 2010-07-24  7:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from iains at gcc dot gnu dot org  2010-07-24 07:46 -------
 fixed


-- 

iains at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED


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).