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
gccgo: cgo not working on Solaris 10 #27838
Comments
Including few relevant outputs (as discussed in the thread here):
|
From the mailing list, this is 32-bit SPARC, and the problem may be that there is no |
Hi @ianlancetaylor, I just looked at the source and found that the implementation exists: https://github.com/golang/gofrontend/blob/7b25b4dff4778fc4d6b5d6e10594814146b3e5dd/libgo/go/debug/elf/file.go#L1073 Am I missing something? |
I'm sorry, you're quite right. I was looking in the gc sources, but you are using gccgo. The function is there in gccgo. I'm not sure what is happening here. |
What version of Go are you using (
go version
)?go version go1.10.3 gccgo (GCC) 8.2.1 20180813 solaris/sparc
Does this issue reproduce with the latest release?
Yes. Compiled from source
What operating system and processor architecture are you using (
go env
)?What did you do?
Tried to compile a simple program:
What did you see instead?
Compilation fails with:
./abc.go:13:5: call of non-function C.testc
The text was updated successfully, but these errors were encountered: