bootlin / buildroot-external-st

External Buildroot tree for STMicroelectronics boards configurations
48 stars 26 forks source link

Linux kernel compilation fails with scripts/extract-cert.c:21:10: fatal error: openssl/bio.h: No such file or directory #23

Closed FrankBau closed 2 years ago

FrankBau commented 2 years ago

Can be easily fixed by adding libssl-dev to the pre-requisites in https://github.com/bootlin/buildroot-external-st#pre-requisites. Found on a Linux 4.19.0-18-amd64 #1 SMP Debian 4.19.208-1 server as build host. hth KnarfB

tpetazzoni commented 2 years ago

Not the right fix. Buildroot can build host-openssl as a dependency of Linux by enabling BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y.

kmaincent commented 2 years ago

Issue already reported here: #17 Are you using the same kernel Configuration as the one in the BR2_EXTERNAL?

FrankBau commented 2 years ago

Yes, I did a clean build in a new folder:

git clone -b st/2021.02 https://github.com/bootlin/buildroot.git
git clone -b st/2021.02 https://github.com/bootlin/buildroot-external-st.git
cd buildroot
make BR2_EXTERNAL=../buildroot-external-st st_stm32mp157c_dk2_defconfig
make

on that Debian server I use as workaround for #22.

FrankBau commented 2 years ago

@tpetazzoni : then I see two issues here:

tpetazzoni commented 2 years ago

build tainted by host openssl => this is inherent to cross-compilation in general, it's impossible to fully isolate from what's on the host machine _BR2_LINUX_KERNEL_NEEDS_HOSTOPENSSL missing in the defconfigs => yes, I agree

kmaincent commented 2 years ago

It is indeed an issue, I just add the config to fix it, thanks.