Skip to content

cmd/compile: unknown ARM relocation type 7 #38020

@lucianboldu

Description

@lucianboldu

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

$ go version go1.14 darwin/amd64

Does this issue reproduce with the latest release?

Yes

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

go env Output
$ go env

GO111MODULE="on"
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/work/Library/Caches/go-build"
GOENV="/Users/work/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/work/Workspace/GO"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/dev/null"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/pn/q3538lx9107cgpdvj95xzd2m0000gn/T/go-build264931963=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

I tried to build an ARM version from a project made with version go1.11. In go1.11 everything worked well.Until i moved to go1.14 i released 3 ARM versions compiled with go1.11.

What did you expect to see?

An compiled ARM version 6 of my project build with command:
GOOS=linux GOARCH=arm GOARM=6 go build -o out/release/linux/arm/

What did you see instead?

I receive this error when i run the command below:
GOOS=linux GOARCH=arm GOARM=6 go build -o out/release/linux/arm/
/Users/work/Library/Caches/go-build/f1/f1abdf46b4e5bb946645d1d2602052a096e3abf0af23ba23a1f90dd443051323-d(resource.syso): main(.rsrc)<153>: unknown ARM relocation type 7

This exact error i received with every go version lower than 1.14 until 1.11.

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.WaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions