Skip to content

build failing while cross compilation. #26

Open
@patabhu

Description

i am building my project using below cmd.
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o handlerBuild cmd/handler/main.go
Error generated:
imports github.com/ungerik/go-cairo: build constraints exclude all Go files in /home/oem/go/pkg/mod/github.com/ungerik/[email protected]
can someone explain me, what is happening over here ?

my system details on which i am try to build.

GO111MODULE="auto"
GOARCH="amd64"
GOBIN="/home/oem/go/bin"
GOCACHE="/home/oem/.cache/go-build"
GOENV="/home/oem/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/oem/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/oem/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.19.3"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/oem/go/src/file-core/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-build2645311516=/tmp/go-build -gno-record-gcc-switches"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions