View previous topic :: View next topic |
Author |
Message |
grahn n00b
Joined: 27 Aug 2002 Posts: 64
|
Posted: Thu Oct 16, 2014 2:59 pm Post subject: emerge -1 busybox fails |
|
|
Hi, I somehow managed to unmerge busybox and now I am unable to re-emerge it
The output of
is
Code: | >>> Emerging (1 of 1) sys-apps/busybox-1.21.0
* busybox-1.21.0.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking busybox-1.21.0.tar.bz2 to /var/tmp/portage/sys-apps/busybox-1.21.0/work
>>> Source unpacked in /var/tmp/portage/sys-apps/busybox-1.21.0/work
>>> Preparing source in /var/tmp/portage/sys-apps/busybox-1.21.0/work/busybox-1.21.0 ...
* Applying busybox-1.19.0-bb.patch ... [ ok ]
* Applying busybox-1.21.0-mdev.patch ... [ ok ]
* Applying busybox-1.21.0-platform.patch ... [ ok ]
* Applying busybox-1.21.0-xz.patch ... [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-apps/busybox-1.21.0/work/busybox-1.21.0 ...
* Could not locate user configfile, so we will save a default one
make -j5 -j1 allyesconfig
scripts/basic/split-include.c: In function ‘main’:
scripts/basic/split-include.c:134:11: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
scripts/kconfig/conf.c: In function ‘conf_choice’:
scripts/kconfig/conf.c:354:9: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
scripts/kconfig/conf.c: In function ‘conf_askvalue’:
scripts/kconfig/conf.c:106:8: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
scripts/kconfig/mconf.c: In function ‘show_textbox’:
scripts/kconfig/mconf.c:847:7: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
scripts/kconfig/mconf.c: In function ‘exec_conf’:
scripts/kconfig/mconf.c:481:6: warning: ignoring return value of ‘pipe’, declared with attribute warn_unused_result [-Wunused-result]
make[1]: *** [allyesconfig] Error 1
make: *** [allyesconfig] Error 2
* ERROR: sys-apps/busybox-1.21.0::gentoo failed (configure phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=sys-apps/busybox-1.21.0::gentoo'`,
* the complete build log and the output of `emerge -pqv '=sys-apps/busybox-1.21.0::gentoo'`.
* The complete build log is located at '/var/tmp/portage/sys-apps/busybox-1.21.0/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-apps/busybox-1.21.0/temp/environment'.
* Working directory: '/var/tmp/portage/sys-apps/busybox-1.21.0/work/busybox-1.21.0'
* S: '/var/tmp/portage/sys-apps/busybox-1.21.0/work/busybox-1.21.0'
>>> Failed to emerge sys-apps/busybox-1.21.0, Log file:
>>> '/var/tmp/portage/sys-apps/busybox-1.21.0/temp/build.log'
|
The output of
Code: | Portage 2.2.8-r2 (default/linux/amd64/13.0/desktop, gcc-4.7.3, glibc-2.19-r1, 3.14.14-gentoo x86_64)
=================================================================
System uname: Linux-3.14.14-gentoo-x86_64-Intel-R-_Core-TM-_i7-4770_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem: 16365716 total, 6698204 free
KiB Swap: 2097144 total, 2097144 free
Timestamp of tree: Thu, 16 Oct 2014 11:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash: 4.2_p53
dev-java/java-config: 2.2.0
dev-lang/perl: 5.18.2-r2
dev-lang/python: 2.7.7, 3.3.5-r1, 3.4.1
dev-util/cmake: 2.8.12.2-r1
dev-util/pkgconfig: 0.28-r1
sys-apps/baselayout: 2.2
sys-apps/openrc: 0.12.4
sys-apps/sandbox: 2.6-r1
sys-devel/autoconf: 2.13, 2.69
sys-devel/automake: 1.11.6, 1.13.4
sys-devel/binutils: 2.23.2
sys-devel/gcc: 4.7.3-r1
sys-devel/gcc-config: 1.7.3
sys-devel/libtool: 2.4.2-r1
sys-devel/make: 4.0-r1
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc: 2.19-r1
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://de-mirror.org/gentoo/ http://de-mirror.org/gentoo/ rsync://de-mirror.org/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bindist bluetooth branding bzip2 cairo cdda cddb cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac flash fortran gcj gdbm gif glamor gpm gtk iconv id3tag imap java jpeg lcms ldap libnotify mad maildir mmx mng modules moznoirc moznomail mozsvg mp3 mp4 mpeg multilib ncurses nls nptl nsplugin nvidia ogg opengl openmp pam pango pcre pdf perl png policykit postscript ppds python qt3support qt4 readline samba sdl spell sse sse2 ssl startup-notification svg tcltk tcpd tiff truetype udev udisks unicode usb vim-syntax vorbis win32codecs wxwidgets x264 xcb xml xv xvid zlib" ABI_X86="64" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="arm" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
|
What can I do about this?
Help is greatly appreciated.
Last edited by grahn on Fri Oct 17, 2014 6:51 am; edited 1 time in total |
|
Back to top |
|
|
NathanZachary Moderator
Joined: 30 Jan 2007 Posts: 2605
|
Posted: Fri Oct 17, 2014 12:19 am Post subject: |
|
|
Can you please post the output of:
?
Thank you.
Cheers,
Nathan Zachary _________________ “Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio--- |
|
Back to top |
|
|
grahn n00b
Joined: 27 Aug 2002 Posts: 64
|
Posted: Fri Oct 17, 2014 6:56 am Post subject: |
|
|
Thank you, I updated my question with the information.
I am afraid it is a general problem. You could just try It shouldn't do any harm, but might fail at your end as well. |
|
Back to top |
|
|
NathanZachary Moderator
Joined: 30 Jan 2007 Posts: 2605
|
Posted: Fri Oct 17, 2014 4:33 pm Post subject: |
|
|
I am able to build busybox without a problem on my machine (though it is quite different). You may want to try doing a sync, and then allowing ~$ARCH for at least this one package. If it wants to pull in a bunch of other dependencies for the ~ version, then we'll skip that route. The reason that I wanted to see your emerge --info was to check if you were using ccache. I remember some time ago there was a problem with ccache and busybox.
Cheers,
Nathan Zachary _________________ “Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio--- |
|
Back to top |
|
|
grahn n00b
Joined: 27 Aug 2002 Posts: 64
|
Posted: Mon Oct 20, 2014 7:29 am Post subject: |
|
|
The same result with sys-apps/busybox-1.22.1-r1, after syncing and setting ACCEPT_KEYWORDS="~amd64". |
|
Back to top |
|
|
v_andal Guru
Joined: 26 Aug 2008 Posts: 541 Location: Germany
|
Posted: Mon Oct 20, 2014 12:34 pm Post subject: |
|
|
It would be interesting to see the /var/tmp/portage/sys-apps/busybox-1.21.0/temp/build.log, actually the part at the end where the actual command producing error is visible.
From the output you have provided, it looks like there's -Werror somewhere that triggers conversion of warnings into errors. I know that version 4.9.1 of gcc causes such behavior, but you use 4.7.3.
Have you tried to compile it with CFLAGS set only to '-O2 -march=native'?
I don't have any problems on my system. |
|
Back to top |
|
|
grahn n00b
Joined: 27 Aug 2002 Posts: 64
|
Posted: Mon Oct 20, 2014 12:46 pm Post subject: |
|
|
I tried
Code: | CFLAGS='-O2 -march=native' emerge -1 busybox |
with the same result.
The content of build.log is very much the same like the console output:
Code: |
* Package: sys-apps/busybox-1.21.0
* Repository: gentoo
* Maintainer: embedded@gentoo.org
* USE: abi_x86_64 amd64 elibc_glibc kernel_linux pam static userland_GNU
* FEATURES: sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking busybox-1.21.0.tar.bz2 to /var/tmp/portage/sys-apps/busybox-1.21.0/work
>>> Source unpacked in /var/tmp/portage/sys-apps/busybox-1.21.0/work
>>> Preparing source in /var/tmp/portage/sys-apps/busybox-1.21.0/work/busybox-1.21.0 ...
* Applying busybox-1.19.0-bb.patch ...
[ ok ]
* Applying busybox-1.21.0-mdev.patch ...
[ ok ]
* Applying busybox-1.21.0-platform.patch ...
[ ok ]
* Applying busybox-1.21.0-xz.patch ...
[ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-apps/busybox-1.21.0/work/busybox-1.21.0 ...
* Could not locate user configfile, so we will save a default one
make -j5 -j1 allyesconfig
scripts/basic/split-include.c: In function ‘main’:
scripts/basic/split-include.c:134:11: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
scripts/kconfig/conf.c: In function ‘conf_choice’:
scripts/kconfig/conf.c:354:9: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
scripts/kconfig/conf.c: In function ‘conf_askvalue’:
scripts/kconfig/conf.c:106:8: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
scripts/kconfig/mconf.c: In function ‘show_textbox’:
scripts/kconfig/mconf.c:847:7: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
scripts/kconfig/mconf.c: In function ‘exec_conf’:
scripts/kconfig/mconf.c:481:6: warning: ignoring return value of ‘pipe’, declared with attribute warn_unused_result [-Wunused-result]
make[1]: *** [allyesconfig] Error 1
make: *** [allyesconfig] Error 2
* ERROR: sys-apps/busybox-1.21.0::gentoo failed (configure phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=sys-apps/busybox-1.21.0::gentoo'`,
* the complete build log and the output of `emerge -pqv '=sys-apps/busybox-1.21.0::gentoo'`.
* The complete build log is located at '/var/tmp/portage/sys-apps/busybox-1.21.0/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-apps/busybox-1.21.0/temp/environment'.
* Working directory: '/var/tmp/portage/sys-apps/busybox-1.21.0/work/busybox-1.21.0'
* S: '/var/tmp/portage/sys-apps/busybox-1.21.0/work/busybox-1.21.0'
|
|
|
Back to top |
|
|
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Mon Oct 20, 2014 12:55 pm Post subject: |
|
|
And if you USE="-savedconfig"?
You don't seem to have one anyway... |
|
Back to top |
|
|
grahn n00b
Joined: 27 Aug 2002 Posts: 64
|
Posted: Mon Oct 20, 2014 1:05 pm Post subject: |
|
|
I could try someone else' configfile. Maybe it is the generated default one which causes the problem. |
|
Back to top |
|
|
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Mon Oct 20, 2014 1:12 pm Post subject: |
|
|
Did you try disabling it?
I learnt the hard way that busybox is a picky beast when it comes to custom config while building binaries for android. |
|
Back to top |
|
|
grahn n00b
Joined: 27 Aug 2002 Posts: 64
|
Posted: Mon Oct 20, 2014 1:16 pm Post subject: |
|
|
Code: | USE="-savedconfig" emerge -1 busybox |
didn't help either.
Again,
Code: | * Could not locate user configfile, so we will save a default one |
can be read on the console. |
|
Back to top |
|
|
RazielFMX l33t
Joined: 23 Apr 2005 Posts: 835 Location: NY, USA
|
Posted: Mon Oct 20, 2014 1:28 pm Post subject: |
|
|
The config file statement is either informational or a warning and not the actual error. You are, however, failing during the configure phase of the build, which is rather odd.
Can you provide some background? What has prompted you to attempt to rebuild busybox? Did it fail during a world update? |
|
Back to top |
|
|
grahn n00b
Joined: 27 Aug 2002 Posts: 64
|
Posted: Mon Oct 20, 2014 1:38 pm Post subject: |
|
|
I played with cross compiling (as root) and at one point I accidentally executed emerge --unmerge busybox. |
|
Back to top |
|
|
RazielFMX l33t
Joined: 23 Apr 2005 Posts: 835 Location: NY, USA
|
Posted: Mon Oct 20, 2014 1:46 pm Post subject: |
|
|
Well that's... bad.
Alright, there are a few things we can do, depending on how hardcore you want to get about this.
Personally, if I did this, I would lose the box for a day and do this:
This will rebuild your entire system (not like a clean install, all your configuration remains). This will definitely fix your issue as portage should build things in the right order.
A little less intrusive, but may not work:
Portage will bring in the dependencies in the right order, including busybox.
You can also try making sure your environment is sort of sane:
This will show us if you have linking problems (I suspect you do) leftover from your cross-compiling.
EDIT: Added some backgound. _________________ I am not anti-systemd; I am pro-choice. If being the latter makes you feel that I am the former, then so be it. |
|
Back to top |
|
|
grahn n00b
Joined: 27 Aug 2002 Posts: 64
|
Posted: Mon Oct 20, 2014 2:44 pm Post subject: |
|
|
I will try The list of packages to be merged before busybox is significantly shorter than for `world' and should comprise all its dependencies, I guess. Do you think this is ok? |
|
Back to top |
|
|
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Mon Oct 20, 2014 2:47 pm Post subject: |
|
|
I doubt it will fix the problem at hand. But in any case it won't do any harm. That's for sure. |
|
Back to top |
|
|
RazielFMX l33t
Joined: 23 Apr 2005 Posts: 835 Location: NY, USA
|
Posted: Mon Oct 20, 2014 3:22 pm Post subject: |
|
|
It may very well work. Give it a shot. _________________ I am not anti-systemd; I am pro-choice. If being the latter makes you feel that I am the former, then so be it. |
|
Back to top |
|
|
grahn n00b
Joined: 27 Aug 2002 Posts: 64
|
Posted: Mon Oct 20, 2014 3:33 pm Post subject: |
|
|
I will do that overnight. I will keep you informed. Thanks so far. |
|
Back to top |
|
|
v_andal Guru
Joined: 26 Aug 2008 Posts: 541 Location: Germany
|
Posted: Wed Oct 22, 2014 12:48 pm Post subject: |
|
|
Quite possible, there are some environment variables left after cross-compile attempts. These variables mess up the emerge compilation. |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
|
Back to top |
|
|
|