This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, Makefile.in] refine selftest recipes to restore mingw bootstrap
- From: Jeff Law <law at redhat dot com>
- To: Olivier Hainque <hainque at adacore dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 26 Nov 2017 20:55:43 -0700
- Subject: Re: [PATCH, Makefile.in] refine selftest recipes to restore mingw bootstrap
- Authentication-results: sourceware.org; auth=none
- References: <1DCADB84-8A0D-4E60-A1FE-E26F94F5DEC6@adacore.com>
On 11/24/2017 11:18 AM, Olivier Hainque wrote:
> Hello,
>
> Bootstrap for mingw target configurations is failing today, with complaints
> about an inexistant /dev/null.
>
> The failing commands are issued by the selftest recipes in gcc/Makefile, using:
>
> SELFTEST_FLAGS = -nostdinc /dev/null -S -o /dev/null \
> -fself-test=$(srcdir)/testsuite/selftests
>
> The attached patch is a proposal to fix this by resorting to "nul" instead of
> "/dev/null" when the build machine name indicates a mingw setup.
>
> It fixes the gcc-7 bootstrap in our Windows setup (i686-pc-mingw32), and passes
> bootstrap and regression tests on x86_64-linux.
>
> OK to commit ?
>
> Thanks much in advance,
>
> With Kind Regards,
>
> Olivier
>
> 2017-11-24 Olivier Hainque <hainque@adacore.com>
>
> * Makefile.in (SELFTEST_FLAGS): Use nul instead of /dev/null
> on mingw build hosts.
Would it make more sense to set the output file to HOST_BIT_BUCKET when
-fselftest is active?
Jeff