下载的 go1.4.linux-386.tar.gz
下载在 ~/ 目录下
```
cd ./go/src
./all.bash
```
报错如下
```
# Building C bootstrap tool.
cmd/dist
# Building compilers and Go bootstrap tool for host, linux/386.
lib9
/home/liu/go1.4/src/lib9/fmt/fltfmt.c: In function '__efgfmt':
/home/liu/go1.4/src/lib9/fmt/fltfmt.c:437:5: error: this statement may fall through [-Werror=implicit-fallthrough=]
if(ndigits > prec) {
^
/home/liu/go1.4/src/lib9/fmt/fltfmt.c:451:2: note: here
default:
^~~~~~~
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 -m32 -I /home/liu/go1.4/include -DPLAN9PORT -I /home/liu/go1.4/src/lib9 -o $WORK/fltfmt.o /home/liu/go1.4/src/lib9/fmt/fltfmt.c
```
有疑问加站长微信联系(非本文作者)