You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
I think this is LLVMgold's bug. It is easy to deduplicate given filenames, but doing it is a bit odd from the linker's perspective, as a user explicitly pass the same file twice to the linker, and the most straightforward for the linker to do in that situation is just process them normally. In other words, the plugin should be prepared for the situation in which the same file is given more than once.
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.
The text was updated successfully, but these errors were encountered: