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

make[2]: *** 没有规则可制作目标“arch/x86/entry/syscalls/syscall_32.tbl”,由“arch/x86/include/generated/uapi/asm/unistd_32.h” 需求。 停止。 #17

Open
zzidun opened this issue Jan 19, 2022 · 2 comments

Comments

@zzidun
Copy link

zzidun commented Jan 19, 2022

ubuntu20.04,在awusb执行sudo make报错

make -C /lib/modules/5.13.0-27-generic/build SUBDIRS=/home/zzidun/code/sunxi-livesuite/awusb modules
make[1]: 进入目录“/usr/src/linux-headers-5.13.0-27-generic”
  SYNC    include/config/auto.conf.cmd
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/confdata.o
  HOSTCC  scripts/kconfig/expr.o
  LEX     scripts/kconfig/lexer.lex.c
  YACC    scripts/kconfig/parser.tab.[ch]
  HOSTCC  scripts/kconfig/lexer.lex.o
  HOSTCC  scripts/kconfig/menu.o
  HOSTCC  scripts/kconfig/parser.tab.o
  HOSTCC  scripts/kconfig/preprocess.o
  HOSTCC  scripts/kconfig/symbol.o
  HOSTCC  scripts/kconfig/util.o
  HOSTLD  scripts/kconfig/conf
make[2]: *** 没有规则可制作目标“arch/x86/entry/syscalls/syscall_32.tbl”,由“arch/x86/include/generated/uapi/asm/unistd_32.h” 需求。 停止。
make[1]: *** [arch/x86/Makefile:231:archheaders] 错误 2
make[1]: 离开目录“/usr/src/linux-headers-5.13.0-27-generic”
make: *** [Makefile:6:default] 错误 2
@walimis
Copy link

walimis commented Oct 15, 2022

@zzidun change awusb/Makefile file, and replace SUBDIRS with M, then run make.

@virtualxiaoman
Copy link

sudo make出现了同样的问题:
Makefile文件:
obj-m += code1.o all: make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules clean: make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
sudo make报错:
make -C /lib/modules/6.5.0-25-generic/build M= modules make[1]: 进入目录“/usr/src/linux-headers-6.5.0-25-generic” make[3]: *** 没有规则可制作目标“arch/x86/entry/syscalls/syscall_32.tbl”,由“arch/x86/include/generated/uapi/asm/unistd_32.h” 需求。 停止。 make[2]: *** [arch/x86/Makefile:248:archheaders] 错误 2 make[1]: *** [Makefile:234:__sub-make] 错误 2 make[1]: 离开目录“/usr/src/linux-headers-6.5.0-25-generic” make: *** [Makefile:3:all] 错误 2

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

3 participants