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

'-g' flag causes crash in PowerPC rustc for certain inputs. #31302

Closed
Mokosha opened this issue Jan 30, 2016 · 3 comments
Closed

'-g' flag causes crash in PowerPC rustc for certain inputs. #31302

Mokosha opened this issue Jan 30, 2016 · 3 comments
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ O-PowerPC Target: PowerPC processors

Comments

@Mokosha
Copy link
Contributor

Mokosha commented Jan 30, 2016

In particular, I'm experiencing the following behavior:

test.rs:

fn main() {
   println!("Hello, world!");
}

build.rs:

fn main() {
    println!("{}", 2 + 3);
}
[~/test]$ rustc --version
rustc 1.8.0-dev (53c2933d4 2016-01-29)
[~/test]$ rustc -o test test.rs -g
[~/test]$ rustc -o test build.rs -g
Expected no forward declarations!
!217 = <temporary!> !{}
LLVM ERROR: Broken function found, compilation aborted!
[~/test]$ rustc -o test build.rs
[~/test]$ ./test
5

I'm aware that PowerPC is not a "tier 1" platform, but any insight into why this might happen would be interesting. Given my experience, the learning curve for how debug symbols are added via '-g' is a bit steep.

@steveklabnik steveklabnik added the I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ label Feb 2, 2016
@sanxiyn sanxiyn added the O-PowerPC Target: PowerPC processors label Jan 10, 2017
@Mark-Simulacrum Mark-Simulacrum added the C-bug Category: This is a bug. label Jul 22, 2017
@steveklabnik
Copy link
Member

Is this still happening today?

@Mokosha
Copy link
Contributor Author

Mokosha commented Sep 26, 2018

I don't know I unfortunately donated my PPC machine after moving to a much smaller apartment in the city. 😕

@steveklabnik
Copy link
Member

Okay! Sorry to hear that :(

Since nobody else has commented, I'm going to close this issue. If anyone else sees this come up, please let me know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ O-PowerPC Target: PowerPC processors
Projects
None yet
Development

No branches or pull requests

4 participants