Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 816069 - dev-lang/ispc-1.16.0 - /.../module.cpp: error: F_None is not a member of llvm::sys::fs
Summary: dev-lang/ispc-1.16.0 - /.../module.cpp: error: F_None is not a member of llvm...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2021-10-03 14:55 UTC by Toralf Förster
Modified: 2021-10-20 04:14 UTC (History)
5 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.45 KB, text/plain)
2021-10-03 14:55 UTC, Toralf Förster
Details
dev-lang:ispc-1.16.0:20211003-144354.log (dev-lang:ispc-1.16.0:20211003-144354.log,113.31 KB, text/plain)
2021-10-03 14:55 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,471.36 KB, text/plain)
2021-10-03 14:55 UTC, Toralf Förster
Details
environment (environment,125.38 KB, text/plain)
2021-10-03 14:55 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,58.05 KB, application/x-bzip)
2021-10-03 14:55 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,4.57 KB, application/x-bzip)
2021-10-03 14:55 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,34.53 KB, application/x-bzip)
2021-10-03 14:55 UTC, Toralf Förster
Details
patch that fixes 1.16.0 for me (ispc-build.patch,1.20 KB, patch)
2021-10-10 08:58 UTC, Luke Schwager
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-10-03 14:55:19 UTC
/var/tmp/portage/dev-lang/ispc-1.16.0/work/ispc-1.16.0/src/module.cpp: In static member function ‘static bool ispc::Module::writeObjectFileOrAssembly(llvm::TargetMachine*, llvm::Module*, ispc::Module::OutputType, const char*)’:
/var/tmp/portage/dev-lang/ispc-1.16.0/work/ispc-1.16.0/src/module.cpp:1317:62: error: ‘F_None’ is not a member of ‘llvm::sys::fs’; did you mean ‘OF_None’?
 1317 |     llvm::sys::fs::OpenFlags flags = binary ? llvm::sys::fs::F_None : llvm::sys::fs::F_Text;
      |                                                              ^~~~~~
      |                                                              OF_None
/var/tmp/portage/dev-lang/ispc-1.16.0/work/ispc-1.16.0/src/module.cpp:1317:86: error: ‘F_Text’ is not a member of ‘llvm::sys::fs’; did you mean ‘OF_Text’?

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome-j4-20210926-150447

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.2.0 *
clang version 13.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/13/bin
/usr/lib/llvm/13
13.0.0
Python 3.9.7
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.55.0 *
The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:

  HEAD of ::gentoo
commit 9e2fcc74e73870cc8e6769fe38371bc376a26f5f
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Oct 3 14:06:26 2021 +0000

    2021-10-03 14:06:25 UTC

emerge -qpvO dev-lang/ispc
[ebuild  N    ] dev-lang/ispc-1.16.0  USE="-examples"
Comment 1 Toralf Förster gentoo-dev 2021-10-03 14:55:20 UTC
Created attachment 742716 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-10-03 14:55:21 UTC
Created attachment 742719 [details]
dev-lang:ispc-1.16.0:20211003-144354.log
Comment 3 Toralf Förster gentoo-dev 2021-10-03 14:55:23 UTC
Created attachment 742722 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2021-10-03 14:55:24 UTC
Created attachment 742725 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2021-10-03 14:55:25 UTC
Created attachment 742728 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-10-03 14:55:26 UTC
Created attachment 742731 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2021-10-03 14:55:27 UTC
Created attachment 742734 [details]
temp.tar.bz2
Comment 8 Kobboi 2021-10-07 21:00:27 UTC
Works fine with llvm:12, not with llvm:13. The ebuild already has LLVM_MAX_SLOT=12 but still llvm:13 is used when detected.
Comment 9 Kobboi 2021-10-07 21:16:03 UTC
1.16.1 is avaible upstream but exhibits the same problem. 9999 in the tree compiles fine though.
Comment 10 Luke Schwager 2021-10-10 08:58:08 UTC
Created attachment 744276 [details, diff]
patch that fixes 1.16.0 for me

this fixes module.cpp and opt.cpp with the changes from https://github.com/ispc/ispc/commit/8b5d0f26916e776bc3664e6a4dc68eff3a198d7a#diff-91eede7716565a700586788e3f9d285985bf5c449a366cdd3b28fc37c073a616
Comment 11 Larry the Git Cow gentoo-dev 2021-10-20 04:11:20 UTC
The bug has been closed via the following commit(s):

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

commit 1c70c859516a9b67cc46c2f075eff296592d00ef
Author:     Christophe Lermytte <gentoo@lermytte.be>
AuthorDate: 2021-10-08 11:12:40 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-10-20 04:11:09 +0000

    dev-lang/ispc: bump to 1.16.1 and fix llvm dependency
    
    Closes: https://bugs.gentoo.org/816069
    Signed-off-by: Christophe Lermytte <gentoo@lermytte.be>
    Closes: https://github.com/gentoo/gentoo/pull/22516
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-lang/ispc/Manifest           |  1 +
 dev-lang/ispc/ispc-1.16.1.ebuild | 78 ++++++++++++++++++++++++++++++++++++++++
 dev-lang/ispc/ispc-9999.ebuild   | 23 ++++++------
 3 files changed, 90 insertions(+), 12 deletions(-)