编译OpenBIOS以进行Sparc交叉编译

时间:2019-04-09 11:13:15

标签: makefile

我正在尝试编译从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

我不知道如何克服这个错误?我能得到的任何帮助都将受到赞赏

谢谢:)

1 个答案:

答案 0 :(得分:0)

尝试从生成文件中查找并删除-Werror

相关问题