strip problem in busybox
Fri May 8 11:43:00 GMT 2009
> I am trying to compile busybox with my new cross compiler but it fails
> at the final post , stripping the object file.
> $ make CC="arm-unknown-linux-gnueabi-gcc"
> CC util-linux/volume_id/util.o
> CC util-linux/volume_id/volume_id.o
> CC util-linux/volume_id/xfs.o
> AR util-linux/volume_id/lib.a
> LINK busybox_unstripped
> Trying libraries: crypt m
> Library crypt is not needed, excluding it
> Library m is needed, can't exclude it (yet)
> Final link with: m
> strip: Unable to recognise the format of the input file
> make: *** [busybox] Error 1
> I found a post on busybox ML that seems to address this precise problem.
> I did a fresh SVN pull but the issue remains.
> Is this a defect in ct-cg or in the BB Makefile?
> Any way around this?
OK. Seems I forgot to run make menuconfig with CROSS_COMPILE set.
Now seems clean and I have an ARM executable.
make menuconfig CROSS_COMPILE="arm-unknown-linux-gnueabi-"
Trying libraries: crypt m
Library crypt is not needed, excluding it
Library m is needed, can't exclude it (yet)
Final link with: m
$ file busybox
busybox: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically
linked (uses shared libs), stripped
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc