2013-06-26 126 views
6

我無法安裝gcc48自制軟件。安裝失敗, (從配置輸出的最後幾行開始):無法安裝gcc48自制軟件

checking for version 0.10 of ISL... no 
checking for version 0.11 of ISL... no 
configure: error: Unable to find a usable ISL. See config.log for details. 
==> Formula 
Tap: homebrew/versions 
Path: /usr/local/Library/Taps/homebrew-versions/gcc48.rb 
==> Configuration 
HOMEBREW_VERSION: 0.9.4 
HEAD: e2b10438666f41366f596fe762b2455f5761bcd8 
CPU: 8-core 64-bit sandybridge 
OS X: 10.8.4-x86_64 
Xcode: 4.6.3 
CLT: 4.6.0.0.1.1365549073 
X11: 2.7.4 => /opt/X11 
==> ENV 
HOMEBREW_CC: clang 
MAKEFLAGS: -j1 
CMAKE_PREFIX_PATH: /usr/local 
CMAKE_INCLUDE_PATH: /opt/X11/include/freetype2:/usr/include/libxml2:/opt/X11/include 
CMAKE_LIBRARY_PATH: /opt/X11/lib 
PKG_CONFIG_PATH: /usr/local/opt/isl/lib/pkgconfig:/usr/local/opt/cloog/lib/pkgconfig 
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.8:/opt/X11/lib/pkgconfig:/opt/X11/share/pkgconfig 
HOMEBREW_MAKE_JOBS: 1 
ACLOCAL_PATH: /usr/local/share/aclocal:/opt/X11/share/aclocal 
OBJC: cc 
PATH: /usr/local/Library/ENV/4.3:/usr/local/opt/cloog/bin:/opt/X11/bin:/usr/bin:/bin:/usr/sbin:/sbin 

Error: gcc48 did not build 

我有安裝ISL。

: brew info isl 
isl: stable 0.12, HEAD 
http://www.kotnet.org/~skimo/isl/ 
/usr/local/Cellar/isl/0.12 (55 files, 3.2M) * 
    Built from source 
From: https://github.com/mxcl/homebrew/commits/master/Library/Formula/isl.rb 
==> Dependencies 
Required: gmp 
+0

我也有這個問題,我提交了一個問題來釀造https://github.com/mxcl/homebrew/issues/20830 – peregrine

回答

1

這不限於自制。如果cloog-0.18.0使用isl-0.11.1的捆綁子包,配置腳本有問題。 VERSION字符串未被正確替換,並在isl_version()函數調用中設置爲"UNKNOWN" - gcc configure腳本正在測試的值。

您可能必須先構建(或安裝)ISL,然後將--with-isl-prefix=$SOME_DIR添加到cloog配置選項,以便它使用外部ISL安裝。我內置的gcc-4.8.1 AVR最近從來源和使用:

## isl-0.11.1 @ ftp://gcc.gnu.org/pub/gcc/infrastructure/ 

> ../configure --prefix=$CROSSDIR --with-gmp-prefix=$CROSSDIR 
> make [check]; make install; rehash 

and now build cloog-0.18.0 with the installed 'system' ISL: 

> ../configure --prefix=$CROSSDIR --with-isl-prefix=$CROSSDIR \ 
--with-gmp-prefix=$CROSSDIR 
> make [check]; make install; rehash 

這也需要增加:--with-isl=$CROSSDIR到GCC配置選項。

2

海灣合作委員會對ISL版本實行了嚴格的要求。當時4.8分支和中繼(4.9)需要ISL 0.10或0.11。 Homebrew暫時將ISL恢復到0.11.2,所以現在應該沒問題。