Skip to content

cmd/go: cc1: error: unrecognized command line option "-m32" during get #25665

@gbitten

Description

@gbitten

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

go version go1.10.2 linux/386

Does this issue reproduce with the latest release?

Version 1.10.2 is the latest stable release, Anyway, It works normally with go version go1.9.6 linux/386.

What operating system and processor architecture are you using (go env)?

GOARCH="386"
GOBIN=""
GOCACHE="/home/rds/.cache/go-build"
GOEXE=""
GOHOSTARCH="386"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/rds/go"
GORACE=""
GOROOT="/home/rds/gotest/go"
GOTMPDIR=""
GOTOOLDIR="/home/rds/gotest/go/pkg/tool/linux_386"
GCCGO="gccgo"
GO386="sse2"
CC="arm-arago-linux-gnueabi-gcc"
CXX="g++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m32 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build804659883=/tmp/go-build"

What did you do?

wget https://dl.google.com/go/go1.10.2.linux-386.tar.gz
sudo tar -C /usr/local -xzf go1.10.2.linux-386.tar.gz
echo export PATH=\$PATH:/usr/local/go/bin >> ~/.profile
source ~/.profile
go get github.com/gorilla/mux

What did you expect to see?

No errors

What did you see instead?

# runtime/cgo
cc1: error: unrecognized command line option "-m32"

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions