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

ch3.1 问题 #465

Closed
kongminhao opened this issue Sep 10, 2019 · 2 comments
Closed

ch3.1 问题 #465

kongminhao opened this issue Sep 10, 2019 · 2 comments

Comments

@kongminhao
Copy link

kongminhao commented Sep 10, 2019

提示:哪一章节的问题,建议如何修改

main 函数定义的那一章节。

此代码在go 1.13无法运行,报错如下。

go build -o a.out && ./a.out
# chai2010.cn/gobook/examples/ch3.1/main-01
main.main: relocation target runtime.printstring not defined for ABI0 (but is defined for ABIInternal)
main.main: relocation target runtime.printnl not defined for ABI0 (but is defined for ABIInternal)
make: [default] Error 2 (ignored)
rm: a.out: No such file or directory
make: [default] Error 1 (ignored)
go version
go version go1.13 darwin/amd64
@chai2010
Copy link
Owner

Go汇编函数的ABI发生了变化,可以参考这里的方案 #427

@kongminhao
Copy link
Author

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