Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96238 - sys-apps/busybox-1.00-r4 fails to compile
Summary: sys-apps/busybox-1.00-r4 fails to compile
Status: RESOLVED DUPLICATE of bug 88088
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-15 18:28 UTC by Sophie Hamilton
Modified: 2005-07-12 05:47 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 Sophie Hamilton 2005-06-15 18:28:36 UTC
I am unable to compile sys-apps/busybox-1.00-r4. The following is the full
output from the emerge command:

=====
downstairs ciaran # emerge -u busybox
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-apps/busybox-1.00-r4 to /
>>> md5 files   ;-) busybox-1.00-r4.ebuild
>>> md5 files   ;-) ChangeLog
>>> md5 files   ;-) metadata.xml
>>> md5 files   ;-) files/config-netboot
>>> md5 files   ;-) files/digest-busybox-1.00-r4
>>> md5 files   ;-) files/1.00/bash-tests.patch
>>> md5 files   ;-) files/1.00/bb.patch
>>> md5 files   ;-) files/1.00/standalone.patch
>>> md5 files   ;-) files/1.00/sum.patch
>>> md5 files   ;-) files/1.00/cp-posix-opts.patch
>>> md5 files   ;-) files/1.00/more-insmod-arches.patch
>>> md5 files   ;-) files/1.00/nice.patch
>>> md5 files   ;-) files/1.00/busybox-read-timeout.patch
>>> md5 files   ;-) files/1.00/printenv.patch
>>> md5 files   ;-) files/1.00/readlink-follow.patch
>>> md5 files   ;-) files/1.00/gcc4.patch
>>> md5 src_uri ;-) busybox-1.00.tar.bz2
>>> md5 src_uri ;-) busybox-1.00-e2fsprogs.patch.bz2
>>> Unpacking source...
>>> Unpacking busybox-1.00.tar.bz2 to /var/tmp/portage/busybox-1.00-r4/work
>>> Unpacking busybox-1.00-e2fsprogs.patch.bz2 to
/var/tmp/portage/busybox-1.00-r4/work
 * Applying busybox-read-timeout.patch ...                                     
                                  [ ok ]
 * Applying readlink-follow.patch ...                                          
                                  [ ok ]
 * Applying more-insmod-arches.patch ...                                       
                                  [ ok ]
 * Applying bash-tests.patch ...                                               
                                  [ ok ]
 * Applying cp-posix-opts.patch ...                                            
                                  [ ok ]
 * Applying standalone.patch ...                                               
                                  [ ok ]
 * Applying nice.patch ...                                                     
                                  [ ok ]
 * Applying printenv.patch ...                                                 
                                  [ ok ]
 * Applying sum.patch ...                                                      
                                  [ ok ]
 * Applying bb.patch ...                                                       
                                  [ ok ]
 * Applying busybox-1.00-e2fsprogs.patch ...                                   
                                  [ ok ]
 * Applying gcc4.patch ...                                                     
                                  [ ok ]
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 *
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 *
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 *
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 *
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 *
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 *
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 *
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 *
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 *
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 *
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 *
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 *
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 *
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 *
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 *
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 *
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 *
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 *
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 *
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 *
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 *
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 *
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 *
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 *
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 *
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 *
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 *
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 *
>>> Source unpacked.
/usr/bin/i686-pc-linux-gnu-ar
make: Nothing to be done for `depend'.
make: *** No rule to make target `busybox'.  Stop.

!!! ERROR: sys-apps/busybox-1.00-r4 failed.
!!! Function src_compile, Line 142, Exitcode 2
!!! build failed
!!! If you need support, post the topmost build error, NOT this status message.
=====

I seem to be the only one experiencing this, given that it hasn't been reported
yet, so I expect it's something with my setup, but I can't work out what.

The error mentions a .config file. If this refers to the kernel config file,
then it should be noted that I use KBUILD_OUTPUT to compile my kernel in a
different place from /usr/src/linux/; the .config for the kernel may therefore
not be in the expected place. I doubt it's talking about this file, but I figure
it's best to give all the info I can.

I emerge sync'd earlier, so my tree is up-to-date. I'm not sure what to check
now; I hope this information is enough to help you suggest a few pointers.

I did do a search on this bug beforehand and couldn't find it, but if this turns
out to be a dupe, I apologise.

Reproducible: Always
Steps to Reproduce:
1. emerge -u busybox

Actual Results:  
Didn't compile - log shown above.

Expected Results:  
Compiled properly.

Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.4.20041102-r1, 2.6.9-gentoo-r9 i686)
=================================================================
System uname: 2.6.9-gentoo-r9 i686 Intel(R) Pentium(R) 4 CPU 1400MHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, May  5 2005, 05:45:17)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS=""
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk/ http://distfiles.gentoo.org/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/ciaran/portage/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X acpi alsa apm avi berkdb bitmap-fonts cdr crypt cups curl dga
divx4linux dvd eds emboss encode esd fam flac foomaticdb fortran gd gdbm gif
gmail gnome gphoto2 gpm gstreamer gtk gtk2 imagemagick imlib ipv6 jack java jbig
joystick jpeg kde kdeenablefinal ladspa libg++ libwww mad mikmod mmx mmxext
motif mozsvg mp3 mpeg multitarget mysql ncurses nls nodrm nptl ogg oggvorbis
opengl oss pam pdflib perl pic png povray ppds python qt quicktime readline real
samba sdl slang sse sse2 ssl svga tcpd tiff truetype truetype-fonts type1-fonts
v4l vorbis xine xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 SpanKY gentoo-dev 2005-06-16 06:17:19 UTC
unset KBUILD_OUTPUT and see if it helps
Comment 2 Sophie Hamilton 2005-06-16 06:34:51 UTC
Unsetting KBUILD_OUTPUT yields the same output as before, as does copying the
kernel .config file manually to /usr/src/linux/.config:

=====
downstairs ciaran # echo $KBUILD_OUTPUT
/var/tmp/kernel-output/2.6.9
downstairs ciaran # unset KBUILD_OUTPUT
downstairs ciaran # echo $KBUILD_OUTPUT

downstairs ciaran # emerge -u busybox
[...emerge fails with same errors as before...]
 make: *** No rule to make target `busybox'.  Stop.

!!! ERROR: sys-apps/busybox-1.00-r4 failed.
!!! Function src_compile, Line 142, Exitcode 2
!!! build failed
!!! If you need support, post the topmost build error, NOT this status message.

downstairs ciaran # cp /var/tmp/kernel-output/2.6.9/.config /usr/src/linux/.
downstairs ciaran # emerge -u busybox
[...again, emerge fails...]
make: *** No rule to make target `busybox'.  Stop.

!!! ERROR: sys-apps/busybox-1.00-r4 failed.
!!! Function src_compile, Line 142, Exitcode 2
!!! build failed
!!! If you need support, post the topmost build error, NOT this status message.
=====
Comment 3 SpanKY gentoo-dev 2005-07-11 15:02:15 UTC
made sure KBUILD_OUTPUT is unset in src_unpack too ...
Comment 4 Sophie Hamilton 2005-07-11 17:03:43 UTC
I'll be trying that tomorrow, but even if it does work it won't have been fixed,
it'll be a klugy workaround, involving a manual ebuild edit. Based on this
reasoning, I'm reopening the bug, although I haven't tried your workaround yet,
so I'll let you know how I get on tomorrow.

One thing; I'm fairly certain that the .config file referred to is NOT the
kernel .config file. BusyBox itself uses its own .config file, with the same
sort of syntax as the kernel config file. As far as I know, BusyBox doesn't have
any sort of communication with the kernel files, so KBUILD_OUTPUT shouldn't be
affecting anything. Again, though, I'll have more information on this tomorrow
when I have time to try it.
Comment 5 SpanKY gentoo-dev 2005-07-11 17:08:33 UTC
what are you talking about ?  i changed the busybox ebuild in cvs, i wasnt
telling you to do it yourself
Comment 6 Sophie Hamilton 2005-07-12 04:00:35 UTC
Okay, my bad then. Sorry about that, I thought you said "make sure" rather than
"made sure". Having been able to try it now, I see it's been fixed, and that bug
88088 explains the cause in more detail.

Feel free to mark this fixed or as a duplicate of bug 88088 now. :)
Comment 7 SpanKY gentoo-dev 2005-07-12 05:47:24 UTC
done deal

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