Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
pjaaskel opened this issue Apr 16, 2025 · 0 comments
Labels
RISC-V Issues related to the RISC-V support

Comments

@pjaaskel
Copy link
Contributor

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*>)'

pjaaskel added a commit that referenced this issue Apr 17, 2025
...using --enable-riscv in configure. Disabled by default
until we test it a bit more and #281 is fixed.
@pjaaskel pjaaskel added the RISC-V Issues related to the RISC-V support label Apr 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RISC-V Issues related to the RISC-V support
Projects
None yet
Development

No branches or pull requests

1 participant