Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 377371 - grub configure: error: bison is not found
Summary: grub configure: error: bison is not found
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-02 06:24 UTC by Srdjan Rakic
Modified: 2011-08-02 08:59 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 Srdjan Rakic 2011-08-02 06:24:56 UTC
Newly installed Gentoo system doesn't include bison.

emerge -p @system

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

Calculating dependencies... done!
[ebuild   R    ] app-arch/xz-utils-5.0.1 
[ebuild   R    ] sys-libs/zlib-1.2.5-r2 
[ebuild   R    ] sys-devel/gnuconfig-20100924 
[ebuild   R    ] sys-devel/patch-2.5.9 
[ebuild   R    ] app-arch/bzip2-1.0.6 
[ebuild   R    ] app-arch/cpio-2.11 
[ebuild   R    ] sys-apps/which-2.20 
[ebuild   R    ] virtual/os-headers-0 
[ebuild   R    ] sys-devel/binutils-2.20.1-r1 
[ebuild   R    ] virtual/man-0 
[ebuild   R    ] sys-apps/baselayout-2.0.3 
[ebuild   R    ] sys-apps/grep-2.5.4-r1 
[ebuild   R    ] sys-apps/kbd-1.15 
[ebuild   R    ] sys-apps/busybox-1.17.4 
[ebuild   R    ] sys-apps/net-tools-1.60_p20110409135728 
[ebuild   R    ] sys-apps/gawk-3.1.8 
[ebuild   R    ] sys-apps/file-5.05 
[ebuild   R    ] app-arch/tar-1.23-r2 
[ebuild   R    ] virtual/package-manager-0 
[ebuild   R    ] virtual/editor-0 
[ebuild   R    ] sys-apps/coreutils-8.7 
[ebuild   R    ] sys-devel/make-3.82 
[ebuild   R    ] virtual/ssh-0 
[ebuild   R    ] virtual/dev-manager-0 
[ebuild   R    ] sys-apps/findutils-4.4.2 
[ebuild   R    ] app-arch/gzip-1.4  USE="pic*" 
[ebuild   R    ] net-misc/wget-1.12-r3 
[ebuild   R    ] sys-apps/diffutils-3.0 
[ebuild   R    ] virtual/libc-0 
[ebuild   R    ] sys-apps/sed-4.2.1 
[ebuild   R    ] sys-apps/man-pages-3.28 
[ebuild   R    ] net-misc/rsync-3.0.8 
[ebuild   R    ] sys-apps/module-init-tools-3.12-r1 
[ebuild   R    ] net-misc/iputils-20100418-r1 
[ebuild   R    ] sys-apps/shadow-4.1.4.3 
[ebuild   R    ] sys-apps/util-linux-2.19.1 
[ebuild   R    ] virtual/pager-0 
[ebuild   R    ] sys-process/procps-3.2.8-r2 
[ebuild   R    ] sys-apps/texinfo-4.13 
[ebuild   R    ] sys-fs/e2fsprogs-1.41.12 
[ebuild   R    ] app-shells/bash-4.1_p9 
[ebuild  N     ] sys-libs/gpm-1.20.6  USE="(-selinux)" 
[ebuild   R    ] sys-libs/ncurses-5.7-r7 
[ebuild   R    ] sys-process/psmisc-22.12  USE="X*" 
[ebuild   R    ] sys-libs/readline-6.1_p2 
[ebuild   R    ] sys-devel/gcc-4.4.5

grub fails in configure faze with the following error:

>>> Emerging (31 of 31) sys-boot/grub-1.99_rc1
 * grub-1.99~rc1.tar.gz RMD160 SHA1 SHA256 size ;-) ...                  [ ok ]
 * Package:    sys-boot/grub-1.99_rc1
 * Repository: gentoo
 * Maintainer: base-system@gentoo.org
 * USE:        amd64 elibc_glibc kernel_linux multilib truetype userland_GNU
 * FEATURES:   sandbox
>>> Unpacking source...
>>> Unpacking grub-1.99~rc1.tar.gz to /var/tmp/portage/sys-boot/grub-1.99_rc1/work
 * Applying grub-1.99-genkernel.patch ...                                [ ok ]
>>> Source unpacked in /var/tmp/portage/sys-boot/grub-1.99_rc1/work
>>> Compiling source in /var/tmp/portage/sys-boot/grub-1.99_rc1/work/grub-1.99~rc1 ...
 * econf: updating grub-1.99~rc1/build-aux/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating grub-1.99~rc1/build-aux/config.guess with /usr/share/gnuconfig/config.guess
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-werror --sbindir=/sbin --bindir=/bin --libdir=/lib64 --disable-efiemu --enable-grub-mkfont --disable-mm-debug --disable-grub-emu --disable-grub-emu-usb --disable-grub-fstest
configure: WARNING: unrecognized options: --disable-grub-emu, --disable-grub-fstest
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for cmp... cmp
checking for bison... no
configure: error: bison is not found

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/sys-boot/grub-1.99_rc1/work/grub-1.99~rc1/config.log
 * ERROR: sys-boot/grub-1.99_rc1 failed (compile phase):
 *   econf failed
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 2613:  Called econf '--disable-werror' '--sbindir=/sbin' '--bindir=/bin' '--libdir=/lib64' '--disable-efiemu' '--enable-grub-mkfont' '--disable-mm-debug' '--disable-grub-emu' '--disable-grub-emu-usb' '--disable-grub-fstest'
 *     ebuild.sh, line  557:  Called die
 * The specific snippet of code:
 *         die "econf failed"
 * 
 * If you need support, post the output of 'emerge --info =sys-boot/grub-1.99_rc1',
 * the complete build log and the output of 'emerge -pqv =sys-boot/grub-1.99_rc1'.
 * The complete build log is located at '/var/tmp/portage/sys-boot/grub-1.99_rc1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-boot/grub-1.99_rc1/temp/environment'.
 * S: '/var/tmp/portage/sys-boot/grub-1.99_rc1/work/grub-1.99~rc1'

>>> Failed to emerge sys-boot/grub-1.99_rc1, Log file:

>>>  '/var/tmp/portage/sys-boot/grub-1.99_rc1/temp/build.log'

 * Messages for package x11-proto/xproto-7.0.21:

 * QA: CONFIGURE_OPTIONS are deprecated. Please migrate to XORG_CONFIGURE_OPTIONS to preserve namespace.

 * Messages for package media-fonts/font-util-1.2.0:

 * QA: CONFIGURE_OPTIONS are deprecated. Please migrate to XORG_CONFIGURE_OPTIONS to preserve namespace.

 * Messages for package x11-proto/xextproto-7.2.0:

 * QA: CONFIGURE_OPTIONS are deprecated. Please migrate to XORG_CONFIGURE_OPTIONS to preserve namespace.

 * Messages for package x11-libs/xtrans-1.2.6:

 * QA: CONFIGURE_OPTIONS are deprecated. Please migrate to XORG_CONFIGURE_OPTIONS to preserve namespace.

 * Messages for package x11-proto/xcb-proto-1.6-r1:

 * Deleting byte-compiled Python modules needlessly generated by build system:
 *  /var/tmp/portage/x11-proto/xcb-proto-1.6-r1/image/usr/lib64/python2.7/site-packages/xcbgen/error.pyo
 *  /var/tmp/portage/x11-proto/xcb-proto-1.6-r1/image/usr/lib64/python2.7/site-packages/xcbgen/matcher.pyc
 *  /var/tmp/portage/x11-proto/xcb-proto-1.6-r1/image/usr/lib64/python2.7/site-packages/xcbgen/state.pyo
 *  /var/tmp/portage/x11-proto/xcb-proto-1.6-r1/image/usr/lib64/python2.7/site-packages/xcbgen/expr.pyo
 *  /var/tmp/portage/x11-proto/xcb-proto-1.6-r1/image/usr/lib64/python2.7/site-packages/xcbgen/matcher.pyo
 *  /var/tmp/portage/x11-proto/xcb-proto-1.6-r1/image/usr/lib64/python2.7/site-packages/xcbgen/expr.pyc
 *  /var/tmp/portage/x11-proto/xcb-proto-1.6-r1/image/usr/lib64/python2.7/site-packages/xcbgen/state.pyc
 *  /var/tmp/portage/x11-proto/xcb-proto-1.6-r1/image/usr/lib64/python2.7/site-packages/xcbgen/error.pyc
 *  /var/tmp/portage/x11-proto/xcb-proto-1.6-r1/image/usr/lib64/python2.7/site-packages/xcbgen/xtypes.pyc
 *  /var/tmp/portage/x11-proto/xcb-proto-1.6-r1/image/usr/lib64/python2.7/site-packages/xcbgen/__init__.pyo
 *  /var/tmp/portage/x11-proto/xcb-proto-1.6-r1/image/usr/lib64/python2.7/site-packages/xcbgen/__init__.pyc
 *  /var/tmp/portage/x11-proto/xcb-proto-1.6-r1/image/usr/lib64/python2.7/site-packages/xcbgen/xtypes.pyo
 * Please rebuild both libxcb and xcb-util if you are upgrading from version 1.6

 * Messages for package x11-libs/libXdmcp-1.1.0:

 * QA: CONFIGURE_OPTIONS are deprecated. Please migrate to XORG_CONFIGURE_OPTIONS to preserve namespace.

 * Messages for package x11-libs/libfontenc-1.1.0:

 * QA: CONFIGURE_OPTIONS are deprecated. Please migrate to XORG_CONFIGURE_OPTIONS to preserve namespace.

 * Messages for package x11-libs/libX11-1.4.3:

 * QA: CONFIGURE_OPTIONS are deprecated. Please migrate to XORG_CONFIGURE_OPTIONS to preserve namespace.

 * Messages for package media-libs/freetype-2.4.4:

 * The TrueType bytecode interpreter is no longer patented and thus no
 * longer controlled by the bindist USE flag.  Enable the auto-hinter
 * USE flag if you want the old USE=bindist hinting behavior.

 * Messages for package x11-apps/mkfontscale-1.0.8:

 * QA: CONFIGURE_OPTIONS are deprecated. Please migrate to XORG_CONFIGURE_OPTIONS to preserve namespace.

 * Messages for package media-libs/fontconfig-2.8.0-r1:

 * Please make fontconfig configuration changes using `eselect fontconfig`
 * Any changes made to /etc/fonts/fonts.conf will be overwritten.
 * 
 * If you need to reset your configuration to upstream defaults, delete
 * the directory /etc/fonts/conf.d/ and re-emerge fontconfig.

 * Messages for package media-fonts/dejavu-2.32:

 * The following fontconfig configuration files have been installed:
 * 
 *   20-unhint-small-dejavu-sans-mono.conf
 *   20-unhint-small-dejavu-sans.conf
 *   20-unhint-small-dejavu-serif.conf
 *   57-dejavu-sans-mono.conf
 *   57-dejavu-sans.conf
 *   57-dejavu-serif.conf
 * 
 * Use `eselect fontconfig` to enable/disable them.

 * Messages for package sys-boot/grub-1.99_rc1:

 * ERROR: sys-boot/grub-1.99_rc1 failed (compile phase):
 *   econf failed
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 2613:  Called econf '--disable-werror' '--sbindir=/sbin' '--bindir=/bin' '--libdir=/lib64' '--disable-efiemu' '--enable-grub-mkfont' '--disable-mm-debug' '--disable-grub-emu' '--disable-grub-emu-usb' '--disable-grub-fstest'
 *     ebuild.sh, line  557:  Called die
 * The specific snippet of code:
 *         die "econf failed"
 * 
 * If you need support, post the output of 'emerge --info =sys-boot/grub-1.99_rc1',
 * the complete build log and the output of 'emerge -pqv =sys-boot/grub-1.99_rc1'.
 * The complete build log is located at '/var/tmp/portage/sys-boot/grub-1.99_rc1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-boot/grub-1.99_rc1/temp/environment'.
 * S: '/var/tmp/portage/sys-boot/grub-1.99_rc1/work/grub-1.99~rc1'

 * Regenerating GNU info directory index...
 * Processed 84 info files.

 * IMPORTANT: 2 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

I assume the ebuild has to include bison as dependency? 


Reproducible: Didn't try
Comment 1 Srdjan Rakic 2011-08-02 07:37:00 UTC
emerge --info
Portage 2.1.10.3 (default/linux/amd64/10.0, gcc-4.4.5, glibc-2.12.2-r0, 2.6.32-5-amd64 x86_64)
=================================================================
System uname: Linux-2.6.32-5-amd64-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T6500_@_2.10GHz-with-gentoo-2.0.3
Timestamp of tree: Mon, 01 Aug 2011 19:00:01 +0000
app-shells/bash:          4.1_p9
dev-lang/python:          2.7.1-r1, 3.1.3-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.1
sys-devel/binutils:       2.20.1-r1
sys-devel/gcc:            4.4.5
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.2.10
sys-devel/make:           3.82
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://gentoo.gossamerhost.com rsync://gentoo.gossamerhost.com/gentoo-distfiles/ http://mirrors.163.com/gentoo/ ftp://mirrors.sohu.com/gentoo/ http://mirrors.sohu.com/gentoo/ ftp://mirrors.stuhome.net/gentoo/ rsync://mirrors.stuhome.net/gentoo/ http://gentoo.aditsu.net:8000/ ftp://gentoo.inf.elte.hu/ http://gentoo.inf.elte.hu/ ftp://mirror.isoc.org.il/gentoo/ http://mirror.isoc.org.il/pub/gentoo/ http://gentoo.channelx.biz/ http://gentoo.gg3.net/ ftp://gg3.net/pub/linux/gentoo/ rsync://mirror.neolabs.kz/gentoo http://mirror.neolabs.kz/gentoo/pub ftp://mirror.neolabs.kz/gentoo/pub http://gentoo.kems.net ftp://gentoo.kems.net/mirrors/gentoo http://archive.mmu.edu.my/gentoo rsync://gentoo.bloodhost.ru/gentoo-distfiles ftp://gentoo.bloodhost.ru/ http://gentoo.bloodhost.ru/ http://mirror2.corbina.ru/gentoo-distfiles/ ftp://mirror2.corbina.ru/gentoo-distfiles/ rsync://mirror2.corbina.ru/gentoo-distfiles/ http://ftp.twaren.net/Linux/Gentoo/ ftp://mirror.bytemark.co.uk/gentoo/ http://mirror.bytemark.co.uk/gentoo/ rsync://mirror.bytemark.co.uk/gentoo/ rsync://gentoo.kiev.ua/gentoo-distfiles ftp://gentoo.kiev.ua/ http://gentoo.kiev.ua/ftp/ http://mirror.mcs.anl.gov/pub/gentoo/ rsync://mirror.mcs.anl.gov/gentoo/ ftp://mirror.mcs.anl.gov/pub/gentoo/ http://gentoo.chem.wisc.edu/gentoo/"
LANG="en_GB.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 --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip X a52 acc acl alsa amd64 amr apng asf audiofile bash-completion berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups curl cxx djvu dri dts dvd emboss encode exif fam fbcon ffmpeg firefox flac flash fortran ftp gdbm gimp gnome-keyring gpm gstreamer gtk3 iconv ipv6 java javascript jpeg libnotify libwww matroska midi mmx mmxext modules mp4 mpeg mudflap multilib mysql mysqli ncurses nls nptl nptlonly nsplugin opengl openmp pam pcre pda pdf perl pic png pppd python readline session shorten sqllite sse sse2 sse3 ssl startup-notification suid svg sysfs tcpd threads thunar tiff transcode truetype udev unicode usb v4l vaapi vhosts vorbis wifi x264 xorg xv xvid yahoo zlib" 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" 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="braindump flow karbon kexi kpresenter krita tables words" 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" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Srdjan Rakic 2011-08-02 08:59:12 UTC
I've just built virtual machine to try and reproduce this problem. Grub installed just fine without bison. 

The original problem I picked up on IRC, it was not on my machine. I will mark this as resolved.