【问题标题】:Cannot install gcc48 with homebrew无法使用自制软件安装 gcc48
【发布时间】:2013-06-26 20:00:19
【问题描述】:

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

【问题讨论】:

标签: macos gcc homebrew


【解决方案1】:

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

【讨论】:

    【解决方案2】:

    这不仅限于 Homebrew。如果 clog-0.18.0 使用了 isl-0.11.1 的捆绑子包,配置脚本就会出现问题。 VERSION 字符串未正确替换,并在 isl_version() 函数调用中设置为 "UNKNOWN" - 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
    

    这还需要在 gcc 配置选项中添加:--with-isl=$CROSSDIR

    【讨论】:

      猜你喜欢
      • 2020-09-02
      • 2019-09-14
      • 1970-01-01
      • 2017-09-11
      • 2021-09-26
      • 2021-03-13
      • 1970-01-01
      相关资源
      最近更新 更多