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

 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

你可能感兴趣的:(C,C++,bootstrap,java,前端)