LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1210|回复: 1

将redhat9中的gcc升级4.1.1时配置是遇到的问题,高手赐教

[复制链接]
发表于 2006-12-6 15:06:55 | 显示全部楼层 |阅读模式
配置
# ../gcc-4.1.1-20060517/configure --prefix=/usr/local/gcc-4.1.1 --enable-threads=posix --disable-checking --enable--long-long --host=i386-redhat-linux --enable-languages=c,c++,java
结果
creating cache ./config.cache
checking host system type... i386-redhat-linux-gnu
checking target system type... i386-redhat-linux-gnu
checking build system type... i386-redhat-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 whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for gnatbind... 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... no
*** This configuration is not supported in the following subdirectories:
     target-libada gnattools target-libgfortran target-libobjc
    (Any other directories should still work fine.)
checking for bison... no
checking for byacc... no
checking for yacc... no
checking for bison... no
checking for gm4... no
checking for gnum4... no
checking for m4... m4
checking for flex... no
checking for lex... no
checking for flex... no
checking for makeinfo... no
checking for expect... no
checking for runtest... no
checking for i386-redhat-linux-ar... no
checking for ar... ar
checking for i386-redhat-linux-as... no
checking for as... as
checking for i386-redhat-linux-dlltool... no
checking for dlltool... no
checking for i386-redhat-linux-ld... no
checking for ld... ld
checking for i386-redhat-linux-lipo... no
checking for lipo... no
checking for i386-redhat-linux-nm... no
checking for nm... nm
checking for i386-redhat-linux-ranlib... no
checking for ranlib... ranlib
checking for i386-redhat-linux-strip... no
checking for strip... strip
checking for i386-redhat-linux-windres... no
checking for windres... no
checking for i386-redhat-linux-objcopy... no
checking for objcopy... objcopy
checking for i386-redhat-linux-objdump... no
checking for objdump... objdump
checking for i386-redhat-linux-ar... no
checking for ar... ar
checking for i386-redhat-linux-as... no
checking for as... as
checking for i386-redhat-linux-cc... no
checking for cc... cc
checking for i386-redhat-linux-c++... i386-redhat-linux-c++
checking for i386-redhat-linux-dlltool... no
checking for dlltool... no
checking for i386-redhat-linux-gcc... i386-redhat-linux-gcc
checking for i386-redhat-linux-gcj... no
checking for gcj... gcj
checking for i386-redhat-linux-gfortran... no
checking for gfortran... no
checking for i386-redhat-linux-ld... no
checking for ld... ld
checking for i386-redhat-linux-lipo... no
checking for lipo... no
checking for i386-redhat-linux-nm... no
checking for nm... nm
checking for i386-redhat-linux-objdump... no
checking for objdump... objdump
checking for i386-redhat-linux-ranlib... no
checking for ranlib... ranlib
checking for i386-redhat-linux-strip... no
checking for strip... strip
checking for i386-redhat-linux-windres... no
checking for windres... no
checking where to find the target ar... host tool
checking where to find the target as... host tool
checking where to find the target cc... just compiled
checking where to find the target c++... just compiled
checking where to find the target c++ for libstdc++... just compiled
checking where to find the target dlltool... host tool
checking where to find the target gcc... just compiled
checking where to find the target gcj... just compiled
checking where to find the target gfortran... host tool
checking where to find the target ld... host tool
checking where to find the target lipo... host tool
checking where to find the target nm... host tool
checking where to find the target objdump... host tool
checking where to find the target ranlib... host tool
checking where to find the target strip... host tool
checking where to find the target windres... host tool
checking whether to enable maintainer-specific portions of Makefiles... no
checking if symbolic links between directories work... yes
updating cache ./config.cache
creating ./config.status
creating Makefile

然后make是老出错.

除了gcc-4.1.1-20060517.tar.bz2,如果我希望gcc支持c++,java,是否还需要装下面这些:
gcc-java-4.1.1-20060517.tar.bz2
gcc-g++-4.1.1-20060517.tar.bz2
gcc-testsuite-4.1.1-20060517.tar.bz2
redhat9自带的gcc是不是不支持java啊?
现在很困惑,不知道升级 到底需要哪些源文件,安装次序?
发表于 2006-12-6 19:55:06 | 显示全部楼层
RH9 太老了吧!

最好先升级 glibc 到 2.3.5 以上,binutils 2.16.1 以上,编译 gcc-4.1.1 的 gcc 版本也不要太旧,3.3.x 或以上

在 configure 之前要在独立的目录下进行,例如 gcc-build,不能在 gcc 的源码树下进行编译。在 configure gcc-4.1.1 的时候应该加入 bootstrap 选项让最终的 gcc 脱离旧版 gcc 的 ABI

你要做的事情太多了,没有现成包可用吗?何不升级系统,放弃骨灰的 RH9 吧!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表