[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v9 31/31] tests/docker: Add gentoo-loongarch64-cross image an
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH v9 31/31] tests/docker: Add gentoo-loongarch64-cross image and run cross builds in GitLab |
Date: |
Tue, 14 Dec 2021 14:23:55 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 |
On 12/14/21 09:01, WANG Xuerui wrote:
> Normally this would be based on qemu/debian10 or qemu/ubuntu2004, but
> after a week-long struggle, I still cannot build stage2 gcc with the
> known-good LoongArch toolchain sources, so I chose the least-resistance
> path with Gentoo as base image. As this image is not expected to be
> re-built by CI, like hexagon, it should not take much maintenance
> effort; also it's expected to be replaced as soon as Debian is
> available.
>
> As the LoongArch target has not been merged yet, a check-tcg job is not
> added at the moment, but cross builds with the TCG port are already
> possible, and added to CI matrix.
>
> Due to constant flux of the toolchain sources used (especially that of
> glibc), the binaries built with this image could currently segfault when
> run on actual hardware. This image is expected to be updated once a
> known-good combination is again verified.
>
> As a reference, the image takes about 27 minutes to rebuild on a
> Threadripper 3990X system with Docker operating on HDD; YMMV but it
> probably wouldn't become significantly shorter, as everything needs to
> be built from source in our case.
>
> Signed-off-by: WANG Xuerui <git@xen0n.name>
> ---
> .gitlab-ci.d/container-cross.yml | 27 ++++
> .gitlab-ci.d/crossbuilds.yml | 19 +++
> MAINTAINERS | 2 +
> tests/docker/Makefile.include | 21 +++
> .../gentoo-loongarch64-cross.docker | 19 +++
> .../build-toolchain.sh | 125 ++++++++++++++++++
> 6 files changed, 213 insertions(+)
> create mode 100644 tests/docker/dockerfiles/gentoo-loongarch64-cross.docker
> create mode 100755
> tests/docker/dockerfiles/gentoo-loongarch64-cross.docker.d/build-toolchain.sh
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
- [PATCH v9 17/31] tcg/loongarch64: Implement add/sub ops, (continued)
- [PATCH v9 17/31] tcg/loongarch64: Implement add/sub ops, WANG Xuerui, 2021/12/14
- [PATCH v9 13/31] tcg/loongarch64: Implement deposit/extract ops, WANG Xuerui, 2021/12/14
- [PATCH v9 14/31] tcg/loongarch64: Implement bswap{16,32,64} ops, WANG Xuerui, 2021/12/14
- [PATCH v9 19/31] tcg/loongarch64: Implement br/brcond ops, WANG Xuerui, 2021/12/14
- [PATCH v9 21/31] tcg/loongarch64: Implement tcg_out_call, WANG Xuerui, 2021/12/14
- [PATCH v9 18/31] tcg/loongarch64: Implement mul/mulsh/muluh/div/divu/rem/remu ops, WANG Xuerui, 2021/12/14
- [PATCH v9 20/31] tcg/loongarch64: Implement setcond ops, WANG Xuerui, 2021/12/14
- [PATCH v9 24/31] tcg/loongarch64: Implement tcg_target_qemu_prologue, WANG Xuerui, 2021/12/14
- [PATCH v9 25/31] tcg/loongarch64: Implement exit_tb/goto_tb, WANG Xuerui, 2021/12/14
- [PATCH v9 31/31] tests/docker: Add gentoo-loongarch64-cross image and run cross builds in GitLab, WANG Xuerui, 2021/12/14
- Re: [PATCH v9 31/31] tests/docker: Add gentoo-loongarch64-cross image and run cross builds in GitLab,
Philippe Mathieu-Daudé <=
- [PATCH v9 22/31] tcg/loongarch64: Implement simple load/store ops, WANG Xuerui, 2021/12/14
- [PATCH v9 26/31] tcg/loongarch64: Implement tcg_target_init, WANG Xuerui, 2021/12/14
- [PATCH v9 27/31] tcg/loongarch64: Register the JIT, WANG Xuerui, 2021/12/14
- [PATCH v9 23/31] tcg/loongarch64: Add softmmu load/store helpers, implement qemu_ld/qemu_st ops, WANG Xuerui, 2021/12/14
- [PATCH v9 30/31] configure, meson.build: Mark support for loongarch64 hosts, WANG Xuerui, 2021/12/14
- [PATCH v9 29/31] linux-user: Implement CPU-specific signal handler for loongarch64 hosts, WANG Xuerui, 2021/12/14
- [PATCH v9 28/31] common-user: Add safe syscall handling for loongarch64 hosts, WANG Xuerui, 2021/12/14