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

build constraints exclude all Go files in /moovweb/gokogiri/help, failed to build with arch=386 #96

Open
oguzhantopcu opened this issue Feb 1, 2018 · 1 comment

Comments

@oguzhantopcu
Copy link

oguzhantopcu commented Feb 1, 2018

$ GOOS=windows GOARCH=386 go build -o anan
go build github.com/moovweb/gokogiri/help: build constraints exclude all Go files in /home/javier/go/src/github.com/moovweb/gokogiri/help
go build github.com/moovweb/gokogiri/xpath: build constraints exclude all Go files in /home/javier/go/src/github.com/moovweb/gokogiri/xpath

any thoughts?

@oguzhantopcu
Copy link
Author

oguzhantopcu commented Feb 1, 2018

Once I enabled CGO_ENABLED, I get this error. Is it some kind of gcc issue?

$ env CGO_ENABLED=1 GOOS=linux GOARCH=386 go build -o anan !(*_test).go
# runtime/cgo
In file included from _cgo_export.c:2:0:
/usr/include/stdlib.h:25:10: fatal error: bits/libc-header-start.h: No such file or directory
 #include <bits/libc-header-start.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

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