源码编译遇到的问题

star24 · · 3438 次点击 · 开始浏览    置顶
这是一个创建于 的主题,其中的信息可能已经有所发展或是发生改变。

1.4.2源码编译时输出以下错误,哪位知道原因吗? ``` #Building C bootstrap tool. cmd/dist #Building compilers and Go bootstrap tool for host, linux/amd64. lib9 cc1: error: unrecognized command line option "-Wno-missing-field-initializers" cc1: error: unrecognized command line option "-Wno-missing-field-initializers" cc1: error: unrecognized command line option "-Wno-missing-field-initializers" cc1: error: unrecognized command line option "-Wno-missing-field-initializers" go tool dist: FAILED: gcc -Wall -Wstrict-prototypes -Wextra -Wunused -Wno-sign-compare -Wno-missing-braces -Wno-parentheses -Wno-unknown-pragmas -Wno-switch -Wno-comment -Wno-missing-field-initializers -Werror -fno-common -ggdb -pipe -Wuninitialized -O2 -fmessage-length=0 -c -m64 -I /home/users/heliuxing/go/include -DPLAN9PORT -I /home/users/heliuxing/go/src/lib9 -o $WORK/_exits.o /home/users/heliuxing/go/src/lib9/_exits.c go tool dist: FAILED: gcc -Wall -Wstrict-prototypes -Wextra -Wunused -Wno-sign-compare -Wno-missing-braces -Wno-parentheses -Wno-unknown-pragmas -Wno-switch -Wno-comment -Wno-missing-field-initializers -Werror -fno-common -ggdb -pipe -Wuninitialized -O2 -fmessage-length=0 -c -m64 -I /home/users/heliuxing/go/include -DPLAN9PORT -I /home/users/heliuxing/go/src/lib9 -o $WORK/_p9dir.o /home/users/heliuxing/go/src/lib9/_p9dir.c go tool dist: FAILED: gcc -Wall -Wstrict-prototypes -Wextra -Wunused -Wno-sign-compare -Wno-missing-braces -Wno-parentheses -Wno-unknown-pragmas -Wno-switch -Wno-comment -Wno-missing-field-initializers -Werror -fno-common -ggdb -pipe -Wuninitialized -O2 -fmessage-length=0 -c -m64 -I /home/users/heliuxing/go/include -DPLAN9PORT -I /home/users/heliuxing/go/src/lib9 -o $WORK/atoi.o /home/users/heliuxing/go/src/lib9/atoi.c go tool dist: FAILED: gcc -Wall -Wstrict-prototypes -Wextra -Wunused -Wno-sign-compare -Wno-missing-braces -Wno-parentheses -Wno-unknown-pragmas -Wno-switch -Wno-comment -Wno-missing-field-initializers -Werror -fno-common -ggdb -pipe -Wuninitialized -O2 -fmessage-length=0 -c -m64 -I /home/users/heliuxing/go/include -DPLAN9PORT -I /home/users/heliuxing/go/src/lib9 -o $WORK/await.o /home/users/heliuxing/go/src/lib9/await.c ```

有疑问加站长微信联系(非本文作者)

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

3438 次点击  
加入收藏 微博
3 回复  |  直到 2015-04-13 08:16:21
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传