[Buildroot] Problems building for ucLinux/ARM with elf2flt enabled
Thomas De Schampheleire
patrickdepinguin+buildroot at gmail.com
Wed Jul 24 10:40:49 UTC 2013
On Wed, Jul 24, 2013 at 12:02 PM, Anna Fischer (novero/Bochum)
<Anna.Fischer at novero.com> wrote:
> I'm trying to build a ucLinux system for an ARM platform (no-MMU), but when trying to enabled elf2flt in the menuconfig I get the following error:
> /home/buildroot-2013.05/output/build/host-binutils-2.21.1/bfd/libbfd.a(compress.o): In function `bfd_compress_section_contents':
> compress.c:(.text+0x25): undefined reference to `compressBound'
> /home//buildroot-2013.05/output/build/host-binutils-2.21.1/bfd/libbfd.a(compress.o): In function `bfd_get_full_section_contents':
> compress.c:(.text+0x226): undefined reference to `inflateEnd'
> compress.c:(.text+0x37a): undefined reference to `inflateInit_'
> compress.c:(.text+0x3b0): undefined reference to `inflate'
> compress.c:(.text+0x3bf): undefined reference to `inflateReset'
> collect2: ld returned 1 exit status
> make: *** [elf2flt] Error 1
> make: Leaving directory `/home/buildroot-2013.05/output/toolchain/elf2flt'
> make: *** [/home/buildroot-2013.05/output/toolchain/elf2flt/elf2flt] Error 2
> It seems like it is missing libz? But I don't quite understand why, because I definitely have it installed on the system. Anyone ever seen this before?
> I'm using the buildroot internal toolchain, uClibc-0.9.33.2, gcc-4.7.3, linux-3.8, and this is buildroot-2013.05. I have attached my .config as well. My build host is Ubuntu 64-bit.
Do you have the -dev package of zlib? Also for 64-bit?
On a CentOS system, I have seen a problem with the static version of
zlib missing, when building a static toolchain with crosstool-ng. On
CentOS, the static version (libz.a) is distributed as a separate
package. I don't know if this is the case on your system.
More information about the buildroot