2014年3月17日月曜日

Homebrew環境で最新のxcode5.1にするとはまります

Homebrewで何かやろうとして、

Warning: A newer Command Line Tools release is available
Update them from Software Update in the App Store.

なんて出てきますが、ここでAppStoreから最新のxcodeをインストールしちゃうと面倒になります。

clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
error: Setup script exited with error: command 'cc' failed with exit status 1

こんなエラーが頻発するようになります。
回避策は下記のようにオプションを上書きするくらいしかありません。

sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future easy_install pil

sudoとeasy_install以降は各自その時のオペレーションに当てはめて下さい。
大事なのはARCHFLAGS以降です。

0 件のコメント: