[Crash-utility] Building crash for 'ARM' (32) on x86_64 (Ubuntu 17.04) fails, ld: cannot find -lz

Kaiwan N Billimoria kaiwan at kaiwantech.com
Fri Jul 14 13:55:37 UTC 2017


>> Looks to me like it fails with
>>
>> /usr/bin/ld: cannot find -lz
>>
>> So, I did the usual checks; i have these 'libz' libs installed on the box:
>>
>> $ dpkg -l |grep "libz.*comp"
>> ii  libzstd-dev                                     1.1.2-1             amd64        fast lossless
>> compression algorithm -- development files
>> ii  libzstd1                                        1.1.2-1             amd64        fast lossless
>> compression algorithm
>> $
>>
>> What package(s) do I need to install to overcome this issue? / what am i doing wrong?
>> Any help appreciated, tia!
>>
>> Regards,
>> Kaiwan.


>I can't get into any specifics w/respect to Ubuntu package installation, but
>since you are actually building a 32-bit x86 binary with target=ARM, you need to
>have all of the required 32-bit i686 libraries installed.  So you will need to
>install a 32-bit zlib library.

>Dave

Yes! I installed the lib32z1-dev package (on Ubuntu 17.04), and it did
indeed build, and subsequently was able to examine the arm-32 kdump
file.
Thanks v much!

Regards,
Kaiwan.




More information about the Crash-utility mailing list