go-python / go-python/gopy

Docker build does not work on Apple Mac m1 chip arm64

未关闭
#300 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Go
星标
2.3k
派生
136
平均合并
14 分钟
30 天内合并 PR
2

描述

Couldn't install with go get either
The Docker example does not work for my Mac M1 chip

Getting this error:
```
(venv) jchan2@AU-F9DJ5W25WC ~ % cd $GOPATH/src/github.com/go-python/gopy/_examples/hi
(venv) jchan2@AU-F9DJ5W25WC hi % docker run --rm -v `pwd`:/go/src/in -v `pwd`:/out gopy/gopy app bind -output=/out in
Unable to find image 'gopy/gopy:latest' locally
latest: Pulling from gopy/gopy
ad74af05f5a2: Pull complete
2b032b8bbe8b: Pull complete
a9a5b35f6ead: Pull complete
25d9840c55bc: Pull complete
d792ec7d64a3: Pull complete
be556a93c22e: Pull complete
3a5fce283a1e: Pull complete
0621865a0c2e: Pull complete
81b0c7b4a330: Pull complete
3860d4cacc02: Pull complete
ddfc9a678375: Pull complete
15d8e4fdf38a: Pull complete
Digest: sha256:2af5d39cfa04efb10333022599a0f007b9aa4db2f3c967c3622f46e3a9844724
Status: Downloaded newer image for gopy/gopy:latest
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
runtime: failed to create new OS thread (have 2 already; errno=22)
fatal error: newosproc

runtime stack:
runtime.throw(0x6fa581, 0x9)
/usr/local/go/src/runtime/panic.go:596 +0x95
runtime.newosproc(0xc42002a000, 0xc42003a000)
/usr/local/go/src/runtime/os_linux.go:163 +0x18c
runtime.newm(0x70fe68, 0x0)
/usr/local/go/src/runtime/proc.go:1628 +0x137
runtime.main.func1()
/usr/local/go/src/runtime/proc.go:126 +0x36
runtime.systemstack(0x851700)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x79
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1132

goroutine 1 [running]:
runtime.systemstack_switch()
/usr/local/go/src/runtime/asm_amd64.s:281 fp=0xc420026788 sp=0xc420026780
runtime.main()
/usr/local/go/src/runtime/proc.go:127 +0x6c fp=0xc4200267e0 sp=0xc420026788
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:2197 +0x1 fp=0xc4200267e8 sp=0xc4200267e0
```

贡献指南

这个仓库没有索引到贡献指南

调研方向

首先,在 Apple M1 arm64 主机上复现 _examples/hi 中的 Docker 命令,并检查示例使用的 gopy/gopy 镜像。将报告的平台警告和 Go 运行时失败与 Docker 示例设置进行比较;完成标准是示例能够在 arm64 上成功运行且不出现 newosproc 失败。

由索引模型根据 Issue 内容生成。

评估

技术栈
docker, go
领域
build-system, devops
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。