busybox compilation error
Denys Vlasenko
vda.linux at googlemail.com
Wed Oct 10 07:54:27 PDT 2007
On Wednesday 10 October 2007 13:38, tomy wrote:
> hi,
> I am compiling busybox 1.7.2 using make "ARCH=armCROSS_COMPILE=armv5l-linux-",
Hmm you have a typo above, I think.
> but while compiling it is giving an error like
> Trying libraries: crypt m
> Library crypt is needed
> Library m is needed
> Final link with: crypt m
> What will be the reason for this.
It's not an error. Do you have busybox executable after this step?
If yes, then it worked.
> After that I tried
> "make ARCH=armCROSS_COMPILE=armv5l-linux- install" Then it is creating binaries, but all binaries are in big size (around 752K).
>
> Why this much big size..
I personally don't use make install, maybe something is broken there.
Let me test...
$ make install
$ ls -l _install/bin
lrwxrwxrwx 1 vda eng 7 Oct 10 15:50 addgroup -> busybox
lrwxrwxrwx 1 vda eng 7 Oct 10 15:50 adduser -> busybox
lrwxrwxrwx 1 vda eng 7 Oct 10 15:50 ash -> busybox
-rwxr-xr-x 1 vda eng 751328 Oct 10 15:50 busybox
lrwxrwxrwx 1 vda eng 7 Oct 10 15:50 cat -> busybox
lrwxrwxrwx 1 vda eng 7 Oct 10 15:50 catv -> busybox
...
This was with CONFIG_INSTALL_APPLET_SYMLINKS=y
Without it:
$ ls -li _install/bin
7719226 -rwxr-xr-x 263 vda eng 751328 Oct 10 15:52 addgroup
7719226 -rwxr-xr-x 263 vda eng 751328 Oct 10 15:52 adduser
7719226 -rwxr-xr-x 263 vda eng 751328 Oct 10 15:52 ash
7719226 -rwxr-xr-x 263 vda eng 751328 Oct 10 15:52 busybox
7719226 -rwxr-xr-x 263 vda eng 751328 Oct 10 15:52 cat
7719226 -rwxr-xr-x 263 vda eng 751328 Oct 10 15:52 catv
....
These are all hardlinks to the same inode# 7719226.
IIUC make install works ok.
--
vda
More information about the busybox
mailing list