Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 798444 - dev-libs/ocl-icd-2.2.12-r4 fails to build (run_dummy_icd_gen.c:105:79: error: expected declaration specifiers before ‘CL_EXT_SUFFIX__VERSION_1_0_DEPRECATED’)
Summary: dev-libs/ocl-icd-2.2.12-r4 fails to build (run_dummy_icd_gen.c:105:79: error:...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-24 18:24 UTC by gayish_undulancy
Modified: 2021-06-26 10:08 UTC (History)
3 users (show)

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


Attachments
build.log (file_798444.txt,739.82 KB, text/plain)
2021-06-24 18:27 UTC, gayish_undulancy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gayish_undulancy 2021-06-24 18:24:54 UTC
emerge info
 ```
Portage 3.0.18 (python 3.8.10-final-0, default/linux/amd64/17.1, gcc-10.3.0, glibc-2.33, 5.12.2-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.12.2-gentoo-x86_64-AMD_Ryzen_5_1600_Six-Core_Processor-with-glibc2.2.5
KiB Mem:    16402436 total,   3154608 free
KiB Swap:    8388604 total,   8306304 free
Timestamp of repository gentoo: Wed, 23 Jun 2021 14:15:01 +0000
Head commit of repository gentoo: 9e97da391d88db64a24c1e0cdeadb53be6d7e57c
sh dash 0.5.11.3-r1
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
ccache version 4.3 [enabled]
app-shells/bash:          5.1_p8::gentoo
dev-lang/perl:            5.32.1::gentoo
dev-lang/python:          2.7.18_p10::gentoo, 3.8.10_p2::gentoo, 3.9.5_p2::gentoo
dev-lang/rust:            1.52.1::gentoo
dev-util/ccache:          4.3::gentoo
dev-util/cmake:           3.18.5::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.24::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.3-r1::gentoo
sys-devel/binutils:       2.35.2::gentoo
sys-devel/gcc:            10.3.0::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.12::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage/
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24

guru
    location: /var/lib/layman/guru
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/repo/proj/guru.git
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    sync-type: laymansync
    sync-uri: https://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

torbrowser
    location: /var/lib/layman/torbrowser
    sync-type: laymansync
    sync-uri: https://github.com/MeisterP/torbrowser-overlay.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=znver1 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=znver1 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 12 --load-average 12"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -march=znver1 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=znver1 -pipe"
GENTOO_MIRRORS="https://ftp.fau.de/gentoo https://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ https://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ https://ftp.halifax.rwth-aachen.de/gentoo/ https://ftp.tu-ilmenau.de/mirror/gentoo/ https://ftp.uni-hannover.de/gentoo/ https://packages.hs-regensburg.de/gentoo-distfiles/"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j12 -l12"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X acl amd64 berkdb bzip2 cli crypt dri elogind fortran gdbm iconv ipv6 libglvnd libtirpc luajit multilib ncurses nls nptl openmp pam pcre pulseaudio readline seccomp split-usr ssl tcpd unicode vaapi xattr zlib zsh-completion" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9 python2_7" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
```
emerge -pqv
```
[ebuild     U ] dev-libs/ocl-icd-2.2.12-r4 [2.2.12-r3] USE="khronos-headers" ABI_X86="32 (64) (-x32)"
```

Reproducible: Always

Steps to Reproduce:
emerge dev-libs/ocl-icd-2.2.12-r4
Comment 1 gayish_undulancy 2021-06-24 18:27:25 UTC
Created attachment 718878 [details]
build.log
Comment 2 Ionen Wolkens gentoo-dev 2021-06-26 05:32:29 UTC
For now, I recommend to either use ~testing ocl-icd-2.3.0 or switch to opencl-icd-loader (latter is a newer package that provides same functionality without ruby, I recommend it).

As for the issue, from commit:
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58ccd37b4d51a90f951c827b185c6682d165c180

ebuild has:
    DEPEND="~dev-util/opencl-headers-2020.06.16"
    DEPEND="dev-util/opencl-headers"

It is indeed only compatible with 2020.06.16 but the dual variables are breaking this, and 2020.06.16 is now gone from the tree as well.
Comment 3 Larry the Git Cow gentoo-dev 2021-06-26 09:45:39 UTC
The bug has been closed via the following commit(s):

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

commit 97e4d5fb445c450e33d98408648922bedb0f3919
Author:     Patrick Lauer <patrick@gentoo.org>
AuthorDate: 2021-06-26 08:01:11 +0000
Commit:     Patrick Lauer <patrick@gentoo.org>
CommitDate: 2021-06-26 09:45:37 +0000

    dev-libs/ocl-icd: Fix dependencies
    
    Closes: https://bugs.gentoo.org/798444
    Package-Manager: Portage-3.0.20, Repoman-3.0.3
    Signed-off-by: Patrick Lauer <patrick@gentoo.org>

 dev-libs/ocl-icd/ocl-icd-2.2.12-r4.ebuild | 1 -
 1 file changed, 1 deletion(-)
Comment 4 James Le Cuirot gentoo-dev 2021-06-26 10:08:53 UTC
Sorry about that. When fixing the last issue, it took a few attempts to find the right way forwards, and then I tripped up right at the end!