-
Notifications
You must be signed in to change notification settings - Fork 77
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 for target=arm...musl fails #35
Comments
configure.log reports
Now I tried compiling with
Is 1) a proper solution to compile the crate ? (I thought 'cargo build target=...' is sufficient ) |
Ok. My expectation was same as expresssed here rust-lang/cargo#4741 (comment) From discussion there I can see, currently it is still necessary to pass via environment variables proper information about compiler, include path, library path ... beside cargo's 'target=...' option So either "CC=arm-linux-gnueabihf-gcc" or "CROSS_COMPILE="arm-linux-gnueabihf-" are good to pick proper cross-compiler. I assume "CROSS_COMPILE=..." should be preferred ? And in case wrong header files are used I can fix it by using "CFLAGS=I..." (faced that issue here tailhook/vagga#482 (comment)) Before closing this thread it would be nice if someone can confirm if my understanding is correct now or point out where I'm still wrong. |
Hello and thanks for the report! Looks like you've found what's up though in the sense that it looks like you needed to configure the C compiler for the cross-compilation. I'd recommend using |
Thanks for your confirmation. |
I tried to x-compile on a x86_64 linux system
all are failing with error "Compiler error reporting is too harsh for ./configure (perhaps remove -Werror)", e.g.
Some additonal setup or parameters are needed for cross-compiling ?
The text was updated successfully, but these errors were encountered: