Closed matias-pan-globant closed 5 years ago
After following all the steps in the development wiki page I tried to run go build but it failed with the following message: go build github.com/dzhou121/gonvim/editor: invalid flag in #cgo LDFLAGS: -Wl,-O1 Has anyone encountered this before?
go build
go build github.com/dzhou121/gonvim/editor: invalid flag in #cgo LDFLAGS: -Wl,-O1
Environment:
INFO[0000] GOOS: 'linux' INFO[0000] GOARCH: 'amd64' INFO[0000] GOVERSION: 'go1.10.3' INFO[0000] GOROOT: * '/usr/local/go' INFO[0000] GOPATH: * '/home/matias.pan/go' INFO[0000] GOBIN: '/home/matias.pan/go/bin' INFO[0000] QT_HASH: '3cb140eaf569f42241c0d8c0ca4574f7b640fa34' INFO[0000] QT_VERSION: '5.11.1' INFO[0000] QT_VERSION_MAJOR: '5.11.1' INFO[0000] QT_DIR: '/home/matias.pan/Qt' INFO[0000] QT_STUB: 'false' INFO[0000] QT_DEBUG: 'false' INFO[0000] QT_QMAKE_DIR: '' INFO[0000] QT_WEBKIT: 'false' INFO[0000] QT_DISTRO: 'ubuntu' INFO[0000] QT_PKG_CONFIG: 'false'
Hi, Please try the following;
export CGO_CXXFLAGS_ALLOW=".*" export CGO_LDFLAGS_ALLOW=".*" export CGO_CFLAGS_ALLOW=".*"
After following all the steps in the development wiki page I tried to run
go build
but it failed with the following message:go build github.com/dzhou121/gonvim/editor: invalid flag in #cgo LDFLAGS: -Wl,-O1
Has anyone encountered this before?Environment: