This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [4.7][google] Use sysroot from --with-build-sysroot during 'make check' (issue4248059)


On Fri, Mar 4, 2011 at 13:48, Diego Novillo <dnovillo@google.com> wrote:
>
> When running tests in a toolchain configure --with-build-sysroot, we
> need to execute the testsuite pointing every compiler invocation to
> the build sysroot (which in our case is different than the sysroot
> that the compiler is configured with).
>
> This patch adds a new global variable TEST_SYSROOT that takes its
> value from SYSROOT_CFLAGS_FOR_TARGET.
>
> Mike, Rainer, is this approach OK? ÂI had started by setting
> TOOL_OPTIONS, but that confused libgloss.exp when it tried to compute
> multilibs (get_multilibs). ÂThe presence of the argument
> --sysroot=.... causes get_multilibs to call gcc with
> --print-multilibs, which returns the string '.'. ÂThis causes massive
> failures on all the tests that run with non-default multilibs.
>
> I'm applying this on google/integration. ÂOK for 4.7? (the patch for
> trunk would be slightly different, but the idea is the same).

I forgot to add.  Simon, this still shows up some failures in
google/integration, but these failures are the same we have in trunk.

For our builds, we have been XFAILing these failures, right?  Do you
want me to mark them XFAIL to avoid problems with the auto builds?


Diego.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]