Hi Hezheng,
For the cross-compile toolchains in Debian, it provides
`gcc-aarch64-linux-gnu`, and in Debian:arm64 distribution it also provides
`gcc-x86-64-linux-gnu`, which means we are able to build an arm64 builder
image for guys who use arm64 based device as developer machine, e.g. M1/2
based mac.
For the alpine, currently, in x86_64 distribution, it provides
`gcc-aarch64-none-elf`, and I met 2 problems:
 - Previously I run the compiled lake binary it crashes
 - And still, I could not find some package under alpine:arm64 to compile
86_64 binaries.
For ZhangLiang's comments, it seems not available for now, as Debian uses
glibc by default, while alpine uses musl. I guess there will be some
compatibility problems.

Still, the solution for using alpine is worth trying, I'll continue to have
more investigation on it.

BRs, Ji Bin


Hezheng Yin <[email protected]> 于2023年1月4日周三 07:03写道:

> Hi Bin,
>
> Thanks for starting this thread. The slight increase in the image size
> isn't a significant concern. Out of curiosity, what cross-compile toolchain
> does alpine lack while Debian provides?
>
> Best,
> Hezheng
>
>
> On Tue, Jan 3, 2023 at 12:53 AM Liang Zhang <[email protected]
> .invalid>
> wrote:
>
> >
> > Hi, Ji Bin
> >
> > I think it does not matter if the image size increases by 20%. I have a
> > question about the cross-compile, could we just change the builder from
> > alpine to Debian and keep the rest?
> >
> > Best Regards
> >
> > Zhang Liang
>

Reply via email to