[{"id":1798655,"web_url":"http://patchwork.ozlabs.org/comment/1798655/","msgid":"<CAFEAcA-L4MWw_ES21svL27O6X5dhpjjx6kdp9BW3w4Qei74kjg@mail.gmail.com>","list_archive_url":null,"date":"2017-11-03T14:43:07","subject":"Re: [Qemu-devel] [PATCH v5] configure: check $CC available before\n\tverifying host CPU","submitter":{"id":5111,"url":"http://patchwork.ozlabs.org/api/people/5111/","name":"Peter Maydell","email":"peter.maydell@linaro.org"},"content":"On 2 November 2017 at 09:09, Daniel Henrique Barboza\n<danielhb@linux.vnet.ibm.com> wrote:\n> When executing 'configure' in a fresh QEMU clone, in a fresh\n> OS install running in a ppc64le host, this is the error\n> shown:\n>\n> -----\n>\n> ../configure --enable-trace-backend=simple --enable-debug\n>     --target-list=ppc64-softmmu\n>\n> ERROR: Unsupported CPU = ppc64le, try --enable-tcg-interpreter\n>\n> -----\n>\n> This isn't true, ppc64le host CPU is supported. This happens because,\n> in a fresh install, we don't have a C compiler to autodetect\n> the $cpu variable to \"ppc64\".\n>\n> This patch moves the CC available check up a bit, just before verifying\n> the host CPU. This ensures that we bail out with a $CC not available\n> error instead of unsupported CPU (the host CPU detection without\n> the compiler wouldn't work properly anyway). It also allows --help to\n> keep working without a C compiler. With this patch, in the same ppc64le\n> host without gcc:\n>\n> $ ../configure --enable-trace-backend=simple --enable-debug\n>     --target-list=ppc64-softmmu\n>\n> ERROR: \"cc\" either does not exist or does not work\n>\n> $ ../configure --help\n>\n> Usage: configure [options]\n> Options: [defaults in brackets after descriptions]\n>\n> Standard options:\n>   --help                   print this message\n>   --prefix=PREFIX          install in PREFIX [/usr/local]\n>   --interp-prefix=PREFIX   where to find shared libraries, etc.\n> (...)\n>\n> Signed-off-by: Daniel Henrique Barboza <danielhb@linux.vnet.ibm.com>\n> ---\n>  configure | 25 ++++++++++++++-----------\n>  1 file changed, 14 insertions(+), 11 deletions(-)\n\nReviewed-by: Peter Maydell <peter.maydell@linaro.org>\n\nccing qemu-trivial since that seems like a plausible tree for this.\n\nthanks\n-- PMM","headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=linaro.org header.i=@linaro.org\n\theader.b=\"UU4mV11n\"; dkim-atps=neutral"],"Received":["from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3yT4TQ06K4z9s8J\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat,  4 Nov 2017 01:43:54 +1100 (AEDT)","from localhost ([::1]:37026 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1eAdCK-0007rw-5q\n\tfor incoming@patchwork.ozlabs.org; Fri, 03 Nov 2017 10:43:52 -0400","from eggs.gnu.org ([2001:4830:134:3::10]:54111)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <peter.maydell@linaro.org>) id 1eAdBy-0007rW-7S\n\tfor qemu-devel@nongnu.org; Fri, 03 Nov 2017 10:43:31 -0400","from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <peter.maydell@linaro.org>) id 1eAdBx-0000KU-A6\n\tfor qemu-devel@nongnu.org; Fri, 03 Nov 2017 10:43:30 -0400","from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]:44895)\n\tby eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)\n\t(Exim 4.71) (envelope-from <peter.maydell@linaro.org>)\n\tid 1eAdBx-0000Ju-0k\n\tfor qemu-devel@nongnu.org; Fri, 03 Nov 2017 10:43:29 -0400","by mail-wm0-x241.google.com with SMTP id n74so3124523wmi.1\n\tfor <qemu-devel@nongnu.org>; Fri, 03 Nov 2017 07:43:28 -0700 (PDT)","by 10.223.161.5 with HTTP; Fri, 3 Nov 2017 07:43:07 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google;\n\th=mime-version:in-reply-to:references:from:date:message-id:subject:to\n\t:cc; bh=ZrXGVQENqh6d9KEBxvs8iWG5cUtg62pDYQ6O/NiouiY=;\n\tb=UU4mV11nLSa/XhMemVtHUVIHoWNyUBroZIV+OXSDEGmTUFXOlrHto95b5qugQ1ikK8\n\tggBCIVnTow7fQztOaKIMrSDgVb+e1OGxvRESZU906GWYFPy5bQriy2wKpRuD6AzPyjFa\n\thj5B9ygjK1B7Zn5KCTI1LDxhkjY5gj2XdPnqM=","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:mime-version:in-reply-to:references:from:date\n\t:message-id:subject:to:cc;\n\tbh=ZrXGVQENqh6d9KEBxvs8iWG5cUtg62pDYQ6O/NiouiY=;\n\tb=ICeE8zTX12/J+nl/DmtMEmvXm32WllPL+ATRJ2CGxxeos6o/VgxNdrYjeMWJF+pGNA\n\tG789Kx+fT1r/9Vw+kEJzLmbaF0wFcDF4DFaYT2WGCyU7g/txBkTl8p+49FtBPAxTdR2B\n\t9HBRv9upFOfQQzDZZu4hPZ5vV7YAuHaNXFCtAWBpVqEThDz3M2vQZRHila9yS5v9sZzH\n\tSQqEs6f2qXc+sigxujzA/m1BC48f8Dy3xEj5/w2HcgTizr1IIqCYy8k1VFTZ5JXuuQDe\n\tuekvJ/VctRF6mRwxoDU3EhR9slfzqOi1HO3JOWXhU/WGiUX7z+aLB6ZsJThnsVDlG/Bo\n\tjyWw==","X-Gm-Message-State":"AJaThX4hxwBopFiRZLZz4ifS8Ebewsdroz/aWcyeUMfXfT8LbzU5i9vy\n\txQI1no6+BJSW4g4I8y91fJwsVrSLn3giOaB1frPFFA==","X-Google-Smtp-Source":"ABhQp+TP24PFjWA1cf70NxJER90xz6028Lwl4OtrnXvpj0+s1w9evKhr54gwTG7oyFf34WOP65mp26SWh6iKWRuyszs=","X-Received":"by 10.28.10.147 with SMTP id 141mr45675wmk.40.1509720207930; Fri,\n\t03 Nov 2017 07:43:27 -0700 (PDT)","MIME-Version":"1.0","In-Reply-To":"<20171102090906.30391-1-danielhb@linux.vnet.ibm.com>","References":"<20171102090906.30391-1-danielhb@linux.vnet.ibm.com>","From":"Peter Maydell <peter.maydell@linaro.org>","Date":"Fri, 3 Nov 2017 14:43:07 +0000","Message-ID":"<CAFEAcA-L4MWw_ES21svL27O6X5dhpjjx6kdp9BW3w4Qei74kjg@mail.gmail.com>","To":"Daniel Henrique Barboza <danielhb@linux.vnet.ibm.com>","Content-Type":"text/plain; charset=\"UTF-8\"","X-detected-operating-system":"by eggs.gnu.org: Genre and OS details not\n\trecognized.","X-Received-From":"2a00:1450:400c:c09::241","Subject":"Re: [Qemu-devel] [PATCH v5] configure: check $CC available before\n\tverifying host CPU","X-BeenThere":"qemu-devel@nongnu.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Id":"<qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<http://lists.nongnu.org/archive/html/qemu-devel/>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Cc":"QEMU Trivial <qemu-trivial@nongnu.org>, =?utf-8?q?Philippe_Mathieu-Dau?=\n\t=?utf-8?b?ZMOp?= <f4bug@amsat.org>,\n\tQEMU Developers <qemu-devel@nongnu.org>, Michael Roth\n\t<mdroth@linux.vnet.ibm.com>","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>"}}]