Open utterances-bot opened 2 years ago
clone用户程序仓库后,编译会报如下错误:
[ 50%] Linking C executable riscv64/ch2b_power
/usr/local/riscv64-linux-musl-cross/bin/../lib/gcc/riscv64-linux-musl/11.2.1/../../../../riscv64-linux-musl/bin/ld: CMakeFiles/ch6b_filetest.dir/src/ch6b_filetest.c.o: in function main': /home/lw/cpp/uCore-Tutorial-Code-2022S/user/src/ch6b_filetest.c:12: undefined reference to
memcpy'
collect2: error: ld returned 1 exit status
make[4]: [CMakeFiles/ch6b_filetest.dir/build.make:85: riscv64/ch6b_filetest] Error 1
make[4]: Leaving directory '/home/lw/cpp/uCore-Tutorial-Code-2022S/user/build'
make[3]: [CMakeFiles/Makefile2:1051: CMakeFiles/ch6b_filetest.dir/all] Error 2
make[3]: Waiting for unfinished jobs....
make[4]: Leaving directory '/home/lw/cpp/uCore-Tutorial-Code-2022S/user/build'
[ 50%] Built target ch2b_power
make[3]: Leaving directory '/home/lw/cpp/uCore-Tutorial-Code-2022S/user/build'
make[2]: [Makefile:84: all] Error 2
make[2]: Leaving directory '/home/lw/cpp/uCore-Tutorial-Code-2022S/user/build'
make[1]: [Makefile:86: binary] Error 2
make[1]: Leaving directory '/home/lw/cpp/uCore-Tutorial-Code-2022S/user'
make: [Makefile:122: user] Error 2
引言 - uCore-Tutorial-Guide-2022S 0.1 文档
https://learningos.github.io/uCore-Tutorial-Guide-2022S/chapter2/0intro.html