Skip to content

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

@kopax

Description

@kopax

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions