Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 738934 - dev-util/intel-graphics-compiler-1.0.4111 cannot be built with sys-devel/clang:10
Summary: dev-util/intel-graphics-compiler-1.0.4111 cannot be built with sys-devel/clan...
Status: RESOLVED UPSTREAM
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-08-25 12:40 UTC by Agostino Sarubbo
Modified: 2020-09-20 14:34 UTC (History)
0 users

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


Attachments
build.log (build.log,231.98 KB, text/plain)
2020-08-25 12:40 UTC, Agostino Sarubbo
Details
1-CMakeOutput.log (1-CMakeOutput.log,32.97 KB, text/plain)
2020-08-25 12:40 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2020-08-25 12:40:25 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-util/intel-graphics-compiler-1.0.4111 fails to compile.
Discovered on: amd64 (internal ref: tinderbox)

NOTE:
This machine uses a clang/LLVM toolchain.
If you think that this issue is strictly related to clang/LLVM please block bug 408963. If you think that this issue is strictly related to the LLD linker, please block bug 731004.
This machine uses also GLIBC-2.32. If you think that this issue is strictly related to GLIBC please block bug 736174.
Comment 1 Agostino Sarubbo gentoo-dev 2020-08-25 12:40:28 UTC
Created attachment 656590 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2020-08-25 12:40:29 UTC
Created attachment 656592 [details]
1-CMakeOutput.log

1-CMakeOutput.log
Comment 3 Marek Szuba archtester gentoo-dev 2020-08-25 13:45:06 UTC
This appears to be a known issue, although interestingly enough the FreeBSD people who reported it said all 10.0 versions are affected and I have never (including just a moment ago) had any problems with 10.0.0 here.

The upstream issue remains open and even if any newer IGC versions were not affected, they all require mem2reg functionality in SPIRV-LLVM-Translator which currently is not included in any official releases of the latter (and I have yet to see a VCS snapshot including this feature pass all tests). Therefore, looks like we'll have to cap supported LLVM versions for now.
Comment 4 Larry the Git Cow gentoo-dev 2020-08-25 14:10:12 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f3b28ac432fc57cb3b82678279359f8d5d2ae5ca

commit f3b28ac432fc57cb3b82678279359f8d5d2ae5ca
Author:     Marek Szuba <marecki@gentoo.org>
AuthorDate: 2020-08-25 13:51:40 +0000
Commit:     Marek Szuba <marecki@gentoo.org>
CommitDate: 2020-08-25 14:10:04 +0000

    dev-util/intel-graphics-compiler: block llvm-10.0.1
    
    Causes compilation errors.
    
    Closes: https://bugs.gentoo.org/738934
    Signed-off-by: Marek Szuba <marecki@gentoo.org>

 .../intel-graphics-compiler/intel-graphics-compiler-1.0.4111.ebuild   | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Comment 5 Jan Vesely 2020-09-20 06:57:42 UTC
I don't think the resolution to this is correct. Both the OP, and the linked github issue specifically mention _building_ with clang-10 rather than just linking to it.

igc-1.0.4111 works OK with llvm/clang-10.0.1 when gcc is used as system compiler.
Comment 6 Larry the Git Cow gentoo-dev 2020-09-20 14:34:07 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6cbc8a7b3d4ef1ff93eaedfb2ea1b77acf002ec5

commit 6cbc8a7b3d4ef1ff93eaedfb2ea1b77acf002ec5
Author:     Marek Szuba <marecki@gentoo.org>
AuthorDate: 2020-09-20 14:25:32 +0000
Commit:     Marek Szuba <marecki@gentoo.org>
CommitDate: 2020-09-20 14:33:59 +0000

    dev-util/intel-graphics-compiler-1.0.4111: only block llvm-10 in TC
    
    Turns out this version is not going anywhere any time soon, in fact
    there is a stablereq for it now - so let's handle this properly.
    Specifically, pkg_pretend() now dies if the current compiler is
    clang-10+ (I think it is safe to assume that if 10 does not work nor
    will the newer versions).
    
    Bug: https://bugs.gentoo.org/738934
    Signed-off-by: Marek Szuba <marecki@gentoo.org>

 .../intel-graphics-compiler-1.0.4111.ebuild                  | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)