[BusyBox] How can I compile BusyBox for Arm target?

Robert Weber rb_embedded at yahoo.com
Wed Oct 13 20:34:43 UTC 2004


It looks to me like you're trying to use the target
linker when building, not 
the cross linker.

The gcc you use looks okay.

/opt/crosstool/armv41-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.5/bin/armv41-unknown-linux-gnu-gcc

But your linker is 


/opt/crosstool/armv41-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.5/lib/gcc-lib/armv41-unknown-linux-gnu/32.3/../../../../armv41-unknown-linux-gnu/bin/ld

This is the target machine's linker, not the cross
linker. The cross linker 
would be at:

/opt/crosstool/armv41-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.5/bin/armv41-unknown-linux-gnu-ld

- Bob
> Hi, all
> 
> I am a newbie.I want to compile BusyBox for Arm
target. 
> 
> I have setted CROSS_COMPILER_PREFIX  and
TARGET_ARCH, but got a error 
> while making:
> 
>
/opt/crosstool/armv41-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.5/bin/armv41-unknown-linux-gnu-gcc

> -I./i
> nclude -Wall -Wstrict-prototypes -Wshadow -Os
-fstrict-aliasing 
> -fomit-frame-pointer -D_GNU_SOURCE -
> DNDEBUG   -I/opt/host/armv4l/include
-I/opt/host/armv4l/include/g++-3 
> -L/opt/host/armv4l/lib  -c -o
> applets/applets.o applets/applets.c
>
/opt/crosstool/armv41-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.5/bin/armv41-unknown-linux-gnu-gcc

> -I./i
> nclude -Wall -Wstrict-prototypes -Wshadow -Os
-fstrict-aliasing 
> -fomit-frame-pointer -D_GNU_SOURCE -
> DNDEBUG   -I/opt/host/armv4l/include
-I/opt/host/armv4l/include/g++-3 
> -L/opt/host/armv4l/lib  -c -o
> applets/busybox.o applets/busybox.c
>
/opt/crosstool/armv41-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.5/bin/armv41-unknown-linux-gnu-ar

> -ro ap
> plets/applets.a ./applets/applets.o
./applets/busybox.o
>
/opt/crosstool/armv41-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.5/bin/armv41-unknown-linux-gnu-gcc

> -s -W
> l,-warn-common -o busybox -Wl,--start-group
./applets/applets.a 
> ./archival/archival.a ./archival/lib
> unarchive/libunarchive.a ./coreutils/coreutils.a 
> ./console-tools/console-tools.a ./debianutils/debia
> nutils.a ./editors/editors.a ./findutils/findutils.a
./init/init.a 
> ./miscutils/miscutils.a ./modutil
> s/modutils.a ./networking/networking.a 
> ./networking/libiproute/libiproute.a
./networking/udhcp/udhcp
> a ./procps/procps.a ./loginutils/loginutils.a
./shell/shell.a 
> ./sysklogd/sysklogd.a ./util-linux/ut
> il-linux.a ./libpwdgrp/libpwdgrp.a 
> ./coreutils/libcoreutils/libcoreutils.a
./libbb/libbb.a  -Wl,--en
> d-group
>
/opt/crosstool/armv41-unknown-linux-gnu/gcc-3.2.3-glibc-2.2.5/lib/gcc-lib/armv41-unknown-linux-gnu/3
> 2.3/../../../../armv41-unknown-linux-gnu/bin/ld: 
> ./archival/archival.a(bunzip2.o)(.text+0xb): 
> R_ARM_PC24 relocation against SEC_MERGE section   //

> <<<<<<<<<<<<<<<<<<<<<<<<<
> collect2: ld returned 1 exit status
> make: *** [busybox] Error 1
> 
> What more should I do, anyone can help me?
> 
> Any suggestion is appreciated. Thank you!
> 
>  
> 
> ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡
> ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡repinsten at sohu.com
> ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2004-10-12


		
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com



More information about the busybox mailing list