Skip to content

Compiling Rust on PPC Linux error building proc-macro2 #84142

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

Closed
mzryz opened this issue Apr 12, 2021 · 6 comments
Closed

Compiling Rust on PPC Linux error building proc-macro2 #84142

mzryz opened this issue Apr 12, 2021 · 6 comments
Labels
I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics. O-PowerPC Target: PowerPC processors

Comments

@mzryz
Copy link

mzryz commented Apr 12, 2021

On Lubuntu 12 PPC
Kernel 3.2.0-126-powerpc-smp
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3

Advice much appreciated.

Compiling proc-macro2 v1.0.24
error: could not compile `proc-macro2`

Caused by:
  process didn't exit successfully: `/home/me/rust/build/powerpc-unknown-linux-gnu/stage0/bin/rustc --crate-name build_script_build --edition=2018 /home/me/.cargo/registry/src/github.com-b420f105fcaca6de/proc-macro2-1.0.24/build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="proc-macro"' -C metadata=6dced1cd75b14157 -C extra-filename=-6dced1cd75b14157 --out-dir /home/me/rust/build/bootstrap/debug/build/proc-macro2-6dced1cd75b14157 -L dependency=/home/me/rust/build/bootstrap/debug/deps --cap-lints allow -Cdebuginfo=2 -Wrust_2018_idioms -Wunused_lifetimes -Dwarnings` (signal: 4, SIGILL: illegal instruction)
failed to run: /home/me/rust/build/powerpc-unknown-linux-gnu/stage0/bin/cargo build --manifest-path /home/me/rust/src/bootstrap/Cargo.toml
Build completed unsuccessfully in 0:04:00 
@Aaron1011
Copy link
Member

@mzryz: Can you provide a backtrace from the core dump (assuming one was generated)?

@nagisa nagisa added O-PowerPC Target: PowerPC processors I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics. labels Apr 12, 2021
@mzryz
Copy link
Author

mzryz commented Apr 13, 2021

@mzryz: Can you provide a backtrace from the core dump (assuming one was generated)?

Hi Aaron, for some reason my system isn't providing a core dump. It's a sysv lubuntu. I made sure apport and gdb are installed and enabled. No core inside the build dir or in /proc/kernel etc. Not sure why.

@glaubitz
Copy link
Contributor

Most likely the same as #81334 (due to the SIGILL).

Also, you might want to update to a more modern Linux distribution for 32-bit PowerPC: https://cdimage.debian.org/cdimage/ports/snapshots/2021-04-17/

@glaubitz
Copy link
Contributor

Regression was introduced by 0328e69

See #81334

@mzryz
Copy link
Author

mzryz commented Sep 29, 2021

closing issue as do not have the system anymore.

@mzryz mzryz closed this as completed Sep 29, 2021
@glaubitz
Copy link
Contributor

closing issue as do not have the system anymore.

That's okay, the issue has been fixed in the meantime. #85807 ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics. O-PowerPC Target: PowerPC processors
Projects
None yet
Development

No branches or pull requests

4 participants