在 Ubuntu 中编译 xv6 时出错(生成文件:124:目标 'kernel' 的配方失败)

Error while compiling xv6 in Ubuntu(Makefile:124: recipe for target 'kernel' failed)

我刚刚尝试使用 make qemu-nox

在我的 Ubuntu 18.04.3 中编译 xv6

失败并出现以下错误。你能给我一些关于这个错误的信息吗?

ld -m elf_i386 -T kernel.ld -o kernel entry.o bio.o console.o exec.o file.o fs.o ide.o ioapic.o kalloc.o kbd.o lapic.o log.o main.o mp.o picirq.o pipe.o proc.o sleeplock.o spinlock.o string.o swtch.o syscall.o sysfile.o sysproc.o trapasm.o trap.o uart.o vectors.o vm.o -b binary initcode entryother trap.o: In function tvinit': /home/lee/OS-Homework/trap.c:23: undefined reference tovectors' /home/lee/OS-Homework/trap.c:24: undefined reference to `vectors' Makefile:124: recipe for target 'kernel' failed make: *** [kernel] Error 1

链接时,ld抱怨缺少由规则vectors.S

生成的vectors数组
vectors.S: vectors.pl
    perl vectors.pl > vectors.S

好像没有生成这条规则...

要构建 vector.S,只需在 make qemu-nox 之前键入 make vectors.S,甚至在一个命令中键入:

make vectors.S qemu-nox