go1.6.2 LINUX/AMD64 One bug:gcc: Unrecognized option '-no-pie '

Source: Internet
Author: User
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.