Try to compile newest (unstable) sys-fs/e2fsprogs on ppc32 (to get ext4 with bug fixes). sys-libs/e2fsprogs-libs-1.41.6 compiles without problem; however, sys-fs/e2fsprogs-1.41.6, dies with making all in e2fsck make[2]: Entering directory `/var/tmp/portage/sys-fs/e2fsprogs-1.41.6/work/e2fsprogs-1.41.6/e2fsck' COMPILE_ET prof_err.et CC gen_crc32table GEN32TABLE crc32table.h CC crc32.c CC dict.c CC unix.c unix.c: In function ‘PRS’: unix.c:654: error: ‘et_ext2_error_table’ undeclared (first use in this function) unix.c:654: error: (Each undeclared identifier is reported only once unix.c:654: error: for each function it appears in.) unix.c:655: error: ‘et_prof_error_table’ undeclared (first use in this function) unix.c: In function ‘main’: unix.c:1441: error: ‘et_ext2_error_table’ undeclared (first use in this function) unix.c:1442: error: ‘et_prof_error_table’ undeclared (first use in this function) make[2]: *** [unix.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/sys-fs/e2fsprogs-1.41.6/work/e2fsprogs-1.41.6/e2fsck' make[1]: *** [all-progs-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/sys-fs/e2fsprogs-1.41.6/work/e2fsprogs-1.41.6' make: *** [all] Error 2 Reproducible: Always Steps to Reproduce: See above Actual Results: Updated sys-libs/e2fsprogs-libs, but failed sys-fs/e2fsprogs Expected Results: Successful comple of both packages. quicky ~ # emerge --info Portage 2.1.6.13 (default/linux/powerpc/ppc32/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.29-gentoo-r5 ppc) ================================================================= System uname: Linux-2.6.29-gentoo-r5-ppc-7450,_altivec_supported-with-glibc2.0 Timestamp of tree: Sun, 14 Jun 2009 23:15:01 +0000 distcc 3.1 powerpc-unknown-linux-gnu [disabled] ccache version 2.4 [disabled] app-shells/bash: 3.2_p39 dev-java/java-config: 2.1.7 dev-lang/python: 2.5.4-r2 dev-python/pycrypto: 2.0.1-r8 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.6.2-r1 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.6.3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="ppc" CBUILD="powerpc-unknown-linux-gnu" CFLAGS="-O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe" CHOST="powerpc-unknown-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/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 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans user-fetch userfetch" GENTOO_MIRRORS="http://ftp.ds.karen.hj.se/gentoo/ http://ftp.ing.umu.se/linux/gentoo/ http://ftp.linux.ee/pub/gentoo/distfiles/" LC_ALL="en_US.utf8" LDFLAGS="-Wl,-O1" LINGUAS="en_US en_GB sv_SE sv" MAKEOPTS="-j1" PKGDIR="/var/pkg" 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="/usr/local/portage" SYNC="rsync://giddy.michael.hammill.name/gentoo-portage" USE="X a52 aac acl alsa altivec avahi bash-completion berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups curl dbus dri dts dvd dvdr dvi dvi2tty dvipdfm emacs emboss encode escreen esd evo expat extra faac faad fam ffmpeg firefox flac fortran gdbm gif gnutls gpm graphics graphviz gs gstreamer gtk gtk2 gtkhtml hal humanities iconv ieee1394 imlib ipv6 isdnlog jai java jpeg jython kerberos keyring kpathsea latex latex3 ldap libcaca libnotify live mad mailwrapper mdnsresponder-compat midi mikmod mp3 mpeg mudflap nagios-ssh ncurses network network-cron nls nntp no-old-linux nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png ppc ppds pppd pulseaudio pymacs python qt3support quicktime readline reflection ruby science sdl session sound spell spl ssl startup-notification svg sysfs tcpd tex4ht theora threads tiff truetype unicode usb vcd vorbis wmf xanim xcb xinerana xml xorg xulrunner xv zlib" ALSA_CARDS="powermac" 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US en_GB sv_SE sv" USERLAND="GNU" VIDEO_CARDS="r128 radeon fbdev" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
try building with MAKEOPTS=-j1
I tried MAKEOPTS=j1 and it failed with the same error. Do you need more info?
Oops...hold on now. I tried -j1 but also distcc. I am retrying now without distcc involved. Will return with results in a few minutes.
No, unfortunately, it dies with both distcc and ccache off. Rather a nasty bug in that everything up to e2fsprogs updates without problem, but you need e2fsprogs to have a properly running system. The rest of the machine is basically running stable. To upgrade to the newest e2fsprogs, I did: Add to /etc/portage/package.keywords: sys-fs/e2fsprogs sys-libs/e2fsprogs-libs sys-apps/util-linux sys-devel/libtool:1.5 Unmerge sys-fs/e2fsprogs-1.41.3-r1 (latest stable) emerge sys-fs/e2fsprogs No problem building the dependencies that automatically come in, namely: sys-libs/e2fsprogs-libs-1.41.8 sys-devel/libtool-2.2.6a sys-apps/util-linux-2.16 But then on the last one, sys-fs/e2fsprogs-1.41.8, failure noted.
Updated Summary to include the lastest 1.41.9 which also fails on exactly the same problem. Again, e2fsprogs-libs-1.41-9 compiles without problem.
*Might* have just found the problem....most likely caused by bug in heimdal ebuild that leaves around old files.... Was able to compile e2fsprogs on one ppc32 but not on another. Will come back with more details.
Solved. After looking at <http://forums.gentoo.org/viewtopic-p-5361020.html> I saw mention of someone having trouble with the problematic file, compile_et. That reminded me a an earlier bug on another arch I filed, namely, bug #259838. I checked for compile_et and found it just on the machine I had trouble compiling e2fsprogs on. Specifically it's at /usr/local/bin/compile_et (see below). In any case, removing this file, which no package seems to own anymore, fixes the problem on ppc32. Anyway to warn and/or get rid of this file in the ebuild before beginning the build? quicky ~ # equery b /usr/local/bin/compile_et [ Searching for file(s) /usr/local/bin/compile_et in *... ] ls quicky ~ # ls -l /usr/local/bin/compile_et -rwxr-xr-x 1 root root 30828 2009-05-17 19:12 /usr/local/bin/compile_et # file /usr/local/bin/compile_et compile_et: ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), stripped # strings /usr/local/bin/compile_et | tail fatal flex scanner internal error--no action found Error code %s (%d) out of order (char *)NULL, %d %s "%s", et%ld syntax error memory exhausted %s: Assertion failed! file %s, line %d. @(#) OpenAFS 1.4.10 built 2009-05-17