[PATCH] tests/docker/dockerfiles/debian-loongarch-cross: update toolchain

Pierrick Bouvier posted 1 patch 3 days, 19 hours ago
tests/docker/dockerfiles/debian-loongarch-cross.docker | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] tests/docker/dockerfiles/debian-loongarch-cross: update toolchain
Posted by Pierrick Bouvier 3 days, 19 hours ago
The previous toolchain was embedding full libc when doing static linking
for tcg-tests. As a result, each binary was 4MB is size.
With updated toolchain, only needed functions are linked, thus reducing
binary size.

As a result, we save ~140MB of disk space for tcg-tests.

Signed-off-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
---
 tests/docker/dockerfiles/debian-loongarch-cross.docker | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/docker/dockerfiles/debian-loongarch-cross.docker b/tests/docker/dockerfiles/debian-loongarch-cross.docker
index d2ba07972ce..c3c3c0a4996 100644
--- a/tests/docker/dockerfiles/debian-loongarch-cross.docker
+++ b/tests/docker/dockerfiles/debian-loongarch-cross.docker
@@ -37,7 +37,7 @@ RUN apt-get update && \
         python3-wheel && \
         dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt
 
-RUN curl -#SL https://github.com/loongson/build-tools/releases/download/2023.08.08/CLFS-loongarch64-8.1-x86_64-cross-tools-gcc-glibc.tar.xz \
+RUN curl -#SL https://github.com/loongson/build-tools/releases/download/2025.08.08/x86_64-cross-tools-loongarch64-binutils_2.45-gcc_15.1.0-glibc_2.42.tar.xz \
     | tar -xJC /opt
 
 ENV PATH=$PATH:/opt/cross-tools/bin
-- 
2.43.0
Re: [PATCH] tests/docker/dockerfiles/debian-loongarch-cross: update toolchain
Posted by Pierrick Bouvier 21 hours ago
On 9/22/2026 5:05 PM, Pierrick Bouvier wrote:
> The previous toolchain was embedding full libc when doing static linking
> for tcg-tests. As a result, each binary was 4MB is size.
> With updated toolchain, only needed functions are linked, thus reducing
> binary size.
> 
> As a result, we save ~140MB of disk space for tcg-tests.
> 
> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
> ---
>  tests/docker/dockerfiles/debian-loongarch-cross.docker | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 

This was merged into master (efa3b9d5ac8024078225e1ab434411fdfe53b457).

Regards,
Pierrick
Re: [PATCH] tests/docker/dockerfiles/debian-loongarch-cross: update toolchain
Posted by Philippe Mathieu-Daudé 3 days, 14 hours ago
On 23/9/26 02:05, Pierrick Bouvier wrote:
> The previous toolchain was embedding full libc when doing static linking
> for tcg-tests. As a result, each binary was 4MB is size.
> With updated toolchain, only needed functions are linked, thus reducing
> binary size.
> 
> As a result, we save ~140MB of disk space for tcg-tests.
> 
> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
> ---
>   tests/docker/dockerfiles/debian-loongarch-cross.docker | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>

Re: [PATCH] tests/docker/dockerfiles/debian-loongarch-cross: update toolchain
Posted by Bibo Mao 3 days, 15 hours ago

On 2026/9/23 上午8:05, Pierrick Bouvier wrote:
> The previous toolchain was embedding full libc when doing static linking
> for tcg-tests. As a result, each binary was 4MB is size.
> With updated toolchain, only needed functions are linked, thus reducing
> binary size.
> 
> As a result, we save ~140MB of disk space for tcg-tests.
That is great, thanks for the efforts.

Reviewed-by: Bibo Mao <maobibo@loongson.cn>
> 
> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
> ---
>   tests/docker/dockerfiles/debian-loongarch-cross.docker | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/docker/dockerfiles/debian-loongarch-cross.docker b/tests/docker/dockerfiles/debian-loongarch-cross.docker
> index d2ba07972ce..c3c3c0a4996 100644
> --- a/tests/docker/dockerfiles/debian-loongarch-cross.docker
> +++ b/tests/docker/dockerfiles/debian-loongarch-cross.docker
> @@ -37,7 +37,7 @@ RUN apt-get update && \
>           python3-wheel && \
>           dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt
>   
> -RUN curl -#SL https://github.com/loongson/build-tools/releases/download/2023.08.08/CLFS-loongarch64-8.1-x86_64-cross-tools-gcc-glibc.tar.xz \
> +RUN curl -#SL https://github.com/loongson/build-tools/releases/download/2025.08.08/x86_64-cross-tools-loongarch64-binutils_2.45-gcc_15.1.0-glibc_2.42.tar.xz \
>       | tar -xJC /opt
>   
>   ENV PATH=$PATH:/opt/cross-tools/bin
>