mattn / go-sqlite3

sqlite3 driver for go using database/sql
http://mattn.github.io/go-sqlite3
MIT License
8k stars 1.11k forks source link

ld warnings and stuck compilation #1103

Open amitavaghosh1 opened 2 years ago

amitavaghosh1 commented 2 years ago

go env

GO111MODULE=""
GOARCH="amd64"
GOBIN="/Users/amitava.ghosh/go/bin/"
GOCACHE="/Users/amitava.ghosh/Library/Caches/go-build"
GOENV="/Users/amitava.ghosh/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/amitava.ghosh/.asdf/installs/golang/1.18.3/packages/pkg/mod"
GOOS="darwin"
GOPATH="/Users/amitava.ghosh/.asdf/installs/golang/1.18.3/packages"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/Users/amitava.ghosh/.asdf/installs/golang/1.18.3/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/Users/amitava.ghosh/.asdf/installs/golang/1.18.3/go/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.18.3"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/amitava.ghosh/dev/tada/gorm.v1-dbresolver/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 -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/h1/go-build3066795306=/tmp/go-build -gno-record-gcc-switches -fno-common"
 master± ⟩ go test github.com/go-gorm-v1/dbresolver
# github.com/go-gorm-v1/dbresolver.test
ld: warning: -no_pie is deprecated when targeting new OS versions

# stuck here
rittneje commented 2 years ago

With regards to the warning, please try with the latest release of Go 1.18 or 1.19 as per https://github.com/golang/go/issues/54482#issuecomment-1251124908

Are you sure it is actually stuck? I've noticed it can take quite a while (sometimes several minutes) for Go to compile this library, particularly on a resource-constrained machine.