Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 585334 - media-gfx/krita-3.0 with dev-qt/qtgui[gles2] fails to build - libs/ui/opengl/kis_opengl_canvas2.cpp:306:12: error: ‘GL_LINE_SMOOTH_HINT’ was not declared in this scope
Summary: media-gfx/krita-3.0 with dev-qt/qtgui[gles2] fails to build - libs/ui/opengl/...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL: https://bugs.kde.org/show_bug.cgi?id=...
Whiteboard:
Keywords: UPSTREAM
Depends on:
Blocks:
 
Reported: 2016-06-07 22:34 UTC by acidrums4
Modified: 2016-09-22 11:43 UTC (History)
1 user (show)

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


Attachments
Build log (media-gfx:krita-3.0:20160608-115309.log.gz,367.37 KB, application/gzip)
2016-06-08 13:49 UTC, acidrums4
Details

Note You need to log in before you can comment on or make changes to this bug.
Description acidrums4 2016-06-07 22:34:34 UTC
Hello y'all,

So I'm trying to emerge krita-3.0 from the stable tree, but it fails. I've tried with both ccache activated and deactivated, but it keeps failing at the same point:

(Begin of emerge dump)

/var/tmp/portage/media-gfx/krita-3.0/work/krita-3.0/libs/ui/opengl/kis_opengl_canvas2.cpp: In member function ‘void KisOpenGLCanvas2::paintToolOutline(const QPainterPath&)’:
/var/tmp/portage/media-gfx/krita-3.0/work/krita-3.0/libs/ui/opengl/kis_opengl_canvas2.cpp:306:12: error: ‘GL_LINE_SMOOTH_HINT’ was not declared in this scope
glHint(GL_LINE_SMOOTH_HINT, GL_NICEST);

/var/tmp/portage/media-gfx/krita-3.0/work/krita-3.0/libs/ui/opengl/kis_opengl_canvas2.cpp:312:14: error: ‘GL_COLOR_LOGIC_OP’ was not declared in this scope
glEnable(GL_COLOR_LOGIC_OP);

/var/tmp/portage/media-gfx/krita-3.0/work/krita-3.0/libs/ui/opengl/kis_opengl_canvas2.cpp:314:23: error: ‘GL_XOR’ was not declared in this scope
ptr_glLogicOp(GL_XOR);

/var/tmp/portage/media-gfx/krita-3.0/work/krita-3.0/libs/ui/opengl/kis_opengl_canvas2.cpp: In member function ‘void isOpenGLCanvas2::drawImage()’:
/var/tmp/portage/media-gfx/krita-3.0/work/krita-3.0/libs/ui/opengl/kis_opengl_canvas2.cpp:529:31: error: ‘GL_TEXTURE_3D’ was not declared in this scope
glBindTexture(GL_TEXTURE_3D, d->displayFilter->lutTexture());

libs/ui/CMakeFiles/kritaui.dir/build.make:3462: recipe for target 'libs/ui/CMakeFiles/kritaui.dir/opengl/kis_opengl_canvas2.cpp.o' failed

/var/tmp/portage/media-gfx/krita-3.0/work/krita-3.0/libs/ui/opengl/kis_opengl_image_textures.cpp:543:49: error: ‘GL_RGBA32F_ARB’ was not declared in this scope
m_texturesInfo.internalFormat = GL_RGBA32F_ARB;

/var/tmp/portage/media-gfx/krita-3.0/work/krita-3.0/libs/ui/opengl/kis_opengl_image_textures.cpp:546:49: error: ‘GL_RGBA_FLOAT32_ATI’ was not declared in this scope
m_texturesInfo.internalFormat = GL_RGBA_FLOAT32_ATI;

/var/tmp/portage/media-gfx/krita-3.0/work/krita-3.0/libs/ui/opengl/kis_opengl_image_textures.cpp:555:45: error: ‘GL_RGBA16’ was not declared in this scope
m_texturesInfo.internalFormat = GL_RGBA16;

/var/tmp/portage/media-gfx/krita-3.0/work/krita-3.0/libs/ui/opengl/kis_opengl_image_textures.cpp:565:45: error: ‘GL_RGBA16’ was not declared in this scope
m_texturesInfo.internalFormat = GL_RGBA16;

libs/ui/CMakeFiles/kritaui.dir/build.make:3510: recipe for target 'libs/ui/CMakeFiles/kritaui.dir/opengl/kis_opengl_image_textures.cpp.o' failed
make[2]: *** [libs/ui/CMakeFiles/kritaui.dir/opengl/kis_opengl_image_textures.cpp.o] Error 1
/var/tmp/portage/media-gfx/krita-3.0/work/krita-3.0/libs/ui/opengl/kis_texture_tile.cpp: In member function ‘void KisTextureTile::setTextureParameters()’:
/var/tmp/portage/media-gfx/krita-3.0/work/krita-3.0/libs/ui/opengl/kis_texture_tile.cpp:37:39: error: ‘GL_TEXTURE_MIN_LOD’ was not declared in this scope
f->glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_LOD, 0);

/var/tmp/portage/media-gfx/krita-3.0/work/krita-3.0/libs/ui/opengl/kis_texture_tile.cpp:38:39: error: ‘GL_TEXTURE_MAX_LOD’ was not declared in this scope
f->glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAX_LOD, m_numMipmapLevels);

/var/tmp/portage/media-gfx/krita-3.0/work/krita-3.0/libs/ui/opengl/kis_texture_tile.cpp:39:39: error: ‘GL_TEXTURE_BASE_LEVEL’ was not declared in this scope
f->glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_BASE_LEVEL, 0);

/var/tmp/portage/media-gfx/krita-3.0/work/krita-3.0/libs/ui/opengl/kis_texture_tile.cpp:40:39: error: ‘GL_TEXTURE_MAX_LEVEL’ was not declared in this scope
f->glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAX_LEVEL, m_numMipmapLevels);
                                       ^
libs/ui/CMakeFiles/kritaui.dir/build.make:3534: recipe for target 'libs/ui/CMakeFiles/kritaui.dir/opengl/kis_texture_tile.cpp.o' failed

(End of emerge dump)

Google around this specific issue doesn't give any clue, but seems like Qt is forcing GLES use instead of OpenGL, although both GLES and OpenGL are set on my /etc/make.conf. So I don't know if I'm screwing it up at some point, is there even something I can do to fix this or maybe this is a ebuild bug.

(P.D.: My emerge --info can be found at http://pastebin.ca/3619224)
Comment 1 Johannes Huber (RETIRED) gentoo-dev 2016-06-08 06:28:54 UTC
Please attach the full build.log and paste emerge --info
Comment 2 acidrums4 2016-06-08 13:49:31 UTC
Created attachment 436872 [details]
Build log

Here goes the build log.
Comment 3 acidrums4 2016-06-08 13:51:11 UTC
Portage 2.2.28 (python 2.7.10-final-0, default/linux/x86/13.0/desktop/plasma/systemd, gcc-4.9.3, glibc-2.22-r4, 4.5.0-pf3 i686)
=================================================================
System uname: Linux-4.5.0-pf3-i686-Genuine_Intel-R-_CPU_T2080_@_1.73GHz-with-gentoo-2.2
KiB Mem:     3098372 total,    829516 free
KiB Swap:    3534296 total,   3500920 free
Timestamp of repository gentoo: Wed, 08 Jun 2016 11:30:01 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
ccache version 3.2.4 [disabled]
app-shells/bash:          4.3_p42-r1::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.9.6-r4::gentoo, 1.10.3-r1::gentoo, 1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

zugaina
    location: /var/lib/layman/zugaina
    masters: gentoo
    priority: 0

desktop-effects
    location: /var/lib/layman/desktop-effects
    masters: gentoo
    priority: 1

sunrise
    location: /var/lib/layman/sunrise
    masters: gentoo
    priority: 2

stuff
    location: /var/lib/layman/stuff
    masters: gentoo
    priority: 3

kde
    location: /var/lib/layman/kde
    masters: gentoo
    priority: 4

ephemeral
    location: /var/lib/layman/ephemeral
    masters: gentoo
    priority: 5

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 6

ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* - [at] EUL dlj-1.1 sun-bcla-java-vm"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CHOST="i686-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/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs clean-logs compress-build-logs config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles merge-sync news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://www.las.ic.unicamp.br/pub/gentoo/ ftp://ftp.las.ic.unicamp.br/pub/gentoo/ http://gentoo.localhost.net.ar/ ftp://mirrors.localhost.net.ar/pub/mirrors/gentoo"
LANG="es_CO.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi aiglx alsa amr amrnb amrwb apng appmenu attica autoipd automount avahi berkdb bittorrent bluetooth branding bzip2 cairo cdda cdr cli cpufreq_bench cracklib crypt custom-optimization cxx dbus declarative device-mapper dhcpcd divx dri dts dvd dvdr emboss encode exif extras facebook fam ffmpeg firefox flac fortran gdbm gif git glamor gles gles1 gles2 glitz gmp google gphoto2 gpm gstreamer i915 iconv id3tag imagemagick ipv6 javascript jpeg jpeg2k kde kdenlive kdepim kipi kpathsea kscreen laptop lcdfilter lcms libkipi libmpeg2 libnotify libv4l libv4l2 lm_sensors lzma mad marble mjpeg mng modules mp3 mp4 mpeg mpi msn mtp multimedia mysql ncurses networkmanager nls nptl ogg opengl openmp optimized-qmake pam pcre pdf phonon pic plasma png policykit ppds pulseaudio qml qt3support qt4 qt5 quicktime raw readline romio rss samba sdl seccomp semantic-desktop session splash sql ssl startup-notification subversion svg svga systemd taglib tcpd telepathy theora threads tiff truetype udev udisks udisks2 unicode upower usb v4l v4l2 vaapi vapi vim-syntax vorbis wavpack webkit widgets wifi win32codecs x264 x86 xattr xcb xcomposite xft xinerama xml xv xvid zlib zsh-completion" ABI_X86="32" ALSA_CARDS="intel8x0 hda-intel" 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 words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext sse sse2 sse3" 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="pc" INPUT_DEVICES="kbd synaptics evdev keyboard mouse wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="es es_CO es_LA" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="intel" 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_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 4 Michael Palimaka (kensington) gentoo-dev 2016-06-08 13:56:32 UTC
In Qt, USE="gles2" means use GLES *instead of* full OpenGL. I guess that Krita is broken against GLES right now then.
Comment 5 acidrums4 2016-06-08 14:02:50 UTC
So if I recompile Qt without GLES2 support this would be (in theory) fixed, or should I report this upstream? On Calligra 2.9.x I never had such issue. But when I tried to activate OpenGL from Krita, it would go unbelievably slow. And I seem to recall the "graphic card" of my old PC doesn't play well with OpenGL, hence the GLES2 USE.
Comment 6 Michael Palimaka (kensington) gentoo-dev 2016-06-08 14:09:47 UTC
(In reply to acidrums4 from comment #5)
> So if I recompile Qt without GLES2 support this would be (in theory) fixed,
> or should I report this upstream? On Calligra 2.9.x I never had such issue.
> But when I tried to activate OpenGL from Krita, it would go unbelievably
> slow. And I seem to recall the "graphic card" of my old PC doesn't play well
> with OpenGL, hence the GLES2 USE.

It does appear to be an upstream bug (we had a similar issue with kdenlive after it was porting to KF5 too), but yeah in theory it should build correctly after Qt is rebuilt without GLES.
Comment 7 acidrums4 2016-06-08 14:48:26 UTC
Going to see what Krita people say! Thank you so much for your quick answers. (:
Comment 8 Andreas Sturmlechner gentoo-dev 2016-06-20 00:24:18 UTC
(In reply to Michael Palimaka (kensington) from comment #6)
> but yeah in theory it should build correctly after Qt is rebuilt without GLES.

Confirmed, krita-3.0 built fine after rebuilding Qt-5.6.1 with USE=-gles2
Comment 9 Michael Palimaka (kensington) gentoo-dev 2016-09-22 10:50:51 UTC
Did anyone end up filing a bug upstream about this?
Comment 10 Michael Palimaka (kensington) gentoo-dev 2016-09-22 11:14:43 UTC
Seems upstream doesn't support this.
Comment 11 Michael Palimaka (kensington) gentoo-dev 2016-09-22 11:43:23 UTC
3.0.1 now forces opengl (-gles2) due to upstream's response.