Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 157290

Summary: sys-apps/busybox-1.2.2.1 fails to build with uclibc
Product: Gentoo Linux Reporter: Jon Saints <saintsjd>
Component: New packagesAssignee: Embedded Gentoo Team <embedded>
Status: RESOLVED DUPLICATE    
Severity: normal CC: remspoor
Priority: High    
Version: 2006.1   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jon Saints 2006-12-05 22:37:28 UTC
busybox 1.2.2.1 fails to build with uclibc environment from embedded stages 2006.1

I see the error:
./bin: file changed as we read it
./sbin: file changed as we read it
.: file changed as we read it

!!! ERROR: sys-apps/busybox-1.2.2.1 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_install
  ebuild.sh, line 1020:   Called src_install
  busybox-1.2.2.1.ebuild, line 212:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.

emerge --info is:
Portage 2.1.1-r2 (uclibc/x86, gcc-4.1.1, uclibc-0.9.28-r1, 2.6.17-10-generic i686)
=================================================================
System uname: 2.6.17-10-generic i686 Pentium III (Coppermine)
Gentoo Base System version 1.12.6
Last Sync: Tue, 05 Dec 2006 01:47:01 +0000
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.60
sys-devel/automake:  1.6.3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i386-gentoo-linux-uclibc"
CFLAGS="-Os -pipe"
CHOST="i386-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 buildpkg ccache distlocks metadata-transfer nodoc noinfo noman sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-z,relro"
PKGDIR="/packages/uclibc"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 bitmap-fonts cli cracklib dlloader dri elibc_uclibc input_devices_evdev input_devices_keyboard input_devices_mouse kernel_linux minimal ncurses pcre readline reflection session spl truetype-fonts type1-fonts uclibc userland_GNU video_cards_dummy video_cards_fbdev video_cards_v4l xorg zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Jon Saints 2006-12-06 06:17:28 UTC
Swaping baselayout-lite for standard baselayout doesn't seem to fix the problem.
Comment 2 rinus 2006-12-09 11:08:37 UTC
Same error here.. :-(
I am trying to follow the gentoo-wiki.com/TinyGentoo page to make an Via Epia distro.

Steps i've done so far
- started with stage1
- bootstrap.sh
- emerge -e system (completed with --resume --skipfirst after the busybox error)
- emerge -e world (completed with --resume --skipfirst after the busybox error)
- masked sys-apps/busybox-1.2.2.1 to try 1.2.1 (same error)

Extra info:

willy busybox # pwd
/usr/portage/sys-apps/busybox
willy busybox # ebuild busybox-1.2.2.1.ebuild install

./bin: file changed as we read it
./sbin: file changed as we read it
.: file changed as we read it

!!! ERROR: sys-apps/busybox-1.2.2.1 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_install
  ebuild.sh, line 1020:   Called src_install
  busybox-1.2.2.1.ebuild, line 212:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.

willy busybox # emerge --info
Portage 2.1.1-r2 (uclibc/x86, gcc-4.1.1, uclibc-0.9.28-r1, 2.6.19-gentoo x86_64)
=================================================================
System uname: 2.6.19-gentoo x86_64 Intel(R) Pentium(R) D CPU 3.00GHz
Gentoo Base System version 1.12.6
Last Sync: Sat, 09 Dec 2006 15:30:01 +0000
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.60
sys-devel/automake:  1.6.3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-gentoo-linux-uclibc"
CFLAGS="-march=c3-2 -Os -pipe -fomit-frame-pointer"
CHOST="i686-gentoo-linux-uclibc"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=c3-2 -Os -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache distlocks metadata-transfer nodoc noinfo noman sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-z,relro"
PKGDIR="/packages/uclibc"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 a52 acpi bitmap-fonts cli cracklib dlloader dri dts dv dvdr dvdread elibc_uclibc ieee1394 input_devices_evdev input_devices_keyboard input_devices_mouse kernel_linux lm_sensors minimal mmx ncurses pcre readline reflection session spl sse truetype-fonts type1-fonts uclibc usb userland_GNU v4l v4l2 video_cards_via xorg xvmc zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 3 rinus 2006-12-09 13:09:53 UTC
I have it working for now but i don't know if it's the right solution.

I actualy think that is has to do with the 'file changed as we read it' error.

at line 212 in busybox-1.2.2.1.ebuild i changed the following (in diff format):

--- busybox-1.2.2.1.ebuild.orig 2006-12-01 23:36:35.000000000 +0100
+++ busybox-1.2.2.1.ebuild      2006-12-09 21:59:49.925688305 +0100
@@ -209,7 +209,7 @@
        # bundle up the symlink files for use later
        make CROSS="${CROSS}" install || die
        rm _install/bin/busybox
-       tar cf busybox-links.tar -C _install . || die
+       tar cf busybox-links.tar -C _install .
        insinto /usr/share/${PN}
        doins busybox-links.tar || die
        newins .config ${PF}.config || die
Comment 4 rinus 2006-12-09 17:52:07 UTC
Seems to work now that app-arch/tar-1.16-r2 was masked today in the uclibc profile. tar version 1.15.1-r1  is now installed and i don't get the 'file changed as we read it' error.
I'll try to install busybox with the original ebuild tomorrow when emerge is completed.
Comment 5 SpanKY gentoo-dev 2006-12-09 17:59:51 UTC

*** This bug has been marked as a duplicate of 141197 ***