Skip to content

RISC-V: Likely mixup with headers and libraries used from two different LLVM in the system #281

@pjaaskel

Description

@pjaaskel

It manifests as linkage time errors like this when building the newlib's default RISC-V plugin. A snippet from the huge error log:

ata*>)'
/usr/bin/ld: RISCVISelLowering.cpp:(.text+0x21e8a): undefined reference to `llvm::MetadataTracking::retrack(void*, llvm::Metadata&, void*)'
/usr/bin/ld: RISCVISelLowering.cpp:(.text+0x21f2a): undefined reference to `llvm::MachineInstr::addOperand(llvm::MachineFunction&, llvm::MachineOperand const&)'
/usr/bin/ld: RISCVISelLowering.cpp:(.text+0x21f6a): undefined reference to `llvm::MachineInstr::addOperand(llvm::MachineFunction&, llvm::MachineOperand const&)'
/usr/bin/ld: RISCVISelLowering.cpp:(.text+0x21f81): undefined reference to `llvm::MetadataTracking::untrack(void*, llvm::Metadata&)'
/usr/bin/ld: RISCVISelLowering.cpp:(.text+0x21f98): undefined reference to `llvm::MetadataTracking::untrack(void*, llvm::Metadata&)'
/usr/bin/ld: RISCVISelLowering.cpp:(.text+0x21fc3): undefined reference to `llvm::MachineRegisterInfo::createVirtualRegister(llvm::TargetRegisterClass const*, llvm::StringRef)'
/usr/bin/ld: RISCVISelLowering.cpp:(.text+0x22006): undefined reference to `llvm::MetadataTracking::track(void*, llvm::Metadata&, llvm::PointerUnion<llvm::MetadataAsValue*, llvm::Metadata*>)'

Metadata

Metadata

Assignees

No one assigned

    Labels

    RISC-VIssues related to the RISC-V support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions