-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/link: FreeBSD/ARM builder failing with cgo enabled on FreeBSD 11 #13139
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
Comments
Can you attach the _all.o file? |
That's weird, the _all.o file has unnamed symbols with no type. The readelf -s --wide output:
If you feel like it, you should report this as an LLVM bug. Could you please see if the problem is fixed by https://golang.org/cl/16667 ? Thanks. |
CL https://golang.org/cl/16667 mentions this issue. |
/tmp/goexp2/src/cmd/link/internal/ld/lib.go:1810 tries to access s.Name[0], but it's an empty string. |
Thanks for testing it. I've updated the CL to avoid that problem. Can you try it again? |
It works! Thanks! |
FreeBSD 11.0-CURRENT r288943 switched to clang 3.7 causing the build to fail:
According to readelf, section 17 is .debug_str in _all.o obj file in net.a.
Building with CGO_ENABLE=0 succeeds.
The text was updated successfully, but these errors were encountered: