Skip to content

Unable to Build riscv-gnu-toolchain: libunwind Dependency Error #1623

@404allen404

Description

@404allen404

Hello,
I encountered an error while building the riscv-gnu-toochain using the following configuration:
./configure --prefix=$RISCV --enable-llvm --enable-linux --with-arch=rv64ima_zicsr --with-abi=lp64

The error message is as follows:
CMake Error at /home/yiteng/riscv-gnu-toolchain/llvm/libunwind/src/CMakeLists.txt:102 (message): Compiler doesn't support generation of unwind tables if exception support is disabled. Building libunwind DSO with runtime dependency on C++ ABI library is not supported.

image

It seems to be related to the dependency on the C++ ABI library for building libunwind. I am unsure how to resolve this issue.
Could you provide guidance on how to fix this error or suggest the correct configuration flags to avoid it?
Thank you in advance for your assistance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions