When building version 1.0.3445 I encountered build errors related to undefined reference to llvm::Value::dump() const (will attach full log) Looking over the internet I discovered that LLVM needs to be built either with debug enabled, either with -DLLVM_ENABLE_DUMP=ON enabled (the later is prefered as I prefer to avoid enabling unneeded debug) [1] and happened also to another software with same fix proposed [2] [1] https://llvm.org/doxygen/Compiler_8h_source.html#l00483 [2] https://github.com/Microsoft/llvm-mctoll/issues/18 [2] Reproducible: Always
Created attachment 634054 [details] Build log
Maybe CC LLVM maintainers as the fix seems to belong there?
Thank you for the report. We need to have all information at hand before ticket assignment. That is why I ask you to * paste the emerge info as described on https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket
Created attachment 634568 [details] emerge --info
This seems to be related to the fact that since the Gentoo commit 95577dd5076a8e9864e82879fd3af97cf63fcfe9 on 2020-03-29, cmake.eclass no longer defines NDEBUG. The lack of this definition is not the only trigger for the error in question - today I rebuilt the whole NEO stack on three different systems, including starting with a clean stage 3, and succeeded in all three cases - but to be on the safe side, starting with version 1.0.3826 IGC ebuilds will append -DNDEBUG to preprocessor flags unless USE=debug is set. Let us know if it helps.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2576167aba0418edfc0dd7d5d891025cb74ed959 commit 2576167aba0418edfc0dd7d5d891025cb74ed959 Author: Marek Szuba <marecki@gentoo.org> AuthorDate: 2020-04-26 20:55:01 +0000 Commit: Marek Szuba <marecki@gentoo.org> CommitDate: 2020-04-26 21:24:49 +0000 dev-util/intel-graphics-compiler: bump to 1.0.3826 Moreover, src_configure() now explicitly appends -DNDEBUG to CPPFLAGS - since commit 95577dd5076a8e9864e82879fd3af97cf63fcfe9 cmake.eclass doesn't do it any more and in IGC this definition does considerably more than just disable asserts. Bug: https://bugs.gentoo.org/718824 Signed-off-by: Marek Szuba <marecki@gentoo.org> dev-util/intel-graphics-compiler/Manifest | 1 + .../intel-graphics-compiler-1.0.3826.ebuild | 51 ++++++++++++++++++++++ 2 files changed, 52 insertions(+)