Skip to content
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

/usr/bin/ld: i386 architecture of input file `/tmp/go-link-3590783856/000000.o' is incompatible with i386:x86-64 output #1278

Open
664028812 opened this issue Oct 26, 2022 · 2 comments

Comments

@664028812
Copy link

my go env:

GO111MODULE="on"
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/amdin/.cache/go-build"
GOENV="/home/amdin/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/amdin/Desktop/gopath/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/amdin/Desktop/gopath"
GOPRIVATE=""
GOPROXY="https://goproxy.io,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.19.1"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/amdin/Desktop/gopath/src/ccb.iot.agent/go.mod"
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 -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build2366368413=/tmp/go-build -gno-record-gcc-switches"

@664028812
Copy link
Author

i set goarch=amd64 ,but it use 1386.

@664028812
Copy link
Author

INFO[0000] running: 'qtsetup check linux' [docker=false] [vagrant=false]
INFO[0000] GOOS: 'linux'
INFO[0000] GOARCH: * 'amd64'
INFO[0000] GOVERSION: 'go1.19.1'
INFO[0000] GOROOT: * '/usr/local/go'
INFO[0000] GOPATH: * '/home/amdin/Desktop/gopath'
INFO[0000] GOBIN: '/home/amdin/Desktop/gopath/bin'
INFO[0000] GOMOD: '/home/amdin/Desktop/gopath/src/ccb.iot.agent/go.mod'
INFO[0000] QT_HASH: 'v0.0.0-20200904063919-c0c124a5770d'
INFO[0000] QT_API: * '5.13.0'
INFO[0000] QT_VERSION: * '5.13.1'
INFO[0000] QT_DIR: * '/home/amdin/Qt5.13.1'
INFO[0000] QT_STUB: 'false'
INFO[0000] QT_DEBUG: 'false'
INFO[0000] QT_QMAKE_DIR: ''
INFO[0000] QT_WEBKIT: 'false'
INFO[0000] QT_STATIC: 'false'
INFO[0000] QT_GEN_GO: 'false'
INFO[0000] QT_GEN_OPENGL: 'false'
INFO[0000] QT_GEN_QUICK_EXTRAS: 'false'
INFO[0000] QT_RESOURCES_BIG: 'false'
INFO[0000] QT_NOT_CACHED: 'false'
INFO[0000] QT_DISTRO: 'ubuntu'
INFO[0000] QT_PKG_CONFIG: 'false'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant