make docker-test-build@debian-loongarch-cross
Hi Alex,
It turns out that $SUBJECT does not actually cross-compile to loongarch64. Within the logged configure,
Compilation
host CPU : x86_64
host endianness : little
C compiler : cc -m64
Host C compiler : cc -m64
C++ compiler : NO
Objective-C compiler : NO
Rust support : NO
CFLAGS : -g -O2
QEMU_CFLAGS : -mcx16 -msse2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fno-common -fwrapv -fstack-protector-strong
Obviously this is less than helpful as a smoke test. :-O
r~
Quoted 15 lines · Richard Henderson
Hi Alex,
It turns out that $SUBJECT does not actually cross-compile to loongarch64. Within the logged configure,
Compilation
host CPU : x86_64 host endianness : little C compiler : cc -m64 Host C compiler : cc -m64 C++ compiler : NO Objective-C compiler : NO Rust support : NO CFLAGS : -g -O2 QEMU_CFLAGS : -mcx16 -msse2 -D_GNU_SOURCE
Quoted 4 lines
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing
-fno-common -fwrapv -fstack-protector-strongObviously this is less than helpful as a smoke test. :-O
I think it's just missing the right ENV magic as the other cross images have, e.g.:
ENV ABI "aarch64-linux-gnu" ENV MESON_OPTS "--cross-file=aarch64-linux-gnu" ENV RUST_TARGET "aarch64-unknown-linux-gnu" ENV QEMU_CONFIGURE_OPTS --cross-prefix=aarch64-linux-gnu-
For the normal debian based images these are added automatically by refresh:
def cross_build(prefix, targets):
conf = "ENV QEMU_CONFIGURE_OPTS --cross-prefix=%s\n" % (prefix)
targets = "ENV DEF_TARGET_LIST %s\n" % (targets)
return "".join([conf, targets])Quoted 3 lines
r~
Signature · 2 lines
Alex Bennée Virtualisation Tech Lead @ Linaro