LoginSignup
1
1

More than 5 years have passed since last update.

Goのバージョンを1.4.3→1.6にアップグレードできなかった

Last updated at Posted at 2016-02-23

概要

Goのバージョンを1.6rc2にアップデートしてみたの記事を参考にGo1.6をビルドしたが、エラーとなった。

環境

uname -m
amd64
uname -sr
FreeBSD 9.1-RELEASE-p22

手順

  1. Go1.4.3をダウンロード
  2. Go1.4.3をビルド
  3. Go1.6をダウンロード
  4. GOROOT_BOOTSTRAPをセット
  5. Go1.6をビルド ←ここでエラー

発生するエラー

##### Building packages and commands for freebsd/amd64.
(中略...)
cmd/pprof/internal/driver
cmd/pprof
cmd/yacc

run.bash: line 8: /home/mydomain/local/go/bin/go: cannot execute binary file: 無効な実行形式です
run.bash: line 38: /home/mydomain/local/go/bin/go: cannot execute binary file: 無効な実行形式です
run.bash: line 38: /home/mydomain/local/go/bin/go: No error: 0

エラー発生箇所の run.bash:line 8 は、eval $(go env) でした。

ビルド失敗後、$HOME/local/go/bin にある go を実行してみましたが、おなじ実行形式エラーとなりました。

自分が直面した問題に非常に似たケースの質問を見つけましたが、回答なし。。。:innocent:

FreeBSD特有の問題なのでしょうか。

1
1
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1