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

can not build libraries for amd64 #14

Open
CocoaML opened this issue Jul 15, 2024 · 2 comments
Open

can not build libraries for amd64 #14

CocoaML opened this issue Jul 15, 2024 · 2 comments

Comments

@CocoaML
Copy link

CocoaML commented Jul 15, 2024

运行./build/build_arm64.sh 报错如下:

Building Python lib
# internal/abi
/usr/local/go/src/internal/abi/funcpc.go:22:6: FuncPCABI0 redeclared in this block
	/usr/local/go/src/internal/abi/abi.go:117:6: other declaration of FuncPCABI0
/usr/local/go/src/internal/abi/funcpc.go:31:6: FuncPCABIInternal redeclared in this block
	/usr/local/go/src/internal/abi/abi.go:126:6: other declaration of FuncPCABIInternal
# internal/chacha8rand
/usr/local/go/src/internal/chacha8rand/chacha8_arm64.s:19: ABI selector only permitted when compiling runtime, reference was to "\"\".block"
asm: assembly of /usr/local/go/src/internal/chacha8rand/chacha8_arm64.s failed

使用的go版本:

go version go1.20.6 linux/arm64

Linux版本:

Linux ml 5.4.0-189-generic #209-Ubuntu SMP Fri Jun 7 14:05:34 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux

请问如何修复呢?期待反馈。

@Yeuoly
Copy link
Collaborator

Yeuoly commented Jul 15, 2024

Your golang environment was broken I guess, it looks like you have installed some non-standard libraries which cause this error

@Yeuoly Yeuoly changed the title 运行./build/build_arm64.sh 报错 can not build libraries for amd64 Jul 15, 2024
@CocoaML
Copy link
Author

CocoaML commented Jul 17, 2024

Your golang environment was broken I guess, it looks like you have installed some non-standard libraries which cause this error

How can i check golang environment which is non-standard libraries ? How can i fix it? Looking forward to your reply, Thanks.

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