Skip to contentSkip to conversation

check-tcg failure

Qemu-devel Richard Henderson 2 participants 3 messages Oct 16, 2018 – Oct 19, 2018

lore
Share & tools
lore
#0 lore raw

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~

#1 lore raw
Quoted 3 lines · Richard Henderson

On aa64, "cross-compiling" to aa32, with

CC=arm-linux-gnueabihf-gcc

So this is different from ./configure --cross-cc=arch-linux-gnueabihf-

Quoted 12 lines

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

Quoted 6 lines

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.

Quoted 3 lines

r~

--
Alex Bennée

#2 lore raw
Quoted 8 lines · Alex Bennée
Quoted 3 lines · Richard Henderson

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.

Quoted 8 lines

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~