Hi, The following bison version 2.4.2 does not compile. I've found the issue is discussed here: http://www.mail-archive.com/uclibc@uclibc.org/msg05166.html With a proposed patch. By the way, it's the exact same error for the m4 package. Using x86, with default CFlags and uclibc on hardened. 2.4.1 is fine. Fariouche Reproducible: Always
In the future, please give emerge --info and the relevant part of build.log.
(In reply to comment #1) > In the future, please give emerge --info and the relevant part of build.log. > Sorry, I can't give the build.log file yet, my system is still rebuilding. As soone as it's done I will give it a try again. My portage info: Portage 2.1.8.3 (uclibc/x86/hardened, gcc-4.3.4-hardenednopie, uclibc-0.9.30.1-r1, 2.6.31.5-0.1-desktop x86_64) ================================================================= System uname: Linux-2.6.31.5-0.1-desktop-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7500_@_2.20GHz-with-gentoo-2.0.1 Timestamp of tree: Fri, 30 Apr 2010 23:00:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 4.1_p5 dev-lang/python: 2.4.6, 2.6.5-r1, 3.1.2-r2 dev-python/pycrypto: 2.1.0 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.6.1-r1 sys-apps/sandbox: 2.2 sys-devel/autoconf: 2.65 sys-devel/automake: 1.11.1 sys-devel/binutils: 2.20.1 sys-devel/gcc: 3.4.6-r2, 4.3.4 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.33 ACCEPT_KEYWORDS="x86 ~x86" ACCEPT_LICENSE="* -@EULA" CBUILD="i686-gentoo-linux-uclibc" CFLAGS="-O2 -march=core2 -mtune=generic -mssse3 -mfpmath=sse -fomit-frame-pointer -pipe" CHOST="i686-gentoo-linux-uclibc" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=core2 -mtune=generic -mssse3 -mfpmath=sse -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests autoconfig buildpkg ccache distlocks fixpackages news nodoc noinfo noman parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1" 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" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="cli crypt cxx dri hardened lm_sensors minimal mmx modules mudflap ncurses openmp pcre perl pic python readline reflection samba session smp spl sse sse2 ssl tcpd threads uclibc unicode x86 xorg zlib" 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 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="uclibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="dummy fbdev v4l" 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, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Oh I've just found the build log in the tmp folder: Here is the relevant part: depbase=`echo mbswidth.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ i686-gentoo-linux-uclibc-gcc -std=gnu99 -I. -O2 -march=core2 -mtun$ mv -f $depbase.Tpo $depbase.Po depbase=`echo pipe.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ i686-gentoo-linux-uclibc-gcc -std=gnu99 -I. -O2 -march=core2 -mtun$ mv -f $depbase.Tpo $depbase.Po In file included from pipe.c:47: ./spawn.h:112: error: field '_sp' has incomplete type make[4]: *** [pipe.o] Error 1 make[4]: *** Waiting for unfinished jobs....
Created attachment 230029 [details] build.log the build.log for bison 2.4.2
Created attachment 242383 [details, diff] Patch to fix bison-2.4.2 with uClibc The following is a hack around the problem, if you add a suitable epatch line to src_unpack, you'll find the package compiles fine. As I say, this is a bit of a hack, based on the comments made in that thread.
Comment on attachment 242383 [details, diff] Patch to fix bison-2.4.2 with uClibc and this probably breaks on non-glibc/uclibc systems how about changing the check to look for __GLIBC__ or __UCLIBC__
http://sources.gentoo.org/sys-devel/bison/bison-2.4.2.ebuild?r1=1.9&r2=1.10 http://sources.gentoo.org/sys-devel/bison/bison-2.4.3.ebuild?r1=1.1&r2=1.2 http://sources.gentoo.org/sys-devel/bison/files/bison-2.4.3-uclibc-sched_param-def.patch?rev=1.1