[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH for-2.9] configure: Don't claim 'unsupported hos
From: |
Stefan Weil |
Subject: |
Re: [Qemu-devel] [PATCH for-2.9] configure: Don't claim 'unsupported host OS' when better message available |
Date: |
Tue, 28 Mar 2017 17:28:34 +0200 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
Am 28.03.2017 um 15:18 schrieb Peter Maydell:
> The change in commit 898be3e0415c6d which made completely
> unrecognized OSes cause an error_exit "Unsupported host OS"
> has some unfortunate unintended effects:
> * if you run 'configure --help' on an unsupported host OS
> (eg if intending to use it as a build machine for a
> cross compile to a supported host) then the message
> is printed instead of --help
> * if the C compiler doesn't work or is missing (eg if
> you passed an incorrect --cross-prefix by mistake)
> the message is printed instead of the more useful
> 'compiler does not exist or does not work' message
>
> Fix this by postponing the error_exit in this situation
> until later, when we have already identified the more
> useful cases for this.
>
> The long term fix for this would be to move handling
> of --help much further up in the configure script,
> and make its output not dependent on checks that configure
> runs. However for 2.9 this would be too invasive.
That's true.
> Reported-by: Stefan Weil <address@hidden>
> Signed-off-by: Peter Maydell <address@hidden>
> ---
> configure | 14 +++++++++++++-
> 1 file changed, 13 insertions(+), 1 deletion(-)
Reviewed-by: Stefan Weil <address@hidden>
Tested-by: Stefan Weil <address@hidden>
Thanks.
Stefan