linux-sunxi / sunxi-livesuite

All in one repo for the LiveSuit tool, to take some of the pain outof using this.
107 stars 64 forks source link

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

Open zzidun opened 2 years ago

zzidun commented 2 years ago

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 commented 2 years ago

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

virtualxiaoman commented 7 months ago

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