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

Can't build for OS X on Travis #26

Closed
saulshanabrook opened this issue Jun 30, 2015 · 2 comments
Closed

Can't build for OS X on Travis #26

saulshanabrook opened this issue Jun 30, 2015 · 2 comments

Comments

@saulshanabrook
Copy link

First off, thanks for the awesome library :)

I seem to be having a problem building my go app (which imports this library) on travis for darwin/amd64: https://travis-ci.org/lucibus/subicul/builds/69061820#L213-L214

However, when I try to build for that locally on my mac it works fine. Is it possible to build this for darwin when one is not on a mac?

@tarm
Copy link
Owner

tarm commented Jul 1, 2015

I looks like you are cross compiling from linux to OSX?

I'm not surprised that does not work. The OSX implementation uses cgo.

The windows implementation does not use cgo. Also there is a linux implementation that uses syscalls instead of cgo (see serial_linux.go in the directory and look at the build tags at the top of the file).

You could probably make an OSX implementation that does not use CGO and send a PR.

Thanks,
Tarm

@saulshanabrook
Copy link
Author

Thanks for the response. Yeah this is my first time compiling go, so I realized that it was the cgo tripping it up. Sounds good.

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

2 participants