busybox-1.4.1-r2 ebuild fails on powerpc-gentoo-linux-uclibc with the following messages: <-- SNIP --> CC miscutils/nmeter.o CC miscutils/raidautorun.o CC miscutils/readahead.o miscutils/readahead.c: In function 'readahead_main': miscutils/readahead.c:26: warning: implicit declaration of function 'readahead' CC miscutils/runlevel.o CC miscutils/rx.o CC miscutils/setsid.o <-- SNIP --> CC util-linux/switch_root.o CC util-linux/umount.o AR util-linux/lib.a LINK busybox_unstripped miscutils/lib.a(readahead.o): In function `readahead_main': readahead.c:(.text.readahead_main+0x58): undefined reference to `readahead' collect2: ld returned 1 exit status make: *** [busybox_unstripped] Error 1 !!! ERROR: sys-apps/busybox-1.4.1-r2 failed. Call stack: ebuild.sh, line 1614: Called dyn_compile ebuild.sh, line 971: Called qa_call 'src_compile' environment, line 3330: Called src_compile busybox-1.4.1-r2.ebuild, line 173: Called die !!! build failed !!! If you need support, post the topmost build error, and the call stack if relevant. !!! A complete build log is located at '/var/tmp/portage/sys-apps/busybox-1.4.1-r2/temp/build.log'. I can attach the whole lot if it'll be useful. Reproducible: Always Steps to Reproduce: 1.emerge sys-apps/busybox emerge --info: Portage 2.1.2.2 (uclibc/ppc/2.4, gcc-4.1.1, uclibc-0.9.28-r1, 2.6.19-efika ppc) ================================================================= System uname: 2.6.19-efika ppc G2_LE Gentoo Base System release 1.12.9 Timestamp of tree: Tue, 08 May 2007 14:50:01 +0000 dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.61 sys-devel/automake: 1.6.3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.4.26-r1 ACCEPT_KEYWORDS="ppc" AUTOCLEAN="yes" CBUILD="powerpc-gentoo-linux-uclibc" CFLAGS="-Os -pipe" CHOST="powerpc-gentoo-linux-uclibc" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo" CXXFLAGS="-Os -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer nodoc noinfo noman sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LDFLAGS="-Wl,-z,relro" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://10.0.0.2/gentoo-portage" USE="bitmap-fonts bzip2 cli cracklib dri embedded fastcgi gd ipv6 midi mysql ncurses pcre php ppc readline reflection session spl ssl truetype-fonts type1-fonts uclibc uclibc-compat xorg zlib" 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" ELIBC="uclibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="dummy fbdev v4l" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY ...and with any luck, this won't be a dupe. Filed a bug earlier today, and it was marked as dupe - even though the bug it was duping never showed up in a search for the name of the package in question. I'll file a "meta-bug" if that happens again.
same build error, different arch: LINK busybox_unstripped miscutils/lib.a(readahead.o): In function `readahead_main': readahead.c:(.text.readahead_main+0x50): undefined reference to `readahead' collect2: ld returned 1 exit status make: *** [busybox_unstripped] Error 1 emerge --info Portage 2.1.2.7 (uclibc/arm, gcc-3.4.6, uclibc-0.9.28-r0, 2.6.14-rc2 armv5teb) ================================================================= System uname: 2.6.14-rc2 armv5teb XScale-IXP42x Family rev 1 (v5b) Gentoo Base System version 1.12.5 Timestamp of tree: Sun, 20 May 2007 09:00:01 +0000 distcc 2.18.3 armeb-softfloat-linux-uclibc (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.5, 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/confcache: 0.4.2-r1 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.13-r4 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.20-r2 ACCEPT_KEYWORDS="arm" AUTOCLEAN="yes" CBUILD="armeb-softfloat-linux-uclibc" CFLAGS="-march=armv5t -mtune=xscale -Os" CHOST="armeb-softfloat-linux-uclibc" CONFIG_PROTECT="/etc /var/bind" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=armv5t -mtune=xscale -Os" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig buildpkg distlocks metadata-transfer nodoc noinfo noman sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="apache2 arm bitmap-fonts cli cracklib dri ithreads jpeg midi mudflap mysql ncurses openmp pcre php readline reflection samba session snmp spl truetype-fonts type1-fonts uclibc usb xorg zlib" 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" ELIBC="uclibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="dummy fbdev v4l" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Found this bug report: http://bugs.uclibc.org/view.php?id=1145 Not an exact match, the last post sugested disabling the readahead applet. Not a great solution but it builds once that is done. .config <snip> # CONFIG_READAHEAD=y </snip> Is the readahead applet needed? I couldnt find the missing readahead() function in my system includes (/usr/include), from a quick google its meant to be defined in fcntl.h. Maybe the uclibc install is missing this function ?
(In reply to comment #2) Upgrade your uclibc.
*** Bug 190779 has been marked as a duplicate of this bug. ***
(In reply to comment #3) > (In reply to comment #2) > > Upgrade your uclibc. > I confirm upgrading to uclibc version 0.9.28.3 resolved the issue.