Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 167136 - kdevelop-3.4.0-r2 compile error, qmake_lex.cpp
Summary: kdevelop-3.4.0-r2 compile error, qmake_lex.cpp
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-15 23:30 UTC by Dorin Scutarasu
Modified: 2007-02-16 15:43 UTC (History)
1 user (show)

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


Attachments
ebuild depending on >=sys-devel/flex-2.5.33-r1 (kdevelop-3.4.0-r3.ebuild,3.33 KB, text/plain)
2007-02-16 14:05 UTC, Dorin Scutarasu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dorin Scutarasu 2007-02-15 23:30:02 UTC
# emerge -av kdevelop

These are the packages that would be merged, in order:

Calculating dependencies                       ... done!
[ebuild     U ] dev-util/kdevelop-3.4.0-r2 [3.4.0] USE="-ada -arts* -clearcase -cvs -debug -fortran -graphviz* -haskell* -java* -pascal -perforce -perl* -php* -python* -ruby* -sql* -subversion -xinerama" 0 kB

Total: 1 package (1 upgrade), Size of downloads: 0 kB
[snip]
make[2]: Entering directory `/var/tmp/portage/dev-util/kdevelop-3.4.0-r2/work/kdevelop-3.4.0/buildtools'
Making all in lib
make[3]: Entering directory `/var/tmp/portage/dev-util/kdevelop-3.4.0-r2/work/kdevelop-3.4.0/buildtools/lib'
Making all in parsers
make[4]: Entering directory `/var/tmp/portage/dev-util/kdevelop-3.4.0-r2/work/kdevelop-3.4.0/buildtools/lib/parsers'
Making all in qmake
make[5]: Entering directory `/var/tmp/portage/dev-util/kdevelop-3.4.0-r2/work/kdevelop-3.4.0/buildtools/lib/parsers/qmake'
/bin/sh ../../../../libtool --silent --tag=CXX --mode=compile i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../lib/interfaces -I../../../../lib/interfaces/extensions -I../../../../lib/util -I../../../../lib/widgets/propeditor -I/usr/kde/3.5/include -I/usr/qt/3/include -I.  -I/usr/kde/3.5/include  -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -march=athlon-xp -fomit-frame-pointer -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -c -o qmake_lex.lo qmake_lex.cpp
qmake_lex.cpp:38:5: warning: "__STDC_VERSION__" is not defined
qmake_lex.cpp: In member function 'virtual int QMake::Lexer::yylex()':
qmake_lex.cpp:694: error: 'yy_buffer_stack' was not declared in this scope
qmake_lex.cpp:694: error: 'yy_buffer_stack_top' was not declared in this scope
qmake_lex.cpp:695: error: 'yyensure_buffer_stack' was not declared in this scope
qmake_lex.cpp:716: error: 'yy_buffer_stack' was not declared in this scope
qmake_lex.cpp:716: error: 'yy_buffer_stack_top' was not declared in this scope
qmake_lex.cpp: In constructor 'yyFlexLexer::yyFlexLexer(std::istream*, std::ostream*)':
qmake_lex.cpp:1125: error: 'yy_buffer_stack' was not declared in this scope

[snip]

qmake_lex.cpp:1814: error: 'yy_buffer_stack_top' was not declared in this scope
qmake_lex.cpp:1821: error: 'yy_buffer_stack' was not declared in this scope
make[5]: *** [qmake_lex.lo] Error 1
make[5]: Leaving directory `/var/tmp/portage/dev-util/kdevelop-3.4.0-r2/work/kdevelop-3.4.0/buildtools/lib/parsers/qmake'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/var/tmp/portage/dev-util/kdevelop-3.4.0-r2/work/kdevelop-3.4.0/buildtools/lib/parsers'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/dev-util/kdevelop-3.4.0-r2/work/kdevelop-3.4.0/buildtools/lib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-util/kdevelop-3.4.0-r2/work/kdevelop-3.4.0/buildtools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-util/kdevelop-3.4.0-r2/work/kdevelop-3.4.0'
make: *** [all] Error 2

!!! ERROR: dev-util/kdevelop-3.4.0-r2 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 4851:   Called src_compile
  kdevelop-3.4.0-r2.ebuild, line 63:   Called kde_src_compile
  kde.eclass, line 170:   Called kde_src_compile 'all'
  kde.eclass, line 340:   Called kde_src_compile 'myconf' 'configure' 'make'
  kde.eclass, line 336:   Called die

-
I have kdevelop-3.4.0 installed and the Changelog mentions only one change in -r2: a qmake parser bug.

Reproducible: Always

Steps to Reproduce:
1.
2.
3.



# emerge --info
Portage 2.1.2-r9 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.18-gentoo-r3-l1 i686)
=================================================================
System uname: 2.6.18-gentoo-r3-l1 i686 AMD Athlon(tm) XP 2100+
Gentoo Base System release 1.12.9
Timestamp of tree: Thu, 15 Feb 2007 10:50:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r3
dev-lang/python:     2.3.5-r3, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.romnet.org/gentoo/ http://ftp.du.se/pub/os/gentoo ftp://ftp.romnet.org/gentoo/"
LINGUAS="en ro en_US"
MAKEOPTS="-j1"
PKGDIR="/tmp/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/custom-kernels /usr/portage/local/layman/xeffects /usr/portage/local/layman/sunrise"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X aac acpi aiglx alsa amr arts asf audiofile avi bash-completion bitmap-fonts bzip2 cairo cdr cli cracklib crypt cscope curl dbus directfb divx dlloader dri dts dvd dvdr dvdread eds emboss encode ffmpeg firefox gdbm ggi gif glitz glut gmedia gpm graphviz gtk gtk2 hal iconv imagemagick inotify ipv6 isdnlog jabber java javascript jingle jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kerberos lcms ldap libg++ lirc mad matroska mbrola midi mikmod mmx mmxext mng mozdevelop mozilla mp3 mpeg musicbrainz ncurses nls nptl nptlonly nsplugin nvidia offensive ogg opengl oss pam pcre perl png ppds pppd python qt qt3 qt4 quicktime rdesktop readline real realmedia reflection ruby sdl session slang spell spl sse ssl svg svga tcpd theora tiff truetype truetype-fonts type1-fonts unicode usb vidix vnc vorbis win32codecs wmp x86 xcomposite xine xml xml2 xorg xv xvid xvmc yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ro en_US" LIRC_DEVICES="serial" USERLAND="GNU" VIDEO_CARDS="nvidia vesa vga"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Dorin Scutarasu 2007-02-15 23:39:32 UTC
My emerge log got messed up. Here's another one:

# emerge -av kdevelop

These are the packages that would be merged, in order:

Calculating dependencies                       ... done!
[ebuild     U ] dev-util/kdevelop-3.4.0-r2 [3.4.0] USE="-ada -arts* -clearcase -cvs -debug -fortran -graphviz* -haskell* -java* -pascal -perforce -perl* -php* -python* -ruby* -sql* -subversion -xinerama" 0 kB

Total: 1 package (1 upgrade), Size of downloads: 0 kB

[snip]

make[2]: Entering directory `/var/tmp/portage/dev-util/kdevelop-3.4.0-r2/work/kdevelop-3.4.0/buildtools'
Making all in lib
make[3]: Entering directory `/var/tmp/portage/dev-util/kdevelop-3.4.0-r2/work/kdevelop-3.4.0/buildtools/lib'
Making all in parsers
make[4]: Entering directory `/var/tmp/portage/dev-util/kdevelop-3.4.0-r2/work/kdevelop-3.4.0/buildtools/lib/parsers'
Making all in qmake
make[5]: Entering directory `/var/tmp/portage/dev-util/kdevelop-3.4.0-r2/work/kdevelop-3.4.0/buildtools/lib/parsers/qmake'
/bin/sh ../../../../libtool --silent --tag=CXX --mode=compile i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../../.. -I../../../../lib/interfaces -I../../../../lib/interfaces/extensions -I../../../../lib/util -I../../../../lib/widgets/propeditor -I/usr/kde/3.5/include -I/usr/qt/3/include -I.  -I/usr/kde/3.5/include  -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -march=athlon-xp -fomit-frame-pointer -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -c -o qmake_lex.lo qmake_lex.cpp
qmake_lex.cpp:38:5: warning: "__STDC_VERSION__" is not defined
qmake_lex.cpp: In member function 'virtual int QMake::Lexer::yylex()':
qmake_lex.cpp:694: error: 'yy_buffer_stack' was not declared in this scope
qmake_lex.cpp:694: error: 'yy_buffer_stack_top' was not declared in this scope
qmake_lex.cpp:695: error: 'yyensure_buffer_stack' was not declared in this scope
qmake_lex.cpp:716: error: 'yy_buffer_stack' was not declared in this scope
qmake_lex.cpp:716: error: 'yy_buffer_stack_top' was not declared in this scope
qmake_lex.cpp: In constructor 'yyFlexLexer::yyFlexLexer(std::istream*, std::ostream*)':
qmake_lex.cpp:1125: error: 'yy_buffer_stack' was not declared in this scope
qmake_lex.cpp:1126: error: 'yy_buffer_stack_top' was not declared in this scope
qmake_lex.cpp:1127: error: 'yy_buffer_stack_max' was not declared in this scope
qmake_lex.cpp: In member function 'virtual void yyFlexLexer::switch_streams(std::istream*, std::ostream*)':
qmake_lex.cpp:1137: error: 'yy_buffer_stack' was not declared in this scope
qmake_lex.cpp:1137: error: 'yy_buffer_stack_top' was not declared in this scope

[snip]

qmake_lex.cpp:1814: error: 'yy_buffer_stack_top' was not declared in this scope
qmake_lex.cpp:1821: error: 'yy_buffer_stack' was not declared in this scope
make[5]: *** [qmake_lex.lo] Error 1
make[5]: Leaving directory `/var/tmp/portage/dev-util/kdevelop-3.4.0-r2/work/kdevelop-3.4.0/buildtools/lib/parsers/qmake'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/var/tmp/portage/dev-util/kdevelop-3.4.0-r2/work/kdevelop-3.4.0/buildtools/lib/parsers'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/dev-util/kdevelop-3.4.0-r2/work/kdevelop-3.4.0/buildtools/lib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-util/kdevelop-3.4.0-r2/work/kdevelop-3.4.0/buildtools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-util/kdevelop-3.4.0-r2/work/kdevelop-3.4.0'
make: *** [all] Error 2

!!! ERROR: dev-util/kdevelop-3.4.0-r2 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 4851:   Called src_compile
  kdevelop-3.4.0-r2.ebuild, line 63:   Called kde_src_compile
  kde.eclass, line 170:   Called kde_src_compile 'all'
  kde.eclass, line 340:   Called kde_src_compile 'myconf' 'configure' 'make'
  kde.eclass, line 336:   Called die
Comment 2 Dorin Scutarasu 2007-02-16 12:32:20 UTC
The problem was related to the new qmake parser patch added in kdevelop-3.4.0-r1 which doesn't work with flex-2.5.4a-r6.

I had flex-2.5.33-r1 package.mask-ed some time ago as it broke and old wine compile. After I unmasked it kdevelop compiled fine.

flex-2.5.33-r1 is currently marked stable and is the oldest version that works for kdevelop-3.4.0. IMHO the kdevelop ebuild should have >=sys-devel/flex2.5.33-r1 as a build-time dependency.
Comment 3 Dorin Scutarasu 2007-02-16 14:05:01 UTC
Created attachment 110381 [details]
ebuild depending on >=sys-devel/flex-2.5.33-r1
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-02-16 15:43:53 UTC
Fixed now, thanks for reporting.