* [Qemu-devel] check-tcg failure
@ 2018-10-16 3:54 Richard Henderson
2018-10-19 10:25 ` Alex Bennée
0 siblings, 1 reply; 3+ messages in thread
From: Richard Henderson @ 2018-10-16 3:54 UTC (permalink / raw)
To: Alex Bennée; +Cc: qemu-devel
On aa64, "cross-compiling" to aa32, with
CC=arm-linux-gnueabihf-gcc
configure determines
aarch64-linux-user/config-target.mak:CROSS_CC_GUEST="aarch64-linux-gnu-gcc"
aarch64-linux-user/config-target.mak:CROSS_CC_GUEST_STATIC=y
aarch64-softmmu/config-target.mak:CROSS_CC_GUEST="aarch64-linux-gnu-gcc"
aarch64-softmmu/config-target.mak:CROSS_CC_GUEST_STATIC=y
arm-linux-user/config-target.mak:CROSS_CC_GUEST="cc"
arm-linux-user/config-target.mak:CROSS_CC_GUEST_STATIC=y
arm-softmmu/config-target.mak:CROSS_CC_GUEST="cc"
arm-softmmu/config-target.mak:CROSS_CC_GUEST_STATIC=y
which results in
BUILD arm guest-tests with cc
cc: error: unrecognized command line option ‘-marm’; did you mean ‘-fasm’?
Because of course cc is the aa64 host compiler.
r~
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] check-tcg failure
2018-10-16 3:54 [Qemu-devel] check-tcg failure Richard Henderson
@ 2018-10-19 10:25 ` Alex Bennée
2018-10-19 15:55 ` Richard Henderson
0 siblings, 1 reply; 3+ messages in thread
From: Alex Bennée @ 2018-10-19 10:25 UTC (permalink / raw)
To: Richard Henderson; +Cc: qemu-devel
Richard Henderson <richard.henderson@linaro.org> writes:
> On aa64, "cross-compiling" to aa32, with
>
> CC=arm-linux-gnueabihf-gcc
So this is different from ./configure --cross-cc=arch-linux-gnueabihf-
>
> configure determines
>
> aarch64-linux-user/config-target.mak:CROSS_CC_GUEST="aarch64-linux-gnu-gcc"
> aarch64-linux-user/config-target.mak:CROSS_CC_GUEST_STATIC=y
> aarch64-softmmu/config-target.mak:CROSS_CC_GUEST="aarch64-linux-gnu-gcc"
> aarch64-softmmu/config-target.mak:CROSS_CC_GUEST_STATIC=y
> arm-linux-user/config-target.mak:CROSS_CC_GUEST="cc"
> arm-linux-user/config-target.mak:CROSS_CC_GUEST_STATIC=y
> arm-softmmu/config-target.mak:CROSS_CC_GUEST="cc"
> arm-softmmu/config-target.mak:CROSS_CC_GUEST_STATIC=y
>
> which results in
>
> BUILD arm guest-tests with cc
> cc: error: unrecognized command line option ‘-marm’; did you mean ‘-fasm’?
>
> Because of course cc is the aa64 host compiler.
Hmm the build target is determined by check_define which uses $cc so I'm
guessing all those setting cross_FOO to host_cc should be using cc
instead?
In fact looking deeper I'm not sure what HOST_CC is meant to be used
for. We export it to make but the only place I can find it in the source
tree is:
$(feat-dst)gen-features: $(feat-src)gen-features.c
$(call quiet-command,$(HOST_CC) $(QEMU_INCLUDES) -o $@ $<,"CC","$(TARGET_DIR)gen-features")
As part of s390x - weird.
>
>
> r~
--
Alex Bennée
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] check-tcg failure
2018-10-19 10:25 ` Alex Bennée
@ 2018-10-19 15:55 ` Richard Henderson
0 siblings, 0 replies; 3+ messages in thread
From: Richard Henderson @ 2018-10-19 15:55 UTC (permalink / raw)
To: Alex Bennée; +Cc: qemu-devel
On 10/19/18 3:25 AM, Alex Bennée wrote:
>
> Richard Henderson <richard.henderson@linaro.org> writes:
>
>> On aa64, "cross-compiling" to aa32, with
>>
>> CC=arm-linux-gnueabihf-gcc
>
> So this is different from ./configure --cross-cc=arch-linux-gnueabihf-
No, that's exactly how I configured.
> In fact looking deeper I'm not sure what HOST_CC is meant to be used
> for. We export it to make but the only place I can find it in the source
> tree is:
>
> $(feat-dst)gen-features: $(feat-src)gen-features.c
> $(call quiet-command,$(HOST_CC) $(QEMU_INCLUDES) -o $@ $<,"CC","$(TARGET_DIR)gen-features")
>
> As part of s390x - weird.
Because of course gen-features is run on the host to produce gen-features.h, as
part of the build process. Those are the two lines immediately above those.
r~
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-10-19 15:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-16 3:54 [Qemu-devel] check-tcg failure Richard Henderson
2018-10-19 10:25 ` Alex Bennée
2018-10-19 15:55 ` Richard Henderson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).