Skip to content

error: unrecognized command-line option "-fforce-enable-int128" #6

Open
@lrettig

Description

@lrettig

I get this error when the Rust toolchain tries to compile the troublesome compiler-rt LLVM package using the RISC-V GNU toolchain gcc (riscv64-unknown-elf-gcc). It looks like gcc doesn't recognize this flag; it's a clang flag. I'm not sure why LLVM insists on passing it to gcc. And I can't find a way to disable it without patching LLVM.

For now the patch works fine, but it would be nice to remove this. Maybe we can switch to clang, but the pre-packaged RISC-V toolchains that we're using only include gcc. Some possibly useful resources:

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions