goharbor / harbor-arm

Build Harbor for arm architecture.
Apache License 2.0
68 stars 41 forks source link

Build: Couldn't build Harbor from the source using `make install` on `arm64` arch #60

Open mohamedawnallah opened 3 weeks ago

mohamedawnallah commented 3 weeks ago

Problem Report

Expected Behavior and Actual Behavior:

Expected behavior:
Harbor should build successfully from the source using make install on arm64 architecture.

Actual behavior:
Attempting to build Harbor from the source using make install on arm64 architecture results in the following errors:

➜  harbor git:(main) make install

Note: golang version: 1.22.2

Note: docker version: 25.0.3

Note: Docker Compose version v2.24.6-desktop.1
/usr/local/bin/docker run --rm -u 501:20 -v /Users/mohamedawnallah/Desktop/harbor:/Users/mohamedawnallah/Desktop/harbor -w /Users/mohamedawnallah/Desktop/harbor goharbor/spectral:v6.1.0 lint ./api/v2.0/swagger.yaml
rosetta error: failed to open elf at /lib64/ld-linux-x86-64.so.2
 make: *** [lint_apis] Error 133

The build completes successfully on a GitHub Codespace with an ephemeral linux x86_64 machine.

Versions:

Please specify the versions of the following systems:

Vad1mo commented 3 weeks ago

fixed by https://github.com/goharbor/harbor/pull/20506

wy65701436 commented 2 weeks ago

You can ask arm related questions in the harbor-arm repository. https://github.com/goharbor/harbor-arm/issues