Skip to content

Kernel build failing on ubuntu 20.04 #6

@dhoomakethu

Description

@dhoomakethu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions