Skip to content

rustc 1.32 using system LLVM-7 crashes with: error: failed to load bc of "core.9adngr8s-cgu.0": Invalid record #57903

@Whissi

Description

@Whissi

On Gentoo Linux we have the same problem like reported in #57762, downstream bug: https://bugs.gentoo.org/675752

I now applied the two patches (llvm-mirror/llvm@da1fb72 and llvm-mirror/llvm@cc1f2a5) to our llvm-7 version but fd (https://github.com/sharkdp/fd) is still failing to build. New error is:

INFO 2019-01-25T18:55:20Z: rustc_codegen_llvm::back::lto: linking "core.9adngr8s-cgu.0"
error: failed to load bc of "core.9adngr8s-cgu.0": Invalid record

error: aborting due to previous error
[...]
Could not compile `fd-find`.), unknown: false, exit_code: 101 }
error: Could not compile `fd-find`.

Please see the attached verbose build.log.
build.log.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.A-linkageArea: linking into static, shared libraries and binariesO-linuxOperating system: Linux

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions