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

linux/version.h not found #3

Open
hailmikhail opened this issue Mar 27, 2024 · 1 comment
Open

linux/version.h not found #3

hailmikhail opened this issue Mar 27, 2024 · 1 comment

Comments

@hailmikhail
Copy link

hailmikhail commented Mar 27, 2024

See below for error condition.

Instead of shipping some linux headers within this repo, should the script ask for the linux header path? help a user download linux headers?

Enhancement example:

if ! [ -f "$MAC_LINUX_KDK_PATH"/env/include/version.h ] && ! [ -f "$MAC_LINUX_KDK_HEADERS"/linux/version.h ]
then
  echo "Error. Cannot find <linux/version.h>.

Please specify a path to linux headers in MAC_LINUX_KDK_HEADERS env. variable.

Warning. /usr/local/include may host conflicting headers.

Example. If version.h is at /usr/local/include/linux_headers/linux/version.h, do ...

    MAC_LINUX_KDK_HEADERS=/usr/local/include/linux_headers lkmake
"
  exit 1
fi

Failure condition:

$ git clone --single-branch --branch rpi-6.1.y --depth 1 https://github.com/sunfounder/linux.git
$ lkmake KERNEL=kernel8 ARCH=arm64 bcm2711_defconfig
$ lkmake KERNEL=kernel8 ARCH=arm64 -j20 Image.gz modules dtbs

...

  HOSTCC  drivers/accessibility/speakup/makemapdata.o
drivers/accessibility/speakup/makemapdata.c:13:10: fatal error: 'linux/version.h' file not found
#include <linux/version.h>
         ^~~~~~~~~~~~~~~~~
1 error generated.
make[4]: *** [scripts/Makefile.host:128: drivers/accessibility/speakup/makemapdata.o] Error 1
make[3]: *** [scripts/Makefile.build:500: drivers/accessibility/speakup] Error 2
make[2]: *** [scripts/Makefile.build:500: drivers/accessibility] Error 2

@azenla
Copy link
Member

azenla commented Apr 4, 2024

Disabling speakup is sadly the only way to fix this currently, some of the host tools don't support non Linux-hosts. Including Linux headers may not work since those headers will likely not work properly from Darwin hosts.

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