Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kernel build failing on ubuntu 20.04 #6

Open
dhoomakethu opened this issue Jan 28, 2022 · 2 comments
Open

Kernel build failing on ubuntu 20.04 #6

dhoomakethu opened this issue Jan 28, 2022 · 2 comments

Comments

@dhoomakethu
Copy link

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 dhoomakethu changed the title Kernel build failing Kernel build failing on ubuntu 20.04 Jan 28, 2022
@dhoomakethu
Copy link
Author

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
Copy link

MaJiu commented Feb 23, 2022

@dhoomakethu Hi, dhoomakethu. android-rpi/device_arpi_rpi4#96 (comment) Maybe it can help you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants