Strange pipe behaviour in the latest svn version
Alexander Griesser
alexander.griesser at lkh-vil.or.at
Wed Oct 18 05:41:46 UTC 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Denis Vlasenko wrote:
>> Did somebody revert
>> http://busybox.net/downloads/patches/svn-16017.patch
>> or is this a new bug?
>
> Not reverted, it is simply gone along with old build system...
>
> Alexander, can you check and let us know whether
> removing "-Wl,--sort-common -Wl,--gc-sections" helps?
If I understand this correctly, these flags are set automatically
when CONFIG_STATIC is defined, right?
|| ifdef CONFIG_STATIC
|| cmd_busybox__ ?= $(srctree)/scripts/trylink $(CC) \
|| -static \
|| -o $@ \
|| -Wl,--warn-common -Wl,--sort-common -Wl,--gc-sections \
|| -Wl,--start-group $(busybox-all) -Wl,--end-group
|| else
|| cmd_busybox__ ?= $(srctree)/scripts/trylink $(CC) -o $@ \
|| -Wl,--warn-common -Wl,--sort-common -Wl,--gc-sections \
|| -Wl,--start-group $(busybox-all) -Wl,--end-group
|| endif
I enabled CONFIG_STATIC, see here:
|| tuxx at vi-edv003:~/busybox/busybox$ grep CONFIG_STATIC .config
|| CONFIG_STATIC=y
|| tuxx at vi-edv003:~/busybox/busybox$
I could try to not build busybox as a static binary...
OK, that works, here are the outputs:
Compiled as static binary:
|| $ ldd /bin/busybox
|| $ not a dynamic executable
|| $ readlink -f /boot/vmlinuz
|| /system/boot/vmlinuz.386
|| $ readlink -f /boot/vmlinuz | cut -d. -f2
|| $
Compiled as dynamic executable:
|| $ ldd /bin/busybox
|| linux-gate.so.1 => (0xffffe000)
|| libcrypt.so.1 => /lib/tls/libcrypt.so.1 (0xb7ed7000)
|| libm.so.6 => /lib/tls/libm.so.6 (0xb7eb1000)
|| libc.so.6 => /lib/tls/libc.so.6 (0xb7d78000)
|| /lib/ld-linux.so.2 (0xb7f09000)
|| $ readlink -f /boot/vmlinuz
|| /system/boot/vmlinuz.386
|| $ readlink -f /boot/vmlinuz | cut -d. -f2
|| 386
|| $
The gcc version on the machine I built this busybox version on is:
|| tuxx at vi-edv003:~/busybox/busybox$ gcc -v
|| Using built-in specs.
|| Target: i486-linux-gnu
|| Configured with: ../src/configure -v
|| --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr
|| --enable-shared --with-system-zlib --libexecdir=/usr/lib
|| --without-included-gettext --enable-threads=posix --enable-nls
|| --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu
|| --enable-libstdcxx-debug --enable-mpfr --with-tune=i686
|| --enable-checking=release i486-linux-gnu
|| Thread model: posix
|| gcc version 4.1.2 20061007 (prerelease) (Debian 4.1.1-16)
|| tuxx at vi-edv003:~/busybox/busybox$
I uploaded my current busybox-config to [1]. The only thing that
is different for this config to the previous one that didn't work
is CONFIG_STATIC which is _NOT_ set at [1].
[1] http://tuxx-home.at/bb-config
Thanks for having a look at this!
ciao,
- --
Alexander Griesser (Netzwerkadministration)
E-Mail: alexander.griesser at lkh-vil.or.at | Web: http://www.lkh-vil.or.at
KABEG LKH Villach | Nikolaigasse 43 | 9500 Villach
Tel.: +43 4242 208 3061 | Fax.: +43 4242 971 3061
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFNb6a66HVD6KUm1oRAkHqAJ42s8VIPTN1seVlQaSpJEDu+zentgCgj0eG
9DAxmxO+fkgGu35JnhYZ5yI=
=70mq
-----END PGP SIGNATURE-----
More information about the busybox
mailing list