无法使用Homebrew安装gcc48

6

我无法使用Homebrew安装gcc48。安装失败并显示以下错误信息(从configure输出的最后几行开始):

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

我也遇到了这个问题,我向brew提交了一个问题 https://github.com/mxcl/homebrew/issues/20830 - peregrine
2个回答

2

GCC对ISL版本有严格的要求。目前4.8分支和主干(4.9)都需要ISL 0.10或0.11。Homebrew已经暂时将ISL回退到0.11.2,所以现在应该没问题了。


1
这不仅限于Homebrew。如果cloog-0.18.0使用isl-0.11.1的捆绑子包,那么configure脚本就会出问题。在isl_version()函数调用中,VERSION字符串没有正确替换,并设置为"UNKNOWN" - 这是gcc configure脚本正在测试的值。您可能需要先构建(或安装)ISL,然后将--with-isl-prefix=$SOME_DIR添加到cloog配置选项中,以便它使用外部ISL安装。我最近从源代码构建了AVR的gcc-4.8.1,并使用了:
## 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 配置选项中。

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接