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

simpleiot can not cross compile for x86_64 #76

Open
kraj opened this issue Jun 25, 2020 · 1 comment
Open

simpleiot can not cross compile for x86_64 #76

kraj opened this issue Jun 25, 2020 · 1 comment

Comments

@kraj
Copy link
Contributor

kraj commented Jun 25, 2020

when compiling simpleiot for x86_64, it fails with below error

go run github.com/benbjohnson/genesis/cmd/genesis -C frontend/output -pkg frontend index.html elm.js main.js ble.js simple-iot-app-logo.png ports.js styles.css
+ return 0
+ return 0
+ GOARCH=amd64
+ go build -o siot cmd/siot/main.go
# net
../recipe-sysroot-native/usr/lib/go/src/net/cgo_linux.go:10:10: fatal error: netdb.h: No such file or directory
10 | #include <netdb.h>
|          ^~~~~~~~~
compilation terminated.
+ return 1
+ bb_exit_handler
+ ret=1
+ case $ret in
+ case $BASH_VERSION in
+ echo 'WARNING: ../temp/run.do_compile:1 exit 1 from '\''return 1'\'''
WARNING: ../temp/run.do_compile:1 exit 1 from 'return 1'
@kraj
Copy link
Contributor Author

kraj commented Jun 25, 2020

it seems its figuring out that it needs to compile C stuff and resorts to using internal compiler which mixes with native sysroot because both host and target are x86_64

kraj added a commit that referenced this issue Jun 25, 2020
Fixes Issue #76

Signed-off-by: Khem Raj <raj.khem@gmail.com>
kraj added a commit that referenced this issue Jun 26, 2020
Fixes Issue #76

Signed-off-by: Khem Raj <raj.khem@gmail.com>
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