Skip to content

cargo {run,test} --all-features fails on Arch and Fedora due to LLVM linking problems #500

@kkysen

Description

@kkysen

On Arch and Fedora, cargo run --all-features (or cargo build --all-features and then using c2rust transpile) and cargo test --all-features crash:

Arch:

     Running unittests (target/release/deps/c2rust_ast_exporter-08a638edb21ed379)
: CommandLine Error: Option 'openmp-ir-builder-optimistic-attributes' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine options
error: test failed, to rerun pass '-p c2rust-ast-exporter --lib'

Fedora:

     Running unittests (target/release/deps/c2rust_ast_exporter-08a638edb21ed379)
: CommandLine Error: Option 'help-list' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine options
error: test failed, to rerun pass '-p c2rust-ast-exporter --lib'

It appears this may be due to linking multiple or the wrong version(s) of LLVM on these platforms.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions