Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker images for arm64? #213

Open
tuxillo opened this issue Jul 13, 2023 · 10 comments · Fixed by #217
Open

Docker images for arm64? #213

tuxillo opened this issue Jul 13, 2023 · 10 comments · Fixed by #217

Comments

@tuxillo
Copy link
Contributor

tuxillo commented Jul 13, 2023

Hi,

Trying to use xgo in MacOS arm64 together with Docker Desktop I get:

$ go run src.techknowlogick.com/xgo@latest help                                                                                                                                                                                                                         
Checking docker installation...
Client:
 Cloud integration: v1.0.31
 Version:           23.0.5
 API version:       1.42
 Go version:        go1.19.8
 Git commit:        bc4487a
 Built:             Wed Apr 26 16:12:52 2023
 OS/Arch:           darwin/arm64
 Context:           default

Server: Docker Desktop 4.19.0 (106363)
 Engine:
  Version:          23.0.5
  API version:      1.42 (minimum version 1.12)
  Go version:       go1.19.8
  Git commit:       94d3ad6
  Built:            Wed Apr 26 16:17:14 2023
  OS/Arch:          linux/arm64
  Experimental:     false
 containerd:
  Version:          1.6.20
  GitCommit:        2806fc1057397dbaeefbea0e4e17bddfbd388f38
 runc:
  Version:          1.1.5
  GitCommit:        v1.1.5-0-gf19387a
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

Checking for required docker image techknowlogick/xgo:latest... not found!
Pulling techknowlogick/xgo:latest from docker registry...
latest: Pulling from techknowlogick/xgo
no matching manifest for linux/arm64/v8 in the manifest list entries
2023/07/13 15:52:13 Failed to pull docker image from the registry: exit status 1.
exit status 1

There is probably a way to override this but I think a linux/arm64 would help here?

Thanks!

@6543
Copy link
Contributor

6543 commented Aug 20, 2023

do block woodpecker-ci/woodpecker#2232

@Vitaminaq
Copy link

another way:
Download the source code for this repository in xgo. go and change the logic of the latest to the corresponding version you downloaded from the dockerhub

ep: https://hub.docker.com/r/techknowlogick/xgo/tags?page=2
download: go-1.20.4

@techknowlogick
Copy link
Owner

Re-opening as there are packages missing from ubuntu for arm64:

4.490 Reading state information...
4.597 E: Unable to locate package gcc-9-aarch64-linux-gnu
4.597 E: Unable to locate package g++-9-aarch64-linux-gnu
4.597 E: Couldn't find any package by regex 'g++-9-aarch64-linux-gnu'
4.597 E: Unable to locate package gcc-9-multilib
4.597 E: Unable to locate package g++-9-multilib
4.597 E: Couldn't find any package by regex 'g++-9-multilib'
4.597 E: Unable to locate package gcc-9-aarch64-linux-gnu
4.597 E: Unable to locate package g++-9-aarch64-linux-gnu
4.597 E: Couldn't find any package by regex 'g++-9-aarch64-linux-gnu'
4.597 E: Unable to locate package gcc-9-multilib
4.597 E: Unable to locate package g++-9-multilib
4.597 E: Couldn't find any package by regex 'g++-9-multilib'
4.597 E: Unable to locate package gcc-9-multilib
4.597 E: Unable to locate package g++-9-multilib
4.597 E: Couldn't find any package by regex 'g++-9-multilib'

@tuxillo
Copy link
Contributor Author

tuxillo commented Oct 26, 2023

gcc-9-aarch64-linux-gnu

Does it have to be that specific version?

@6543
Copy link
Contributor

6543 commented Mar 29, 2024

follow #224 ...

@6543
Copy link
Contributor

6543 commented Jul 21, 2024

#224 got reverted: 1578bc4

@pat-s pat-s mentioned this issue Oct 30, 2024
@techknowlogick
Copy link
Owner

@pat-s thanks for resubmitting the PR. It seems that after merging it, there is the following error when building the image:

The directory that should contain system headers does not exist: /freebsdcross/x86_64-pc-freebsd12/usr/include

Makefile errors: stmp-fixinc Error 1, all-gcc Error 2, and all Error 2

The script /prep_freebsd.sh did not complete successfully: exit code: 2

@pat-s
Copy link
Collaborator

pat-s commented Oct 30, 2024

Yes, already checking locally. Would have iterated in the PR as the build failed but you directly merged it 😄

Granted, I commented out the BSD part during my tests as I didn't need it for non-BSD tests and it hasn't been a problem so far - but now it is.

@techknowlogick
Copy link
Owner

@pat-s lol, I YOLO'd it 😆

Turns out it's due to the freebsd archives not being at that location anymore. So I bumped it up to 13.4 and it's building now (fingers crossed that tests will pass)

@pat-s
Copy link
Collaborator

pat-s commented Oct 31, 2024

I also tried updating to v14 including all deps locally - but that resulted in the same error. Did a bit of research and actually all syslibs should be present. 🤔️

Must be a new error related to Ubuntu2404 - a bit nasty, but you might need to fix it anyhow at some point to not build with ancient freebsd sources forever. Or drop freebsd support temporarily?

Not sure what is used/needed more - freebsd support or an arm64 variant 🙃️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants