Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 670628 - =dev-lang/ispc-9999 multiple fails to build with gcc, llvm:6
Summary: =dev-lang/ispc-9999 multiple fails to build with gcc, llvm:6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Christoph Junghans (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2018-11-07 19:49 UTC by Bernd
Modified: 2020-07-29 16:52 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,12.51 KB, text/plain)
2018-11-07 19:49 UTC, Bernd
Details
ispc-9999.ebuild.diff (ispc-9999.ebuild.diff,2.00 KB, text/plain)
2018-11-07 19:50 UTC, Bernd
Details
ispc-9999:20181104-201947.log (ispc-9999:20181104-201947.log,27.49 KB, text/plain)
2018-11-07 19:52 UTC, Bernd
Details
ispc-9999:20181105-203004.log (ispc-9999:20181105-203004.log,106.43 KB, text/plain)
2018-11-07 19:53 UTC, Bernd
Details
ispc-9999-enum-type.patch (ispc-9999-enum-type.patch,589 bytes, text/plain)
2018-11-07 19:54 UTC, Bernd
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd 2018-11-07 19:49:19 UTC
Created attachment 554444 [details]
emerge-info.txt

I tried to install =dev-lang/ispc-1.9.2, which failed with error reported in bug #652442 and bug #656632. Therefore, I was trying to use the live ebuild to install it, but first got a compile error on an invalid conversion from int to enum, which I could patch, but then it failed with a linker error with undefined references to llvm::{Value,Module}::dump.

Searching for this issue, I found a question on https://stackoverflow.com/questions/46367910/llvm-5-0-linking-error-with-llvmmoduledump# which states, this is due to llvm compiled in release mode. I then tried to compile llvm:6[debug], which didn't succeed.

After reporting the issue upstream at https://github.com/ispc/ispc/issues/1355 I tried using clang to compile the package, which didn't work out for clang:6, getting the very same linker error. Following their advice, I then installed clang:5[debug] and llvm:5[debug] which finished building, after adapting the ebuild to use them.



$ emerge -pqv =dev-lang/ispc-9999::gentoo
[ebuild   R   ] dev-lang/ispc-9999 [9999] USE="examples"
Comment 1 Bernd 2018-11-07 19:50:08 UTC
Created attachment 554446 [details]
ispc-9999.ebuild.diff

Diff of my changes to ispc-9999.ebuild to use clang:5/llvm:5
Comment 2 Bernd 2018-11-07 19:52:00 UTC
Created attachment 554448 [details]
ispc-9999:20181104-201947.log

Build log showing gcc compiler error: invalid conversion from int to enum
Comment 3 Bernd 2018-11-07 19:53:03 UTC
Created attachment 554450 [details]
ispc-9999:20181105-203004.log

Build log showing the llvm-6 linker error.
Comment 4 Bernd 2018-11-07 19:54:58 UTC
Created attachment 554452 [details]
ispc-9999-enum-type.patch

Patch to resolve gcc compile error.
Comment 5 Bernd 2018-11-17 07:37:23 UTC
Upstream has included https://bugs.gentoo.org/attachment.cgi?id=554452 into the sources. The package compiles fine against gcc now.
After having successfully installed llvm:6[debug] and clang:6[debug] it also compiles against them.

So this bug can be closed.
Comment 6 Larry the Git Cow gentoo-dev 2020-07-29 16:52:50 UTC
The bug has been closed via the following commit(s):

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

commit 36d443c5e4f5e8a370b30b81107dc806b13eeec7
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2020-07-29 16:50:02 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2020-07-29 16:52:40 +0000

    dev-lang/ispc: Remove 1.9.2, [QA] drop utterly duplicate patches
    
    Closes: https://bugs.gentoo.org/670628
    Closes: https://bugs.gentoo.org/667624
    Closes: https://bugs.gentoo.org/652442
    Package-Manager: Portage-3.0.1, Repoman-2.3.23
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 dev-lang/ispc/Manifest                             |   1 -
 .../files/ispc-9999-cmake-gentoo-release.patch     |  13 ---
 dev-lang/ispc/files/ispc-9999-llvm-10.patch        | 106 ---------------------
 dev-lang/ispc/files/ispc-9999-werror.patch         |  13 ---
 dev-lang/ispc/ispc-1.9.2.ebuild                    |  52 ----------
 dev-lang/ispc/ispc-9999.ebuild                     |   6 +-
 6 files changed, 3 insertions(+), 188 deletions(-)

Additionally, it has been referenced in the following commit(s):

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

commit 3017ae7da37129bb873ad5b952c46f178acb65ad
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2020-07-29 16:51:43 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2020-07-29 16:52:41 +0000

    dev-lang/ispc: [QA] Fix unquoted variable
    
    Bug: https://bugs.gentoo.org/670628
    Package-Manager: Portage-3.0.1, Repoman-2.3.23
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 dev-lang/ispc/ispc-1.13.0.ebuild | 4 ++--
 dev-lang/ispc/ispc-9999.ebuild   | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)