Alpine Linux on x64 and AArch64

Lilian BENOIT lilian.benoit at lbenoit.fr
Fri May 14 22:00:11 UTC 2021


Hi Aleksei,

Thanks for your response.

devkit is a archive that i must download on musl.cc website.

This archive must uncompress on sysroot of qemu-debootstrap
cd ~/sysroot-arm64; unzip xxx-linux-musl-cross.tgz

my command is correct, isn't it ?


But i hesitate on two archives
  - https://musl.cc/aarch64-linux-musl-cross.tgz
  - https://musl.cc/x86_64-linux-musl-cross.tgz

I must use first ou second link if i want build on my computer (Linux 
debian x86 64) for aarch64 ?
In fact, first part is target or platform of build ?

Best Regards,
Lilian Benoit,

Le 14/05/2021 23:09, Aleksei Voitylov a écrit :
> Hi Lilian,
> 
> I had high hopes the documentation I integrated together with the
> sources for Alpine Linux support [1] would be understandable, let me
> know if it is not, I'll be happy to improve it :)
> 
> To build it yourself, you have two options:
> 
> 	* build on Alpine Linux AArch64 natively, without passing
> --with-devkit. That's the way we do it at BellSoft.
>  	* build with a cross compiler which should be passed to
> --with-devkit=, for example, someone provides cross compilers here
> [2].
> 
> Thanks,
> 
> -Aleksei
> 
> [2] https://musl.cc/
> On 14/05/2021 23:26, Lilian BENOIT wrote:
> 
>> Hi Aleksei,
>> 
>> Thanks for your reply.
>> 
>> We can find binary for Alpine Linux on x86 64 (for exemple, on
>> website AdoptOpenJDK or Azul)
>> But I don't find binaries for Alpine Linux on AArch64.
>> 
>> On linux x86 64, we can build binary for Alpine Linux (cross
>> compilation with musl)
>> ON linux x64 64, we can build binary for Linux AArch64 (cross
>> complation with debian sysroots)
>> 
>> Can i build binaries for Alpine Linux on AArch64 ?
>> I must use --with-devkit=$DEVKIT but i don't understand which value
>> do i put ?
>> 
>> Best Regards.
>> Lilian Benoit
>> 
>> Le 14/05/2021 01:00, Aleksei Voitylov a écrit :
>> Hi Lilian,
>> 
>> the code integrated in OpenJDK project source code as part of JEP
>> 386
>> into JDK 16 is production ready, otherwise it would not have been
>> integrated. It's possible to build OpenJDK for Alpine Linux with the
>> 
>> provided instructions [1] or find an OpenJDK distribution that
>> provides
>> pre-built binaries for the target architecture of your choice.
>> 
>> Thanks,
>> 
>> -Aleksei
>> 
>> [1] https://openjdk.java.net/groups/build/doc/building.html
>> 
>> On 10/05/2021 18:51, Lilian BENOIT wrote:
>> Hi everyone,
>> 
>> In JEP 386, Alpine Linux Port, this summary is "Port the JDK to
>> Alpine
>> Linux, and to other Linux distributions that use musl as their
>> primary
>> C library, on both the x64 and AArch64 architectures"
>> 
>> Alpine Linux Build is not included in JDK 16 because it isn't enough
>> 
>> mature for production. (cf. notes on http://jdk.java.net/16/)
>> 
>> This build is available on JDK 17 => Alpine Linux / x64
>> 
>> But should it not available too on Alpine Linux / AArch64 build ?
>> 
>> Is it on future ?
>> 
>> Best Regards,
>> Lilian BENOIT.


More information about the portola-dev mailing list