On Sat, Mar 10, 2018 at 9:00 PM, Matúš Olekšák <oleksak.ma...@gmail.com> wrote:
> Hi,
> I'm trying to compile elf-toolchain on Alpine Linux using bmake and clang,
> and I get this error : "ld: error: zlib is not available". Which is weird in
> many ways, first of all it should be complaining about -lz, on the other
> hand I have installed zlib-dev. Also I'm using lld as linker.
>
> Full log:
> ===> common
> /var/pkg/ress/ress-devel-ext/elf-toolchain/src/elf-toolchain/common/native-elf-format
>> native-elf-format.h || rm native-elf-format.h
> ===> libelf
> cc -pipe -g    -MD -MF elf.d -MT elf.o -I.
> -I/var/pkg/ress/ress-devel-ext/elf-toolchain/src/elf-toolchain/libelf
> -I/var/pkg/ress/ress-devel-ext/elf-toolchain/src/elf-toolchain/libelf/../com
> mon -D_FORTIFY_SOURCE=2    -c -pg -DGPROF -DPROF elf.c -o elf.po.o
> ld: error: zlib is not available

At this step of the build you should only be compiling "elf.c", the
linker should not be in the picture.

Which specific version of Alpine Linux are you building on?

Also, are you able to run the linker otherwise?

Regards,
Joseph Koshy

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Elftoolchain-developers mailing list
Elftoolchain-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/elftoolchain-developers

Reply via email to