|
发表于 2008-8-1 13:55:14
|
显示全部楼层
为什么我现在不能编译源码了?
configure时候提示:error: C compiler cannot create executables
环境:rc1 cd版,昨天安装QQ for linux,照帖子更新gcc到4.2的
是不是gcc还需要更多的升级文件
下面是log文件
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by advance configure source, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ ./configure --prefix=/usr/advansemame
## --------- ##
## Platform. ##
## --------- ##
hostname = MagicLinux-fjw
uname -m = i686
uname -r = 2.6.25.10-smp
uname -s = Linux
uname -v = #1 SMP Tue Jul 8 16:20:12 CST 2008
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/lib/qt-3.3/bin
PATH: /usr/kerberos/sbin
PATH: /usr/kerberos/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/bin
PATH: /usr/X11R6/bin
PATH: /usr/java/jre1.6.0_04/bin
PATH: /root/bin
PATH: /usr/java/jre1.6.0_04/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1404: checking build system type
configure:1422: result: i686-pc-linux-gnu
configure:1430: checking host system type
configure:1444: result: i686-pc-linux-gnu
configure:1605: checking for gcc
configure:1621: found /usr/bin/gcc
configure:1631: result: gcc
configure:1875: checking for C compiler version
configure:1878: gcc --version </dev/null >&5
gcc (GCC) 4.2.4 20080519 (Red Hat 4.2.4-2mgc)
Copyright (C) 2007 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:1881: $? = 0
configure:1883: gcc -v </dev/null >&5
Using built-in specs.
Target: i686-magic-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --disable-libjava-multilib --with-cpu=generic --host=i686-magic-linux --build=i686-magic-linux --target=i686-magic-linux
Thread model: posix
gcc version 4.2.4 20080519 (Red Hat 4.2.4-2mgc)
configure:1886: $? = 0
configure:1888: gcc -V </dev/null >&5
gcc: '-V' option must have argument
configure:1891: $? = 1
configure:1914: checking for C compiler default output file name
configure:1917: gcc conftest.c >&5
gcc: error trying to exec 'cc1': execvp: No such file or directory
configure:1920: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "advance"
| #define PACKAGE_TARNAME "advance"
| #define PACKAGE_VERSION "source"
| #define PACKAGE_STRING "advance source"
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:1959: error: C compiler cannot create executables
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=i686-pc-linux-gnu
ac_cv_build_alias=i686-pc-linux-gnu
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_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=i686-pc-linux-gnu
ac_cv_host_alias=i686-pc-linux-gnu
ac_cv_prog_ac_ct_CC=gcc
## ----------------- ##
## Output variables. ##
## ----------------- ##
ALLOCA=''
AR=''
ASM=''
ASMFLAGS='-f elf'
CC='gcc'
CC_FOR_BUILD=''
CFLAGS=''
CFLAGS_FOR_BUILD='-O0 -DUSE_COMPILER_GNUC -DUSE_OBJ_ELF -DUSE_OS_UNIX'
CONF_BUILD='linux'
CONF_CFLAGS_ARCH=''
CONF_CFLAGS_OPT=''
CONF_DEBUG=''
CONF_DEBUGGER=''
CONF_EMU=''
CONF_HOST='linux'
CONF_LDFLAGS=''
CONF_LIB_ALSA=''
CONF_LIB_DIRECT=''
CONF_LIB_EXPAT=''
CONF_LIB_FB=''
CONF_LIB_FREETYPE=''
CONF_LIB_JEVENT=''
CONF_LIB_JRAW=''
CONF_LIB_KEVENT=''
CONF_LIB_KRAW=''
CONF_LIB_MCPN=''
CONF_LIB_MEVENT=''
CONF_LIB_MRAW=''
CONF_LIB_MRAWINPUT=''
CONF_LIB_NCURSES=''
CONF_LIB_OSS=''
CONF_LIB_PTHREAD=''
CONF_LIB_SDL=''
CONF_LIB_SLANG=''
CONF_LIB_SVGALIB=''
CONF_LIB_SVGAWIN=''
CONF_LIB_ZLIB=''
CONF_SYSTEM='unix'
CP=''
CPP=''
CPPFLAGS=''
CXX=''
CXXFLAGS=''
CXX_FOR_BUILD=''
DEFS=''
ECHO=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXE=''
EXEEXT=''
EXE_FOR_BUILD=''
FREETYPECFLAGS=''
FREETYPELIBS=''
GZIP=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LN_S=''
LTLIBOBJS=''
MKDIR=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME='advance'
PACKAGE_STRING='advance source'
PACKAGE_TARNAME='advance'
PACKAGE_VERSION='source'
PATH_SEPARATOR=':'
RC=''
RM=''
SDLCFLAGS=''
SDLLIBS=''
SHELL='/bin/sh'
TAR=''
ZIP=''
ac_ct_AR=''
ac_ct_CC='gcc'
ac_ct_CXX=''
ac_ct_RC=''
ac_lib_freetype_config=''
ac_lib_sdl_config=''
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='${prefix}/share'
exec_prefix='NONE'
host='i686-pc-linux-gnu'
host_alias=''
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
includedir='${prefix}/include'
infodir='${prefix}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='/usr/advansemame'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME "advance"
#define PACKAGE_STRING "advance source"
#define PACKAGE_TARNAME "advance"
#define PACKAGE_VERSION "source"
configure: exit 77
[ 本帖最后由 fang3307 于 2008-8-1 13:59 编辑 ] |
|