Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 247981 - net-dialup/linux-atm-2.5.0 doesn't build with bison 2.4
Summary: net-dialup/linux-atm-2.5.0 doesn't build with bison 2.4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Highest normal (vote)
Assignee: Gentoo Dialup Developers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-21 15:59 UTC by Grzegorz {NineX} Krzystek
Modified: 2009-02-28 09:15 UTC (History)
6 users (show)

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 Grzegorz {NineX} Krzystek 2008-11-21 15:59:53 UTC
net-dialup/linux-atm-2.5.0 fails to compile with error:
Making all in qgen
/var/tmp/portage/net-dialup/linux-atm-2.5.0/work/linux-atm-2.5.0/src/qgen/ql_y.y:435.13-14: $$ for the midrule at $5 of `tags' has no declared type
/var/tmp/portage/net-dialup/linux-atm-2.5.0/work/linux-atm-2.5.0/src/qgen/ql_y.y:436.13-14: $$ for the midrule at $5 of `tags' has no declared type
/var/tmp/portage/net-dialup/linux-atm-2.5.0/work/linux-atm-2.5.0/src/qgen/ql_y.y:478.13-14: $$ for the midrule at $5 of `rep_tags' has no declared type
/var/tmp/portage/net-dialup/linux-atm-2.5.0/work/linux-atm-2.5.0/src/qgen/ql_y.y:479.13-14: $$ for the midrule at $5 of `rep_tags' has no declared type
make[3]: *** [ql_y.c] Error 1
make[3]: *** Waiting for unfinished jobs....
ql_l.c:1188: warning: ‘yyunput’ defined but not used
ql_l.c:1231: warning: ‘input’ defined but not used
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


Reproducible: Always




emerge --info
Portage 2.2_rc14 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.27-gentoo-r2 i686)
=================================================================
System uname: Linux-2.6.27-gentoo-r2-i686-AMD_Athlon-tm-_64_Processor_3200+-with-glibc2.0
Timestamp of tree: Fri, 21 Nov 2008 08:07:01 +0000
app-shells/bash:     3.2_p48
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r8
dev-util/cmake:      2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -pipe -O2 -fomit-frame-pointer"
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/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/init.d /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=i686 -pipe -O2 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="candy collision-protect distlocks metadata-transfer parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.prz.rzeszow.pl            http://distfiles.gentoo.org             http://www.ibiblio.org/pub/Linux/distributions/gentoo          http://dev.gentoo.org"
LDFLAGS="-Wl,-O1"
LINGUAS="pl en"
MAKEOPTS="-s -j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac accessibility acpi alisp alsa amazon amrnb amrwb ao aotuv atm audiofile bash-completion branding bzip2 cairo caps cddb cdio cdparanoia contrast corefonts cups cupsddk curl cxx dbus devil dga dirac djbfft djvu dri dts dvd dvdr dvdread enca encode exif expat fam fbcon ffmpeg flac fontconfig fpx ftp gd gecko gif gimp glib glitz gnutls gpm graphviz grub gs gtk hal hdri icons iconv icu id3tag idn ieee1394 imagemagick ipv6 irrlicht java jbig jpeg jpeg2k kde lame laptop lcms libgcrypt libsamplerate libssh2 lm_sensors logitech-mouse logrotate lzo mad masquerade midi mjpeg mmap mmx mmxext mng mp2 mp3 mp4 mpeg mplayer multicall musepack nas ncurses nemesi network-cron nls nptl nsplugin nss offensive ogg ogg123 openal openexr opengl openmp pam pccts pcf pch pcre pdf perl pixmaps plugins png ppds python q32 q8 qt3 qt3support qt4 quicktime rar raw rdesktop readline rle rtc samba schroedinger sdl slang slp smp sndfile speex spell sqlite srt sse sse2 ssl startup-notification svg symlink syslog theora threads threadsafe tiff timezone truetype unicode utempter utils v4l2 vcd visualization voice vorbis wavpack wmf x264 x86 xanim xcb xinerama xml xmp xorg xpm xscreensaver xulrunner xv xvid yv12 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 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-11-22 17:28:55 UTC
Which version of sys-devel/bison do you have installed?
Comment 2 Grzegorz {NineX} Krzystek 2008-11-22 18:25:32 UTC
(In reply to comment #1)
> Which version of sys-devel/bison do you have installed?
> 

bison-2.4-r1
Comment 3 James Shaw (Simba7) 2008-11-22 19:43:56 UTC
I'm having this problem as well. Everything's the latest and this has been bombing out lately.

It worked fine a couple weeks ago, but I had to recompile the system (ooops..) and now this isn't compiling correctly.

My system (well. router..) is a Dual P3@1GHz running a Reiser4-enabled gentoo-sources-2.6.27-r4 kernel.
Comment 4 Alin Năstac (RETIRED) gentoo-dev 2008-11-30 21:30:22 UTC
Apparently there is a bug in bison-2.4-r1. Following source lines are present in the .y file:

%union {
    const char *str;
    int num;
    FIELD *field;
    VALUE *value;
    VALUE_LIST *list;
    TAG *tag;
    NAME_LIST *nlist;
};

%token          TOK_BREAK TOK_CASE TOK_DEF TOK_DEFAULT TOK_LENGTH TOK_MULTI
%token          TOK_RECOVER TOK_ABORT
%token <str>    TOK_ID TOK_INCLUDE TOK_STRING

%type <field>   rep_block block fields field field_cont
%type <num>     opt_break opt_pos decimal opt_more
%type <value>   opt_val value
%type <tag>     tags rep_tags
%type <list>    list
%type <str>     opt_id opt_recover
%type <nlist>   opt_name_list

As you can see, both "rep_tags" and "tags" tokens have the type "tag", but for some reason bison fails to process it.
Comment 5 Alexander Huemer 2009-02-17 16:11:06 UTC
same problem here.
was the bug reported upstream?
is there a temporal fix?

emerge --info:
# emerge --info
Portage 2.2_rc23 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.28-gentoo-r1-blackbit x86_64)
=================================================================
System uname: Linux-2.6.28-gentoo-r1-blackbit-x86_64-Intel-R-_Xeon-R-_CPU_E5420_@_2.50GHz-with-glibc2.2.5
Timestamp of tree: Tue, 17 Feb 2009 14:30:01 +0000
app-shells/bash:     3.2_p48-r1
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.5.4-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r1
sys-apps/sandbox:    1.3.7
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=nocona"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=nocona"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS=""
LINGUAS="en de"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles -exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/mozilla /usr/portage/local/layman/sunrise /usr/portage/local/layman/dirtyepic /usr/portage/local/blackbit-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
Comment 6 Rafał Mużyło 2009-02-27 22:30:13 UTC
I think, it's time for me to be my unhelpful self again.

Comment 4 is completely off-topic.
While my bison knowledge hasn't improved since then,
I kindly point you to bug 246262 comment 7.

This looks like exactly the same case - src/qgen/ql_y.y is broken
and bison 2.4 simply noticed that.

Only sane way to fix it is to patch that file.
As upstream seems dead, distro has to provide it.
Maybe some already do.

Comment 7 Alexander Huemer 2009-02-27 22:39:41 UTC
thanks for the pointers.
this makes clear that it is not the fault of bison and that later versions/revisions will not help.
upstream of linux-atm is not completely dead. i am subscribed to the mailing list and get responses to my questions most of the time. i posted something about this issue today.
it is indeed a good idea to take a look at the patch-sets of other distros, but in case a patch already exists it would be a shame that is wasn't posted on the ML.
Comment 8 Alin Năstac (RETIRED) gentoo-dev 2009-02-28 08:55:51 UTC
Reassigned to net-dialup team.
Comment 9 Alin Năstac (RETIRED) gentoo-dev 2009-02-28 09:15:02 UTC
Fixed in cvs, w/o rev bump.

I find this bison error quite strange. IMHO $$ should be equivalent with LHS, regardless of the rule position.