Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1798927
  • 博文数量: 600
  • 博客积分: 10581
  • 博客等级: 上将
  • 技术积分: 6205
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-06 10:13
文章分类
文章存档

2016年(2)

2015年(9)

2014年(8)

2013年(5)

2012年(8)

2011年(36)

2010年(34)

2009年(451)

2008年(47)

分类: LINUX

2008-11-06 17:22:20

I built gmp-4.2.2:
./configure --prefix=/opt/pkg/gmp-4.2.2
make
make install
And mpfr-2.3.1:
./configure --prefix=/opt/pkg/mpfr-2.3.1 --with-gmp=/opt/pkg/gmp-4.2.2/
--with-gmp-build=/opt/src/gmp-4.2.2/
make
make install
Oh the compiler I'm trying to install 4.3.0 (as well as gmp and mpfr) with:
Target: powerpc-apple-darwin9
gcc version 4.0.1 (Apple Inc. build 5465)
Then gcc:
./configure --prefix=/opt/pkg/gcc-4.3.0 --with-gmp=/opt/pkg/gmp-4.2.2
--with-mpfr=/opt/pkg/mpfr-2.3.1
And get:
checking for correct version of gmp.h... yes
checking for correct version of mpfr.h... no
configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
gcc-4.3.0 root# ls -al /opt/pkg/mpfr-2.3.1/include/mpfr.h
-rw-r--r--  1 root  admin  37381 Mar 18 11:53
/opt/pkg/mpfr-2.3.1/include/mpfr.h
config.log has additional info:
configure:4573: gcc -o conftest -g -O2 -I/opt/pkg/gmp-4.2.2/include
-I/opt/pkg/mpfr-2.3.1/include   conftest.c  -L/opt/pkg/gmp-
4.2.2/lib -L/opt/pkg/mpfr-2.3.1/lib -lmpfr -lgmp >&5
ld: warning in /opt/pkg/mpfr-2.3.1/lib/libmpfr.dylib, file is not of required
architecture
ld: warning in /opt/pkg/gmp-4.2.2/lib/libgmp.dylib, file is not of required
architecture
I searched the bug database and found some mention of an unintentional --target
being supplied to gmp/mpfr, presumably it's the wrong --target.  I didn't
however find a fix, nor was I sure it was exactly the same problem.
The closest bug I found was #35250
../configure --prefix=/usr/local/gcc-4.3.2 --with-gmp=/opt/pkg/gmp-4.2 --with-mpfr=/opt/pkg/mpfr-2.3.2 --enable-threads=posix --disable-checking --enable--long-long --host=i386-redhat-linux --with-system-zlib --enable-languages=c,c++,java
阅读(3072) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~