-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
cmd/compile: buildmode c-archive not supported on linux/mips64le #59561
Comments
Duplicate with #43264 |
Although the problems of c-achived and c-shared are very similar, and the error messages are similar, . But they are indeed not the same problem, I just confirmed the issue with longson's R&D. |
There is a stack of changes starting at https://go.dev/cl/348732 that may fix this. |
A stale stack of changes, sadly. |
I'm getting the same error on FreeBSD/i386, using go-1.20:
The software being compiled is a mixture of C and Go code, but it builds on FreeBSD/amd64 without a problem. Is there anything I can do about it for the 32-bit users? Would using go-1.21 help, for example? |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?OS: 4.19.90-23.13.v2101.ky10.mips64el
CPU:Loongson-3A R4 (Loongson-3B4000)
go env
OutputWhat did you do?
I tried to compile libGoReSym with c-achived mode in the mips64le (loongnix) platform, but found the following error:
/opt/go/bin/go build -buildmode=c-archive -o libGoReSym.a
internal/itoa
compile: linux/mips64le does not support -shared
。。。
The program is C wrapper for GoReSym
What did you expect to see?
-buildmode=c-achived support on linux/mips64le
What did you see instead?
-buildmode=c-achived not support on linux/mips64le
The text was updated successfully, but these errors were encountered: