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

Fix/cross compile #9

Merged
merged 10 commits into from
Mar 7, 2020
Merged

Fix/cross compile #9

merged 10 commits into from
Mar 7, 2020

Conversation

eldesh
Copy link
Collaborator

@eldesh eldesh commented Mar 3, 2020

arm向けへのクロスビルドに失敗するようになっているので修正します。
ついでに CI ジョブも追加(closes #4)

x86_64/linux$ cargo build --target=arm-unknown-linux-gnueabihf
..
/usr/include/x86_64-linux-gnu/gnu/stubs.h:7:11: fatal error: 'gnu/stubs-32.h' file not found
/usr/include/x86_64-linux-gnu/gnu/stubs.h:7:11: fatal error: 'gnu/stubs-32.h' file not found, err: true
thread 'main' panicked at 'Unable to generate bindings: ()', src/libcore/result.rs:1188:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
bindgen seemed to generate #[derive(Debug)] for padding types
even if derive_debug is not specified.
s|TARGET_ARCH|TARGET|
@eldesh eldesh force-pushed the fix/cross-compile branch 2 times, most recently from a28968d to b47fd20 Compare March 4, 2020 07:42
@eldesh eldesh marked this pull request as ready for review March 4, 2020 08:54
@eldesh eldesh requested a review from KeenS March 4, 2020 09:02
Copy link

@KeenS KeenS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

よさそう。
念のため確認ですがrust 1.36.0を使っているのはminimum supported rust versionという理解であってますか?

@eldesh
Copy link
Collaborator Author

eldesh commented Mar 5, 2020

特にこのバージョンに指定する意味は無いですが、x86版のCIで使ってたのでarm版も合わせました。

@KeenS
Copy link

KeenS commented Mar 5, 2020

なら、stable使うようにしませんか?

@eldesh
Copy link
Collaborator Author

eldesh commented Mar 5, 2020

stableだとどれでビルド出来(る|した)のか分からなくないですか?

@KeenS
Copy link

KeenS commented Mar 6, 2020

では、stableとバージョン固定両方でテストしませんか?

@eldesh
Copy link
Collaborator Author

eldesh commented Mar 6, 2020

うううう。circleciの提供してるイメージは全部バージョン固定。。。
https://circleci.com/docs/2.0/circleci-images/#rust

@eldesh
Copy link
Collaborator Author

eldesh commented Mar 6, 2020

やりました @KeenS

Copy link

@KeenS KeenS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

しょっぱいけどやむなし

@eldesh eldesh merged commit c5295dd into master Mar 7, 2020
@eldesh eldesh mentioned this pull request Mar 8, 2020
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

Successfully merging this pull request may close these issues.

Add: cross compilation test
2 participants