我正在尝试编译从github存储库下载的OpenBIOS应用程序。
git clone https://github.com/openbios/openbios.git但是,我遇到了以下错误消息
grct@grct-Dell-DM061:~/openbios$ ./config/scripts/switch-arch sparc32 sparc64 amd64
Configuring OpenBIOS on amd64 for sparc32 sparc64 amd64
Initializing build tree /home/grct/openbios/obj-sparc32...ok.
Creating target config.mak...ok.
Creating target rules.mak...ok.
Creating config files...ok.
Initializing build tree /home/grct/openbios/obj-sparc64...ok.
Creating target config.mak...ok.
Creating target rules.mak...ok.
Creating config files...ok.
Initializing build tree /home/grct/openbios/obj-amd64...ok.
Creating target config.mak...ok.
Creating target rules.mak...ok.
Creating config files...ok.
grct@grct-Dell-DM061:~/openbios$ make
/usr/bin/xsltproc
Building OpenBIOS for sparc32 sparc64 amd64
Building...
ok.
ok.
error:
HOSTCC host/kernel/stack.o
HOSTCC forthstrap
GEN bootstrap.dict
GEN openbios.dict
GEN openbios-amd64.dict
GEN openbios-unix.dict
CC target/arch/unix/unix.o
/home/grct/openbios/arch/unix/unix.c: In function ‘read_from_disk’:
/home/grct/openbios/arch/unix/unix.c:420:2: error: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Werror=unused-result]
read(diskemu, buf, size);
^~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
rules.mak:209: recipe for target 'target/arch/unix/unix.o' failed
make[1]: *** [target/arch/unix/unix.o] Error 1
make[1]: Leaving directory '/home/grct/openbios/obj-amd64'
Makefile:19: recipe for target 'build' failed
make: *** [build] Error 1我不知道如何克服这个错误?我能得到的任何帮助我都很感激
谢谢:)
发布于 2019-04-10 01:08:10
尝试从生成文件中查找并删除-Werror。
https://stackoverflow.com/questions/55591525
复制相似问题