You are not logged in.

#1 2021-01-08 19:02:43

narakuyama
Member
Registered: 2021-01-08
Posts: 6

[SOLVED] Error when compiling asm/compiler.h

Hello everyone I'm trying to compiling a kernel module for a arm64 linux kernel, but i have this error when i try to do make:
==============================================
In file included from <command-line>:
././include/linux/compiler_types.h:88:10: fatal error: asm/compiler.h: No such file or directory
   88 | #include <asm/compiler.h>
      |          ^~~~~~~~~~~~~~~~
compilation terminated.
==============================================
I have tried to reinstall linux-api-headers as suggested there https://bbs.archlinux.org/viewtopic.php?id=94591, but this doesn't work

Last edited by narakuyama (2021-01-08 19:58:43)

Offline

#2 2021-01-08 19:57:24

narakuyama
Member
Registered: 2021-01-08
Posts: 6

Re: [SOLVED] Error when compiling asm/compiler.h

I was justi using a wrong compiler, hope someone can find this healpfull.

make ARCH=arm64 CROSS_COMPILE=<path_compiler> /* wihout gcc */

Offline

#3 2022-03-21 13:16:20

aratuk
Member
Registered: 2022-03-21
Posts: 1

Re: [SOLVED] Error when compiling asm/compiler.h

I realize this is an old thread, but in the off chance you see this or someone has the answer: Which compiler were you successfully able to use?

Offline

Board footer

Powered by FluxBB