Skip to content

cmd/compile: buildmode c-archive not supported on linux/mips64le #59561

Open
@23083940

Description

@23083940

What version of Go are you using (go version)?

$ go version go1.18.3

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 Output
$ go env
GO111MODULE="on"
GOARCH="mips64le"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOENV="/root/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="mips64le"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/root/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/root/go"
GOPRIVATE=""
GOPROXY="https://goproxy.cn,direct"
GOROOT="/usr/lib/golang"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/golang/pkg/tool/linux_mips64le"
GOVCS=""
GOVERSION="go1.18.3"
GCCGO="gccgo"
GOMIPS64="hardfloat"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -mabi=64 -mhard-float -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build2385386052=/tmp/go-build -gno-record-gcc-switches"

What 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureRequestIssues asking for a new feature that does not need a proposal.NeedsFixThe path to resolution is known, but the work has not been done.arch-mipscompiler/runtimeIssues related to the Go compiler and/or runtime.

    Type

    No type

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions