We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
On tip, on linux-amd64, in the misc/swig/callback directory, running this command
CC=clang CGO_CFLAGS="-g -O2 -flto" CGO_LDFLAGS="-flto" go test -v
fails as follows:
# misc/swig/callback cgo: cannot parse gcc output $WORK/b059//_cgo_.o as ELF, Mach-O, PE, XCOFF object FAIL misc/swig/callback [build failed]
At least when using clang, cgo has to disable -flto when it compiles the object, because cgo is unable to parse the byte code generated by clang.
-flto
The text was updated successfully, but these errors were encountered:
Same with gcc.
Sorry, something went wrong.
Might be a duplicate of #43505.
Change https://golang.org/cl/322614 mentions this issue: cmd/link, cmd/cgo: support -flto in CFLAGS
cmd/link, cmd/cgo: support -flto in CFLAGS
24e9707
Change https://golang.org/cl/324049 mentions this issue: cmd/link: move issue 43830 tests out of TestScript
cmd/link: move issue 43830 tests out of TestScript
84c0e5d
These tests pass or fail depending on the exact compiler version, which the TestScript tests don't support. Rewrite into Go. For #43830 For #46295 Change-Id: I91b61dfe329d518e461ee56f186f0e9b42858e77 Reviewed-on: https://go-review.googlesource.com/c/go/+/324049 Trust: Ian Lance Taylor <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Cherry Mui <[email protected]>
No branches or pull requests
On tip, on linux-amd64, in the misc/swig/callback directory, running this command
fails as follows:
At least when using clang, cgo has to disable
-flto
when it compiles the object, because cgo is unable to parse the byte code generated by clang.The text was updated successfully, but these errors were encountered: