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

Why cannot open '/lib64/ld-linux-x86-64.so.2': No such file or directory #2689

Open
syswu opened this issue Jan 17, 2023 · 1 comment
Open

Comments

@syswu
Copy link

syswu commented Jan 17, 2023

...
...
#0 3193.5 bin/install
#0 3193.6 mkdir -p /home/git/.ssh: OK
#0 3193.6 chmod 700 /home/git/.ssh: OK
#0 3193.7 GOBIN="/home/git/gitlab-shell/bin" go install -ldflags "-X main.Version=v14.14.0 -X main.BuildTime=20230117.133721" -tags "tracer_static tracer_static_jaeger continuous_profiler_stackdriver" -mod=mod ./cmd/...
#0 3193.7 qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory
#0 3193.7 make: *** [Makefile:57: bin/gitlab-shell] Error 255

Dockerfile:59

57 |
58 | COPY assets/build/ ${GITLAB_BUILD_DIR}/
59 | >>> RUN bash ${GITLAB_BUILD_DIR}/install.sh
60 |
61 | COPY assets/runtime/ ${GITLAB_RUNTIME_DIR}/

@kkimurak
Copy link
Contributor

kkimurak commented Jan 18, 2023

Could you provide some more info - What command(s) did you executed? What OS are you running? What is the architecture of CPU?


From your log, it seems you are about to build sameersbn/gitlab by yourself, on the platform that requires qemu to emulate x86_64, right?

Are you running on arm64 or something else and want to build x86_64 (amd64) image? Then, you may want to use --platform=linux/amd64 option for docker buildx build command. See https://docs.docker.com/build/building/multi-platform/ .

Or, do you want to build for other platform? Unfortunately this image currently does not support build other than x86_64 (amd64). But you can contribute. I have post a draft patch on #2603 so you can try it.

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

No branches or pull requests

2 participants