View previous topic :: View next topic |
Author |
Message |
PhilippS n00b
Joined: 10 Oct 2010 Posts: 12
|
Posted: Mon Jan 03, 2011 12:10 pm Post subject: Emerging Busybox fails at emake CONFIG_STATIC=y |
|
|
Hi, Im having trouble updating Busybox to the newest version.
It seems that I have trouble with the static libs but I dont get it at the moment.
Code: |
Portage 2.1.9.28 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.2, glibc-2.12.1-r3, 2.6.36-gentoo x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-2.6.36-gentoo-x86_64-Intel-R-_Atom-TM-_CPU_N450_@_1.66GHz-with-gentoo-2.0.1
Timestamp of tree: Mon, 03 Jan 2011 08:45:03 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash: 4.1_p9
dev-lang/python: 2.7.1, 3.1.3
dev-util/cmake: 2.8.3-r1
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc: 0.6.8
sys-apps/sandbox: 2.4
sys-devel/autoconf: 2.68
sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils: 2.21
sys-devel/gcc: 4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.4-r1
sys-devel/make: 3.82
virtual/os-headers: 2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=atom -mtune=atom -O2 -pipe -m64 -m80387 -m96bit-long-double -malign-stringops -mcx16 -mfancy-math-387 -mfp-ret-in-387 -mfused-madd -mglibc -mhard-float -mieee-fp -mmovbe -mno-sse4 -mpush-args -mred-zone -msahf -mstackrealign "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/openvpn/easy-rsa"
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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=atom -mtune=atom -O2 -pipe -m64 -m80387 -m96bit-long-double -malign-stringops -mcx16 -mfancy-math-387 -mfp-ret-in-387 -mfused-madd -mglibc -mhard-float -mieee-fp -mmovbe -mno-sse4 -mpush-args -mred-zone -msahf -mstackrealign "
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeo
|
Code: |
...
inal link with: m pam_misc
* # CONFIG_PAM is not set
make -j3 CONFIG_STATIC=y busybox
scripts/kconfig/conf -s Config.in
#
# using defaults found in .config
#
SPLIT include/autoconf.h -> include/config/*
HOSTCC applets/applet_tables
HOSTCC applets/usage
GEN include/bbconfigopts.h
applets/usage.c: In function 'main':
applets/usage.c:52:8: warning: ignoring return value of 'write', declared with attribute warn_unused_result
applets/applet_tables.c: In function 'main':
applets/applet_tables.c:138:9: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result
GEN include/usage_compressed.h
GEN include/applet_tables.h
HOSTCC applets/usage_pod
applets/usage_pod.c: In function 'main':
applets/usage_pod.c:74:3: warning: format not a string literal and no format arguments
CC applets/applets.o
LD applets/built-in.o
CC loginutils/login.o
loginutils/login.c: In function 'login_main':
loginutils/login.c:386:8: warning: ignoring return value of 'fchown', declared with attribute warn_unused_result
CC miscutils/bbconfig.o
CC libbb/appletlib.o
AR loginutils/lib.a
AR miscutils/lib.a
libbb/appletlib.c: In function 'run_applet_and_exit':
libbb/appletlib.c:719:36: warning: array subscript is above array bounds
AR libbb/lib.a
LINK busybox_unstripped
Trying libraries: crypt m
Failed: -Wl,--start-group -lcrypt -lm -Wl,--end-group
Output of:
x86_64-pc-linux-gnu-gcc -march=atom -mtune=atom -O2 -pipe -m64 -m80387 -m96bit-long-double -malign-stringops -mcx16 -mfancy-math-387 -mfp-ret-in-387 -mfused-madd -mglibc -mhard-float -mieee-fp -mmovbe -mno-sse4 -mpush-args -mred-zone -msahf -mstackrealign -fno-strict-aliasing -Wall -Wshadow -Wwrite-strings -Wundef -Wstrict-prototypes -Wunused -Wunused-parameter -Wunused-function -Wunused-value -Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement -Wold-style-definition -fno-builtin-strlen -finline-limit=0 -ffunction-sections -fdata-sections -fno-guess-branch-probability -funsigned-char -static-libgcc -static -Wl,-O1 -Wl,--as-needed -o busybox_unstripped -Wl,--sort-common -Wl,--sort-section,alignment -Wl,--start-group applets/built-in.o archival/lib.a archival/libarchive/lib.a console-tools/lib.a coreutils/lib.a coreutils/libcoreutils/lib.a debianutils/lib.a e2fsprogs/lib.a editors/lib.a findutils/lib.a init/lib.a libbb/lib.a libpwdgrp/lib.a loginutils/lib.a mailutils/lib.a miscutils/lib.a modutils/lib.a networking/lib.a networking/libiproute/lib.a networking/udhcp/lib.a printutils/lib.a procps/lib.a runit/lib.a selinux/lib.a shell/lib.a sysklogd/lib.a util-linux/lib.a util-linux/volume_id/lib.a archival/built-in.o archival/libarchive/built-in.o console-tools/built-in.o coreutils/built-in.o coreutils/libcoreutils/built-in.o debianutils/built-in.o e2fsprogs/built-in.o editors/built-in.o findutils/built-in.o init/built-in.o libbb/built-in.o libpwdgrp/built-in.o loginutils/built-in.o mailutils/built-in.o miscutils/built-in.o modutils/built-in.o networking/built-in.o networking/libiproute/built-in.o networking/udhcp/built-in.o printutils/built-in.o procps/built-in.o runit/built-in.o selinux/built-in.o shell/built-in.o sysklogd/built-in.o util-linux/built-in.o util-linux/volume_id/built-in.o -Wl,--end-group -Wl,--start-group -lcrypt -lm -Wl,--end-group
==========
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../lib64/libieee.a:(.data+0x0): multiple definition of `_LIB_VERSION'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../lib64/libm.a(s_lib_version.o):(.data+0x0): first defined here
networking/lib.a(nslookup.o): In function `print_host':
nslookup.c:(.text.print_host+0x3f): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
libbb/lib.a(inet_common.o): In function `INET_rresolve':
inet_common.c:(.text.INET_rresolve+0xee): warning: Using 'gethostbyaddr' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
util-linux/lib.a(mount.o): In function `nfsmount':
mount.c:(.text.nfsmount+0xbb): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
libbb/lib.a(inet_common.o): In function `INET_rresolve':
inet_common.c:(.text.INET_rresolve+0x16a): warning: Using 'getnetbyaddr' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
libbb/lib.a(inet_common.o): In function `INET_resolve':
inet_common.c:(.text.INET_resolve+0xdf): warning: Using 'getnetbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
libbb/lib.a(xconnect.o): In function `bb_lookup_port':
xconnect.c:(.text.bb_lookup_port+0x3c): warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
networking/lib.a(netstat.o): In function `ip_port_str':
netstat.c:(.text.ip_port_str+0x6e): warning: Using 'getservbyport' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
collect2: ld returned 1 exit status
make: *** [busybox_unstripped] Error 1
emake failed
* ERROR: sys-apps/busybox-1.18.1 failed:
* static build failed
*
* Call stack:
* ebuild.sh, line 56: Called src_compile
* environment, line 2799: Called die
* The specific snippet of code:
* emake CONFIG_STATIC=y busybox || die "static build failed";
*
* If you need support, post the output of 'emerge --info =sys-apps/busybox-1.18.1',
* the complete build log and the output of 'emerge -pqv =sys-apps/busybox-1.18.1'.
* The complete build log is located at '/var/tmp/portage/sys-apps/busybox-1.18.1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-apps/busybox-1.18.1/temp/environment'.
* S: '/var/tmp/portage/sys-apps/busybox-1.18.1/work/busybox-1.18.1'
|
What I did so far:
- revdep-rebuild
- reemerged glibc
Thank you for helping |
|
Back to top |
|
|
Lifthanger n00b
Joined: 15 Aug 2007 Posts: 20
|
Posted: Sun Feb 06, 2011 3:24 pm Post subject: |
|
|
got the same problem right now. |
|
Back to top |
|
|
pelelademadera Veteran
Joined: 14 Jul 2008 Posts: 1255 Location: La Plata, Argentina
|
Posted: Sun Feb 06, 2011 6:46 pm Post subject: |
|
|
check the ebuild...
it has a guide to compile if something goes wrong.
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-apps/busybox/busybox-1.17.4.ebuild
In my case, make menuconfig, disable static libs and it works.
you can find settings with / in menuconfig _________________ el pelado de la gente
------
Los habitantes de las islas Malvinas lo llaman gentoo, nombre en el que se basa la distribución GNU/Linux Gentoo, cuyo objetivo es la optimización para conseguir más rendimiento y velocidad en la ejecución.
------ |
|
Back to top |
|
|
jcTux Apprentice
Joined: 29 Dec 2009 Posts: 276 Location: Tours, France
|
Posted: Sun Feb 06, 2011 7:14 pm Post subject: |
|
|
Same problem here.
I check the .config file in /var/tmp/portage/sys-apps/busybox-1.17.4/work/busybox-1.17.4, but static option is not activated.
Code: |
# Build Options
#
# CONFIG_STATIC is not set
# CONFIG_PIE is not set
# CONFIG_NOMMU is not set
# CONFIG_BUILD_LIBBUSYBOX is not set
# CONFIG_FEATURE_INDIVIDUAL is not set
# CONFIG_FEATURE_SHARED_BUSYBOX is not set
CONFIG_LFS=y
CONFIG_CROSS_COMPILER_PREFIX=""
CONFIG_EXTRA_CFLAGS=""
|
But I have this error
Code: |
make -j4 CONFIG_STATIC=y busybox
scripts/kconfig/conf -s Config.in
#
# using defaults found in .config
#
SPLIT include/autoconf.h -> include/config/*
HOSTCC applets/usage
HOSTCC applets/applet_tables
applets/usage.c: In function ‘main’:
applets/usage.c:52:8: attention : ignoring return value of ‘write’, declared with attribute warn_unused_result
GEN include/bbconfigopts.h
GEN include/usage_compressed.h
applets/applet_tables.c: In function ‘main’:
applets/applet_tables.c:138:9: attention : ignoring return value of ‘fgets’, declared with attribute warn_unused_result
GEN include/applet_tables.h
HOSTCC applets/usage_pod
CC applets/applets.o
applets/usage_pod.c: In function ‘main’:
applets/usage_pod.c:74:3: attention : le format n'est pas une chaîne littérale et pas d'argument de format
LD applets/built-in.o
CC loginutils/login.o
CC miscutils/bbconfig.o
loginutils/login.c: In function ‘login_main’:
loginutils/login.c:382:8: attention : ignoring return value of ‘fchown’, declared with attribute warn_unused_result
CC libbb/appletlib.o
AR loginutils/lib.a
AR miscutils/lib.a
libbb/appletlib.c: In function ‘run_applet_and_exit’:
libbb/appletlib.c:717:36: attention : array subscript is above array bounds
AR libbb/lib.a
LINK busybox_unstripped
Trying libraries: crypt m
Failed: -Wl,--start-group -lcrypt -lm -Wl,--end-group
Output of:
x86_64-pc-linux-gnu-gcc -O2 -march=native -pipe -floop-interchange -floop-strip-mine -floop-block -fno-strict-aliasing -Wall -Wshadow -Wwrite-strings -Wundef -Wstrict-prototypes -Wunused -Wunused-parameter -Wunused-function -Wunused-value -Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement -Wold-style-definition -fno-builtin-strlen -finline-limit=0 -ffunction-sections -fdata-sections -fno-guess-branch-probability -funsigned-char -static-libgcc -static -Wl,-O1 -Wl,--as-needed -o busybox_unstripped -Wl,--sort-common -Wl,--sort-section,alignment -Wl,--start-group applets/built-in.o archival/lib.a archival/libunarchive/lib.a console-tools/lib.a coreutils/lib.a coreutils/libcoreutils/lib.a debianutils/lib.a e2fsprogs/lib.a editors/lib.a findutils/lib.a init/lib.a libbb/lib.a libpwdgrp/lib.a loginutils/lib.a mailutils/lib.a miscutils/lib.a modutils/lib.a networking/lib.a networking/libiproute/lib.a networking/udhcp/lib.a printutils/lib.a procps/lib.a runit/lib.a selinux/lib.a shell/lib.a sysklogd/lib.a util-linux/lib.a util-linux/volume_id/lib.a archival/built-in.o archival/libunarchive/built-in.o console-tools/built-in.o coreutils/built-in.o coreutils/libcoreutils/built-in.o debianutils/built-in.o e2fsprogs/built-in.o editors/built-in.o findutils/built-in.o init/built-in.o libbb/built-in.o libpwdgrp/built-in.o loginutils/built-in.o mailutils/built-in.o miscutils/built-in.o modutils/built-in.o networking/built-in.o networking/libiproute/built-in.o networking/udhcp/built-in.o printutils/built-in.o procps/built-in.o runit/built-in.o selinux/built-in.o shell/built-in.o sysklogd/built-in.o util-linux/built-in.o util-linux/volume_id/built-in.o -Wl,--end-group -Wl,--start-group -lcrypt -lm -Wl,--end-group
==========
networking/lib.a(nslookup.o): In function `print_host':
nslookup.c:(.text.print_host+0x78): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
libbb/lib.a(inet_common.o): In function `INET_rresolve':
inet_common.c:(.text.INET_rresolve+0xec): warning: Using 'gethostbyaddr' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
util-linux/lib.a(mount.o): In function `nfsmount':
mount.c:(.text.nfsmount+0xc2): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
libbb/lib.a(inet_common.o): In function `INET_rresolve':
inet_common.c:(.text.INET_rresolve+0x168): warning: Using 'getnetbyaddr' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
libbb/lib.a(inet_common.o): In function `INET_resolve':
inet_common.c:(.text.INET_resolve+0x7e): warning: Using 'getnetbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
libbb/lib.a(xconnect.o): In function `bb_lookup_port':
xconnect.c:(.text.bb_lookup_port+0x3c): warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
networking/lib.a(netstat.o): In function `ip_port_str':
netstat.c:(.text.ip_port_str+0x70): warning: Using 'getservbyport' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../lib64/libc.a(memmove_chk.o): In function `__memmove_chk':
(.text+0x1b4): undefined reference to `__memmove_chk_ssse3_back'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../lib64/libc.a(memmove_chk.o): In function `__memmove_chk':
(.text+0x1b9): undefined reference to `__memmove_chk_ssse3'
collect2: ld a retourné 1 code d'état d'exécution
make: *** [busybox_unstripped] Erreur 1
emake failed
* ERROR: sys-apps/busybox-1.17.4 failed:
* static build failed
*
* Call stack:
* ebuild.sh, line 56: Called src_compile
* environment, line 2794: Called die
* The specific snippet of code:
* emake CONFIG_STATIC=y busybox || die "static build failed";
*
* If you need support, post the output of 'emerge --info =sys-apps/busybox-1.17.4',
* the complete build log and the output of 'emerge -pqv =sys-apps/busybox-1.17.4'.
* The complete build log is located at '/var/tmp/portage/sys-apps/busybox-1.17.4/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-apps/busybox-1.17.4/temp/environment'.
* S: '/var/tmp/portage/sys-apps/busybox-1.17.4/work/busybox-1.17.4'
|
|
|
Back to top |
|
|
pelelademadera Veteran
Joined: 14 Jul 2008 Posts: 1255 Location: La Plata, Argentina
|
Posted: Sun Feb 06, 2011 10:49 pm Post subject: |
|
|
try with this flags only
[ebuild R ] sys-apps/busybox-1.18.1 USE="mdev savedconfig static -debug -ipv6 -make-symlinks -pam (-selinux)" 0 kB
and if you couldnt, try putting this
instead of
Quote: | # CONFIG_STATIC is not set |
Quote: |
* Messages for package sys-apps/busybox-1.18.1:
* Building using saved configfile //etc/portage/savedconfig//sys-apps/busybox-1.18.1
* Your configuration for sys-apps/busybox-1.18.1 has been saved in
* /etc/portage/savedconfig/sys-apps/busybox-1.18.1 for your editing pleasure.
* You can edit these files by hand and remerge this package with
* USE=savedconfig to customise the configuration.
* You can rename this file/directory to one of the following for
* its configuration to apply to multiple versions:
* ${PORTAGE_CONFIGROOT}/etc/portage/savedconfig/
* [${CTARGET}|${CHOST}|""]/${CATEGORY}/[${PF}|${P}|${PN}]
>>> Auto-cleaning packages...
>>> No outdated packages were found on your system.
* GNU info directory index is up-to-date.
* IMPORTANT: 1 config files in '/etc' need updating.
* See the CONFIGURATION FILES section of the emerge
* man page to learn how to update config files.
* IMPORTANT: 5 news items need reading for repository 'gentoo'.
* Use eselect news to read news items. |
succes for me...
~amd64 _________________ el pelado de la gente
------
Los habitantes de las islas Malvinas lo llaman gentoo, nombre en el que se basa la distribución GNU/Linux Gentoo, cuyo objetivo es la optimización para conseguir más rendimiento y velocidad en la ejecución.
------ |
|
Back to top |
|
|
Odysseus Apprentice
Joined: 23 Jun 2004 Posts: 250 Location: Miami, FL. I miss San Francisco!!!
|
Posted: Mon Feb 07, 2011 4:00 am Post subject: |
|
|
This is another glibc-2.13 bug as reported here https://bugs.gentoo.org/show_bug.cgi?id=353816
It seems as though this version of glibc has several major issues that need resolving. I posted about another serious issue with this ebuild and prelink earlier today that can cripple your box. That thread is here https://forums.gentoo.org/viewtopic-t-863297.html I hope the maintainers can get things sorted out quickly.
I hope this helps
Ciao
Edit: Ignore what I posted above. I mistakenly thought the OP was using the glibc version released into portage Saturday morning, but he isn't. So this is another unrelated issue. |
|
Back to top |
|
|
jcTux Apprentice
Joined: 29 Dec 2009 Posts: 276 Location: Tours, France
|
Posted: Mon Feb 07, 2011 7:23 pm Post subject: |
|
|
pelelademadera wrote: | try with this flags only
[ebuild R ] sys-apps/busybox-1.18.1 USE="mdev savedconfig static -debug -ipv6 -make-symlinks -pam (-selinux)" 0 kB
and if you couldnt, try putting this
instead of
Quote: | # CONFIG_STATIC is not set |
Quote: |
* Messages for package sys-apps/busybox-1.18.1:
* Building using saved configfile //etc/portage/savedconfig//sys-apps/busybox-1.18.1
* Your configuration for sys-apps/busybox-1.18.1 has been saved in
* /etc/portage/savedconfig/sys-apps/busybox-1.18.1 for your editing pleasure.
* You can edit these files by hand and remerge this package with
* USE=savedconfig to customise the configuration.
* You can rename this file/directory to one of the following for
* its configuration to apply to multiple versions:
* ${PORTAGE_CONFIGROOT}/etc/portage/savedconfig/
* [${CTARGET}|${CHOST}|""]/${CATEGORY}/[${PF}|${P}|${PN}]
>>> Auto-cleaning packages...
>>> No outdated packages were found on your system.
* GNU info directory index is up-to-date.
* IMPORTANT: 1 config files in '/etc' need updating.
* See the CONFIGURATION FILES section of the emerge
* man page to learn how to update config files.
* IMPORTANT: 5 news items need reading for repository 'gentoo'.
* Use eselect news to read news items. |
succes for me...
~amd64 |
Tank you.
I get it compiled with the following use flags "mdev savedconfig ipv6 pam static".
It won't compiled without savedconfig and static. |
|
Back to top |
|
|
pelelademadera Veteran
Joined: 14 Jul 2008 Posts: 1255 Location: La Plata, Argentina
|
Posted: Tue Feb 08, 2011 5:58 pm Post subject: |
|
|
I recomend to downgrade glibc.... I dont know why, but with that version, failed to generate a kernel with genkernel,
I dont like it, but I use software raid (intel matrix) and I cannot compile the initrd, so I mask =sys-libs/glibc-2.13 and downgrade without flag savedconfig, then recompile gcc, glibc again, gcc again, and make and emerge -e world.
now system works great again. _________________ el pelado de la gente
------
Los habitantes de las islas Malvinas lo llaman gentoo, nombre en el que se basa la distribución GNU/Linux Gentoo, cuyo objetivo es la optimización para conseguir más rendimiento y velocidad en la ejecución.
------ |
|
Back to top |
|
|
|
|
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
|
|