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

I use this command to compile: #13

Closed
Mrdongzai opened this issue Apr 18, 2020 · 1 comment
Closed

I use this command to compile: #13

Mrdongzai opened this issue Apr 18, 2020 · 1 comment

Comments

@Mrdongzai
Copy link

I use this command to compile:
make android-arm CROSS_COMPILE=arm-buildroot-linux-gnueabi- KDIR=/home/dongzai/suterusu/linux-4.1.27/

I got the following error
make ARCH=arm EXTRA_CFLAGS="-D_CONFIG_ARM_ -fno-pic " -C /home/dongzai/suterusu/linux-4.1.27/ M=/home/dongzai/suterusu/suterusu-master modules
make[1]: Entering directory '/home/dongzai/suterusu/linux-4.1.27'
CC [M] /home/dongzai/suterusu/suterusu-master/main.o
In file included from include/asm-generic/int-ll64.h:10:0,
from ./arch/arm/include/asm/types.h:4,
from include/uapi/linux/types.h:4,
from include/linux/types.h:5,
from include/linux/list.h:4,
from include/linux/module.h:9,
from /home/dongzai/suterusu/suterusu-master/common.h:1,
from /home/dongzai/suterusu/suterusu-master/main.c:1:
include/uapi/asm-generic/int-ll64.h:11:29: fatal error: asm/bitsperlong.h: No such file or directory
compilation terminated.
scripts/Makefile.build:258: recipe for target '/home/dongzai/suterusu/suterusu-master/main.o' failed
make[2]: *** [/home/dongzai/suterusu/suterusu-master/main.o] Error 1
Makefile:1385: recipe for target 'module/home/dongzai/suterusu/suterusu-master' failed
make[1]: *** [module/home/dongzai/suterusu/suterusu-master] Error 2
make[1]: Leaving directory '/home/dongzai/suterusu/linux-4.1.27'
Makefile:74: recipe for target 'android-arm' failed
make: *** [android-arm] Error 2

Originally posted by @Mrdongzai in #12 (comment)

@Mrdongzai
Copy link
Author

It seems to use the wrong library.
How can I make it point to arch/arm/include/asm

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