configure: error: C compiler cannot create executables

DIY-GEEKER 2014-06-15 10:47:35
Checking multilib configuration for libgomp...
Configuring stage 1 in x86_64-unknown-linux-gnu/libgomp
configure: loading cache ./config.cache
checking for --enable-version-specific-runtime-libs... no
checking for --enable-generated-files-in-srcdir... no
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 build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... mawk
checking whether make sets $(MAKE)... yes
checking for x86_64-unknown-linux-gnu-gcc... /home/free/download/codeviz-1.0.12/compilers/gcc-graph/objdir/./gcc/xgcc -B/home/free/download/codeviz-1.0.12/compilers/gcc-graph/objdir/./gcc/ -B/root/gcc-graph/x86_64-unknown-linux-gnu/bin/ -B/root/gcc-graph/x86_64-unknown-linux-gnu/lib/ -isystem /root/gcc-graph/x86_64-unknown-linux-gnu/include -isystem /root/gcc-graph/x86_64-unknown-linux-gnu/sys-include
checking for C compiler default output file name...
configure: error: in `/home/free/download/codeviz-1.0.12/compilers/gcc-graph/objdir/x86_64-unknown-linux-gnu/libgomp':
configure: error: C compiler cannot create executables
See `config.log' for more details.
make[2]: *** [configure-stage1-target-libgomp] 错误 77
make[2]:正在离开目录 `/home/free/download/codeviz-1.0.12/compilers/gcc-graph/objdir'
make[1]: *** [stage1-bubble] 错误 2
make[1]:正在离开目录 `/home/free/download/codeviz-1.0.12/compilers/gcc-graph/objdir'
make: *** [all] 错误 2
...全文
1148 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
nswcfd 2016-11-05
  • 打赏
  • 举报
回复
graph/objdir/./gcc/cc1: error while loading shared libraries: libmpfr.so.1: cannot open shared
wugsh15 2016-11-03
  • 打赏
  • 举报
回复
怎么解决的?
DIY-GEEKER 2014-06-15
  • 打赏
  • 举报
回复
这是我按装GCC 4.6.2的时候出错了,搞了好几个星期了。。。。
DIY-GEEKER 2014-06-15
  • 打赏
  • 举报
回复
| | int | main () | { | | ; | return 0; | } configure:3735: error: in `/home/free/download/codeviz-1.0.12/compilers/gcc-graph/objdir/x86_64-unknown-linux-gnu/libgomp': configure:3739: error: C compiler cannot create executables See `config.log' for more details. ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_build=x86_64-unknown-linux-gnu ac_cv_env_CPPFLAGS_set=set ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_FCFLAGS_set= ac_cv_env_FCFLAGS_value= ac_cv_env_FC_set= ac_cv_env_FC_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=x86_64-unknown-linux-gnu ac_cv_env_host_alias_set=set ac_cv_env_host_alias_value=x86_64-unknown-linux-gnu ac_cv_env_target_alias_set=set ac_cv_env_target_alias_value=x86_64-unknown-linux-gnu ac_cv_host=x86_64-unknown-linux-gnu ac_cv_path_mkdir=/bin/mkdir ac_cv_prog_AWK=mawk ac_cv_prog_CC='/home/free/download/codeviz-1.0.12/compilers/gcc-graph/objdir/./gcc/xgcc -B/home/free/download/codeviz-1.0.12/compilers/gcc-graph /objdir/./gcc/ -B/root/gcc-graph/x86_64-unknown-linux-gnu/bin/ -B/root/gcc-graph/x86_64-unknown-linux-gnu/lib/ -isystem /root/gcc-graph/x86_64-u nknown-linux-gnu/include -isystem /root/gcc-graph/x86_64-unknown-linux-gnu/sys-include ' ac_cv_prog_make_make_set=yes ac_cv_target=x86_64-unknown-linux-gnu ## ----------------- ## ## Output variables. ## ## ----------------- ## ACLOCAL='${SHELL} /home/free/download/codeviz-1.0.12/compilers/gcc-graph/gcc-4.6.2/missing --run aclocal-1.11' AMDEPBACKSLASH='' AMDEP_FALSE='' AMDEP_TRUE='' AMTAR='${SHELL} /home/free/download/codeviz-1.0.12/compilers/gcc-graph/gcc-4.6.2/missing --run tar' AR='ar' AUTOCONF='${SHELL} /home/free/download/codeviz-1.0.12/compilers/gcc-graph/gcc-4.6.2/missing --run autoconf' AUTOHEADER='${SHELL} /home/free/download/codeviz-1.0.12/compilers/gcc-graph/gcc-4.6.2/missing --run autoheader' AUTOMAKE='${SHELL} /home/free/download/codeviz-1.0.12/compilers/gcc-graph/gcc-4.6.2/missing --run automake-1.11' AWK='mawk' BUILD_INFO_FALSE='' BUILD_INFO_TRUE='' CC='/home/free/download/codeviz-1.0.12/compilers/gcc-graph/objdir/./gcc/xgcc -B/home/free/download/codeviz-1.0.12/compilers/gcc-graph/objdir/./g cc/ -B/root/gcc-graph/x86_64-unknown-linux-gnu/bin/ -B/root/gcc-graph/x86_64-unknown-linux-gnu/lib/ -isystem /root/gcc-graph/x86_64-unknown-linu x-gnu/include -isystem /root/gcc-graph/x86_64-unknown-linux-gnu/sys-include ' CCDEPMODE='' CFLAGS='-g -O2' CPP='' CPPFLAGS='' CYGPATH_W='echo' DEFS='' DEPDIR='' DSYMUTIL='' DUMPBIN='' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='' EXEEXT='' FC='' FCFLAGS='' FGREP='' GENINSRC_FALSE='' GENINSRC_TRUE='#' GREP='' INSTALL_DATA='/usr/bin/install -c -m 644' INSTALL_PROGRAM='/usr/bin/install -c' INSTALL_SCRIPT='/usr/bin/install -c' INSTALL_STRIP_PROGRAM='$(install_sh) -c -s' LD='/home/free/download/codeviz-1.0.12/compilers/gcc-graph/objdir/./gcc/collect-ld' LDFLAGS='' LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='' LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE='' LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE='' LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_FALSE='' LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2_TRUE='' LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE='' LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE='' LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='' LIBOBJS='' LIBS='' LIBTOOL='' LIPO='lipo' LN_S='' LTLIBOBJS='' MAINT='' MAINTAINER_MODE_FALSE='' MAINTAINER_MODE_TRUE='' MAKEINFO='/home/free/download/codeviz-1.0.12/compilers/gcc-graph/gcc-4.6.2/missing makeinfo --split-size=5000000 --split-size=5000000' MKDIR_P='/bin/mkdir -p' NM='/home/free/download/codeviz-1.0.12/compilers/gcc-graph/objdir/./gcc/nm' NMEDIT='' OBJDUMP='objdump' OBJEXT='' OMP_LOCK_25_ALIGN='' OMP_LOCK_25_KIND='' OMP_LOCK_25_SIZE='' OMP_LOCK_ALIGN='' OMP_LOCK_KIND='' OMP_LOCK_SIZE='' OMP_NEST_LOCK_25_ALIGN='' OMP_NEST_LOCK_25_KIND='' OMP_NEST_LOCK_25_SIZE='' OMP_NEST_LOCK_ALIGN='' OMP_NEST_LOCK_KIND='' OMP_NEST_LOCK_SIZE='' OPT_LDFLAGS='' OTOOL64='' OTOOL='' PACKAGE='libgomp' PACKAGE_BUGREPORT='' PACKAGE_NAME='GNU OpenMP Runtime Library' PACKAGE_STRING='GNU OpenMP Runtime Library 1.0' PACKAGE_TARNAME='libgomp' PACKAGE_URL='http://www.gnu.org/software/libgomp/' PACKAGE_VERSION='1.0' PATH_SEPARATOR=':' PERL='' RANLIB='ranlib' SECTION_LDFLAGS='' SED='/bin/sed' SET_MAKE='' SHELL='/bin/bash' STRIP='strip' USE_FORTRAN_FALSE='' USE_FORTRAN_TRUE='' VERSION='1.0' XCFLAGS='' XLDFLAGS='' ac_ct_CC='' ac_ct_DUMPBIN='' ac_ct_FC='' am__EXEEXT_FALSE='' am__EXEEXT_TRUE='' am__fastdepCC_FALSE='' am__fastdepCC_TRUE='' am__include='' am__isrc=' -I$(srcdir)' am__leading_dot='.' am__quote='' am__tar='${AMTAR} chof - "$$tardir"' am__untar='${AMTAR} xf -' bindir='${exec_prefix}/bin' build='x86_64-unknown-linux-gnu' build_alias='x86_64-unknown-linux-gnu' build_cpu='x86_64' build_os='linux-gnu' build_vendor='unknown' config_path='' datadir='${datarootdir}' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' dvidir='${docdir}' enable_shared='yes' enable_static='' exec_prefix='NONE' host='x86_64-unknown-linux-gnu' host_alias='x86_64-unknown-linux-gnu' host_cpu='x86_64' host_os='linux-gnu' host_vendor='unknown' htmldir='${docdir}' includedir='${prefix}/include' infodir='${datarootdir}/info' install_sh='${SHELL} /home/free/download/codeviz-1.0.12/compilers/gcc-graph/gcc-4.6.2/install-sh' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' libtool_VERSION='' link_gomp='' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' lt_host_flags='' mandir='${datarootdir}/man' mkdir_p='/bin/mkdir -p' multi_basedir='../../../gcc-4.6.2/libgomp/..' prefix='/root/gcc-graph' program_transform_name='s,y,y,' psdir='${docdir}' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='${prefix}/etc' target='x86_64-unknown-linux-gnu' target_alias='x86_64-unknown-linux-gnu' target_cpu='x86_64' target_os='linux-gnu' target_vendor='unknown' toolexecdir='$(libdir)/gcc-lib/$(target_alias)' toolexeclibdir='$(libdir)/../lib64' ## ----------- ## ## confdefs.h. ## ## ----------- ## /* confdefs.h */ #define PACKAGE_NAME "GNU OpenMP Runtime Library" #define PACKAGE_TARNAME "libgomp" #define PACKAGE_VERSION "1.0" #define PACKAGE_STRING "GNU OpenMP Runtime Library 1.0" #define PACKAGE_BUGREPORT "" #define PACKAGE_URL "http://www.gnu.org/software/libgomp/" #define PACKAGE "libgomp" #define VERSION "1.0" configure: exit 77
DIY-GEEKER 2014-06-15
  • 打赏
  • 举报
回复
/*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 GNU OpenMP Runtime Library configure 1.0, which was generated by GNU Autoconf 2.64. Invocation command line was $ /home/free/download/codeviz-1.0.12/compilers/gcc-graph/gcc-4.6.2/libgomp/configure --cache-file=./config.cache --enable-multilib --prefix=/r oot/gcc-graph --with-gmp=/usr/local/gmp-4.3.2 --with-mpfr=/usr/local/mpfr-2.4.2 --with-mpc=/usr/local/mpc-0.8.1 -enable-shared --enable-language s=c,c++,lto --program-transform-name=s,y,y, --disable-option-checking --with-target-subdir=x86_64-unknown-linux-gnu --build=x86_64-unknown-linux -gnu --host=x86_64-unknown-linux-gnu --target=x86_64-unknown-linux-gnu --srcdir=../../../gcc-4.6.2/libgomp --disable-intermodule --enable-checki ng=yes,types --disable-coverage --enable-languages=c,lto ## --------- ## ## Platform. ## ## --------- ## hostname = ubuntu uname -m = x86_64 uname -r = 3.5.0-23-generic uname -s = Linux uname -v = #35~precise1-Ubuntu SMP Fri Jan 25 17:13:26 UTC 2013 /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 PATH: /opt/EmbedSky/4.3.3/bin ## ----------- ## ## Core tests. ## ## ----------- ## configure:2461: loading cache ./config.cache configure:2552: checking for --enable-version-specific-runtime-libs configure:2567: result: no configure:2575: checking for --enable-generated-files-in-srcdir configure:2590: result: no configure:2647: checking build system type configure:2661: result: x86_64-unknown-linux-gnu configure:2681: checking host system type configure:2694: result: x86_64-unknown-linux-gnu configure:2714: checking target system type configure:2727: result: x86_64-unknown-linux-gnu configure:2784: checking for a BSD-compatible install configure:2852: result: /usr/bin/install -c configure:2863: checking whether build environment is sane configure:2913: result: yes configure:3054: checking for a thread-safe mkdir -p configure:3093: result: /bin/mkdir -p configure:3106: checking for gawk configure:3133: result: mawk configure:3144: checking whether make sets $(MAKE) configure:3166: result: yes configure:3330: checking for x86_64-unknown-linux-gnu-gcc configure:3357: result: /home/free/download/codeviz-1.0.12/compilers/gcc-graph/objdir/./gcc/xgcc -B/home/free/download/codeviz-1.0.12/compilers/ gcc-graph/objdir/./gcc/ -B/root/gcc-graph/x86_64-unknown-linux-gnu/bin/ -B/root/gcc-graph/x86_64-unknown-linux-gnu/lib/ -isystem /root/gcc-graph /x86_64-unknown-linux-gnu/include -isystem /root/gcc-graph/x86_64-unknown-linux-gnu/sys-include configure:3626: checking for C compiler version configure:3635: /home/free/download/codeviz-1.0.12/compilers/gcc-graph/objdir/./gcc/xgcc -B/home/free/download/codeviz-1.0.12/compilers/gcc-grap h/objdir/./gcc/ -B/root/gcc-graph/x86_64-unknown-linux-gnu/bin/ -B/root/gcc-graph/x86_64-unknown-linux-gnu/lib/ -isystem /root/gcc-graph/x86_64- unknown-linux-gnu/include -isystem /root/gcc-graph/x86_64-unknown-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:3646: $? = 0 configure:3635: /home/free/download/codeviz-1.0.12/compilers/gcc-graph/objdir/./gcc/xgcc -B/home/free/download/codeviz-1.0.12/compilers/gcc-grap h/objdir/./gcc/ -B/root/gcc-graph/x86_64-unknown-linux-gnu/bin/ -B/root/gcc-graph/x86_64-unknown-linux-gnu/lib/ -isystem /root/gcc-graph/x86_64- unknown-linux-gnu/include -isystem /root/gcc-graph/x86_64-unknown-linux-gnu/sys-include -v >&5 Reading specs from /home/free/download/codeviz-1.0.12/compilers/gcc-graph/objdir/./gcc/specs COLLECT_GCC=/home/free/download/codeviz-1.0.12/compilers/gcc-graph/objdir/./gcc/xgcc COLLECT_LTO_WRAPPER=/home/free/download/codeviz-1.0.12/compilers/gcc-graph/objdir/./gcc/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../gcc-4.6.2/configure --prefix=/root/gcc-graph --with-gmp=/usr/local/gmp-4.3.2 --with-mpfr=/usr/local/mpfr-2.4.2 --with-mpc=/u sr/local/mpc-0.8.1 -enable-shared --enable-languages=c,c++ Thread model: posix gcc version 4.6.2 (GCC) configure:3646: $? = 0 configure:3635: /home/free/download/codeviz-1.0.12/compilers/gcc-graph/objdir/./gcc/xgcc -B/home/free/download/codeviz-1.0.12/compilers/gcc-grap h/objdir/./gcc/ -B/root/gcc-graph/x86_64-unknown-linux-gnu/bin/ -B/root/gcc-graph/x86_64-unknown-linux-gnu/lib/ -isystem /root/gcc-graph/x86_64- unknown-linux-gnu/include -isystem /root/gcc-graph/x86_64-unknown-linux-gnu/sys-include -V >&5 xgcc: error: unrecognized option '-V' xgcc: fatal error: no input files compilation terminated. configure:3646: $? = 1 configure:3635: /home/free/download/codeviz-1.0.12/compilers/gcc-graph/objdir/./gcc/xgcc -B/home/free/download/codeviz-1.0.12/compilers/gcc-grap h/objdir/./gcc/ -B/root/gcc-graph/x86_64-unknown-linux-gnu/bin/ -B/root/gcc-graph/x86_64-unknown-linux-gnu/lib/ -isystem /root/gcc-graph/x86_64- unknown-linux-gnu/include -isystem /root/gcc-graph/x86_64-unknown-linux-gnu/sys-include -qversion >&5 xgcc: error: unrecognized option '-qversion' xgcc: fatal error: no input files compilation terminated. configure:3646: $? = 1 configure:3666: checking for C compiler default output file name configure:3688: /home/free/download/codeviz-1.0.12/compilers/gcc-graph/objdir/./gcc/xgcc -B/home/free/download/codeviz-1.0.12/compilers/gcc-grap h/objdir/./gcc/ -B/root/gcc-graph/x86_64-unknown-linux-gnu/bin/ -B/root/gcc-graph/x86_64-unknown-linux-gnu/lib/ -isystem /root/gcc-graph/x86_64- unknown-linux-gnu/include -isystem /root/gcc-graph/x86_64-unknown-linux-gnu/sys-include -g -O2 conftest.c >&5 /home/free/download/codeviz-1.0.12/compilers/gcc-graph/objdir/./gcc/cc1: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory configure:3692: $? = 1 configure:3729: result: configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "GNU OpenMP Runtime Library" | #define PACKAGE_TARNAME "libgomp" #define PACKAGE_VERSION "1.0" | #define PACKAGE_STRING "GNU OpenMP Runtime Library 1.0" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "http://www.gnu.org/software/libgomp/" | #define PACKAGE "libgomp" | #define VERSION "1.0" | /* end confdefs.h. */

18,773

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 专题技术讨论区
社区管理员
  • 专题技术讨论区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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