Michał Górny via llvm-dev
2017-Jan-28 09:26 UTC
[llvm-dev] ABI breaking check magic breaks check_include_cxx_file() in CMake
Hi, I've just discovered that with LLVM 4.0, LightSpark suddenly fails to find all LLVM include files. I've looked into it, and it seems that CMake is doing the very smart thing of attempting to link the test applications using the tested includes, and this fails with: /usr/bin/c++ CMakeFiles/cmTC_cd252.dir/CheckIncludeFile.cxx.o -o cmTC_cd252 -rdynamic CMakeFiles/cmTC_cd252.dir/CheckIncludeFile.cxx.o:(.data+0x0): undefined reference to `llvm::DisableABIBreakingChecks' collect2: error: ld returned 1 exit status I've reported this upstream at [1]. However, do you have any idea how we could work around the problem on our end before CMake is fixed and all users upgrade it? [1]:https://gitlab.kitware.com/cmake/cmake/issues/16606 -- Best regards, Michał Górny <http://dev.gentoo.org/~mgorny/> -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 963 bytes Desc: OpenPGP digital signature URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170128/0a3e72e3/attachment.sig>
Mehdi Amini via llvm-dev
2017-Jan-28 19:57 UTC
[llvm-dev] ABI breaking check magic breaks check_include_cxx_file() in CMake
Hi,> On Jan 28, 2017, at 1:26 AM, Michał Górny via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > Hi, > > I've just discovered that with LLVM 4.0, LightSpark suddenly fails to > find all LLVM include files. I've looked into it, and it seems that > CMake is doing the very smart thing of attempting to link the test > applications using the tested includes, and this fails with: > > /usr/bin/c++ CMakeFiles/cmTC_cd252.dir/CheckIncludeFile.cxx.o -o cmTC_cd252 -rdynamic > CMakeFiles/cmTC_cd252.dir/CheckIncludeFile.cxx.o:(.data+0x0): undefined reference to `llvm::DisableABIBreakingChecks' > collect2: error: ld returned 1 exit status > > I've reported this upstream at [1]. However, do you have any idea how > we could work around the problem on our end before CMake is fixed > and all users upgrade it?You can build LLVM with -DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=OFF — Mehdi> > [1]:https://gitlab.kitware.com/cmake/cmake/issues/16606 > > -- > Best regards, > Michał Górny > <http://dev.gentoo.org/~mgorny/> > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev