Skip to content

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

Closed
@mzryz

Description

@mzryz

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.tiyicn.workers.dev-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 

Activity

Aaron1011

Aaron1011 commented on Apr 12, 2021

@Aaron1011
Member

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

added
O-PowerPCTarget: PowerPC processors
I-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
on Apr 12, 2021
mzryz

mzryz commented on Apr 13, 2021

@mzryz
Author

@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

glaubitz commented on May 27, 2021

@glaubitz
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

glaubitz commented on May 29, 2021

@glaubitz
Contributor

Regression was introduced by 0328e69

See #81334

mzryz

mzryz commented on Sep 29, 2021

@mzryz
Author

closing issue as do not have the system anymore.

glaubitz

glaubitz commented on Sep 29, 2021

@glaubitz
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.O-PowerPCTarget: PowerPC processors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @nagisa@Aaron1011@glaubitz@mzryz

        Issue actions

          Compiling Rust on PPC Linux error building proc-macro2 · Issue #84142 · rust-lang/rust