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

go get failed #1

Open
matthewmueller opened this issue May 31, 2021 · 7 comments
Open

go get failed #1

matthewmueller opened this issue May 31, 2021 · 7 comments

Comments

@matthewmueller
Copy link

Hey – this project is really exciting. I just gave it a go but unfortunately ran into the following error:

go get github.com/jensneuse/goprisma/pkg/prisma

go: downloading github.com/jensneuse/goprisma v0.0.0-20210531103550-6521fb3d61b3
# github.com/jensneuse/goprisma/pkg/prisma
ld: warning: ignoring file /Users/m/dev/pkg/mod/github.com/jensneuse/goprisma@v0.0.0-20210531103550-6521fb3d61b3/lib/darwin/libquery_engine_c_api.dylib, building for macOS-x86_64 but attempting to link with file built for unknown-unsupported file format ( 0x76 0x65 0x72 0x73 0x69 0x6F 0x6E 0x20 0x68 0x74 0x74 0x70 0x73 0x3A 0x2F 0x2F )
Undefined symbols for architecture x86_64:
  "_free_introspection_result", referenced from:
      __cgo_2dba20b15c43_Cfunc_free_introspection_result in _x002.o
     (maybe you meant: __cgo_2dba20b15c43_Cfunc_free_introspection_result)
  "_free_prisma", referenced from:
      __cgo_2dba20b15c43_Cfunc_free_prisma in _x002.o
     (maybe you meant: __cgo_2dba20b15c43_Cfunc_free_prisma)
  "_prisma_execute", referenced from:
      __cgo_2dba20b15c43_Cfunc_prisma_execute in _x002.o
     (maybe you meant: __cgo_2dba20b15c43_Cfunc_prisma_execute)
  "_prisma_introspect", referenced from:
      __cgo_2dba20b15c43_Cfunc_prisma_introspect in _x002.o
     (maybe you meant: __cgo_2dba20b15c43_Cfunc_prisma_introspect)
  "_prisma_new", referenced from:
      __cgo_2dba20b15c43_Cfunc_prisma_new in _x002.o
     (maybe you meant: __cgo_2dba20b15c43_Cfunc_prisma_new)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
go env
GO111MODULE="on"
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/m/Library/Caches/go-build"
GOENV="/Users/m/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/m/dev/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/m/dev"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.16.3"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/m/dev/src/github.com/matthewmueller/hack/go.mod"
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/4f/tcxcr6_55v9bp38d8g4hjlf80000gn/T/go-build2413581743=/tmp/go-build -gno-record-gcc-switches -fno-common"

Any ideas? Thanks!

@jensneuse
Copy link
Owner

I can replicate the issue. Looking into it.

@jensneuse
Copy link
Owner

My current understanding is that the dylib needs to be signed. If I build it on my machine, it works. If I build it and download it (go get) it doesn't work.

@steebchen
Copy link

Running into the same issue on both Darwin (latest MacOS) and Ubuntu 18.04.4. I might build it myself to explore later

@Jolg42
Copy link

Jolg42 commented May 31, 2021

This suggests that it could be Git-LFS related BlinkID/blinkid-ios#223

@jensneuse
Copy link
Owner

This suggests that it could be Git-LFS related BlinkID/blinkid-ios#223

I'll try removing git lfs. Thanks for the hint.

@jensneuse
Copy link
Owner

This suggests that it could be Git-LFS related BlinkID/blinkid-ios#223

It should work now, can you confirm?

@steebchen
Copy link

I can confirm it works on both Linux and MacOS.

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

4 participants