android-rpi / kernel_manifest

Android-RPi Kernel Manifest
9 stars 19 forks source link

Kernel build failing on ubuntu 20.04 #6

Open dhoomakethu opened 2 years ago

dhoomakethu commented 2 years ago

Hello,

I am trying to build the kernel on Ubuntu 20.04 and I am not able to go past this error

# merged configuration written to /home/ubuntu/android-kernel2/common/arch/arm64/configs/arpi_defconfig (needs make)
#
+ set +x
+ cd common
+ make LLVM=1 LLVM_IAS=1 DEPMOD=depmod DTC=dtc O=/home/ubuntu/android-kernel2/out/arpi-5.10/common arpi_defconfig
make[1]: Entering directory '/home/ubuntu/android-kernel2/out/arpi-5.10/common'
  GEN     Makefile
  HOSTCC  scripts/basic/fixdep
/home/ubuntu/android-kernel2/common/scripts/basic/fixdep.c:92:10: fatal error: 'sys/types.h' file not found
#include <sys/types.h>
         ^~~~~~~~~~~~~
1 error generated.
make[2]: *** [scripts/Makefile.host:95: scripts/basic/fixdep] Error 1
make[1]: *** [/home/ubuntu/android-kernel2/common/Makefile:550: scripts_basic] Error 2
make[1]: Leaving directory '/home/ubuntu/android-kernel2/out/arpi-5.10/common'
make: *** [Makefile:185: __sub-make] Error 2

Any hints /suggestion to fix this highly appreciated.

Host Machine Info

Operating System: Ubuntu 20.04.3 LTS
            Kernel: Linux 5.11.0-1027-aws
      Architecture: x86-64

NOTE AOSP Source is built succesfully.

dhoomakethu commented 2 years ago

The header types.h is available under /usr/include/sys

$ ls -l /usr/include/sys/types.h
lrwxrwxrwx 1 root root 31 Dec 16  2020 /usr/include/sys/types.h -> ../x86_64-linux-gnu/sys/types.h
MaJiu commented 2 years ago

@dhoomakethu Hi, dhoomakethu. https://github.com/android-rpi/device_arpi_rpi4/issues/96#issuecomment-1048349487 Maybe it can help you.