在做lab3的第一部分的时候,不管是make run hello-gdb还是make run-hello还是直接make grade,都显示ramdisk.cpio找不到。请问我是哪里做错了还是环境啥的有问题?这个ramdisk.cpio是编译生成的还是自带的?
完整错误信息:
*** Now building application hello
./scripts/docker_build.sh hello
compiling kernel ...
-- The C compiler identification is GNU 7.4.0
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/aarch64-linux-gnu-gcc
-- Check for working C compiler: /usr/bin/aarch64-linux-gnu-gcc
-- Check for working C compiler: /usr/bin/aarch64-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /chos/build
before ninja
[6/38] Building ASM object CMakeFiles/kernel.img.dir/user/binary_include.S.o
FAILED: CMakeFiles/kernel.img.dir/user/binary_include.S.o
/usr/bin/aarch64-linux-gnu-gcc -DLOG_LEVEL=1 -DTEST=\"/hello.bin\" -I../. -I../kernel -O3 -DNDEBUG -MD -MT CMakeFiles/kernel.img.dir/user/binary_include.S.o -MF CMakeFiles/kernel.img.dir/user/binary_include.S.o.d -o CMakeFiles/kernel.img.dir/user/binary_include.S.o -c ../user/binary_include.S
../user/binary_include.S: Assembler messages:
../user/binary_include.S:12: Error: file not found: ../user/build/ramdisk.cpio
[8/38] Building C object kernel/CMakeFiles/chos-arch.dir/main.c.o
ninja: build stopped: subcommand failed.
after ninja
aarch64-linux-gnu-nm: 'kernel.img': No such file
Makefile:54: recipe for target 'prep-hello' failed
make: *** [prep-hello] Error 1