Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 718824 - dev-util/intel-graphics-compiler undefined reference to llvm::Value::dump() const
Summary: dev-util/intel-graphics-compiler undefined reference to llvm::Value::dump() c...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Marek Szuba
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-22 07:09 UTC by David Carlos Manuelda
Modified: 2020-04-26 21:27 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log (build.log.bz2,26.19 KB, application/x-bzip)
2020-04-22 07:13 UTC, David Carlos Manuelda
Details
emerge --info (emergeinfo.txt,18.55 KB, text/plain)
2020-04-25 23:07 UTC, David Carlos Manuelda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Carlos Manuelda 2020-04-22 07:09:08 UTC
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
Comment 1 David Carlos Manuelda 2020-04-22 07:13:40 UTC
Created attachment 634054 [details]
Build log
Comment 2 David Carlos Manuelda 2020-04-22 07:14:56 UTC
Maybe CC LLVM maintainers as the fix seems to belong there?
Comment 3 Jonas Stein gentoo-dev 2020-04-25 22:38:07 UTC
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
Comment 4 David Carlos Manuelda 2020-04-25 23:07:12 UTC
Created attachment 634568 [details]
emerge --info
Comment 5 Marek Szuba archtester gentoo-dev 2020-04-26 21:10:23 UTC
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.
Comment 6 Larry the Git Cow gentoo-dev 2020-04-26 21:27:28 UTC
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(+)