ld.mold: /home/david/llvm/llvm/tools/gold/gold-plugin.cpp:1069: std::vector<std::pair<SmallString<128>, bool>> runLTO(): Assertion `ObjFilename.second' failed.
clang: error: unable to execute command: Aborted (core dumped)
clang: error: linker command failed due to signal (use -v to see invocation)
I'm not sure if the bug is in llvm's gold-plugin code or mold calls that plugin incorrectly or if clang's compiler driver calls mold incorrectly.
Given the following two translation units:
a.c:
b.c:
And compiling with
Causes a crash with
I'm not sure if the bug is in llvm's gold-plugin code or mold calls that plugin incorrectly or if clang's compiler driver calls mold incorrectly.