[PATCH] Fix struct-layout-1.exp
H.J. Lu
hjl.tools@gmail.com
Fri Jun 6 20:48:00 GMT 2008
Hi,
This is
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36443
I think it is a bug to set GCC_EXEC_PREFIX when testing just built
gcc.
On Fri, Jun 6, 2008 at 1:24 PM, Jakub Jelinek <jakub@redhat.com> wrote:
> Hi!
>
> Since upgrading my system gcc to 4.3, I'm seeing
> WARNING: Could not compile gcc.dg/compat/struct-layout-1 generator
> WARNING: Could not compile g++.dg/compat/struct-layout-1 generator
> with errors in the log starting with:
> In file included from /usr/src/gcc/gcc/testsuite/g++.dg/compat/struct-layout-1_generate.c:26:
> /usr/include/limits.h:125:26: error: no include path in which to search for limits.h
> In file included from /usr/src/gcc/gcc/testsuite/g++.dg/compat/struct-layout-1_generate.c:27:
> /usr/include/stdio.h:34:21: error: stddef.h: No such file or directory
> If I cut'n'paste the gcc command from the log into a terminal, it works just
> fine.
>
> Turns out the problem is that my host /usr/bin/gcc is configured
> with --prefix /usr, while my testing bootstraps are configured without
> --prefix (thus default to /usr/local, I don't install them, so I don't care
> to set that up). make check puts GCC_EXEC_PREFIX into the environment
> and GCC_EXEC_PREFIX in env confuses the host gcc enough that it isn't
> able to find its system headers.
>
> Fixed by temporarily undefining GCC_EXEC_PREFIX when running the host
> compiler. Ok for trunk?
>
> 2008-06-06 Jakub Jelinek <jakub@redhat.com>
>
> * gcc.dg/compat/struct-layout-1.exp: Temporarily unset
> GCC_EXEC_PREFIX from environment when running $HOSTCC.
> * g++.dg/compat/struct-layout-1.exp: Likewise.
>
You missed
objc.dg/gnu-encoding/gnu-encoding.exp
Thanks.
H.J.
More information about the Gcc-patches
mailing list