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 error #57

Open
mattetti opened this issue May 9, 2016 · 6 comments
Open

go get error #57

mattetti opened this issue May 9, 2016 · 6 comments

Comments

@mattetti
Copy link

mattetti commented May 9, 2016

Probably not a big deal but wanted to mention it

$ go get -u github.com/kidoman/embd/...
# github.com/kidoman/embd/host/generic
../../../github.com/kidoman/embd/host/generic/interrupt.go:50: undefined: syscall.EpollCreate1
../../../github.com/kidoman/embd/host/generic/interrupt.go:57: undefined: syscall.EpollEvent
../../../github.com/kidoman/embd/host/generic/interrupt.go:60: undefined: syscall.EpollWait
@kidoman
Copy link
Owner

kidoman commented May 9, 2016

Thanks for reporting this... will have a look

@mattetti
Copy link
Author

mattetti commented May 9, 2016

np, this issue seems to be due to the fact that the syscall doesn't exist on OS X so if one were to pull the package on that os, the error would occur. You might need to split the file into multiple files and use build tags.

@declanshanaghy
Copy link

declanshanaghy commented Nov 30, 2016

From as far as im seeing there's no option but to pull the host/generic package because host/rpi imports it.

How does the sample in the video shown here compile on OSX when the host/rpi package is imported? - http://embd.kidoman.io/

@pravipati
Copy link

@kidoman I was wondering if you've had a chance to look at this issue. Per @declanshanaghy's comment ☝️, I'd be curious to see how you were able to compile on OSX in the demo video. For now, I'm working on splitting my package up (one version for OS X and one for rpi).

@ripienaar
Copy link

GOOS=linux GOARCH=arm GOARM=5 go build use a dependency manager like deb or glide to get the code on the build env

@pwaterz
Copy link

pwaterz commented May 5, 2018

Another super awesome tool is https://github.com/goreleaser/goreleaser

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

6 participants