Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 429954 - sys-devel/flex-2.5.37 fails tests with bison-2.6
Summary: sys-devel/flex-2.5.37 fails tests with bison-2.6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-05 03:56 UTC by Ryan Hill (RETIRED)
Modified: 2012-08-11 16:07 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 Ryan Hill (RETIRED) gentoo-dev 2012-08-05 03:56:25 UTC
Executing test test-bison-yylloc
Test test-bison-yylloc FAILED. See test-bison-yylloc/OUTPUT for details.
Executing test test-bison-yylval
Test test-bison-yylval FAILED. See test-bison-yylval/OUTPUT for details.


tundra ~/portage/sys-devel/flex-2.5.37/work/flex-2.5.37/tests/test-bison-yylloc # cat OUTPUT 
make[5]: Entering directory `/var/tmp/portage/sys-devel/flex-2.5.37/work/flex-2.5.37/tests/test-bison-yylloc'
../../flex scanner.l
/usr/bin/bison --defines --output=parser.c --name-prefix="test" parser.y
x86_64-pc-linux-gnu-gcc -c -o scanner.o -I. -I../.. -I../.. -I.  -O2 -march=native -pipe scanner.c
x86_64-pc-linux-gnu-gcc -c -o parser.o -I. -I../.. -I../.. -I.  -O2 -march=native -pipe parser.c
parser.c: In function 'testparse':
parser.c:1542:9: warning: passing argument 1 of 'testerror' discards 'const' qualifier from pointer target type [enabled by default]
parser.y:38:5: note: expected 'char *' but argument is of type 'const char *'
x86_64-pc-linux-gnu-gcc -c -o main.o -I. -I../.. -I../.. -I.  -O2 -march=native -pipe main.c
main.c:27:12: error: conflicting types for 'testparse'
parser.h:98:5: note: previous declaration of 'testparse' was here
make[5]: *** [main.o] Error 1
make[5]: Leaving directory `/var/tmp/portage/sys-devel/flex-2.5.37/work/flex-2.5.37/tests/test-bison-yylloc'


tundra ~/portage/sys-devel/flex-2.5.37/work/flex-2.5.37/tests/test-bison-yylval # cat OUTPUT 
make[5]: Entering directory `/var/tmp/portage/sys-devel/flex-2.5.37/work/flex-2.5.37/tests/test-bison-yylval'
/usr/bin/bison --defines --output=parser.c --name-prefix="test" parser.y
x86_64-pc-linux-gnu-gcc -c -o parser.o -I. -I../.. -I../.. -I.  -O2 -march=native -pipe parser.c
parser.c: In function 'testparse':
parser.c:1489:9: warning: passing argument 1 of 'testerror' discards 'const' qualifier from pointer target type [enabled by default]
parser.y:38:5: note: expected 'char *' but argument is of type 'const char *'
../../flex scanner.l
x86_64-pc-linux-gnu-gcc -c -o scanner.o -I. -I../.. -I../.. -I.  -O2 -march=native -pipe scanner.c
x86_64-pc-linux-gnu-gcc -c -o main.o -I. -I../.. -I../.. -I.  -O2 -march=native -pipe main.c
main.c:27:12: error: conflicting types for 'testparse'
parser.h:85:5: note: previous declaration of 'testparse' was here
make[5]: *** [main.o] Error 1
make[5]: Leaving directory `/var/tmp/portage/sys-devel/flex-2.5.37/work/flex-2.5.37/tests/test-bison-yylval'
Comment 1 Ryan Hill (RETIRED) gentoo-dev 2012-08-05 03:56:58 UTC
Portage 2.2.0_alpha120 (default/linux/amd64/10.0/developer, gcc-4.6.3, glibc-2.15-r2, 3.5.0-gentoo x86_64)
=================================================================
System uname: Linux-3.5.0-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_Q_820_@_1.73GHz-with-gentoo-2.1
Timestamp of tree: Sun, 05 Aug 2012 03:30:01 +0000
ccache version 3.1.7 [enabled]
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12
dev-lang/python:          2.5.4-r4, 2.6.8, 2.7.3-r2
dev-util/ccache:          3.1.7
dev-util/cmake:           2.8.8-r3
dev-util/pkgconfig:       0.27
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.10.5
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.4_p6-r1, 1.9.6-r3, 1.11.6, 1.12.2
sys-devel/binutils:       2.22.90
sys-devel/gcc:            4.3.6-r1, 4.4.7, 4.5.4_pre9999::toolchain, 4.5.4, 4.6.3, 4.6.4_pre9999::toolchain, 4.7.1, 4.7.2_pre9999::toolchain
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.5 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo tlp multimedia science tundra gcc-porting toolchain dirtyepic
Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache clean-logs compress-build-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles multilib-strict news parallel-fetch parse-eapi-ebuild-head preserve-libs protect-owned sandbox sfperms sign split-log splitdebug strict test test-fail-continue unknown-features-warn unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org/"
LANG="en_US.utf8"
LDFLAGS="-Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_CA en_US"
MAKEOPTS="-j12 V=1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --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/tlp /var/lib/layman/multimedia /var/lib/layman/science /home/dirtyepic/overlay /home/dirtyepic/svn/gcc-porting /home/dirtyepic/svn/toolchain /home/dirtyepic/svn/dirtyepic"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa amd64 archive bash-completion berkdb branding bzip2 cairo ccache cdda cddb cdr cli consolekit cracklib crypt cscope curl cvs cxx dbus dri dts dvd dvdr egl emboss encode exif fam fat ffmpeg fftw firefox flac fontconfig gif git gmp graphite gstreamer gtk hdaps highlight iconv icu inotify jessie jpeg lastfm libffi libnotify lm_sensors lto lzma lzo mad mdnsresponder-compat menubar mmap mms mmx mmxext modules mp3 mp4 mpeg mplayer multilib ncurses network network-cron nntp nptl nsplugin ogg opengl openmp pam pango pcre pdf pixbuf png policykit postscript ppds pppd qt3support qt4 rar readline sdl session snmp spell sse sse2 sse3 sse4 sse4_1 ssl ssse3 startup-notification subversion svg syslog taglib tcpd theora threads threadsafe thumbnail thunar tiff tremor truetype tsmuxer udev udisks unicode upower urandom usb utempter vaapi vim vim-syntax vorbis webkit wicd wifi wxwidgets x264 xattr xcb xcomposite xml xv xvfb xvid zeroconf zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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" 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 ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_CA en_US" PHP_TARGETS="php5-3" PYTHON_TARGETS="python2_5 python2_6 python2_7" RUBY_TARGETS="ruby18 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"
USE_PYTHON="2.5 2.6 2.7"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 SpanKY gentoo-dev 2012-08-11 16:07:05 UTC
should be all set now in the tree; thanks for the report!

Commit message: Add fix from upstream for running tests w/bison-2.6
http://sources.gentoo.org/sys-devel/flex/files/flex-2.5.37-tests.patch?rev=1.1
http://sources.gentoo.org/sys-devel/flex/flex-2.5.37.ebuild?r1=1.1&r2=1.2