-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
can not compile in release mode in raspberry pi zero #69420
Comments
Does it compile if codegen-units is set to 1? Previously this helped in #62896 |
yes it is now compiling successfully in release mode. |
nice. |
Ran into this issue attempting to compile https://github.com/ClementTsang/bottom on my Pi Zero W, segfaults even with |
I was able to reproduce this on my amd64 Arch laptop using https://github.com/fkrull/docker-qemu-user-static, and running Unfortunately, the only information I could get from the core file was this:
I'm not 100% certain that that frame is correct - however, it makes sense, since the crash is occurring when LLVM is invoked. |
This is presumably a regression, right? It seems like a program this simple should have compiled successfully at some point? Tagging with E-needs-bisect based on that assumption. |
triage as P-high, and also leave it nominated in hopes of discussing at T-compiler meeting. |
@rustbot ping icebreakers-llvm |
Hey LLVM ICE-breakers! This bug has been identified as a good cc @comex @DutchGhost @hanna-kruppe @hdhoang @heyrutvik @JOE1994 @jryans @mmilenko @nagisa @nikic @Noah-Kennedy @SiavoshZarrasvand @spastorino @vertexclique @vgxbj |
After revisiting this, leaving as |
@sk-Prime can you try this out and if it works provide a PR?, thanks!. |
My system is fully updated with gcc 8.3.0 (so doesn't work on armv6) |
How did you install your Rust compiler? If you got it through rustup then it was not built with GCC 8. |
@lopsided98 yes, using rustup, the standard method. |
See #70414 |
For testing purpose i created simplest hello world program using,
cargo new hello_world
, in debug modecargo build
it is compiling without any issue. however in release modecargo build --release
it can not compile the program.rustc main.rs
can compile the program too butrustc -O main.rs
produces similar error.I expected to see this happen: compile
Meta
rustc --version --verbose
:Error
The text was updated successfully, but these errors were encountered: