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

M1电脑运行报错,报错提示“qemu-x86_64: Could not open '/lib/ld-musl-x86_64.so.1': No such file or directory” #4

Open
KeithW0726 opened this issue Jul 23, 2023 · 1 comment

Comments

@KeithW0726
Copy link

我的电脑平台是M1,运行Docker命令报错,提示“qemu-x86_64: Could not open '/lib/ld-musl-x86_64.so.1': No such file or directory”。

报错日志如下:
2023-07-23 11:23:37 qemu-x86_64: Could not open '/lib/ld-musl-x86_64.so.1': No such file or directory
2023-07-23 11:23:37 qemu-x86_64: Could not open '/lib/ld-musl-x86_64.so.1': No such file or directory
2023-07-23 11:23:38 qemu-x86_64: Could not open '/lib/ld-musl-x86_64.so.1': No such file or directory
2023-07-23 11:23:38 qemu-x86_64: Could not open '/lib/ld-musl-x86_64.so.1': No such file or directory
2023-07-23 11:23:39 qemu-x86_64: Could not open '/lib/ld-musl-x86_64.so.1': No such file or directory
2023-07-23 11:23:41 qemu-x86_64: Could not open '/lib/ld-musl-x86_64.so.1': No such file or directory
2023-07-23 11:23:44 qemu-x86_64: Could not open '/lib/ld-musl-x86_64.so.1': No such file or directory
2023-07-23 11:23:51 qemu-x86_64: Could not open '/lib/ld-musl-x86_64.so.1': No such file or directory
2023-07-23 11:24:04 qemu-x86_64: Could not open '/lib/ld-musl-x86_64.so.1': No such file or directory

应该是base image的版本问题

@lizheming
Copy link
Owner

lizheming commented Jul 23, 2023

drone-doumark 为了缩减体积,有一个使用 https://github.com/vercel/pkg 预打包的过程。目前打包配置里并没有打出 mac arm64 的可执行文件 https://github.com/lizheming/drone-doumark/blob/master/package.json#L39

理论上我觉得和 base image 关系不是特别的大。由于我没有 M1 环境,且这个场景比较小众(CI 一般很少会有 M1 的环境),我这边就暂时先不修复这个问题了。如果你对这个问题比较感兴趣的话,可以按照刚才说的改改试试,确认是这个问题的话,可以在 CI 的流程里加上多平台架构的编译流程。最后~ 欢迎 PR~

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