When building 32-bit llvm-16.0.6 with clang/llvm-17.0.2 on a 64-bit system. ld.lld segmentation faults with the error message:
MCInst.h:70: unsigned int llvm::MCOperand::getReg() const: Assertion `isReg() && "This is not a register operand!"' failed.
When building 32-bit llvm-16.0.6 with clang/llvm-17.0.2 on a 64-bit system. ld.lld segmentation faults with the error message:
MCInst.h:70: unsigned int llvm::MCOperand::getReg() const: Assertion `isReg() && "This is not a register operand!"' failed.
Full stack trace:
Tarball with libraries and commands: https://drive.google.com/file/d/1gwG-XQjmtJjOawqvKkcWbGgYZCR3HIv_/view?usp=drive_link
Including Gentoo emerge --info output as it usually contains useful information:
This was originally reported to Gentoo. Gentoo bug ID 914531