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

有没有朋友遇到过这个问题 #22

Closed
x-wesley opened this issue Dec 2, 2020 · 3 comments
Closed

有没有朋友遇到过这个问题 #22

x-wesley opened this issue Dec 2, 2020 · 3 comments

Comments

@x-wesley
Copy link

x-wesley commented Dec 2, 2020

类似这个 golang/go#40974

goland里面执行gotest没有问题。

项目里go install 命令的时候出现以下问题:
/usr/local/Cellar/go/1.15.2/libexec/pkg/tool/darwin_amd64/link: running clang failed: exit status 1
ld: sectionForAddress(0x13654DE) address not in any section file '/var/folders/rr/2rdmy50d1jb0tjnjfhcbnbqh0000gn/T/go-link-273425566/go.o' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

升级go版本至1.15.5后问题消失

@cch123
Copy link
Collaborator

cch123 commented Dec 2, 2020

汗,还以为是 holmes 的问题
这个应该是混编了不同版本的依赖吧
试试把 go mod cache clean 掉

@x-wesley
Copy link
Author

x-wesley commented Dec 2, 2020

汗,还以为是 holmes 的问题
这个应该是混编了不同版本的依赖吧
试试把 go mod cache clean 掉

没有用gomod 还是vendor呢

@nejisama
Copy link
Contributor

nejisama commented Dec 2, 2020

试下把GCO禁掉跑跑看呢? CGO_ENABLED=0

@x-wesley x-wesley closed this as completed Dec 4, 2020
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

3 participants