6

我无法使用自制软件安装 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
4

2 回答 2

2

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

于 2013-06-30T17:02:30.920 回答
1

这不仅限于 Homebrew。如果 clog-0.18.0 使用 isl-0.11.1 的捆绑子包,则配置脚本有问题。该VERSION字符串未被正确替换,并"UNKNOWN"isl_version()函数调用中设置为 - gcc 配置脚本正在测试的值。

您可能必须先构建(或安装)ISL,然后添加--with-isl-prefix=$SOME_DIR到 clog 配置选项,因此它使用外部 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 配置选项中添加:

于 2013-06-27T11:04:58.947 回答