Displaying 1 result from an estimated 1 matches for "generatemodulemap".
2017 Sep 05
2
[ThinLTO] static library failure with object files with the same name
...compiled with
`-flto=thin` (compiled with LDC, not clang, but that shouldn't matter).
When linking to that static library, I get the error:
Assertion failed: (ModuleMap.find(ModuleBuffer.getBufferIdentifier()) ==
ModuleMap.end() && "Expect unique Buffer Identifier"), function
generateModuleMap, file ../lib/LTO/ThinLTOCodeGenerator.cpp, line 138.
The error occurs because the buffer identifier uses the filename of the
objects inside the archive, and those are identical for the two files with
different source path.
This problem appears to be fixed for LLD here:
https://reviews.llvm.org/D2...