首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >编译OpenBIOS进行Sparc交叉编译

编译OpenBIOS进行Sparc交叉编译
EN

Stack Overflow用户
提问于 2019-04-09 19:13:15
回答 1查看 76关注 0票数 0

我正在尝试编译从github存储库下载的OpenBIOS应用程序。

代码语言:javascript
复制
git clone https://github.com/openbios/openbios.git

但是,我遇到了以下错误消息

代码语言:javascript
复制
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

我不知道如何克服这个错误?我能得到的任何帮助我都很感激

谢谢:)

EN

回答 1

Stack Overflow用户

发布于 2019-04-10 01:08:10

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/55591525

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档