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 error when building Dockerfile #72

Open
moritzraho opened this issue Oct 19, 2018 · 1 comment
Open

GO error when building Dockerfile #72

moritzraho opened this issue Oct 19, 2018 · 1 comment

Comments

@moritzraho
Copy link

I get this error when running make docker

go get github.com/tools/godep
godep: [WARNING]: godep should only be used inside a valid go package directory and
godep: [WARNING]: may not function correctly. You are probably outside of your $GOPATH.
godep: [WARNING]:	Current Directory: /tmp/go
godep: [WARNING]:	$GOPATH: /tmp/go/vendor:/tmp/go-src
godep: WARNING: Godep workspaces (./Godeps/_workspace) are deprecated and support for them will be removed when go1.8 is released.
godep: WARNING: Go version (go1.11) & $GO15VENDOREXPERIMENT= wants to enable the vendor experiment, but disabling because a Godep workspace (Godeps/_workspace) exists
# _/tmp/go
/usr/lib/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
/tmp/go-link-977644414/go.o:(.data+0x8): undefined reference to `x_cgo_callers'
/tmp/go-link-977644414/go.o:(.data+0x10): undefined reference to `x_cgo_init'
/tmp/go-link-977644414/go.o:(.data+0x18): undefined reference to `x_cgo_mmap'
/tmp/go-link-977644414/go.o:(.data+0x20): undefined reference to `x_cgo_munmap'
/tmp/go-link-977644414/go.o:(.data+0x28): undefined reference to `x_cgo_notify_runtime_init_done'
/tmp/go-link-977644414/go.o:(.data+0x30): undefined reference to `x_cgo_sigaction'
/tmp/go-link-977644414/go.o:(.data+0x38): undefined reference to `x_cgo_thread_start'
/tmp/go-link-977644414/go.o:(.data+0x160): undefined reference to `x_cgo_setenv'
/tmp/go-link-977644414/go.o:(.data+0x168): undefined reference to `x_cgo_unsetenv'
/tmp/go-link-977644414/go.o:(.data+0x170): undefined reference to `_cgo_yield'
collect2: error: ld returned 1 exit status

godep: go exit status 2
moritzraho added a commit to moritzraho/apigateway that referenced this issue Oct 25, 2018
https://justi.cz/security/2018/09/13/alpine-apk-rce.html
https://alpinelinux.org/posts/Alpine-3.8.1-released.html

Could not build/test because of adobe-apiplatform#72 if someone could look at this issue would be great, I am not sure how to solve this as I have no experience with GO
@moritzraho
Copy link
Author

Fixed in #74

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