Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 641918

Summary: libpcre fails to (cross) compile by failing to find zlib and libbz2
Product: Gentoo/Alt Reporter: Emmanuel Lepage Vallee <elv1313>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED CANTFIX    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Emmanuel Lepage Vallee 2017-12-21 12:37:28 UTC
host: x86_64 (clean updated stage3 docker container, purely vanilla)
target: armv7a-hardfloat-linux-gnueabi

Using crossdev. Note that I didn't get that one while building the same system with aarch64.


checking zlib.h presence... yes
checking for zlib.h... yes
checking for gzopen in -lz... no
checking bzlib.h usability... yes
checking bzlib.h presence... yes
checking for bzlib.h... yes
checking for libbz2... no
** Cannot --enable-pcregrep-libz because libz was not found


checking for zlib.h... yes
checking for gzopen in -lz... no
checking bzlib.h usability... yes
checking bzlib.h presence... yes
checking for bzlib.h... yes
checking for libbz2... no
** Cannot --enable-pcregrep-libbz2 because libbz2 was not found

In both case the libraries /ARE/ installed in the cross compilation system (and the host, even if that would kind of be worst if it made a difference)

Mitigation

USE="-zlib -bzip2" armv7a-hardfloat-linux-gnueabi-emerge libpcre -1
armv7a-hardfloat-linux-gnueabi-emerge @system --keep-going
Comment 1 Fabian Groffen gentoo-dev 2021-01-07 20:36:27 UTC
This is not a Prefix bug, please take it up with crossdev.