Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/cgo: cannot load DWARF output from ./_cgo_.o: applyRelocations: not implemented #18959
What version of Go are you using (
There is no way to bypass this step.
I don't understand why you are getting this error, though. As far as I can see the relevant code was added in https://golang.org/cl/30916 and copied to GCC 7 in SVN revision number 241171 (https://gcc.gnu.org/ml/gcc-patches/2016-10/msg01177.html). The version of gccgo that you are running should include that patch.
Can you confirm that your cgo tool was built from sources that include these lines in libgo/go/debug/elf/file.go: