免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3843 | 回复: 4
打印 上一主题 下一主题

怎样编译gcc-4.4.4? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-08-08 13:37 |只看该作者 |倒序浏览
首先,下载了源码gcc-4.4.4.tar.gz。

解压后的文件:


ABOUT-NLS           COPYING3.LIB     libgcc           ltversion.m4
boehm-gc            COPYING.LIB      libgfortran      MAINTAINERS
ChangeLog           COPYING.RUNTIME  libgomp          maintainer-scripts
ChangeLog.tree-ssa  depcomp          libiberty        Makefile.def
compile             fixincludes      libjava          Makefile.in
config              gcc              libmudflap       Makefile.tpl
config.guess        gnattools        libobjc          MD5SUMS
config.log          include          libssp           missing
config-ml.in        INSTALL          libstdc++-v3     mkdep
config.rpath        install-sh       libtool-ldflags  mkinstalldirs
config.sub          intl             libtool.m4       move-if-change
configure           LAST_UPDATED     ltgcc.m4         NEWS
configure.ac        libada           ltmain.sh        README
contrib             libcpp           lt~obsolete.m4   symlink-tree
COPYING             libdecnumber     ltoptions.m4     ylwrap
COPYING3            libffi           ltsugar.m4       zlib


配置:
./configure --prefix = /usr/local/gcc-4.4.4/


root@LEE:/home/lee/gcc-4.4.4# ./configure --prefix=/usr/local/gcc-4.4.4
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for gnatbind... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
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.2+.
Try the --with-gmp and/or --with-mpfr options to specify their locations.
Copies of these libraries' source code can be found at their respective
hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
See also http://gcc.gnu.org/install/prerequisites.html for additional info.
If you obtained GMP and/or MPFR from a vendor distribution package, make
sure that you have installed both the libraries and the header files.
They may be located in separate packages.


但是配置完后,并没有生成Makefile。

有那位大虾,告诉我怎么搞定哦?

论坛徽章:
0
2 [报告]
发表于 2010-08-08 14:44 |只看该作者
Problem solved!

need install gmp and mpfr.
一路征程一路笑 该用户已被删除
3 [报告]
发表于 2010-08-08 14:50 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
4 [报告]
发表于 2010-08-08 20:29 |只看该作者
configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.2+.

依赖库没有安装

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
5 [报告]
发表于 2010-08-11 09:20 |只看该作者
有错误
configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.2+.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP