Skip to content

powerpc32: Expected no forward declarations! LLVM ERROR: Broken function found, compilation aborted! #41253

@tonychain

Description

@tonychain
$ rustc --version
rustc 1.18.0-nightly (c58c928e6 2017-04-11)
$ cat /proc/cpuinfo
processor	: 0
cpu		: 7447A, altivec supported
clock		: 1499.999994MHz
revision	: 1.5 (pvr 8003 0105)

(that's a G4)

Here's an example of the error compiling rustc-serialize, but really it appears to be almost any crate. I've seen one crate (fake-simd) compile, but encounter this error on almost any others.

   Compiling rustc-serialize v0.3.23
     Running `rustc --crate-name rustc_serialize /home/tony/.cargo/registry/src/github.com-eae4ba8cbf2ce1c7/rustc-serialize-0.3.23/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=77e9450ddf5d5cb1 -C extra-filename=-77e9450ddf5d5cb1 --out-dir /home/tony/src/test/rustseemodule/target/debug/deps -L dependency=/home/tony/src/test/rustseemodule/target/debug/deps --cap-lints allow`
Expected no forward declarations!
!2477 = <temporary!> !{}
LLVM ERROR: Broken function found, compilation aborted!
error: Could not compile `rustc-serialize`.

Caused by:
  process didn't exit successfully: `rustc --crate-name rustc_serialize /home/tony/.cargo/registry/src/github.com-eae4ba8cbf2ce1c7/rustc-serialize-0.3.23/src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=77e9450ddf5d5cb1 -C extra-filename=-77e9450ddf5d5cb1 --out-dir /home/tony/src/test/rustseemodule/target/debug/deps -L dependency=/home/tony/src/test/rustseemodule/target/debug/deps --cap-lints allow` (exit code: 1)

Sorry that's not a lot to go on, but I'm happy to provide any additional information you need to debug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-bugCategory: This is a bug.O-PowerPCTarget: PowerPC processors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions