[xiange] 编译完eglibc后,原先/tools/bin目录下能正常使用的GCC也无法使用了

  • From: echo jonsk <jonsk.echo@xxxxxxxxx>
  • To: 弦歌Linux-邮件列表 <xiange@xxxxxxxxxxxxx>
  • Date: Thu, 15 Jul 2010 09:35:48 +0800

出错信息如下:

./build执行出错信息如下:

[5/32] build P015tcl...
unpack tcl8.5.7-src.tar.gz to /mnt/xgstage0/xgstage0/../tmp/xgstage0...
/mnt/xgstage0/tmp/xgstage0/tcl8.5.7 /mnt/xgstage0/xgstage0
/tools/bin:/bin:/usr/bin
make: *** No targets specified and no makefile found.  Stop.
[Error] make tcl8.5.7 failed.
*** build P015tcl failed.
build tools failed.

手动编译出错信息:

NAS 09:31:33 unix # export PATH=/tools/bin:/bin:/usr/bin
NAS 09:31:48 unix # ./configure
checking whether to use symlinks for manpages... no
checking whether to compress the manpages... no
checking whether to add a package name suffix for the manpages... no
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C
compiler cannot create executables
See `config.log' for more details.

付上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 tcl configure 8.5, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ ./configure

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

hostname = NAS
uname -m = mips64
uname -r = 2.6.30-fuloong2f
uname -s = Linux
uname -v = #1 PREEMPT Tue Sep 29 21:25:07 CST 2009

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

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

PATH: /tools/bin
PATH: /bin
PATH: /usr/bin


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

configure:1360: checking whether to use symlinks for manpages
configure:1369: result: no
configure:1372: checking whether to compress the manpages
configure:1387: result: no
configure:1401: checking whether to add a package name suffix for the
manpages
configure:1414: result: no
configure:1476: checking for gcc
configure:1492: found /tools/bin/gcc
configure:1502: result: gcc
configure:1746: checking for C compiler version
configure:1749: gcc --version </dev/null >&5
gcc (GCC) 4.3.2
Copyright (C) 2008 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:1752: $? = 0
configure:1754: gcc -v </dev/null >&5
Using built-in specs.
Target: mips64el-unknown-linux-gnu
Configured with: ../gcc-4.3.2/configure --prefix=/tools
--with-local-prefix=/tools --disable-nls --disable-shared --without-headers
--with-newlib --disable-decimal-float --disable-threads --enable-languages=c
--disable-multilib --disable-libmudflap --disable-bootstrap
--disable-libgomp --disable-libssp
Thread model: single
gcc version 4.3.2 (GCC)
configure:1757: $? = 0
configure:1759: gcc -V </dev/null >&5
gcc: '-V' option must have argument
configure:1762: $? = 1
configure:1785: checking for C compiler default output file name
configure:1788: gcc    conftest.c  >&5
gcc: Internal error: Segmentation fault (program as)
Please submit a full bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
configure:1791: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "tcl"
| #define PACKAGE_TARNAME "tcl"
| #define PACKAGE_VERSION "8.5"
| #define PACKAGE_STRING "tcl 8.5"
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:1830: error: C compiler cannot create executables
See `config.log' for more details.

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

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_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_prog_ac_ct_CC=gcc

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

AR=''
BUILD_DLTEST=''
CC='gcc'
CC_SEARCH_FLAGS=''
CFG_TCL_EXPORT_FILE_SUFFIX=''
CFG_TCL_SHARED_LIB_SUFFIX=''
CFG_TCL_UNSHARED_LIB_SUFFIX=''
CFLAGS=''
CFLAGS_DEBUG=''
CFLAGS_DEFAULT=''
CFLAGS_OPTIMIZE=''
CFLAGS_WARNING=''
CPP=''
CPPFLAGS=''
DEFS=''
DLTEST_LD=''
DLTEST_SUFFIX=''
DL_LIBS=''
DL_OBJS=''
DTRACE=''
DTRACE_HDR=''
DTRACE_OBJ=''
DTRACE_SRC=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
EXTRA_APP_CC_SWITCHES=''
EXTRA_BUILD_HTML=''
EXTRA_CC_SWITCHES=''
EXTRA_INSTALL=''
EXTRA_INSTALL_BINARIES=''
EXTRA_TCLSH_LIBS=''
HTML_DIR=''
INSTALL_LIB=''
INSTALL_STUB_LIB=''
INSTALL_TZDATA=''
LDAIX_SRC=''
LDFLAGS=''
LDFLAGS_DEBUG=''
LDFLAGS_DEFAULT=''
LDFLAGS_OPTIMIZE=''
LD_LIBRARY_PATH_VAR=''
LD_SEARCH_FLAGS=''
LIBOBJS=''
LIBS=''
MAKEFILE_SHELL=''
MAKE_LIB=''
MAKE_STUB_LIB=''
MAN_FLAGS=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME='tcl'
PACKAGE_STRING='tcl 8.5'
PACKAGE_TARNAME='tcl'
PACKAGE_VERSION='8.5'
PATH_SEPARATOR=':'
PLAT_OBJS=''
PLAT_SRCS=''
PRIVATE_INCLUDE_DIR=''
RANLIB=''
SHELL='/bin/sh'
SHLIB_CFLAGS=''
SHLIB_LD=''
SHLIB_LD_LIBS=''
SHLIB_SUFFIX=''
STLIB_LD=''
TCL_BUILD_EXP_FILE=''
TCL_BUILD_LIB_SPEC=''
TCL_BUILD_STUB_LIB_PATH=''
TCL_BUILD_STUB_LIB_SPEC=''
TCL_EXP_FILE=''
TCL_HAS_LONGLONG=''
TCL_INCLUDE_SPEC=''
TCL_LIBRARY=''
TCL_LIBS=''
TCL_LIB_FILE=''
TCL_LIB_FLAG=''
TCL_LIB_SPEC=''
TCL_LIB_VERSIONS_OK=''
TCL_MAJOR_VERSION='8'
TCL_MINOR_VERSION='5'
TCL_MODULE_PATH=''
TCL_NEEDS_EXP_FILE=''
TCL_PACKAGE_PATH=''
TCL_PATCH_LEVEL='.7'
TCL_SHARED_BUILD=''
TCL_SHARED_LIB_SUFFIX=''
TCL_SHLIB_LD_EXTRAS=''
TCL_SRC_DIR='/mnt/xgstage0/tmp/xgstage0/tcl8.5.7'
TCL_STUB_LIB_FILE=''
TCL_STUB_LIB_FLAG=''
TCL_STUB_LIB_PATH=''
TCL_STUB_LIB_SPEC=''
TCL_THREADS=''
TCL_UNSHARED_LIB_SUFFIX=''
TCL_VERSION='8.5'
TCL_YEAR=''
TK_SHLIB_LD_EXTRAS=''
ac_ct_CC='gcc'
ac_ct_RANLIB=''
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${prefix}/share'
exec_prefix='/usr/local'
host_alias=''
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/local'
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 "tcl"
#define PACKAGE_STRING "tcl 8.5"
#define PACKAGE_TARNAME "tcl"
#define PACKAGE_VERSION "8.5"

configure: exit 77

Other related posts:

  • » [xiange] 编译完eglibc后,原先/tools/bin目录下能正常使用的GCC也无法使用了 - echo jonsk