Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 510984 - kde-base/kwin-4.11.9 fails to emerge with GLEW related error (GL_GUILTY_CONTEXT_RESET_ARB was not declared in this scope)
Summary: kde-base/kwin-4.11.9 fails to emerge with GLEW related error (GL_GUILTY_CONTE...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-21 22:48 UTC by Andreas Schäfer
Modified: 2014-05-22 04:18 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Schäfer 2014-05-21 22:48:35 UTC
I've tried to emerge kwin on a freshly updated node, but it failed with the following error. Strangely kwin emerged just fine on another, almost identical node. I just can't find the differences between both.



Reproducible: Always

Steps to Reproduce:
1.emerge kwin

Actual Results:  
Compilation aborts:

cd /var/tmp/portage/kde-base/kwin-4.11.9/work/kwin-4.11.9_build/kwin && /usr/lib64/ccache/bin/x86_64-pc-linux-gnu-g++  -DDISABLE_NEPOMUK_LEGACY -DHAVE_CONFIG_H=1 -DKDE4_CMAKE_TOPLEVEL_DIR_LENGTH=42 -DKDE_DEPRECATED_WARNINGS -DQT_NO_CAST_TO_ASCII -DQT_NO_STL -DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS -D_BSD_SOURCE -D_REENTRANT -D_XOPEN_SOURCE=500 -Dkdeinit_kwin_EXPORTS  -I/usr/include/kworkspace -DQT_NO_DEBUG -DNDEBUG -O2 -pipe  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -I/var/tmp/portage/kde-base/kwin-4.11.9/work/kwin-4.11.9_build/kwin -I/var/tmp/portage/kde-base/kwin-4.11.9/work/kwin-4.11.9/kwin -I/var/tmp/portage/kde-base/kwin-4.11.9/work/kwin-4.11.9/kwin/tabbox -I/var/tmp/portage/kde-base/kwin-4.11.9/work/kwin-4.11.9/kwin/effects -I/var/tmp/portage/kde-base/kwin-4.11.9/work/kwin-4.11.9/kwin/libkdecorations -I/var/tmp/portage/kde-base/kwin-4.11.9/work/kwin-4.11.9/kwin/libkwineffects -I/var/tmp/portage/kde-base/kwin-4.11.9/work/kwin-4.11.9_build/kwin/libkwineffects -I/var/tmp/portage/kde-base/kwin-4.11.9/work/kwin-4.11.9 -I/var/tmp/portage/kde-base/kwin-4.11.9/work/kwin-4.11.9_build -I/var/tmp/portage/kde-base/kwin-4.11.9/work/kwin-4.11.9/libs -I/usr/include/KDE -I/usr/include/qt4/QtXmlPatterns -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtWebKit -I/usr/include/qt4/QtUiTools -I/usr/include/qt4/QtTest -I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtSql -I/usr/include/qt4/QtScriptTools -I/usr/include/qt4/QtScript -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtDesigner -I/usr/include/qt4/QtDeclarative -I/usr/include/qt4/QtDBus -I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -I/usr/include/qt4/Qt -I/usr/share/qt4/mkspecs/default -I/usr/include/qt4    -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -DKWIN_HAVE_OPENGL_1 -o CMakeFiles/kdeinit_kwin.dir/scene_opengl.cpp.o -c /var/tmp/portage/kde-base/kwin-4.11.9/work/kwin-4.11.9/kwin/scene_opengl.cpp
/var/tmp/portage/kde-base/kwin-4.11.9/work/kwin-4.11.9/kwin/scene_opengl.cpp: In member function 'void KWin::SceneOpenGL::handleGraphicsReset(GLenum)':
/var/tmp/portage/kde-base/kwin-4.11.9/work/kwin-4.11.9/kwin/scene_opengl.cpp:332:10: error: 'GL_GUILTY_CONTEXT_RESET_ARB' was not declared in this scope
/var/tmp/portage/kde-base/kwin-4.11.9/work/kwin-4.11.9/kwin/scene_opengl.cpp:336:10: error: 'GL_INNOCENT_CONTEXT_RESET_ARB' was not declared in this scope
/var/tmp/portage/kde-base/kwin-4.11.9/work/kwin-4.11.9/kwin/scene_opengl.cpp:340:10: error: 'GL_UNKNOWN_CONTEXT_RESET_ARB' was not declared in this scope
kwin/CMakeFiles/kdeinit_kwin.dir/build.make:970: recipe for target 'kwin/CMakeFiles/kdeinit_kwin.dir/scene_opengl.cpp.o' failed
make[2]: *** [kwin/CMakeFiles/kdeinit_kwin.dir/scene_opengl.cpp.o] Error 1


Expected Results:  
Emerge should finish successfully
Comment 1 Andreas Schäfer 2014-05-21 22:49:08 UTC
wintermute ~ # emerge --info
!!! Repository 'andis_overlay' is missing masters attribute in '/usr/local/portage/andis_overlay/metadata/layout.conf'
!!! Set 'masters = gentoo' in this file for future compatibility
Portage 2.2.10 (default/linux/amd64/13.0/desktop/kde, gcc-4.7.3, glibc-2.19, 3.2.1-gentoo x86_64)
=================================================================
System uname: Linux-3.2.1-gentoo-x86_64-Intel-R-_Core-TM-_i5-4570_CPU_@_3.20GHz-with-gentoo-2.2
KiB Mem:     8072504 total,   4909820 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Wed, 21 May 2014 21:30:02 +0000
ld GNU ld (GNU Binutils) 2.24
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p47
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.6-r1, 3.2.2, 3.3.5, 3.4.0
dev-util/ccache:          3.1.9-r3
dev-util/cmake:           2.8.12.2-r1
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.2, 1.14.1
sys-devel/binutils:       2.24-r2
sys-devel/gcc:            4.5.3-r2, 4.7.3-r1, 4.8.2-r1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.14 (virtual/os-headers)
sys-libs/glibc:           2.19
Repositories: gentoo andis_overlay
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6"
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="/usr/local/portage/andis_overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib accessibility acl acpi alsa amd64 artswrappersuid bash-completion berkdb bluetooth branding bzip2 cairo ccache cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr dvdread ebook emacs emboss encode ethereal exif fam fbcondecor firefox flac fortran gdbm gif gphoto2 gpm iconv imap ipv6 jpeg kde kipi lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg multilib musicbrainz nas ncurses nls nptl nptlonly obex ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds preview-latex qt3support qt4 readline samba sdl semantic-desktop session slang spell sse sse2 ssl startup-notification svg tcpd threads tiff truetype udev udisks unicode upower usb vorbis wifi win32codecs wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid xvmc zlib" ABI_X86="64" 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="ptp2" 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" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python3_3" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, USE_PYTHON
Comment 2 Andreas Schäfer 2014-05-21 22:52:42 UTC
What's confusing me here is that GL_GUILTY_CONTEXT_RESET_KWIN is only defined in /usr/include/GL/glew.h, but this files is never included in kwin:

wintermute ~ # grep -r GL_GUILTY_CONTEXT_RESET_ARB /var/tmp/portage/kde-base/kwin-4.11.9/work/
/var/tmp/portage/kde-base/kwin-4.11.9/work/kwin-4.11.9/kwin/scene_opengl.cpp:#  define GL_GUILTY_CONTEXT_RESET_KWIN    GL_GUILTY_CONTEXT_RESET_ARB
wintermute ~ # grep -r glew.h /var/tmp/portage/kde-base/kwin-4.11.9/
wintermute ~ #
Comment 3 Andreas Schäfer 2014-05-21 22:53:35 UTC
wintermute ~ # grep -r GL_GUILTY_CONTEXT_RESET_ARB /usr/include/
/usr/include/GL/glew.h:#define GL_GUILTY_CONTEXT_RESET_ARB 0x8253
wintermute ~ #
Comment 4 Andreas Schäfer 2014-05-22 04:18:52 UTC
Got it: I ran "emerge -v kwin" on two machines (wintermute, where it would fail, and neuromancer, where it emerged successfully). Them took a look at the diff of both preprocessed (g++ -E) scene_opencl.cpp files. Turns out that an older installation of AMDAPP was to blame. After removing this package the emerge ran through just fine.