gcc安装小问题。

lixiaobin_sh 2012-03-15 11:32:20

$ gcc-4.6.3/configure --prefix=/usr/local/gcc-install
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-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 a sed that does not truncate output... /bin/sed
checking for gawk... gawk
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 ISO C89... none needed
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
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 objdir... .libs
checking for the correct version of gmp.h... no
configure: error: Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
their locations. Source code for these libraries 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, MPFR and/or MPC 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.


用win7 vbox 装的 Ubuntu 10.04 LTS
这是全部提示,

有错误,
另外继续安装的话
make: *** 没有指明目标并且找不到 makefile。 停止。

我是看这这个地址安装的。
http://developer.51cto.com/art/200810/94745.htm

求助,头大了,第一次安装,初学者。
...全文
14455 19 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
19 条回复
切换为时间正序
请发表友善的回复…
发表回复
lixiaobin_sh 2012-03-21
  • 打赏
  • 举报
回复
lixiaobin@lixiaobin-desktop:~/gcc-build$ gcc -v
使用内建 specs。
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/i686-pc-linux-gnu/4.6.2/lto-wrapper
目标:i686-pc-linux-gnu
配置为:../gcc-4.6.2/configure
线程模型:posix
gcc 版本 4.6.2 (GCC)

----------------------------------------------------------------------------

安装完成。
这几天没有看这篇帖子,其实是实在没有心情,看到了的资料里说过ubuntu linux中自带gcc,差点崩溃,一下子没有了方向,没有了信心,没有了要继续安装下去的意愿,当初安装gcc只是想学习下linux环境下C预约的编程。由于完全自学,没有想到以为linux系统中没有gcc。悲剧。一下子休息了几天,回过头来想想,过程中确实多少对gcc和linux的软件安装编译等有了初步的认知。感谢xunxun1982

成功的过程是这样的,希望对遇到同样问题的人有所提示。

今天是把gmp,mpfr,mpc从新来了个彻底的安装,全默认,有一些提示也很莫名其妙,不过没有什么明显的错误提示。之后gcc目录全删除,从新解压了个新的,从新安装。过程中configure正常通过,make也正常通过,meka check的时候提示了错误,检查通不过,自己的错误信息当时没存,贴一个我查的和我的差不多的吧。
make[2]: autogen: Command not found
make[2]: *** [check] Error 127
make[2]: Leaving directory `/home/vilinian/Downloads/gcc-4.6.1/host-i686-pc-linux-gnu/fixincludes'
make[1]: *** [check-fixincludes] Error 2
make[1]: Leaving directory `/home/vilinian/Downloads/gcc-4.6.1'
make: *** [do-check] Error 2

http://topic.csdn.net/u/20110828/13/149f85d4-45fa-4014-ae0c-cbceed8e190f.html
类似的这种的,目录不一样,其它的都一样。
高兴的是在上面也看到了xunxun1982的回复,哈哈。

之后从那篇帖子里给的提示没有管继续直接安装 sudo make install 结果给成功了。
查了下版本,确实已经安装了,测试了下简单的hello,成功。今后再试其他的,暂时安装就告一段落了。下面就全力进入gcc的学习和C语言的学习。不过新安装的竟然有中文的提示。。。
xunxun 2012-03-19
  • 打赏
  • 举报
回复
这些属于正常的检测,没有一个系统和编译器configure支持所有特性

你的错误在于没有找到libmpc的共享库,gmp暂时不用管
xunxun 2012-03-18
  • 打赏
  • 举报
回复
可能是吧,没有足够信息我也无法判定
lixiaobin_sh 2012-03-18
  • 打赏
  • 举报
回复
就是说mpc没有正确安装是么?
xunxun 2012-03-18
  • 打赏
  • 举报
回复
问题很显然了

/home/lixiaobin/gcc-bulid/./gcc/cc1: error while loading shared libraries: libmpc.so.2: cannot open shared object file: No such file or directory

编译出的cc1依赖libmpc.so才能运行
但目前并没在动态链接库的搜索目录里找到libmpc的动态库(共享库)libmpc.so.2

以此类推你可以自行判断所有的这种错误信息,不需要都发出来的。
lixiaobin_sh 2012-03-18
  • 打赏
  • 举报
回复
## ----------------- ##
## Output variables. ##
## ----------------- ##

AR='ar'
AR_FOR_BUILD='$(AR)'
AR_FOR_TARGET='$(AR)'
AS='as'
AS_FOR_BUILD='$(AS)'
AS_FOR_TARGET='$(AS)'
AWK='gawk'
BISON='/home/lixiaobin/gcc-4.6.2/missing bison'
BUILD_CONFIG='bootstrap-debug'
CC='gcc'
CC_FOR_BUILD='$(CC)'
CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
CFLAGS='-g -O2'
CFLAGS_FOR_BUILD='-g -O2'
CFLAGS_FOR_TARGET='-g -O2'
COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'
CONFIGURE_GDB_TK=''
CPPFLAGS=''
CXX='g++'
CXXFLAGS=''
CXXFLAGS_FOR_BUILD=''
CXXFLAGS_FOR_TARGET='-g '
CXX_FOR_BUILD='$(CXX)'
CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
DEBUG_PREFIX_CFLAGS_FOR_TARGET=''
DEFS='-DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DLT_OBJDIR=\".libs/\"'
DLLTOOL='dlltool'
DLLTOOL_FOR_BUILD='$(DLLTOOL)'
DLLTOOL_FOR_TARGET='$(DLLTOOL)'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
EXPECT='expect'
FLAGS_FOR_TARGET=' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
FLEX='/home/lixiaobin/gcc-4.6.2/missing flex'
GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
GCC_SHLIB_SUBDIR=''
GCJ_FOR_BUILD='$(GCJ)'
GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
GDB_TK=''
GFORTRAN_FOR_BUILD='$(GFORTRAN)'
GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
GNATBIND='no'
GNATMAKE='no'
GOC_FOR_BUILD='$(GOC)'
GOC_FOR_TARGET='$(GOC)'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_GDB_TK=''
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
LD='ld'
LDFLAGS=''
LDFLAGS_FOR_BUILD=''
LD_FOR_BUILD='$(LD)'
LD_FOR_TARGET='$(LD)'
LEX='/home/lixiaobin/gcc-4.6.2/missing flex'
LIBOBJS=''
LIBS=''
LIPO='lipo'
LIPO_FOR_TARGET='$(LIPO)'
LN='ln'
LN_S='ln -s'
LTLIBOBJS=''
M4='m4'
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='/home/lixiaobin/gcc-4.6.2/missing makeinfo'
NM='nm'
NM_FOR_BUILD='$(NM)'
NM_FOR_TARGET='$(NM)'
OBJCOPY='objcopy'
OBJDUMP='objdump'
OBJDUMP_FOR_TARGET='$(OBJDUMP)'
OBJEXT='o'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
RANLIB='ranlib'
RANLIB_FOR_BUILD='$(RANLIB)'
RANLIB_FOR_TARGET='$(RANLIB)'
RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
RPATH_ENVVAR='LD_LIBRARY_PATH'
RUNTEST='runtest'
SED='/bin/sed'
SHELL='/bin/bash'
STRIP='strip'
STRIP_FOR_TARGET='$(STRIP)'
SYSROOT_CFLAGS_FOR_TARGET=''
TOPLEVEL_CONFIGURE_ARGUMENTS='../gcc-4.6.2/configure'
WINDMC='windmc'
WINDMC_FOR_BUILD='$(WINDMC)'
WINDMC_FOR_TARGET='$(WINDMC)'
WINDRES='windres'
WINDRES_FOR_BUILD='$(WINDRES)'
WINDRES_FOR_TARGET='$(WINDRES)'
YACC='/home/lixiaobin/gcc-4.6.2/missing bison -y'
ac_ct_CC='gcc'
ac_ct_CXX=''
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_configargs=' --cache-file=../config.cache '\''--enable-languages=c,c++,fortran,java,lto,objc'\'' --program-transform-name='\''s,y,y,'\'' --disable-option-checking'
build_configdirs=' libiberty fixincludes'
build_cpu='i686'
build_libsubdir='build-i686-pc-linux-gnu'
build_noncanonical='i686-pc-linux-gnu'
build_os='linux-gnu'
build_subdir='build-i686-pc-linux-gnu'
build_tooldir='${exec_prefix}/i686-pc-linux-gnu'
build_vendor='pc'
clooginc=''
clooglibs=''
compare_exclusions='gcc/cc*-checksum$(objext) | gcc/ada/*tools/*'
config_shell='/bin/bash'
configdirs=' intl libiberty zlib libcpp libdecnumber fixincludes gcc lto-plugin'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
do_compare='cmp --ignore-initial=16 $$f1 $$f2'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='${prefix}'
extra_host_libiberty_configure_flags='--enable-shared'
extra_mpc_gmp_configure_flags=''
extra_mpc_mpfr_configure_flags=''
extra_mpfr_configure_flags=''
gmpinc=''
gmplibs='-lmpc -lmpfr -lgmp'
host='i686-pc-linux-gnu'
host_alias=''
host_configargs=' --cache-file=./config.cache '\''--enable-languages=c,c++,fortran,java,lto,objc'\'' --program-transform-name='\''s,y,y,'\'' --disable-option-checking'
host_cpu='i686'
host_noncanonical='i686-pc-linux-gnu'
host_os='linux-gnu'
host_subdir='.'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
poststage1_ldflags='-static-libstdc++ -static-libgcc'
poststage1_libs=''
pplinc=''
ppllibs=''
prefix='/usr/local'
program_transform_name='s,y,y,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
stage1_cflags='-g -fkeep-inline-functions'
stage1_checking='--enable-checking=yes,types'
stage1_languages='c,lto'
stage1_ldflags=''
stage1_libs=''
stage2_werror_flag=''
sysconfdir='${prefix}/etc'
target='i686-pc-linux-gnu'
target_alias=''
target_configargs='--cache-file=./config.cache --enable-multilib '\''--enable-languages=c,c++,fortran,java,lto,objc'\'' --program-transform-name='\''s,y,y,'\'' --disable-option-checking'
target_configdirs=' libgcc libgomp libstdc++-v3 libmudflap libssp libquadmath libgfortran boehm-gc libffi zlib libjava libobjc'
target_cpu='i686'
target_noncanonical='i686-pc-linux-gnu'
target_os='linux-gnu'
target_subdir='i686-pc-linux-gnu'
target_vendor='pc'
tooldir='${exec_prefix}/i686-pc-linux-gnu'

## ------------------- ##
## File substitutions. ##
## ------------------- ##

alphaieee_frag='/dev/null'
host_makefile_frag='../gcc-4.6.2/config/mh-x86omitfp'
ospace_frag='/dev/null'
serialization_dependencies='serdep.tmp'
target_makefile_frag='../gcc-4.6.2/config/mt-gnu'

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define LT_OBJDIR ".libs/"

configure: exit 0


以上就是全部的config.log信息,希望大家看了给个提示啥的。
lixiaobin_sh 2012-03-18
  • 打赏
  • 举报
回复
## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by config.status, which was
generated by GNU Autoconf 2.64. Invocation command line was

CONFIG_FILES =
CONFIG_HEADERS =
CONFIG_LINKS =
CONFIG_COMMANDS =
$ ./config.status

on lixiaobin-desktop

config.status:982: creating Makefile

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=no
ac_cv_env_AR_FOR_TARGET_set=
ac_cv_env_AR_FOR_TARGET_value=
ac_cv_env_AR_set=
ac_cv_env_AR_value=
ac_cv_env_AS_FOR_TARGET_set=
ac_cv_env_AS_FOR_TARGET_value=
ac_cv_env_AS_set=
ac_cv_env_AS_value=
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_FOR_TARGET_set=
ac_cv_env_CC_FOR_TARGET_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_FOR_TARGET_set=
ac_cv_env_CXX_FOR_TARGET_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_DLLTOOL_FOR_TARGET_set=
ac_cv_env_DLLTOOL_FOR_TARGET_value=
ac_cv_env_DLLTOOL_set=
ac_cv_env_DLLTOOL_value=
ac_cv_env_GCC_FOR_TARGET_set=
ac_cv_env_GCC_FOR_TARGET_value=
ac_cv_env_GCJ_FOR_TARGET_set=
ac_cv_env_GCJ_FOR_TARGET_value=
ac_cv_env_GFORTRAN_FOR_TARGET_set=
ac_cv_env_GFORTRAN_FOR_TARGET_value=
ac_cv_env_GOC_FOR_TARGET_set=
ac_cv_env_GOC_FOR_TARGET_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LD_FOR_TARGET_set=
ac_cv_env_LD_FOR_TARGET_value=
ac_cv_env_LD_set=
ac_cv_env_LD_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LIPO_FOR_TARGET_set=
ac_cv_env_LIPO_FOR_TARGET_value=
ac_cv_env_LIPO_set=
ac_cv_env_LIPO_value=
ac_cv_env_NM_FOR_TARGET_set=
ac_cv_env_NM_FOR_TARGET_value=
ac_cv_env_NM_set=
ac_cv_env_NM_value=
ac_cv_env_OBJCOPY_set=
ac_cv_env_OBJCOPY_value=
ac_cv_env_OBJDUMP_FOR_TARGET_set=
ac_cv_env_OBJDUMP_FOR_TARGET_value=
ac_cv_env_OBJDUMP_set=
ac_cv_env_OBJDUMP_value=
ac_cv_env_RANLIB_FOR_TARGET_set=
ac_cv_env_RANLIB_FOR_TARGET_value=
ac_cv_env_RANLIB_set=
ac_cv_env_RANLIB_value=
ac_cv_env_STRIP_FOR_TARGET_set=
ac_cv_env_STRIP_FOR_TARGET_value=
ac_cv_env_STRIP_set=
ac_cv_env_STRIP_value=
ac_cv_env_WINDMC_FOR_TARGET_set=
ac_cv_env_WINDMC_FOR_TARGET_value=
ac_cv_env_WINDMC_set=
ac_cv_env_WINDMC_value=
ac_cv_env_WINDRES_FOR_TARGET_set=
ac_cv_env_WINDRES_FOR_TARGET_value=
ac_cv_env_WINDRES_set=
ac_cv_env_WINDRES_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_build_configargs_set=
ac_cv_env_build_configargs_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_host_configargs_set=
ac_cv_env_host_configargs_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_env_target_configargs_set=
ac_cv_env_target_configargs_value=
ac_cv_host=i686-pc-linux-gnu
ac_cv_lib_pwl_PWL_handle_timeout=no
ac_cv_objext=o
ac_cv_path_SED=/bin/sed
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AR=ar
ac_cv_prog_AR_FOR_TARGET=ar
ac_cv_prog_AS=as
ac_cv_prog_AS_FOR_TARGET=as
ac_cv_prog_AWK=gawk
ac_cv_prog_CC_FOR_TARGET=cc
ac_cv_prog_GCC_FOR_TARGET=gcc
ac_cv_prog_LD=ld
ac_cv_prog_LD_FOR_TARGET=ld
ac_cv_prog_M4=m4
ac_cv_prog_NM=nm
ac_cv_prog_NM_FOR_TARGET=nm
ac_cv_prog_OBJCOPY=objcopy
ac_cv_prog_OBJDUMP=objdump
ac_cv_prog_OBJDUMP_FOR_TARGET=objdump
ac_cv_prog_RANLIB=ranlib
ac_cv_prog_RANLIB_FOR_TARGET=ranlib
ac_cv_prog_STRIP=strip
ac_cv_prog_STRIP_FOR_TARGET=strip
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_cxx_g=no
ac_cv_target=i686-pc-linux-gnu
acx_cv_cc_gcc_supports_ada=no
acx_cv_prog_LN=ln
gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
gcc_cv_tool_dirs=/usr/local/libexec/gcc/i686-pc-linux-gnu/4.6.2:/usr/local/libexec/gcc/i686-pc-linux-gnu:/usr/lib/gcc/i686-pc-linux-gnu/4.6.2:/usr/lib/gcc/i686-pc-linux-gnu:/usr/local/i686-pc-linux-gnu/bin/i686-pc-linux-gnu/4.6.2:/usr/local/i686-pc-linux-gnu/bin:
gcc_cv_tool_prefix=/usr/local
lt_cv_objdir=.libs
lixiaobin_sh 2012-03-18
  • 打赏
  • 举报
回复
configure:5390: result: buggy but acceptable
configure:5403: checking for the correct version of mpfr.h
configure:5421: gcc -c -g -O2 conftest.c >&5
configure:5421: $? = 0
configure:5438: gcc -c -g -O2 conftest.c >&5
conftest.c: In function 'main':
conftest.c:17: error: 'choke' undeclared (first use in this function)
conftest.c:17: error: (Each undeclared identifier is reported only once
conftest.c:17: error: for each function it appears in.)
conftest.c:17: error: expected ';' before 'me'
configure:5438: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h. */
| #include <gmp.h>
| #include <mpfr.h>
| int
| main ()
| {
|
| #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
| choke me
| #endif
|
| ;
| return 0;
| }
configure:5442: result: buggy but acceptable
configure:5456: checking for the correct version of mpc.h
configure:5473: gcc -c -g -O2 conftest.c >&5
configure:5473: $? = 0
configure:5489: gcc -c -g -O2 conftest.c >&5
configure:5489: $? = 0
configure:5490: result: yes
configure:5508: checking for the correct version of the gmp/mpfr/mpc libraries
configure:5539: gcc -o conftest -g -O2 conftest.c -lmpc -lmpfr -lgmp >&5
configure:5539: $? = 0
configure:5540: result: yes
configure:5724: checking for PWL_handle_timeout in -lpwl
configure:5749: gcc -o conftest -g -O2 conftest.c -lpwl >&5
/usr/bin/ld: cannot find -lpwl
collect2: ld returned 1 exit status
configure:5749: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h. */
|
| /* Override any GCC internal prototype to avoid an error.
| Use char because int might match the return type of a GCC
| builtin and then its argument prototype would still apply. */
| #ifdef __cplusplus
| extern "C"
| #endif
| char PWL_handle_timeout ();
| int
| main ()
| {
| return PWL_handle_timeout ();
| ;
| return 0;
| }
configure:5758: result: no
configure:5772: checking for version 0.11 (revision 0 or later) of PPL
configure:5789: gcc -c -g -O2 conftest.c >&5
conftest.c:10:19: error: ppl_c.h: No such file or directory
conftest.c: In function 'main':
conftest.c:16: error: 'choke' undeclared (first use in this function)
conftest.c:16: error: (Each undeclared identifier is reported only once
conftest.c:16: error: for each function it appears in.)
conftest.c:16: error: expected ';' before 'me'
configure:5789: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h. */
| #include "ppl_c.h"
| int
| main ()
| {
|
| #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 11
| choke me
| #endif
|
| ;
| return 0;
| }
configure:5793: result: no
configure:7218: checking for default BUILD_CONFIG
configure:7250: result: bootstrap-debug
configure:7740: checking for bison
configure:7770: result: no
configure:7740: checking for byacc
configure:7770: result: no
configure:7740: checking for yacc
configure:7770: result: no
configure:7788: checking for bison
configure:7818: result: no
configure:7835: checking for gm4
configure:7865: result: no
configure:7835: checking for gnum4
configure:7865: result: no
configure:7835: checking for m4
configure:7851: found /usr/local/bin/m4
configure:7862: result: m4
configure:7882: checking for flex
configure:7912: result: no
configure:7882: checking for lex
configure:7912: result: no
configure:7930: checking for flex
configure:7960: result: no
configure:7977: checking for makeinfo
configure:8007: result: no
configure:8038: checking for expect
configure:8068: result: no
configure:8087: checking for runtest
configure:8117: result: no
configure:8232: checking for ar
configure:8248: found /usr/bin/ar
configure:8259: result: ar
configure:8373: checking for as
configure:8389: found /usr/bin/as
configure:8400: result: as
configure:8514: checking for dlltool
configure:8544: result: no
configure:8655: checking for ld
configure:8671: found /usr/bin/ld
configure:8682: result: ld
configure:8796: checking for lipo
configure:8826: result: no
configure:8937: checking for nm
configure:8953: found /usr/bin/nm
configure:8964: result: nm
configure:9078: checking for ranlib
configure:9094: found /usr/bin/ranlib
configure:9105: result: ranlib
configure:9214: checking for strip
configure:9230: found /usr/bin/strip
configure:9241: result: strip
configure:9350: checking for windres
configure:9380: result: no
configure:9491: checking for windmc
configure:9521: result: no
configure:9632: checking for objcopy
configure:9648: found /usr/bin/objcopy
configure:9659: result: objcopy
configure:9773: checking for objdump
configure:9789: found /usr/bin/objdump
configure:9800: result: objdump
configure:9953: checking for cc
configure:9969: found /usr/bin/cc
configure:9980: result: cc
configure:10114: checking for c++
configure:10144: result: no
configure:10114: checking for g++
configure:10144: result: no
configure:10114: checking for cxx
configure:10144: result: no
configure:10114: checking for gxx
configure:10144: result: no
configure:10275: checking for gcc
configure:10291: found /usr/bin/gcc
configure:10302: result: gcc
configure:10431: checking for gcj
configure:10461: result: no
configure:10592: checking for gfortran
configure:10622: result: no
configure:10753: checking for gccgo
configure:10783: result: no
configure:10844: checking for ar
configure:10877: result: no
configure:10994: checking for ar
configure:11010: found /usr/bin/ar
configure:11021: result: ar
configure:11074: checking for as
configure:11107: result: no
configure:11224: checking for as
configure:11240: found /usr/bin/as
configure:11251: result: as
configure:11304: checking for dlltool
configure:11337: result: no
configure:11454: checking for dlltool
configure:11484: result: no
configure:11534: checking for ld
configure:11567: result: no
configure:11684: checking for ld
configure:11700: found /usr/bin/ld
configure:11711: result: ld
configure:11764: checking for lipo
configure:11797: result: no
configure:11914: checking for lipo
configure:11944: result: no
configure:11994: checking for nm
configure:12027: result: no
configure:12144: checking for nm
configure:12160: found /usr/bin/nm
configure:12171: result: nm
configure:12224: checking for objdump
configure:12257: result: no
configure:12374: checking for objdump
configure:12390: found /usr/bin/objdump
configure:12401: result: objdump
configure:12454: checking for ranlib
configure:12487: result: no
configure:12604: checking for ranlib
configure:12620: found /usr/bin/ranlib
configure:12631: result: ranlib
configure:12684: checking for strip
configure:12717: result: no
configure:12834: checking for strip
configure:12850: found /usr/bin/strip
configure:12861: result: strip
configure:12914: checking for windres
configure:12947: result: no
configure:13064: checking for windres
configure:13094: result: no
configure:13144: checking for windmc
configure:13177: result: no
configure:13294: checking for windmc
configure:13324: result: no
configure:13352: checking where to find the target ar
configure:13385: result: host tool
configure:13394: checking where to find the target as
configure:13427: result: host tool
configure:13436: checking where to find the target cc
configure:13459: result: just compiled
configure:13478: checking where to find the target c++
configure:13504: result: just compiled
configure:13523: checking where to find the target c++ for libstdc++
configure:13549: result: just compiled
configure:13568: checking where to find the target dlltool
configure:13601: result: host tool
configure:13610: checking where to find the target gcc
configure:13633: result: just compiled
configure:13652: checking where to find the target gcj
configure:13678: result: just compiled
configure:13697: checking where to find the target gfortran
configure:13723: result: just compiled
configure:13742: checking where to find the target gccgo
configure:13778: result: host tool
configure:13787: checking where to find the target ld
configure:13820: result: host tool
configure:13829: checking where to find the target lipo
configure:13851: result: host tool
configure:13860: checking where to find the target nm
configure:13893: result: host tool
configure:13902: checking where to find the target objdump
configure:13935: result: host tool
configure:13944: checking where to find the target ranlib
configure:13977: result: host tool
configure:13986: checking where to find the target strip
configure:14019: result: host tool
configure:14028: checking where to find the target windres
configure:14061: result: host tool
configure:14070: checking where to find the target windmc
configure:14103: result: host tool
configure:14140: checking whether to enable maintainer-specific portions of Makefiles
configure:14149: result: no
configure:14182: checking whether -fkeep-inline-functions is supported
configure:14201: gcc -c -g -O2 -fkeep-inline-functions conftest.c >&5
configure:14201: $? = 0
configure:14202: result: yes
configure:14399: creating ./config.status
lixiaobin_sh 2012-03-18
  • 打赏
  • 举报
回复
换了个目录
configure通过
make 到半小时的时候报错

checking for suffix of object files... configure: error: in `/home/lixiaobin/gcc-bulid/i686-pc-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[2]: *** [configure-stage1-target-libgcc] 错误 1
make[2]:正在离开目录 `/home/lixiaobin/gcc-bulid'
make[1]: *** [stage1-bubble] 错误 2
make[1]:正在离开目录 `/home/lixiaobin/gcc-bulid'
make: *** [all] 错误 2


错误提示See `config.log' for more details. 看看你的config.log
不过新手,看不太懂config.log
现在贴出来给大家看看,希望能看懂的同志给指点下,小弟在此谢过了。
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.64. Invocation command line was

$ ../gcc-4.6.2/configure

## --------- ##
## Platform. ##
## --------- ##

hostname = lixiaobin-desktop
uname -m = i686
uname -r = 2.6.32-39-generic
uname -s = Linux
uname -v = #86-Ubuntu SMP Mon Feb 13 21:47:32 UTC 2012

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2222: checking build system type
configure:2236: result: i686-pc-linux-gnu
configure:2283: checking host system type
configure:2296: result: i686-pc-linux-gnu
configure:2316: checking target system type
configure:2329: result: i686-pc-linux-gnu
configure:2383: checking for a BSD-compatible install
configure:2451: result: /usr/bin/install -c
configure:2462: checking whether ln works
configure:2484: result: yes
configure:2488: checking whether ln -s works
configure:2492: result: yes
configure:2499: checking for a sed that does not truncate output
configure:2563: result: /bin/sed
configure:2572: checking for gawk
configure:2588: found /usr/bin/gawk
configure:2599: result: gawk
configure:3913: checking for gcc
configure:3929: found /usr/bin/gcc
configure:3940: result: gcc
configure:4169: checking for C compiler version
configure:4178: gcc --version >&5
gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:4189: $? = 0
configure:4178: gcc -v >&5
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.3-4ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-plugin --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)
configure:4189: $? = 0
configure:4178: gcc -V >&5
gcc: '-V' option must have argument
configure:4189: $? = 1
configure:4178: gcc -qversion >&5
gcc: unrecognized option '-qversion'
gcc: no input files
configure:4189: $? = 1
configure:4209: checking for C compiler default output file name
configure:4231: gcc conftest.c >&5
configure:4235: $? = 0
configure:4272: result: a.out
configure:4288: checking whether the C compiler works
configure:4297: ./a.out
configure:4301: $? = 0
configure:4316: result: yes
configure:4323: checking whether we are cross compiling
configure:4325: result: no
configure:4328: checking for suffix of executables
configure:4335: gcc -o conftest conftest.c >&5
configure:4339: $? = 0
configure:4361: result:
configure:4367: checking for suffix of object files
configure:4389: gcc -c conftest.c >&5
configure:4393: $? = 0
configure:4414: result: o
configure:4418: checking whether we are using the GNU C compiler
configure:4437: gcc -c conftest.c >&5
configure:4437: $? = 0
configure:4446: result: yes
configure:4455: checking whether gcc accepts -g
configure:4475: gcc -c -g conftest.c >&5
configure:4475: $? = 0
configure:4516: result: yes
configure:4533: checking for gcc option to accept ISO C89
configure:4597: gcc -c -g -O2 conftest.c >&5
configure:4597: $? = 0
configure:4610: result: none needed
configure:4688: checking for g++
configure:4718: result: no
configure:4688: checking for c++
configure:4718: result: no
configure:4688: checking for gpp
configure:4718: result: no
configure:4688: checking for aCC
configure:4718: result: no
configure:4688: checking for CC
configure:4718: result: no
configure:4688: checking for cxx
configure:4718: result: no
configure:4688: checking for cc++
configure:4718: result: no
configure:4688: checking for cl.exe
configure:4718: result: no
configure:4688: checking for FCC
configure:4718: result: no
configure:4688: checking for KCC
configure:4718: result: no
configure:4688: checking for RCC
configure:4718: result: no
configure:4688: checking for xlC_r
configure:4718: result: no
configure:4688: checking for xlC
configure:4718: result: no
configure:4742: checking for C++ compiler version
configure:4751: g++ --version >&5
../gcc-4.6.2/configure: line 4753: g++: command not found
configure:4762: $? = 127
configure:4751: g++ -v >&5
../gcc-4.6.2/configure: line 4753: g++: command not found
configure:4762: $? = 127
configure:4751: g++ -V >&5
../gcc-4.6.2/configure: line 4753: g++: command not found
configure:4762: $? = 127
configure:4751: g++ -qversion >&5
../gcc-4.6.2/configure: line 4753: g++: command not found
configure:4762: $? = 127
configure:4766: checking whether we are using the GNU C++ compiler
configure:4785: g++ -c conftest.cpp >&5
../gcc-4.6.2/configure: line 1739: g++: command not found
configure:4785: $? = 127
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
|
| int
| main ()
| {
| #ifndef __GNUC__
| choke me
| #endif
|
| ;
| return 0;
| }
configure:4794: result: no
configure:4803: checking whether g++ accepts -g
configure:4823: g++ -c -g conftest.cpp >&5
../gcc-4.6.2/configure: line 1739: g++: command not found
configure:4823: $? = 127
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:4838: g++ -c conftest.cpp >&5
../gcc-4.6.2/configure: line 1739: g++: command not found
configure:4838: $? = 127
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:4854: g++ -c -g conftest.cpp >&5
../gcc-4.6.2/configure: line 1739: g++: command not found
configure:4854: $? = 127
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:4864: result: no
configure:4953: checking for gnatbind
configure:4983: result: no
configure:5045: checking for gnatmake
configure:5075: result: no
configure:5094: checking whether compiler driver understands Ada
configure:5117: result: no
configure:5126: checking how to compare bootstrapped objects
configure:5151: result: cmp --ignore-initial=16 $$f1 $$f2
configure:5167: checking for objdir
configure:5182: result: .libs
configure:5348: checking for the correct version of gmp.h
configure:5368: gcc -c -g -O2 conftest.c >&5
configure:5368: $? = 0
configure:5386: gcc -c -g -O2 conftest.c >&5
conftest.c: In function 'main':
conftest.c:18: error: 'choke' undeclared (first use in this function)
conftest.c:18: error: (Each undeclared identifier is reported only once
conftest.c:18: error: for each function it appears in.)
conftest.c:18: error: expected ';' before 'me'
configure:5386: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h. */
| #include <gmp.h>
| int
| main ()
| {
|
| #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
| #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
| #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
| choke me
| #endif
|
| ;
| return 0;
| }
lixiaobin_sh 2012-03-18
  • 打赏
  • 举报
回复

## ----------------- ##
## Output variables. ##
## ----------------- ##

AR='ar'
AWK='gawk'
CC='/home/lixiaobin/gcc-bulid/./gcc/xgcc -B/home/lixiaobin/gcc-bulid/./gcc/ -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include -isystem /usr/local/i686-pc-linux-gnu/sys-include '
CFLAGS='-g -O2'
CPP=''
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
INSTALL_DATA='/usr/bin/install -c -m 644'
INSTALL_PROGRAM='/usr/bin/install -c'
INSTALL_SCRIPT='/usr/bin/install -c'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIPO='lipo'
LN_S='ln -s'
LTLIBOBJS=''
MAINT='#'
NM='/home/lixiaobin/gcc-bulid/./gcc/nm'
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME='GNU C Runtime Library'
PACKAGE_STRING='GNU C Runtime Library 1.0'
PACKAGE_TARNAME='libgcc'
PACKAGE_URL='http://www.gnu.org/software/libgcc/'
PACKAGE_VERSION='1.0'
PATH_SEPARATOR=':'
RANLIB='ranlib'
SHELL='/bin/bash'
STRIP='strip'
ac_ct_CC=''
asm_hidden_op=''
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias='i686-pc-linux-gnu'
build_cpu='i686'
build_libsubdir='build-i686-pc-linux-gnu'
build_os='linux-gnu'
build_subdir='build-i686-pc-linux-gnu'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
decimal_float=''
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
enable_decimal_float=''
enable_shared='yes'
exec_prefix='NONE'
extra_parts=''
fixed_point=''
host='i686-pc-linux-gnu'
host_alias='i686-pc-linux-gnu'
host_cpu='i686'
host_noncanonical='i686-pc-linux-gnu'
host_os='linux-gnu'
host_subdir='.'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
libgcc_topdir='../../../gcc-4.6.2/libgcc/..'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,y,y,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
set_have_cc_tls=''
set_use_emutls=''
sharedstatedir='${prefix}/com'
slibdir='$(libdir)'
sysconfdir='${prefix}/etc'
target_alias='i686-pc-linux-gnu'
target_noncanonical='i686-pc-linux-gnu'
target_subdir='i686-pc-linux-gnu'
tmake_file=''
toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
toolexeclibdir='$(libdir)'
vis_hide=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "GNU C Runtime Library"
#define PACKAGE_TARNAME "libgcc"
#define PACKAGE_VERSION "1.0"
#define PACKAGE_STRING "GNU C Runtime Library 1.0"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL "http://www.gnu.org/software/libgcc/"

configure: exit 1
lixiaobin_sh 2012-03-18
  • 打赏
  • 举报
回复
[Quote=引用 11 楼 xunxun1982 的回复:]

你的config.log贴的不对

应该看make error的那个

你的这个应该看i686-pc-linux-gnu/libgcc目录下的
[/Quote]

抱歉。。。

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by GNU C Runtime Library configure 1.0, which was
generated by GNU Autoconf 2.64. Invocation command line was

$ /home/lixiaobin/gcc-4.6.2/libgcc/configure --cache-file=./config.cache --enable-multilib --enable-languages=c,c++,fortran,java,lto,objc --program-transform-name=s,y,y, --disable-option-checking --with-target-subdir=i686-pc-linux-gnu --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --srcdir=../../../gcc-4.6.2/libgcc --disable-intermodule --enable-checking=yes,types --disable-coverage --enable-languages=c,lto

## --------- ##
## Platform. ##
## --------- ##

hostname = lixiaobin-desktop
uname -m = i686
uname -r = 2.6.32-39-generic
uname -s = Linux
uname -v = #86-Ubuntu SMP Mon Feb 13 21:47:32 UTC 2012

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1742: creating cache ./config.cache
configure:1903: checking for --enable-version-specific-runtime-libs
configure:1916: result: no
configure:1964: checking for a BSD-compatible install
configure:2032: result: /usr/bin/install -c
configure:2048: checking for gawk
configure:2075: result: gawk
configure:2095: checking build system type
configure:2109: result: i686-pc-linux-gnu
configure:2129: checking host system type
configure:2142: result: i686-pc-linux-gnu
configure:2245: checking for i686-pc-linux-gnu-ar
configure:2272: result: ar
configure:2337: checking for i686-pc-linux-gnu-lipo
configure:2364: result: lipo
configure:2429: checking for i686-pc-linux-gnu-nm
configure:2456: result: /home/lixiaobin/gcc-bulid/./gcc/nm
configure:2521: checking for i686-pc-linux-gnu-ranlib
configure:2548: result: ranlib
configure:2613: checking for i686-pc-linux-gnu-strip
configure:2640: result: strip
configure:2702: checking whether ln -s works
configure:2706: result: yes
configure:2723: checking for i686-pc-linux-gnu-gcc
configure:2750: result: /home/lixiaobin/gcc-bulid/./gcc/xgcc -B/home/lixiaobin/gcc-bulid/./gcc/ -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include -isystem /usr/local/i686-pc-linux-gnu/sys-include
configure:3019: checking for C compiler version
configure:3028: /home/lixiaobin/gcc-bulid/./gcc/xgcc -B/home/lixiaobin/gcc-bulid/./gcc/ -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include -isystem /usr/local/i686-pc-linux-gnu/sys-include --version >&5
xgcc (GCC) 4.6.2
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3039: $? = 0
configure:3028: /home/lixiaobin/gcc-bulid/./gcc/xgcc -B/home/lixiaobin/gcc-bulid/./gcc/ -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include -isystem /usr/local/i686-pc-linux-gnu/sys-include -v >&5
Reading specs from /home/lixiaobin/gcc-bulid/./gcc/specs
COLLECT_GCC=/home/lixiaobin/gcc-bulid/./gcc/xgcc
COLLECT_LTO_WRAPPER=/home/lixiaobin/gcc-bulid/./gcc/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.6.2/configure
Thread model: posix
gcc version 4.6.2 (GCC)
configure:3039: $? = 0
configure:3028: /home/lixiaobin/gcc-bulid/./gcc/xgcc -B/home/lixiaobin/gcc-bulid/./gcc/ -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include -isystem /usr/local/i686-pc-linux-gnu/sys-include -V >&5
xgcc: error: unrecognized option '-V'
xgcc: fatal error: no input files
compilation terminated.
configure:3039: $? = 1
configure:3028: /home/lixiaobin/gcc-bulid/./gcc/xgcc -B/home/lixiaobin/gcc-bulid/./gcc/ -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include -isystem /usr/local/i686-pc-linux-gnu/sys-include -qversion >&5
xgcc: error: unrecognized option '-qversion'
xgcc: fatal error: no input files
compilation terminated.
configure:3039: $? = 1
configure:3055: /home/lixiaobin/gcc-bulid/./gcc/xgcc -B/home/lixiaobin/gcc-bulid/./gcc/ -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include -isystem /usr/local/i686-pc-linux-gnu/sys-include -o conftest -g -O2 conftest.c >&5
/home/lixiaobin/gcc-bulid/./gcc/cc1: error while loading shared libraries: libmpc.so.2: cannot open shared object file: No such file or directory
configure:3058: $? = 1
configure:3246: checking for suffix of object files
configure:3268: /home/lixiaobin/gcc-bulid/./gcc/xgcc -B/home/lixiaobin/gcc-bulid/./gcc/ -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include -isystem /usr/local/i686-pc-linux-gnu/sys-include -c -g -O2 conftest.c >&5
/home/lixiaobin/gcc-bulid/./gcc/cc1: error while loading shared libraries: libmpc.so.2: cannot open shared object file: No such file or directory
configure:3272: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3286: error: in `/home/lixiaobin/gcc-bulid/i686-pc-linux-gnu/libgcc':
configure:3289: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-linux-gnu
ac_cv_env_CC_set=set
ac_cv_env_CC_value='/home/lixiaobin/gcc-bulid/./gcc/xgcc -B/home/lixiaobin/gcc-bulid/./gcc/ -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include -isystem /usr/local/i686-pc-linux-gnu/sys-include '
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-g -O2'
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=i686-pc-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=i686-pc-linux-gnu
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=i686-pc-linux-gnu
ac_cv_host=i686-pc-linux-gnu
ac_cv_prog_AR=ar
ac_cv_prog_AWK=gawk
ac_cv_prog_CC='/home/lixiaobin/gcc-bulid/./gcc/xgcc -B/home/lixiaobin/gcc-bulid/./gcc/ -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include -isystem /usr/local/i686-pc-linux-gnu/sys-include '
ac_cv_prog_LIPO=lipo
ac_cv_prog_NM=/home/lixiaobin/gcc-bulid/./gcc/nm
ac_cv_prog_RANLIB=ranlib
ac_cv_prog_STRIP=strip
xunxun 2012-03-18
  • 打赏
  • 举报
回复
你的config.log贴的不对

应该看make error的那个

你的这个应该看i686-pc-linux-gnu/libgcc目录下的
lixiaobin_sh 2012-03-18
  • 打赏
  • 举报
回复
+-------------------------------------------------------------+
| CAUTION: |
| |
| If you have not already run "make check", then we strongly |
| recommend you do so. |
| |
| GMP has been carefully tested by its authors, but compilers |
| are all too often released with serious bugs. GMP tends to |
| explore interesting corners in compilers and has hit bugs |
| on quite a few occasions. |
| |
+-------------------------------------------------------------+

gmp-4.3.2又从新安装了下,这是sudo make install的时候出的提示,和上次一样,当然make check的时候也没有什么错误,我又翻了下gmp-4.3.2下面的config.log文件,有好多带error的错误,我贴出来看看,是不是这个的问题,这个没有正确安装?怎么解决?

conftest.c:64: error: expected ';', ',' or ')' before 'text'
conftest.c: In function 'test_varargs':
conftest.c:80: warning: ISO C90 forbids mixed declarations and code
conftest.c:83: warning: ISO C90 forbids mixed declarations and code
conftest.c: In function 'main':
conftest.c:118: warning: ISO C forbids nested functions
conftest.c:118: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'newvar'
conftest.c:118: warning: ISO C90 forbids mixed declarations and code
conftest.c:118: error: 'newvar' undeclared (first use in this function)
conftest.c:118: error: (Each undeclared identifier is reported only once
conftest.c:118: error: for each function it appears in.)
conftest.c:125: warning: ISO C90 forbids mixed declarations and code
conftest.c:128: error: 'for' loop initial declarations are only allowed in C99 mode
conftest.c:128: note: use option -std=c99 or -std=gnu99 to compile your code

configure:8399: gcc -std=gnu99 -E conftest.c
conftest.c:14:28: error: ac_nonexistent.h: No such file or directory
configure:8405: $? = 1


configure:8504: gcc -std=gnu99 -E conftest.c
conftest.c:14:28: error: ac_nonexistent.h: No such file or directory
configure:8510: $? = 1

configure:25878: gcc -std=gnu99 -c -m32 -O2 -pedantic -fomit-frame-pointer -mtune=core2 -march=core2 conftest.c >&5
conftest.c:65:20: error: invent.h: No such file or directory
configure:25884: $? = 1

configure:25917: gcc -std=gnu99 -E conftest.c
conftest.c:32:20: error: invent.h: No such file or directory
configure:25923: $? = 1

configure:25878: gcc -std=gnu99 -c -m32 -O2 -pedantic -fomit-frame-pointer -mtune=core2 -march=core2 conftest.c >&5
conftest.c:68:28: error: sys/attributes.h: No such file or directory
configure:25884: $? = 1

configure:25917: gcc -std=gnu99 -E conftest.c
conftest.c:35:28: error: sys/attributes.h: No such file or directory
configure:25923: $? = 1


configure:25878: gcc -std=gnu99 -c -m32 -O2 -pedantic -fomit-frame-pointer -mtune=core2 -march=core2 conftest.c >&5
conftest.c:68:25: error: sys/iograph.h: No such file or directory
configure:25884: $? = 1

configure:25917: gcc -std=gnu99 -E conftest.c
conftest.c:35:25: error: sys/iograph.h: No such file or directory
configure:25923: $? = 1


configure:25878: gcc -std=gnu99 -c -m32 -O2 -pedantic -fomit-frame-pointer -mtune=core2 -march=core2 conftest.c >&5
conftest.c:70:27: error: sys/processor.h: No such file or directory
configure:25884: $? = 1


configure:25917: gcc -std=gnu99 -E conftest.c
conftest.c:37:27: error: sys/processor.h: No such file or directory
configure:25923: $? = 1

configure:25878: gcc -std=gnu99 -c -m32 -O2 -pedantic -fomit-frame-pointer -mtune=core2 -march=core2 conftest.c >&5
conftest.c:70:23: error: sys/pstat.h: No such file or directory
configure:25884: $? = 1


configure:25917: gcc -std=gnu99 -E conftest.c
conftest.c:37:23: error: sys/pstat.h: No such file or directory
configure:25923: $? = 1


configure:25878: gcc -std=gnu99 -c -m32 -O2 -pedantic -fomit-frame-pointer -mtune=core2 -march=core2 conftest.c >&5
conftest.c:71:24: error: sys/syssgi.h: No such file or directory
configure:25884: $? = 1


configure:25917: gcc -std=gnu99 -E conftest.c
conftest.c:38:24: error: sys/syssgi.h: No such file or directory
configure:25923: $? = 1


configure:25878: gcc -std=gnu99 -c -m32 -O2 -pedantic -fomit-frame-pointer -mtune=core2 -march=core2 conftest.c >&5
conftest.c:71:27: error: sys/systemcfg.h: No such file or directory
configure:25884: $? = 1


configure:25917: gcc -std=gnu99 -E conftest.c
conftest.c:38:27: error: sys/systemcfg.h: No such file or directory
configure:25923: $? = 1


configure:26151: gcc -std=gnu99 -c -m32 -O2 -pedantic -fomit-frame-pointer -mtune=core2 -march=core2 conftest.c >&5
conftest.c:46:33: error: machine/hal_sysinfo.h: No such file or directory
configure:26157: $? = 1


conftest.c: In function 'main':
conftest.c:72: error: 'not' undeclared (first use in this function)
conftest.c:72: error: (Each undeclared identifier is reported only once
conftest.c:72: error: for each function it appears in.)
conftest.c:72: error: expected ';' before 'big'
configure:28235: $? = 1


| /* Override any GCC internal prototype to avoid an error.
| Use char because int might match the return type of a GCC
| builtin and then its argument prototype would still apply. */


| /* Override any GCC internal prototype to avoid an error.
| Use char because int might match the return type of a GCC
| builtin and then its argument prototype would still apply. */

configure:29080: gcc -std=gnu99 -c -m32 -O2 -pedantic -fomit-frame-pointer -mtune=core2 -march=core2 conftest.c >&5
conftest.c:92:23: error: sys/pstat.h: No such file or directory
conftest.c: In function 'main':
conftest.c:97: error: storage size of 'ac_aggr' isn't known
configure:29086: $? = 1


configure:29120: gcc -std=gnu99 -c -m32 -O2 -pedantic -fomit-frame-pointer -mtune=core2 -march=core2 conftest.c >&5
conftest.c:92:23: error: sys/pstat.h: No such file or directory
conftest.c: In function 'main':
conftest.c:97: error: storage size of 'ac_aggr' isn't known


conftest.s: Assembler messages:
conftest.s:2: Error: no such instruction: `somelabel'
configure: failed program was:
.text
somelabel
conftest.s: Assembler messages:
conftest.s:2: Error: no such instruction: `somelabel'
trying :


conftest.s: Assembler messages:
conftest.s:3: Error: unknown pseudo-op: `.def'
conftest.s:4: Error: unknown pseudo-op: `.scl'
conftest.s:5: Error: unrecognized symbol type "32"
conftest.s:6: Error: unknown pseudo-op: `.endef'
configure: failed program was:


configure:7853: checking for gcc option to accept ISO C89
configure:7927: gcc -c -m32 -O2 -pedantic -fomit-frame-pointer -mtune=core2 -march=core2 conftest.c >&5
configure:7933: $? = 0
configure:7956: result: none needed
configure:7976: checking for gcc option to accept ISO C99
configure:8135: gcc -c -m32 -O2 -pedantic -fomit-frame-pointer -mtune=core2 -march=core2 conftest.c >&5
conftest.c:20:1: warning: C++ style comments are not allowed in ISO C90
conftest.c:20:1: warning: (this will be reported only once per input file)
conftest.c:21:15: warning: anonymous variadic macros were introduced in C99
conftest.c:22:18: warning: anonymous variadic macros were introduced in C99
conftest.c:23:21: warning: anonymous variadic macros were introduced in C99
conftest.c:39:6: warning: use of C99 long long integer constant
conftest.c:39:6: warning: use of C99 long long integer constant
conftest.c:39:6: warning: use of C99 long long integer constant
conftest.c:42:5: warning: use of C99 long long integer constant
conftest.c:42:5: warning: use of C99 long long integer constant
conftest.c:42:5: warning: use of C99 long long integer constant
conftest.c:46: warning: ISO C90 does not support 'long long'
conftest.c:46:32: warning: use of C99 long long integer constant
conftest.c:47: warning: ISO C90 does not support 'long long'
conftest.c:47:41: warning: use of C99 long long integer constant
conftest.c:52: warning: ISO C90 does not support flexible array members
conftest.c:64: error: expected ';', ',' or ')' before 'text'
conftest.c: In function 'test_varargs':
conftest.c:80: warning: ISO C90 forbids mixed declarations and code
conftest.c:83: warning: ISO C90 forbids mixed declarations and code
conftest.c: In function 'main':
conftest.c:118: warning: ISO C forbids nested functions
conftest.c:118: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'newvar'
conftest.c:118: warning: ISO C90 forbids mixed declarations and code
conftest.c:118: error: 'newvar' undeclared (first use in this function)
conftest.c:118: error: (Each undeclared identifier is reported only once
conftest.c:118: error: for each function it appears in.)
conftest.c:125: warning: ISO C90 forbids mixed declarations and code
conftest.c:128: error: 'for' loop initial declarations are only allowed in C99 mode
conftest.c:128: note: use option -std=c99 or -std=gnu99 to compile your code
conftest.c:133: warning: ISO C90 forbids specifying subobject to initialize
conftest.c:134: warning: ISO C90 forbids specifying subobject to initialize
conftest.c:135: warning: ISO C90 forbids specifying subobject to initialize
conftest.c:132: warning: ISO C90 forbids mixed declarations and code
conftest.c:140: warning: ISO C90 forbids variable length array 'dynamic_array'
conftest.c:140: warning: ISO C90 forbids mixed declarations and code
conftest.c:144:33: warning: use of C99 long long integer constant
conftest.c:144:51: warning: use of C99 long long integer constant
configure:8141: $? = 1


这是所有带error的信息。
lixiaobin_sh 2012-03-16
  • 打赏
  • 举报
回复
啊,这个解决了,网上查资料说不能在原来的gcc目录下直接编译,需要换一个目录,
之前没看懂为什么要另外见一个目录是为了什么。
lixiaobin_sh 2012-03-16
  • 打赏
  • 举报
回复
configure: error: source directory already configured; run "make distclean" there first
make[2]: *** [configure-stage1-gmp] 错误 1
make[2]:正在离开目录 `/gcc-4.6.3'
make[1]: *** [stage1-bubble] 错误 2
make[1]:正在离开目录 `/gcc-4.6.3'
make: *** [all] 错误 2


大哥们,求助。安装gcc过程中 输入make命令的时候出的错误提示
libgmp, libmpfr, libmpc都已经正确安装了,m4也正确安装了,
lixiaobin_sh 2012-03-15
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 xunxun1982 的回复:]

configure: error: Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+

你系统里没有找到libgmp, libmpfr, libmpc
[/Quote]


的确,多谢。

现在在着手GMP MPFR MPC的安装尝试
其中遇到问题了,网上说这三个安装是有步骤的,很感激,我贴在这里,找到不容易,希望对看到人的有所帮
助。
http://blog.163.com/hyh_px@126/blog/static/6253253320109491024927/


不过现在安装GMP的时候出现了错误:checking for suitable m4... configure: error: No usable m4 in $PATH or /usr/5bin (see config.log for reasons).

搜索说是缺少M4
M4 is not installed.
Solution
Start the Ubuntu software Center and install ""M4"" (see this screenshot).

M4下载地址:ftp://ftp.gnu.org/gnu/m4/
我也不知道下哪个,现在在尝试,记录一下,我会继续记录下去的,希望能给看到的人予以提示。
多谢 xunxun1982 给予的关注。
xunxun 2012-03-15
  • 打赏
  • 举报
回复
configure: error: Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+

你系统里没有找到libgmp, libmpfr, libmpc

24,860

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 工具平台和程序库
社区管理员
  • 工具平台和程序库社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧