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

How to build on Debian 10 - Warning: modules_install: missing 'System.map' file. Skipping depmod #83

Open
kopax opened this issue Oct 28, 2019 · 0 comments

Comments

@kopax
Copy link

kopax commented Oct 28, 2019

I am trying to build with a fresh Debian 10 installation and I have the following error :

kopax@dka:~/workspace/tmp/acpi_call$ make
make -C /lib/modules/4.19.0-6-amd64/build M=/home/kopax/workspace/tmp/acpi_call modules
make[1]: Entering directory '/usr/src/linux-headers-4.19.0-6-amd64'
  CC [M]  /home/kopax/workspace/tmp/acpi_call/acpi_call.o
In file included from /usr/src/linux-headers-4.19.0-6-common/include/acpi/platform/acenv.h:152,
                 from /usr/src/linux-headers-4.19.0-6-common/include/acpi/acpi.h:22,
                 from /home/kopax/workspace/tmp/acpi_call/acpi_call.c:9:
/usr/src/linux-headers-4.19.0-6-common/include/acpi/platform/aclinux.h:18:2: error: #error "Please don't include <acpi/acpi.h> directly, include <linux/acpi.h> instead."
 #error "Please don't include <acpi/acpi.h> directly, include <linux/acpi.h> instead."
  ^~~~~
/home/kopax/workspace/tmp/acpi_call/acpi_call.c: In function ‘acpi_proc_write’:
/home/kopax/workspace/tmp/acpi_call/acpi_call.c:277:9: error: implicit declaration of function ‘copy_from_user’; did you mean ‘raw_copy_from_user’? [-Werror=implicit-function-declaration]
     if (copy_from_user( input, buff, len )) {
         ^~~~~~~~~~~~~~
         raw_copy_from_user
cc1: some warnings being treated as errors
make[4]: *** [/usr/src/linux-headers-4.19.0-6-common/scripts/Makefile.build:315: /home/kopax/workspace/tmp/acpi_call/acpi_call.o] Error 1
make[3]: *** [/usr/src/linux-headers-4.19.0-6-common/Makefile:1534: _module_/home/kopax/workspace/tmp/acpi_call] Error 2
make[2]: *** [Makefile:146: sub-make] Error 2
make[1]: *** [Makefile:8: all] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.19.0-6-amd64'
make: *** [Makefile:8: default] Error 2

I have tried the fork of acpi_call here

But then I have Warning: modules_install: missing 'System.map' file. Skipping depmod.

Is there anything I am missing to build acpi_call? Thanks for sharing!

@kopax kopax changed the title How to build on Debian 10 How to build on Debian 10 - Warning: modules_install: missing 'System.map' file. Skipping depmod Oct 28, 2019
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

1 participant