Trying to cross build busybox with ELDK 4.2
walter harms
wharms at bfs.de
Tue Oct 27 17:01:09 UTC 2009
Reinhard Thies schrieb:
> On Tuesday, 27. October 2009 16:04:50 Denys Vlasenko wrote:
>> On Tue, Oct 27, 2009 at 3:23 PM, Reinhard Thies <Reinhard.Thies at web.de>
> wrote:
>>> Hi,
>>>
>>> I am trying to cross-compile busybox using ELDK 4.2.
>>> When I try make I get the following error:
>>> ppc_6xx-gcc -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
>>> -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
>>> -std=gnu99 -Iinclude -Ilibbb -include include/autoconf.h -D_GNU_SOURCE
>>> -DNDEBUG -D"BB_VER=KBUILD_STR(1.16.0.git)" -DBB_BT=AUTOCONF_TIMESTAMP
>>> applets/usage_pod.c m crypt -o applets/usage_pod
>>> ppc_6xx-gcc: m: No such file or directory
>>> ppc_6xx-gcc: crypt: No such file or directory
>>>
>>> Any ideas ?
>> You have some environment variable (LDLIBS or some such)
>> which gets inserted into compile command and breaks it.
>>
>> Try "env - PATH=$PATH make". If it works, then this is it.
>> --
>> vda
>
> Denys,
>
> thanks its compiling now. But stops at link time now with the following :
>
> Trying libraries: crypt m
> Library crypt is not needed, excluding it
> Library m is needed, can't exclude it (yet)
> Final link with: m
>
> So how can I add the libs ?
>
the message says it is already linked with -lm.
you should have a busybox_unstriped and a busybox executeable.
re,
wh
More information about the busybox
mailing list