Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 716358 - media-gfx/darktable-3.0.1 fails to build with USE=opencl
Summary: media-gfx/darktable-3.0.1 fails to build with USE=opencl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2020-04-05 17:46 UTC by foufou33
Modified: 2020-06-18 12:36 UTC (History)
2 users (show)

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


Attachments
build log (build.log,24.54 KB, text/x-log)
2020-04-05 17:49 UTC, foufou33
Details
Add the mentioned patchfile, fixes opencl issue. Also works with 3.0.2 (opencl_fix.patch,422 bytes, patch)
2020-04-21 12:20 UTC, Pablo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description foufou33 2020-04-05 17:46:14 UTC
there seems to be a patch here : https://github.com/darktable-org/darktable/commit/767d48e0f60e7f858e8b31a88dd8cc1258e7ee9e

havent tried it yet!

Reproducible: Always

Steps to Reproduce:
1.USE=opencl emerge =media-gfx/darktable-3.0.1

Actual Results:  
fail a configure stage 

Expected Results:  
build and installs correctly

emerge --info media-gfx/darktable
Portage 2.3.96 (python 3.6.10-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-9.2.0, glibc-2.30-r7, 5.4.25-gentoo-x86_64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.4.25-gentoo-x86_64-x86_64-AMD_FX-tm-8320_Eight-Core_Processor-with-gentoo-2.7
KiB Mem:    20457956 total,   8797656 free
KiB Swap:    8388604 total,   4584956 free
Timestamp of repository gentoo: Sat, 04 Apr 2020 17:00:01 +0000
Head commit of repository gentoo: 4d4b417bd372e40a2aaa5e15580a229a665a2eb0
sh bash 5.0_p16
ld GNU ld (Gentoo 2.34 p1) 2.34.0
ccache version 3.7.9 [enabled]
app-shells/bash:          5.0_p16::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.1::gentoo
dev-lang/python:          2.7.17-r2::gentoo, 3.5.6::gentoo, 3.6.10-r1::gentoo, 3.7.7-r1::gentoo, 3.8.2-r1::gentoo, 3.9.0_alpha5::gentoo
dev-util/ccache:          3.7.9::gentoo
dev-util/cmake:           3.17.0::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.16.2::gentoo
sys-devel/binutils:       2.32-r1::gentoo, 2.33.1-r1::gentoo, 2.34::gentoo
sys-devel/gcc:            7.3.0-r3::gentoo, 8.2.0-r6::gentoo, 8.3.0-r1::gentoo, 9.1.0-r1::gentoo, 9.2.0-r4::gentoo, 9.3.0::gentoo
sys-devel/gcc-config:     2.2.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.6::gentoo (virtual/os-headers)
sys-libs/glibc:           2.30-r7::gentoo
Repositories:

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

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

local
    location: /var/lib/layman/local
    masters: gentoo
    priority: 50

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

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN 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 -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 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 -pipe"
GENTOO_MIRRORS="rsync://gentoo.gossamerhost.com/gentoo-distfiles/"
LANG="en_CA.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_CA"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS=""
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 a52 aac acl acpi activities alsa amd64 avahi bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit crypt cups dbus declarative device-mapper djvu dri dts dv dvb dvd dvdr dvi emacs emboss encode exif flac fortran gdbm gif gimp gles gpg gphoto2 gpm gstreamer gtk gtk3 iconv icu ipv6 jpeg kde kipi kwallet lcms ldap libnotify libtirpc llvm-shared-libs mad mng mp3 mp4 mpeg mtp multilib ncurses nls nptl nsplugin ogg opencl opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pulseaudio pvr python qml qt5 readline samba scrypt sdl seccomp semantic-desktop smartcard spell split-usr ssh ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb v4l vaapi vdpau vim vorbis widgets wxwidgets x264 x265 xattr xcb xcomposite xml xv xvid xvmc zeroconf zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="emu10k1" 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" CAMERAS="canon ptp2 spca50x" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx f16c fma3 fma4 pclmul popcnt sse3 sse4_1 sse4_2 sse4a ssse3 xop" CURL_SSL="openssl" 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" GRUB_PLATFORMS="pc efi-32 efi-64" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LIRC_DEVICES="hauppauge hauppauge_dvb" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6 python3_7 python3_8" RUBY_TARGETS="ruby24 ruby25" SANE_BACKENDS="genesys" USERLAND="GNU" VIDEO_CARDS="radeon radeonsi amdgpu" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS

=================================================================
                        Package Settings
=================================================================

media-gfx/darktable-3.0.0::gentoo was built with the following:
USE="colord cups flickr gnome-keyring gphoto2 graphicsmagick kwallet nls opencl openmp -doc -geolocation -jpeg2k -openexr -pax_kernel -webp" ABI_X86="(64)" CPU_FLAGS_X86="sse3" L10N="-ca -cs -da -de -es -fr -he -hu -it -ja -nb -nl -pl -ru -sl"
CFLAGS="-march=native -O2 -pipe -msse3"
CXXFLAGS="-march=native -O2 -pipe -msse3"
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 pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
Comment 1 foufou33 2020-04-05 17:49:14 UTC
Created attachment 630534 [details]
build log
Comment 2 foufou33 2020-04-05 17:52:18 UTC
just applied the patch I mentioned above, it works!
Comment 3 Pablo 2020-04-21 12:20:16 UTC
Created attachment 634012 [details, diff]
Add the mentioned patchfile, fixes opencl issue. Also works with 3.0.2
Comment 4 Larry the Git Cow gentoo-dev 2020-06-18 12:36:42 UTC
The bug has been closed via the following commit(s):

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

commit b575407bab33bc18c0a521c4fb193cdde6830409
Author:     Marek Szuba <marecki@gentoo.org>
AuthorDate: 2020-06-18 12:33:18 +0000
Commit:     Marek Szuba <marecki@gentoo.org>
CommitDate: 2020-06-18 12:36:30 +0000

    media-gfx/darktable: patch CMake error in OpenCL testing
    
    Backported the upstream fix from master, i.e. the next release should
    already include it.
    
    Closes: https://bugs.gentoo.org/716358
    Signed-off-by: Marek Szuba <marecki@gentoo.org>

 media-gfx/darktable/darktable-3.0.2.ebuild         |  1 +
 .../darktable-3.0.2_cmake-opencl-kernel-loop.patch | 28 ++++++++++++++++++++++
 2 files changed, 29 insertions(+)