Build errors for rpi-0w on linux 5.17.15 and above

Phil Elwell phil at raspberrypi.com
Tue Aug 23 07:22:09 PDT 2022


Hi Laurentiu-Cristian,

On Tue, 23 Aug 2022 at 15:11, Laurentiu-Cristian Duca
<laurentiu.duca at gmail.com> wrote:
>
> Forgot to note that before trying to build zImage, I launch the make
> of bcm2835_defconfig.
>
> Thanks
>
> On 8/23/22, Laurentiu-Cristian Duca <laurentiu.duca at gmail.com> wrote:
> > Hello,
> >
> >   On rpi-0w, when I try to build the linux kernel 5.17.15,
> > using any of the following toolchains, I get the following error [1].
> > gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf.tar.xz
> > armv6-eabihf--glibc--bleeding-edge-2021.11-1.tar.bz2
> >
> >   Similar errors appear on 5.19.x too.
> >   Any help would be appreciated.
> >
> > Thank you,
> > Laurentiu-Cristian Duca
> >
> > [1]
> > Linux 5.17.15 build error
> > make -j5 ARCH=arm
> > CROSS_COMPILE=/home/laur/lucru/raspberry-pi/rpi-zero-w/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/bin/arm-none-linux-gnueabihf-
> > INSTALL_MOD_PATH=/home/laur/lucru/raspberry-pi/rpi-zero-w/rpi-5.17.15-modules
> > zImage
> >   SYNC    include/config/auto.conf.cmd
> >   CC      scripts/mod/empty.o
> >   CC      scripts/mod/devicetable-offsets.s
> >   MKELF   scripts/mod/elfconfig.h
> >   HOSTCC  scripts/mod/modpost.o
> >   HOSTCC  scripts/mod/file2alias.o
> >   HOSTCC  scripts/mod/sumversion.o
> >   HOSTLD  scripts/mod/modpost
> >   CC      kernel/bounds.s
> >   CALL    scripts/atomic/check-atomics.sh
> >   CC      arch/arm/kernel/asm-offsets.s
> >   CALL    scripts/checksyscalls.sh
> >   AS      usr/initramfs_data.o
> >   CC      init/main.o
> >   CHK     include/generated/compile.h
> >   CC      arch/arm/vfp/vfpmodule.o
> >   AR      usr/built-in.a
> >   CC      arch/arm/mach-bcm/board_bcm2835.o
> >   CC      init/do_mounts.o
> >   UPD     include/generated/compile.h
> >   CC      arch/arm/mach-bcm/bcm2711.o
> >   CC      kernel/fork.o
> >   AS      arch/arm/vfp/entry.o
> >   AS      arch/arm/vfp/vfphw.o
> >   CC      arch/arm/vfp/vfpsingle.o
> >   AR      arch/arm/mach-bcm/built-in.a
> >   CC      kernel/exec_domain.o
> >   CC      certs/system_keyring.o
> >   CC      arch/arm/vfp/vfpdouble.o
> >   CC      init/do_mounts_initrd.o
> >   HOSTCC  certs/extract-cert
> >   CC      mm/filemap.o
> > certs/extract-cert.c:21:10: fatal error: openssl/bio.h: No such file
> > or directory
> >    21 | #include <openssl/bio.h>
> >       |          ^~~~~~~~~~~~~~~
> > compilation terminated.
> >

Have you installed the libssl-dev package?

You might find our kernel compilation instructions useful, even if
they are mainly aimed at building our downstream branches. You will
find them at:

https://www.raspberrypi.com/documentation/computers/linux_kernel.html#building.

Phil



More information about the linux-rpi-kernel mailing list