【发布时间】:2021-12-29 06:18:09
【问题描述】:
我正在尝试使用 qemu 启动 xv6,但每当我运行 make qemu 时,我都会收到以下错误
usertests.c: In function ‘sbrktest’:
usertests.c:1461:13: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
1461 | *lastaddr = 99;
| ~~~~~~~~~~^~~~
cc1: all warnings being treated as errors
make: *** [<builtin>: usertests.o] Error 1
运行make qemu-nox 导致同样的错误。我正在使用Kubuntu 21.10 操作系统。here 是一种解决方法,但如果有人发现,我正在寻找解决方案。
【问题讨论】:
-
添加 CFLAGS `-Wno-stringop-overflow` 见stackoverflow.com/questions/53408543/…
标签: operating-system qemu xv6