tonistiigi / xx

Dockerfile cross-compilation helpers
MIT License
338 stars 29 forks source link

add loong64 support #139

Open yzewei opened 6 months ago

yzewei commented 6 months ago

Get the latest Commit, the latest PR The previous PR add loong64 support

https://github.com/moby/buildkit/pull/4392

I'm sorry to complete this PR so late. I am busy some time ago. I have only been free now. Thank you very much for your attention!

Let me give you the lowdown once again: Loongarch, also known as Loongarch, is a badass RISC-style Instruction Set Architecture (ISA). It's all the rage in the open-source community and has been rocking long-term support.

yzewei commented 6 months ago

@tonistiigi @crazy-max The PR of add loong64 support has been moved here

yzewei commented 6 months ago

Update test-clang.bats is currently effective

yzewei commented 6 months ago

golang support loong64 from 1.19

yzewei commented 5 months ago

ptal

yzewei commented 5 months ago

I don’t figure out why there is an assertion failure when using loong64 in debian and ubuntu, and not all versions will do this. Maybe we can only operate loong64 on the sid version of the hellogo function?

yzewei commented 5 months ago

I don’t figure out why there is an assertion failure when using loong64 in debian and ubuntu, and not all versions will do this. Maybe we can only operate loong64 on the sid version of the hellogo function?

The golang installed is 1.15 does not support loong64 and changed to 1.19

tonistiigi commented 5 months ago

The golang installed is 1.15 does not support loong64 and changed to 1.19

The code you changed is under "buster-backports" condition

yzewei commented 5 months ago

When GOARCH=loong64, add prerequisites to the testenv()function to judge the Golang version

yzewei commented 5 months ago

It's hard to see how this would be useful in current form. No packages seem to install in debian. No C-based build seems to work in any distro, in debian because packages can't be installed and in old Alpine 3.11 because there doesn't seem to be any supported linker.

Despite most tests being disabled, the CI still looks quite red.

Can I adapt to debian first, alpine is waiting for the official community to start loadarch into the upstream and modify it?

yzewei commented 4 months ago

Due to the fact that the alpine community has not yet accepted the loongarch architecture, I have temporarily removed the build testing under alpine. After alpine community receives the loongarch architecture, I will start ci-testing.

yzewei commented 3 months ago

It seems that there are some problems with the cargo part of the arm64 and ppc64 architecture test in the debian: sid test. Can you see what the situation is? @tonistiigi Error: debian:sid

yzewei commented 3 months ago
https://github.com/tonistiigi/xx/actions/runs/7947422441/job/22165142567?pr=139#step:5:1607
https://github.com/tonistiigi/xx/actions/runs/7947422441/job/22165142567?pr=139#step:5:1563
https://github.com/tonistiigi/xx/actions/runs/7947422441/job/22165142567?pr=139#step:5:1429
https://github.com/tonistiigi/xx/actions/runs/7947422441/job/22165142567?pr=139#step:5:1279
https://github.com/tonistiigi/xx/actions/runs/7947422441/job/22165142567?pr=139#step:5:1127

Why does this happen on CI? I haven't had any problems with my project, https://github.com/yzewei/xx/actions/runs/7947440228/job/21696264971

yzewei commented 3 months ago

@tonistiigi Thanks!