Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/link: FreeBSD/ARM builder failing with cgo enabled on FreeBSD 11 #13139
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.
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.
/tmp/goexp2/src/cmd/link/internal/ld/lib.go:1810 tries to access s.Name, but it's an empty string.