I reported this bug also downstream: https://bugs.gentoo.org/show_bug.cgi?id=503544#c6 The complete build.log is attached on the Gentoo Bugzilla. KDE 4.12.3 (4.11.7) Output: emerge --info Portage 2.2.8-r1 (default/linux/amd64/13.0/desktop/kde/systemd, gcc-4.7.3, glibc-2.17, 3.13.7-gentoo x86_64) ================================================================= System uname: Linux-3.13.7-gentoo-x86_64-Intel-R-_Core-TM-_i7-2630QM_CPU_@_2.00GHz-with-gentoo-2.2 KiB Mem: 20579964 total, 12317688 free KiB Swap: 0 total, 0 free Timestamp of tree: Sun, 30 Mar 2014 13:30:01 +0000 ld GNU ld (GNU Binutils) 2.23.2 app-shells/bash: 4.2_p45 dev-java/java-config: 2.2.0 dev-lang/python: 2.7.6, 3.3.5 dev-util/cmake: 2.8.12.2 dev-util/pkgconfig: 0.28 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.12.4 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.11.6, 1.12.6, 1.13.4 sys-devel/binutils: 2.23.2 sys-devel/gcc: 4.7.3-r1 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.9 (virtual/os-headers) sys-libs/glibc: 2.17 Repositories: gentoo steam-overlay mysql lokal ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=corei7 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=corei7 -O2 -pipe" DISTDIR="/usr/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="de_DE.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" 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" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/steam /var/lib/layman/mysql /usr/local/portage" USE="X a52 aac aacs acl acpi alsa amd64 avx berkdb bluetooth bluray branding btrfs bzip2 cairo cdda cddb cdr cec chroma chromaprint clamav cli clucene corefonts cracklib crypt cryptsetup cups cxx dbus declarative device-mapper dmraid dri dts dv dvb dvd dvdr ebook emboss encode epub exif faac faad fam fat ffmpeg firefox flac fontconfig fontforge fortran fuse gdbm gif gimp gphoto2 gpm gtk gudev iconv id3tag idn inotify ipv6 jfs jpeg jpeg2k kde kdecards kdepim kipi ladspa lame lcms ldap libkms libnotify libsamplerate libsoxr libvisual lirc llvm-shared-libs lvm lz4 lzma lzo mad matroska mdadm mmx mng mobi mod modemmanager modplug modules mp3 mp4 mpeg mtp multilib musicbrainz mysql ncurses networkmanager nfs nls nptl ntfs ogg opencl opencv openexr opengl openmp openrc opus pam pango pcmcia pcre pdf phonon pkcs11 plasma png policykit postscript ppds ppp pvr qt3support qt4 rar raw rdesktop readline reiserfs rss samba scanner sdl semantic-desktop session sftp smartcard sna sndfile spell sse sse2 sse3 sse4 sse4_1 ssl ssse3 startup-notification svg system-cairo system-icu system-jpeg system-sqlite systemd taglib tcpd tiff truetype udev udisks unicode upnp upower usb uvm v4l vaapi vcd vdpau vdr vlc vnc vorbis vpx webinterface wifi wxwidgets x264 xa xattr xcb xcomposite xfs xinerama xml xmp xpm xscreensaver xv xvid xvmc zeroconf zip zlib" ABI_X86="64 32" 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="*" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 pc qemu emu" INPUT_DEVICES="evdev keyboard mouse joystick synaptics vmmouse lirc" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver presenter-minimizer wiki-publisher" LINGUAS="de en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" SANE_BACKENDS="*" USERLAND="GNU" VIDEO_CARDS="intel nvidia vmware virtualbox modesetting vesa nouveau i915 i965" 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: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON Reproducible: Always
Installed version of glew: eix -I glew [I] media-libs/glew Available versions: 1.9.0 ~1.10.0-r1(0/1.10) (~)1.10.0-r2(0/1.10) {doc static-libs ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_X86="32 64 x32"} Installed versions: 1.10.0-r2(20:32:25 23.03.2014)(-doc -static-libs ABI_MIPS="-n32 -n64 -o32" ABI_X86="32 64 -x32") Homepage: http://glew.sourceforge.net/ Description: The OpenGL Extension Wrangler Library
Happens for me too on Gentoo.
The other problem is, when libGLEW is not installed the build system complain only at the stage of linking to "-lGLEW". It should better check for libGLEW in CMakeLists.txt.
2.8.2 has the same problem
Still there in 2.8.5. :(
We do check for glew in the cmake system and don't try to use it if isn't found. If that check fails on Gentoo, please provide a patch for cmake/modules/FindGLEW.cmake.
As far as I can tell, the Gentoo configure system is working fine. The log file includes: -- GLEW NOT found - krita will not be able to use OpenGL. [...] ----------------------------------------------------------------------------- -- The following OPTIONAL packages could NOT be located on your system. -- Consider installing them to enable more features from this software. ----------------------------------------------------------------------------- [...] * GLEW <http://glew.sourceforge.net> The OpenGL Extension Wrangler Library Required by the Krita shader filter plugin [...] But later, we run into: In file included from /var/tmp/portage/app-office/calligra-2.8.5/work/calligra-2.8.5/krita/ui/opengl/kis_opengl_canvas2.cpp:58:0: /var/tmp/portage/app-office/calligra-2.8.5/work/calligra-2.8.5/krita/ui/opengl/kis_opengl_canvas2_p.h: In function ‘void Sync::init()’: /var/tmp/portage/app-office/calligra-2.8.5/work/calligra-2.8.5/krita/ui/opengl/kis_opengl_canvas2_p.h:334:82: error: ‘GLEW_ARB_sync’ was not declared i n this scope if ((QGLFormat::openGLVersionFlags() & QGLFormat::OpenGL_Version_3_2) || GLEW_ARB_sync) { [...] [ 59%] krita/ui/CMakeFiles/kritaui.dir/build.make:2894: recipe for target 'krita/ui/CMakeFiles/kritaui.dir/opengl/kis_opengl_canvas2.cpp.o' failed make[2]: *** [krita/ui/CMakeFiles/kritaui.dir/opengl/kis_opengl_canvas2.cpp.o] Error 1 make[2]: Leaving directory '/var/tmp/portage/app-office/calligra-2.8.5/work/calligra-2.8.5_build' CMakeFiles/Makefile2:16010: recipe for target 'krita/ui/CMakeFiles/kritaui.dir/all' failed make[1]: *** [krita/ui/CMakeFiles/kritaui.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... Can you try compiling it (probably just krita) on a system without glew? Or maybe check the code referenced in the build log just to make sure that it isn't asking for glew, even though it is supposed to know that it is not available?
It looks like this is caused when opengl is enabled and glew is disabled. Is that a valid configuration? It looks like opengl support in krita hard-requires glew, which would make this a packaging bug.
(In reply to Michael Palimaka from comment #8) > It looks like this is caused when opengl is enabled and glew is disabled. Is > that a valid configuration? Gentoo allows this configuration (not a guarantee that is is valid, of course), which was never a problem with pre 2.8 versions.
Thank you for the bug report. As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists. If this bug is no longer persisting or relevant please change the status to resolved.