[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: make docker-test-build@debian-loongarch-cross
From: |
Alex Bennée |
Subject: |
Re: make docker-test-build@debian-loongarch-cross |
Date: |
Thu, 09 Jan 2025 12:19:01 +0000 |
User-agent: |
mu4e 1.12.8; emacs 29.4 |
Richard Henderson <richard.henderson@linaro.org> writes:
> 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
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])
>
>
> r~
--
Alex Bennée
Virtualisation Tech Lead @ Linaro