sgundapa at codeaurora.org
2014-Jun-30 19:10 UTC
[LLVMdev] LLVMgold.so in windows LLVM builds
I tried building it on windows with some CMake changes. But unfortunatelym my clang crashes when it tries to access the LLVMgold (not able to open it). I have CCed Rafeal and Nakamura who might know why gold plugin in not supported on Windows platforms. --Sumanth G> Hi, > > On 14 June 2014 00:26, <sgundapa at codeaurora.org> wrote: >> I am trying to build LLVMgold.so on windows. >> I came across this piece of code which includes âgoldâ source >> directory in >> tools/CMakeLists.txt > > It seems to date from the original gold import in 2011, so it's > probably just from being careful. > > Disabling the check is worth a try, though I think even the binutils > Windows linkers use something other than Linux's ELF. Theoretically, > it has a reasonable chance of working anyway, but you never know > whether we've smuggled something platform-specific in there. > > Remember to also specify LLVM_BINUTILS_INCDIR! Took me ages to work > out why gold suddenly stopped being built last time. > > Cheers. > > Tim. >
Resending with fixed email addresses.... On Mon, Jun 30, 2014 at 12:10 PM, <sgundapa at codeaurora.org> wrote:> I tried building it on windows with some CMake changes. > But unfortunatelym my clang crashes when it tries to access the LLVMgold(not able to open it).>Why is clang loading LLVMgold.dll? I thought it's supposed to be loaded by gold. I don't think gold even produces COFF. Are you trying to produce ELF on Windows?> I have CCed Rafeal and Nakamura who might know why gold plugin in not > supported on Windows platforms. >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140630/4bc4f86d/attachment.html>
Rafael Avila de Espindola
2014-Jul-01 16:14 UTC
[LLVMdev] LLVMgold.so in windows LLVM builds
> Why is clang loading LLVMgold.dll? I thought it's supposed to be loaded by gold. > > I don't think gold even produces COFF. Are you trying to produce ELF on Windows? >Gold is elf only but BFD ld supports the same plugins these days. I have no idea if the plugin infrastructure works on windows or not, but it could be made to work since all it needs is to find a single symbol in the plugin. Cheers, Rafael -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140701/dae1b267/attachment.html>
Seemingly Similar Threads
- [LLVMdev] LLVMgold.so in windows LLVM builds
- [LLVMdev] LLVMgold.so in windows LLVM builds
- [llvm-toolchain v3.8.1] LTO: Linking clang hangs with ld.gold and LLVMgold.so plugin
- [llvm-toolchain v3.8.1] LTO: Linking clang hangs with ld.gold and LLVMgold.so plugin
- [llvm-toolchain v3.8.1] LTO: Linking clang hangs with ld.gold and LLVMgold.so plugin