* [Buildroot] Busybox build fails with external toolchain
@ 2008-10-23 9:39 Michel Benoit
2008-10-23 9:50 ` Peter Korsgaard
0 siblings, 1 reply; 5+ messages in thread
From: Michel Benoit @ 2008-10-23 9:39 UTC (permalink / raw)
To: buildroot
Hi,
I'm trying to use buildroot to build a rootfs with an external
toolchain based on uclibc.
I'm using buildroot svn revision 23768
The toolchain is based on gcc 4.1.2.
> arm-linux-gcc -v
Using built-in specs.
Target: arm-linux-uclibc
Configured with:
/home/danov/ronetix/buildroot/toolchain_build_arm/gcc-4.1.2/configure
--prefix=/home/danov/ronetix/buildroot/build_arm/staging_dir
--build=i386-pc-linux-gnu --host=i386-pc-linux-gnu
--target=arm-linux-uclibc --enable-languages=c,c++
--disable-__cxa_atexit --enable-target-optspace --with-gnu-ld
--with-gmp=/home/danov/ronetix/buildroot/toolchain_build_arm/gmp
--with-mpfr=/home/danov/ronetix/buildroot/toolchain_build_arm/mpfr
--enable-shared --enable-threads --disable-multilib
Thread model: posix
gcc version 4.1.2
With "make menuconfig" I configure an external toolchain and set the
toolchain path to "~/Projects/eaclock/sw/tools/arm-linux-uclibc".
When I run "make" busybox compiles ok but then it appears to choke
when linking against the libraries.
CC util-linux/switch_root.o
CC util-linux/umount.o
AR util-linux/lib.a
LD util-linux/volume_id/built-in.o
AR util-linux/volume_id/lib.a
LINK busybox_unstripped
Trying libraries: crypt m
Failed: -Wl,--start-group -lcrypt -lm -Wl,--end-group
Output of:
~/Projects/eaclock/sw/tools/arm-linux-uclibc/bin/arm-linux-gcc -Wall
-Wshadow -Wwrite-strings -Wundef -Wstrict-prototypes -Wunused
-Wunused-parameter -Wmissing-prototypes -Wmissing-declarations
-Wdeclaration-after-statement -Wold-style-definition
-fno-builtin-strlen -finline-limit=0 -fomit-frame-pointer
-ffunction-sections -fdata-sections -fno-guess-branch-probability
-funsigned-char -static-libgcc -falign-functions=1 -falign-jumps=1
-falign-labels=1 -falign-loops=1 -Os -o busybox_unstripped
-Wl,--sort-common -Wl,--gc-sections -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
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 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
==========
/home/michel/Projects/eaclock/sw/firm/buildroot/project_build_arm/eaclock/busybox-1.12.1/scripts/trylink:
line 44: ~/Projects/eaclock/sw/tools/arm-linux-uclibc/bin/arm-linux-gcc:
No such file or directory
make[1]: *** [busybox_unstripped] Error 1
make[1]: Leaving directory
`/home/michel/Projects/eaclock/sw/firm/buildroot/project_build_arm/eaclock/busybox-1.12.1'
make: *** [/home/michel/Projects/eaclock/sw/firm/buildroot/project_build_arm/eaclock/busybox-1.12.1/busybox]
Error 2
Could there be a problem with the path to the libraries?
The -L option seems to be correct in EXTRA_CFLAGS.
The busybox build starts with the output:
/usr/bin/make -j1
CC=~/Projects/eaclock/sw/tools/arm-linux-uclibc/bin/arm-linux-gcc
CROSS_COMPILE="~/Projects/eaclock/sw/tools/arm-linux-uclibc/bin/arm-linux-"
\
CROSS="~/Projects/eaclock/sw/tools/arm-linux-uclibc/bin/arm-linux-"
PREFIX="/home/michel/Projects/eaclock/sw/firm/buildroot/project_build_arm/eaclock/root"
\
ARCH=arm \
EXTRA_CFLAGS="-Os
-I/home/michel/Projects/eaclock/sw/firm/buildroot/build_arm/staging_dir/include
-I/home/michel/Projects/eaclock/sw/firm/buildroot/build_arm/staging_dir/usr/include
-I~/Projects/eaclock/sw/tools/arm-linux-uclibc/arm-linux/include
-L~/Projects/eaclock/tools/arm-linux-uclibc/lib" -C
/home/michel/Projects/eaclock/sw/firm/buildroot/project_build_arm/eaclock/busybox-1.12.1
make[1]: Entering directory
`/home/michel/Projects/eaclock/sw/firm/buildroot/project_build_arm/eaclock/busybox-1.12.1'
CC applets/applets.o
LD applets/built-in.o
CC archival/ar.o
CC archival/bbunzip.o
CC archival/cpio.o
Any ideas with the busybox build fails?
Thanks,
Michel
^ permalink raw reply [flat|nested] 5+ messages in thread* [Buildroot] Busybox build fails with external toolchain
2008-10-23 9:39 [Buildroot] Busybox build fails with external toolchain Michel Benoit
@ 2008-10-23 9:50 ` Peter Korsgaard
2008-10-23 9:54 ` Roberto A. Foglietta
2008-10-23 13:30 ` Bernhard Reutner-Fischer
0 siblings, 2 replies; 5+ messages in thread
From: Peter Korsgaard @ 2008-10-23 9:50 UTC (permalink / raw)
To: buildroot
>>>>> "Michel" == Michel Benoit <michel.benoit@sepab.se> writes:
Michel> Hi,
Michel> I'm trying to use buildroot to build a rootfs with an external
Michel> toolchain based on uclibc.
Michel> I'm using buildroot svn revision 23768
Michel> The toolchain is based on gcc 4.1.2.
The external toolchain stuff is known to be kinda flaky - But maybe
your problem is the ~ - Could you try with an absolute path to the
external toolchain?
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] Busybox build fails with external toolchain
2008-10-23 9:50 ` Peter Korsgaard
@ 2008-10-23 9:54 ` Roberto A. Foglietta
2008-10-23 13:30 ` Bernhard Reutner-Fischer
1 sibling, 0 replies; 5+ messages in thread
From: Roberto A. Foglietta @ 2008-10-23 9:54 UTC (permalink / raw)
To: buildroot
2008/10/23 Peter Korsgaard <jacmet@uclibc.org>:
>>>>>> "Michel" == Michel Benoit <michel.benoit@sepab.se> writes:
>
> Michel> Hi,
> Michel> I'm trying to use buildroot to build a rootfs with an external
> Michel> toolchain based on uclibc.
> Michel> I'm using buildroot svn revision 23768
> Michel> The toolchain is based on gcc 4.1.2.
>
> The external toolchain stuff is known to be kinda flaky - But maybe
> your problem is the ~ - Could you try with an absolute path to the
> external toolchain?
Then if you still experiment problems you should try applying the
patch attached to this bug report
http://busybox.net/bugs/view.php?id=5474
Cheers,
--
/roberto
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] Busybox build fails with external toolchain
2008-10-23 9:50 ` Peter Korsgaard
2008-10-23 9:54 ` Roberto A. Foglietta
@ 2008-10-23 13:30 ` Bernhard Reutner-Fischer
2008-10-23 14:38 ` Peter Korsgaard
1 sibling, 1 reply; 5+ messages in thread
From: Bernhard Reutner-Fischer @ 2008-10-23 13:30 UTC (permalink / raw)
To: buildroot
On Thu, Oct 23, 2008 at 11:50:31AM +0200, Peter Korsgaard wrote:
>>>>>> "Michel" == Michel Benoit <michel.benoit@sepab.se> writes:
>
> Michel> Hi,
> Michel> I'm trying to use buildroot to build a rootfs with an external
> Michel> toolchain based on uclibc.
> Michel> I'm using buildroot svn revision 23768
> Michel> The toolchain is based on gcc 4.1.2.
>
>The external toolchain stuff is known to be kinda flaky - But maybe
>your problem is the ~ - Could you try with an absolute path to the
>external toolchain?
'~' != $HOME unless
Index: scripts/trylink
===================================================================
--- scripts/trylink (revision 23755)
+++ scripts/trylink (working copy)
@@ -41,9 +41,8 @@ try() {
printf "%s\n" "$*" >>$EXE.out
printf "%s\n" "==========" >>$EXE.out
$debug && echo "Trying: $*"
- "$@" >>$EXE.out 2>&1
- exitcode=$?
- return $exitcode
+ $@ >>$EXE.out 2>&1
+ return $?
}
check_cc() {
^ permalink raw reply [flat|nested] 5+ messages in thread* [Buildroot] Busybox build fails with external toolchain
2008-10-23 13:30 ` Bernhard Reutner-Fischer
@ 2008-10-23 14:38 ` Peter Korsgaard
0 siblings, 0 replies; 5+ messages in thread
From: Peter Korsgaard @ 2008-10-23 14:38 UTC (permalink / raw)
To: buildroot
>>>>> "Bernhard" == Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> writes:
Hi,
>> The external toolchain stuff is known to be kinda flaky - But maybe
>> your problem is the ~ - Could you try with an absolute path to the
>> external toolchain?
Bernhard> '~' != $HOME unless
Indeed, that's what I thought. There might be other packages having
issues with ~ as well though, so better use the full path instead.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-10-23 14:38 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-23 9:39 [Buildroot] Busybox build fails with external toolchain Michel Benoit
2008-10-23 9:50 ` Peter Korsgaard
2008-10-23 9:54 ` Roberto A. Foglietta
2008-10-23 13:30 ` Bernhard Reutner-Fischer
2008-10-23 14:38 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox