Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] busybox fails to compile on -march=nocona -O2
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
chub
n00b
n00b


Joined: 21 Feb 2008
Posts: 23
Location: Cape Town, South Africa

PostPosted: Fri Mar 13, 2009 10:25 am    Post subject: [SOLVED] busybox fails to compile on -march=nocona -O2 Reply with quote

Recently I can't do a world upgrade because of busybox failing to compile. I have 2 machines, both 64bit.

Fails to install busybox-1.13.2 Linux lab-pc2 2.6.24-gentoo-r8 x86_64 Intel(R) Core(TM)2 CPU 4300 @ 1.80GHz GenuineIntel GNU/Linux
Succeeds to install busybox-1.13.2 Linux lab-pc3 2.6.22-gentoo-r8 x86_64 Intel(R) Pentium(R) 4 CPU 3.40GHz GenuineIntel GNU/Linux

Code:
# emerge world --update --deep
WARNING: One or more repositories have missing repo_name entries:

        /usr/local/portage/profiles/repo_name

NOTE: Each repo_name entry should be a plain text file containing a
unique name for the repository on the first line.
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sys-apps/busybox-1.13.2
 * busybox-1.13.2.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                                                    [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                                         [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                                        [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                                       [ ok ]
>>> Unpacking source...
>>> Unpacking busybox-1.13.2.tar.bz2 to /var/tmp/portage/sys-apps/busybox-1.13.2/work
 * Applying busybox-1.11.1-bb.patch ...                                                                                                                                       [ ok ]
 * Applying busybox-1.13.2-depmod.patch ...                                                                                                                                   [ ok ]
 * Applying busybox-1.13.2-init.patch ...                                                                                                                                     [ ok ]
 * Applying busybox-1.13.2-killall.patch ...                                                                                                                                  [ ok ]
 * Applying busybox-1.13.2-mdev.patch ...                                                                                                                                     [ ok ]
 * Applying busybox-1.13.2-modprobe.patch ...                                                                                                                                 [ ok ]
 * Applying busybox-1.13.2-tar.patch ...                                                                                                                                      [ ok ]
 * Applying busybox-1.12.0-mdev-exec.patch ...                                                                                                                                [ ok ]
 * Could not locate user configfile, so we will save a default one
make -j3 -j1 allyesconfig
/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.4/../../../../lib64/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: ld returned 1 exit status
make[1]: *** [scripts/kconfig/conf] Error 1
make: *** [allyesconfig] Error 2
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 * Could not find CONFIG_DMALLOC ...
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 * Could not find CONFIG_FEATURE_SUID_CONFIG ...
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 * Could not find CONFIG_BUILD_AT_ONCE ...
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 * Could not find CONFIG_BUILD_LIBBUSYBOX ...
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 * Could not find CONFIG_NOMMU ...
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 * Could not find CONFIG_MONOTONIC_SYSCALL ...
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 * Could not find CONFIG_FEATURE_SH_IS_ASH ...
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 * Could not find CONFIG_FEATURE_SH_IS_NONE ...
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 * Could not find CONFIG_PAM ...
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 * Could not find CONFIG_STATIC ...
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 * Could not find CONFIG_DEBUG ...
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 * Could not find CONFIG_SELINUX ...
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 * Could not find CONFIG_APP_UDHCPD ...
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 * Could not find CONFIG_CRONTAB ...
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 * Could not find CONFIG_DC ...
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 * Could not find CONFIG_DPKG ...
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 * Could not find CONFIG_FAKEIDENTD ...
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 * Could not find CONFIG_FBSPLASH ...
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 * Could not find CONFIG_FOLD ...
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 * Could not find CONFIG_FTPGET ...
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 * Could not find CONFIG_FTPPUT ...
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 * Could not find CONFIG_HTTPD ...
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 * Could not find CONFIG_HUSH ...
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 * Could not find CONFIG_INETD ...
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 * Could not find CONFIG_INOTIFYD ...
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 * Could not find CONFIG_IPCALC ...
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 * Could not find CONFIG_LASH ...
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 * Could not find CONFIG_LOCALE_SUPPORT ...
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 * Could not find CONFIG_LOGNAME ...
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 * Could not find CONFIG_MSH ...
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 * Could not find CONFIG_OD ...
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 * Could not find CONFIG_SULOGIN ...
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 * Could not find CONFIG_TASKSET ...
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 * Could not find CONFIG_TFTP ...
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 * Could not find CONFIG_TFTPD ...
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 * Could not find CONFIG_RPM ...
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 * Could not find CONFIG_RPM2CPIO ...
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 * Could not find CONFIG_UDPSVD ...
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 * Could not find CONFIG_UUDECODE ...
sed: can't read .config: No such file or directory
grep: .config: No such file or directory
 * Could not find CONFIG_UUENCODE ...
make -j3 -j1 oldconfig
/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.4/../../../../lib64/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: ld returned 1 exit status
make[1]: *** [scripts/kconfig/conf] Error 1
make: *** [oldconfig] Error 2
>>> Source unpacked in /var/tmp/portage/sys-apps/busybox-1.13.2/work
>>> Compiling source in /var/tmp/portage/sys-apps/busybox-1.13.2/work/busybox-1.13.2 ...
make -j3 busybox
  HOSTLD  scripts/kconfig/conf
/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.4/../../../../lib64/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: ld returned 1 exit status
make[2]: *** [scripts/kconfig/conf] Error 1
make[1]: *** [silentoldconfig] Error 2
make: *** [include/autoconf.h] Error 2
 *
 * ERROR: sys-apps/busybox-1.13.2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2618:  Called die
 * The specific snippet of code:
 *       emake busybox || die "build failed";
 *  The die message:
 *   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.13.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-apps/busybox-1.13.2/temp/environment'.
 *

>>> Failed to emerge sys-apps/busybox-1.13.2, Log file:

>>>  '/var/tmp/portage/sys-apps/busybox-1.13.2/temp/build.log'

 * Messages for package sys-apps/busybox-1.13.2:

 * Could not locate user configfile, so we will save a default one
 *
 * ERROR: sys-apps/busybox-1.13.2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2618:  Called die
 * The specific snippet of code:
 *       emake busybox || die "build failed";
 *  The die message:
 *   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.13.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-apps/busybox-1.13.2/temp/environment'.


Code:
# cat /etc/make.conf
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /etc/make.conf.example for a more detailed example.
CFLAGS="-march=nocona -O2 -pipe"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
USE="mmx sse sse2 ssse3 mmxext X xfce -kde -gnome -oss -arts threads unicode alsa logrotate xvmc nptl nptlonly usb dvd dri opengl a52 aaci cups css cxx firefox imap jpeg jpeg2k krb4 matroska mime mp3 mpeg openal openexr png samba sockets spell szip x264 xcb xv zlib tiff gif gimp mplayer msn jabber rdesktop bzip2 7zip rar ipv6 kerberos vim-syntax bash-completion dbus socks5 gnutls xvid aac glitz svg ogg flac vorbis emerald"
FEATURES="sandbox ccache parallel-fetch"
CCACHE_SIZE="2048M"
CCACHE_DIR="${PORTAGE_TMPDIR}/ccache"
AUTOCLEAN="yes"
MAKEOPTS="-j3"
LINGUAS="af en"
PORTAGE_NICENESS=19
VIDEO_CARDS="nvidia"
INPUT_DEVICES="keyboard mouse"
PORTDIR_OVERLAY="/usr/local/portage"
PORTAGE_TMPFS="/dev/shm"

Code:
# emerge busybox --verbose --pretend
WARNING: One or more repositories have missing repo_name entries:

        /usr/local/portage/profiles/repo_name

NOTE: Each repo_name entry should be a plain text file containing a
unique name for the repository on the first line.

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] sys-apps/busybox-1.13.2 [1.12.2-r1] USE="pam -debug -make-symlinks -savedconfig (-selinux) -static" 0 kB

Total: 1 package (1 upgrade), Size of downloads: 0 kB

Code:
# emerge --info
WARNING: One or more repositories have missing repo_name entries:

        /usr/local/portage/profiles/repo_name

NOTE: Each repo_name entry should be a plain text file containing a
unique name for the repository on the first line.
Portage 2.2_rc23 (default/linux/amd64/2008.0/desktop, gcc-4.2.4, glibc-2.8_p20080602-r1, 2.6.24-gentoo-r8 x86_64)
=================================================================
System uname: Linux-2.6.24-gentoo-r8-x86_64-Intel-R-_Core-TM-2_CPU_4300_@_1.80GHz-with-glibc2.2.5
Timestamp of tree: Wed, 11 Mar 2009 01:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.4.4-r13, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.4.8
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-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/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
LANG="af_ZA.utf-8"
LC_ALL="af_ZA.utf-8"
LDFLAGS="-Wl,-O1"
LINGUAS="af en"
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"
PORTDIR_OVERLAY="/usr/local/portage"
USE="7zip X a52 aac aaci acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt css cups cxx dbus dri dvd dvdr dvdread eds emboss emerald encode esd evo fam firefox flac fortran gdbm gif gimp glitz gnutls gpm gstreamer gtk hal iconv imap ipv6 isdnlog jabber jpeg jpeg2k kerberos krb4 ldap libnotify logrotate mad matroska midi mikmod mime mmx mmxext mp3 mpeg mplayer msn mudflap multilib ncurses nls nptl nptlonly ogg openal openexr opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime rar rdesktop readline reflection samba sdl session sockets socks5 spell spl sse sse2 ssl ssse3 startup-notification svg sysfs szip tcpd threads tiff truetype unicode usb vim-syntax vorbis x264 xcb xfce xml xorg xulrunner xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="af en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Code:
# uname -a
Linux lab-pc2 2.6.24-gentoo-r8 #2 SMP PREEMPT Wed May 21 13:03:41 SAST 2008 x86_64 Intel(R) Core(TM)2 CPU 4300 @ 1.80GHz GenuineIntel GNU/Linux


Could it be my kernel is older than the headers? Then why would the P4 work that got even older kernel :(


Last edited by chub on Tue Mar 17, 2009 9:37 am; edited 1 time in total
Back to top
View user's profile Send private message
chub
n00b
n00b


Joined: 21 Feb 2008
Posts: 23
Location: Cape Town, South Africa

PostPosted: Tue Mar 17, 2009 9:36 am    Post subject: Reply with quote

I got a bit further :)
Code:
 
# cd /var/tmp/portage/sys-apps/busybox-1.13.2/work/busybox-1.13.2
# make clean
# make defconfig
# cp -v .config /etc/portage/savedconfig/sys-apps/busybox-1.13.2
`.config' -> `/etc/portage/savedconfig/sys-apps/busybox-1.13.2'
#


Finaly figured out it was ccache in the way because the manual build worked. But when I ran the following:
Code:
# FEATURES="keepwork" USE="savedconfig static" emerge busybox

It Failed.

I solved that by disabling ccache in FEATURES in /etc/make.conf
Cleaned ccache and that took about 10 minutes.
Enabled the FEATURES again.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum