Cannot build kernel for JetPack 6.2 (R36.4.3)

When I try to build the Kernel for R36.4.3, I am getting errors on openssl include files. EG:
scripts/extract-cert.c:21:10: fatal error: openssl/bio.h: No such file or directory
21 | include <openssl/bio.h>
| ^~~~~~~~~~~~~~~

I have run source_sync.sh:
./source_sync.sh -k -t jetson_36.4.3

When make -C kernel in invoked, I get during the build:
ake[1]: Entering directory ‘/home/ccmcphe/new-jetson/jetson/Jetson.36/Jetson-Flash/R36.4.3/Linux_for_Tegra/source/kernel/kernel-jammy-src’
*** Default configuration is based on ‘defconfig’

No change to .config

make[1]: Leaving directory ‘/home/ccmcphe/new-jetson/jetson/Jetson.36/Jetson-Flash/R36.4.3/Linux_for_Tegra/source/kernel/kernel-jammy-src’
make -j 32
ARCH=arm64
-C /home/ccmcphe/new-jetson/jetson/Jetson.36/Jetson-Flash/R36.4.3/Linux_for_Tegra/source/kernel/kernel-jammy-src
LOCALVERSION=-tegra
–output-sync=target Image
HOSTCC scripts/sign-file
scripts/sign-file.c:25:10: fatal error: openssl/opensslv.h: No such file or directory
25 | include <openssl/opensslv.h>
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.host:95: scripts/sign-file] Error 1
make[2]: *** Waiting for unfinished jobs…
HOSTCC scripts/extract-cert
scripts/extract-cert.c:21:10: fatal error: openssl/bio.h: No such file or directory
21 | include <openssl/bio.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.host:95: scripts/extract-cert] Error 1
make[1]: *** [Makefile:1250: scripts] Error 2
make: *** [Makefile:31: kernel] Error 2

I also note that there is no reference to openssl for headers and/or libraries in the Cross Compiler.

Anyone know how I can fix this?

Hello @clm1

Based on the error messages it seems that you do not have some dependencies installed on your host PC

Please run the following:

sudo apt-get install make build-essential libncurses-dev bison flex libssl-dev libelf-dev

And try to compile the kernel again.

I hope this helps!

Regards!
Eduardo Salazar
Embedded SW Engineer at RidgeRun

Contact us: support@ridgerun.com
Developers wiki: https://developer.ridgerun.com/
Website: www.ridgerun.com

Thanks Eduardo, I was missing libssl

-Clyde

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.