qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] configure: Fail when specified cross compiler cannot be foun


From: Gustavo Romero
Subject: Re: [PATCH] configure: Fail when specified cross compiler cannot be found
Date: Thu, 17 Dec 2020 13:55:04 -0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.3.1

Hi Alex,

On 12/16/20 7:51 AM, Alex Bennée wrote:

Gustavo Romero <gromero@linux.ibm.com> writes:

Currently if the cross compiler passed to 'configure' (--cross-cc-<arch>) does
not exist no error happens and only later when the TCG tests are run they fail
because the cross compiler is not set correctly.

Do they? They should just skip because of a non-existing compiler and a
failed fallback to using docker:

   ../../configure --disable-docs --target-list=aarch64-softmmu 
--cross-cc-aarch64=nonexisting_gcc

and then cat ./tests/tcg/config-aarch64-softmmu.mak

   # Automatically generated by configure - do not modify
   TARGET_NAME=aarch64
   CONFIG_SOFTMMU=y
   QEMU=/home/alex/lsrc/qemu.git/builds/bisect/qemu-system-aarch64
   CROSS_CC_GUEST_CFLAGS=
   DOCKER_IMAGE=debian-arm64-test-cross
   DOCKER_CROSS_CC_GUEST=aarch64-linux-gnu-gcc-10

So what do you see in your failing case?

I get the following (I don't have docker installed):

$  ../configure --disable-docs --target-list=aarch64-softmmu 
--cross-cc-aarch64=nonexisting_gcc
gromero@pub:~/git/qemu/build$ cat ./tests/tcg/config-aarch64-softmmu.mak
# Automatically generated by configure - do not modify
TARGET_NAME=aarch64
CONFIG_SOFTMMU=y
QEMU=/home/gromero/git/qemu/build/qemu-system-aarch64
CROSS_CC_GUEST_CFLAGS=

$ ../configure --disable-docs --target-list=ppc64-softmmu 
--cross-cc-ppc64=nonexisting_gcc
gromero@pub:~/git/qemu/build$ cat ./tests/tcg/config-ppc64-softmmu.mak
# Automatically generated by configure - do not modify
TARGET_NAME=ppc64
CONFIG_SOFTMMU=y
QEMU=/home/gromero/git/qemu/build/qemu-system-ppc64
CROSS_CC_GUEST_CFLAGS=
CROSS_CC_GUEST_STATIC=y
CROSS_CC_GUEST=powerpc-linux-gnu-gcc

hrm It seems PPC64 is even assuming some default gcc...

I'm at commit af3f37319c from Dec 15.

I'm wondering if tha happens because I don't have docker package installed.

Anyway, should we at least say we're using Docker as fallback?


Cheers,
Gustavo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]