This is a created article in which the information may have evolved or changed.
If your Linux is in the Chinese version.
That is: Execute # echo $LANG command, return ZH_CN. UTF-8 will appear this bug, if it is en_US. UTF-8 does not have this problem.
An example of this bug:
# Go Get-u github.com/mattn/go-sqlite3
# Github.com/mattn/go-sqlite3
GCC: Unrecognized option '-no-pie '
Although this error will be reported, the second execution will not report an error, but the compiled binary file is problematic.
Delete Gopath The pkg/linux_amd64/github.com/mattn/go-sqlite3.a file is executed again to reproduce the problem.
This question has already been seen in https://github.com/golang/go/issues/15900 by someone. and has been resolved in the Go 1.7 release.
We can only wait for the release of 1.7, or to change their own Linux into the English version to avoid this problem.
Resources:
Solve Linux Chinese garbled characters
http://blog.csdn.net/hongweigg/article/details/6540333