go 这种垃圾代码,是怎么流行的,一堆错误。

33 篇文章 0 订阅

 Building C bootstrap tool.
cmd/dist

# Building compilers and Go bootstrap tool for host, linux/amd64.
lib9
In file included from /home/du/go/src/lib9/_exits.c:28:
/home/du/go/include/u.h:86:42: error: expression does not compute the number of elements in this array; element type is 'struct __jmp_buf_tag', not 'long int' [-Werror=sizeof-array-div]
   86 | typedef long p9jmp_buf[sizeof(sigjmp_buf)/sizeof(long)];
      |                                          ^
In file included from /home/du/go/src/lib9/atoi.c:28:
/home/du/go/include/u.h:86:42: error: expression does not compute the number of elements in this array; element type is 'struct __jmp_buf_tag', not 'long int' [-Werror=sizeof-array-div]
   86 | typedef long p9jmp_buf[sizeof(sigjmp_buf)/sizeof(long)];
      |                                          ^
/home/du/go/include/u.h:86:42: note: add parentheses around the second 'sizeof' to silence this warning
/home/du/go/include/u.h:86:42: note: add parentheses around the second 'sizeof' to silence this warning
In file included from /home/du/go/src/lib9/_p9dir.c:28:
/home/du/go/include/u.h:86:42: error: expression does not compute the number of elements in this array; element type is 'struct __jmp_buf_tag', not 'long int' [-Werror=sizeof-array-div]
   86 | typedef long p9jmp_buf[sizeof(sigjmp_buf)/sizeof(long)];
      |                                          ^
In file included from /home/du/go/src/lib9/await.c:31:
/home/du/go/include/u.h:86:42: error: expression does not compute the number of elements in this array; element type is 'struct __jmp_buf_tag', not 'long int' [-Werror=sizeof-array-div]
   86 | typedef long p9jmp_buf[sizeof(sigjmp_buf)/sizeof(long)];
      |                                          ^
/home/du/go/include/u.h:86:42: note: add parentheses around the second 'sizeof' to silence this warning
/home/du/go/include/u.h:86:42: note: add parentheses around the second 'sizeof' to silence this warning
cc1: all warnings being treated as errors
cc1: all warnings being treated as errors
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/du/go/include -DPLAN9PORT -I /home/du/go/src/lib9 -o $WORK/_exits.o /home/du/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/du/go/include -DPLAN9PORT -I /home/du/go/src/lib9 -o $WORK/atoi.o /home/du/go/src/lib9/atoi.c
cc1: all warnings being treated as errors
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/du/go/include -DPLAN9PORT -I /home/du/go/src/lib9 -o $WORK/await.o /home/du/go/src/lib9/await.c
cc1: all warnings being treated as errors
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/du/go/include -DPLAN9PORT -I /home/du/go/src/lib9 -o $WORK/_p9dir.o /home/du/go/src/lib9/_p9dir.c

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 9
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 9
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值