cmd/link: FreeBSD/ARM builder failing with cgo enabled on FreeBSD 11 #13139
Labels
Milestone
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! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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: