maurossi/linux

Build failing

Closed this issue · 1 comments

I'm trying to update the kernel of android x86 8.1 r5 to version 5.8 because versions older than 5.2 contain kernel drivers that are not compatible with the Intel AX201 wireless adapter.

After issuing the commands:

mkdir android-x86
cd android-x86
repo init -u git://git.osdn.net/gitroot/android-x86/manifest -b oreo-x86 -m android-x86-8.1-r5.xml
repo sync --no-tags --no-clone-bundle
cd kernel
git remote add maurossi https://github.com/maurossi/linux
git fetch maurossi kernel-5.8_si_next
git checkout FETCH_HEAD
cd ../external
rm -rf kernel-drivers/
git clone -b kernel-5.8 https://github.com/maurossi/kernel-drivers.git kernel-drivers
cd ..
. build/envsetup.sh
lunch android_x86_64-userdebug
m -j3 iso_img

I get the following error:

FAILED: /home/test/android-x86/out/target/product/x86_64/obj/kernel/arch/x86_64/boot/bzImage
/bin/bash -c "make -j8 -j\$(nproc) -l\$((\$(nproc)+2)) -C kernel O=/home/test/android-x86/out/target/product/x86_64/obj/kernel ARCH=x86_64 CROSS_COMPILE=\" /home/test/android-x86/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/bin/x86_64-linux-\"  YACC=/home/test/android-x86/prebuilts/misc/linux-x86/bison/bison LEX=/home/test/android-x86/prebuilts/misc/linux-x86/flex/flex-2.5.39  bzImage modules"
make: Entering directory '/home/test/android-x86/kernel'
make[1]: Entering directory '/home/test/android-x86/out/target/product/x86_64/obj/kernel'
  GEN     Makefile
  DESCEND  objtool
  HOSTCC  scripts/extract-cert
/home/test/android-x86/kernel/scripts/extract-cert.c:21:10: fatal error: openssl/bio.h: No such file or directory
 #include <openssl/bio.h>
          ^~~~~~~~~~~~~~~
compilation terminated.
scripts/Makefile.host:103: recipe for target 'scripts/extract-cert' failed
make[2]: *** [scripts/extract-cert] Error 1
/home/test/android-x86/kernel/Makefile:1159: recipe for target 'scripts' failed
make[1]: *** [scripts] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/test/android-x86/out/target/product/x86_64/obj/kernel'
Makefile:185: recipe for target '__sub-make' failed
make: *** [__sub-make] Error 2
make: Leaving directory '/home/test/android-x86/kernel'
[  0% 191/95688] target  C: libopenjdk_32 <= libcore/ojluni/src/main/native/java_util_zip_Deflater.c
ninja: build stopped: subcommand failed.
10:26:53 ninja failed with: exit status 1

#### failed to build some targets (14 seconds) ####

Am I doing something wrong?

Solved, just needed to install libssl-dev

sudo apt-get install aptitude
sudo aptitude install libssl-dev