-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Cross compiling doesn't work #112
Comments
What are you cross compiling to? |
All of them. :) Goxc compiles to the craziest platforms. But none of them succeed at the moment. |
Did you ever find a solution to this? |
I have had some luck with:
This specifies 'build constraints'. And yielded binaries for the three platforms. I'm unsure why constraining the platforms works since an unconstrained builds builds for these platforms as well. The bug seems more |
The cross compilation only fails for these architectures.
The error is always this: |
I just ran into problems trying to compile for dragonfly, I think it's from terminal_notwindows only explicitly listing "// +build linux darwin freebsd openbsd". I think it might be possible to fix it just by adding the remaining OSes to this list. https://github.com/Sirupsen/logrus/blob/master/terminal_notwindows.go |
@cgag mind doing that? :) |
I'll give it a shot at some point soon. If anyone else wants to do it, feel free to preempt me. |
This issue has been pretty inactive since several years. If some cross-compiling issue accurs again, I suggest create a dedicated issue for the specific os/arch tuple. |
I'm using goxc to cross compile my project. Doing so now results in:
This error is repeated for every platform.
I'm using c6a969a and Go 1.4 on Ubuntu 14.04.
Running
goxc
in theexamples/basic
directory is enough to reproduce the problem. I have rangoxc -t
of course and I know this worked previous to introducing logrus.The text was updated successfully, but these errors were encountered: