当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 2 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 求助:安装arm-linux交叉编译工具链gcc时出错
帖子发表于 : 2009-08-03 19:25 

注册: 2008-11-28 13:29
帖子: 25
送出感谢: 1
接收感谢: 0 次
为安装glibc,先安装gcc4.4.1辅助编译器

用的命令为:a@ubuntu:~/gcc-4.4.1/aaa$../configure --target=arm-linux --prefix=/usr/local/arm/4.4.0 --with-headers=~/linux-2.6.30.4/include --disable-shared --disable-threads --enable-languages="c"

此时正常,make时出现错误:
checking for C compiler default output file name... configure: error: in `/home/a/gcc-4.4.1/aaa/arm-linux/libmudflap':
configure: error: C compiler cannot create executables
See `config.log' for more details.
make[1]: *** [configure-target-libmudflap] 错误 1
make[1]:正在离开目录 `/home/a/gcc-4.4.1/aaa'
make: *** [all] 错误 2

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 libmudflap configure 1.0, which was
generated by GNU Autoconf 2.59. Invocation command line was

$ /home/a/gcc-4.4.1/libmudflap/configure --cache-file=./config.cache --enable-multilib --with-cross-host=i686-pc-linux-gnu --prefix=/usr/local/arm/4.4.0 --with-headers=~/linux-2.6.30.4/include --disable-shared --disable-threads --enable-languages=c --program-transform-name=s,^,arm-linux-, --with-target-subdir=arm-linux --build=i686-pc-linux-gnu --host=arm-linux --target=arm-linux --srcdir=../../../libmudflap

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

hostname = ubuntu
uname -m = i686
uname -r = 2.6.28-14-generic
uname -s = Linux
uname -v = #47-Ubuntu SMP Sat Jul 25 00:28:35 UTC 2009

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

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
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: /usr/local/jre1.6.0_14/bin
PATH: /usr/local/arm/4.4.0/bin


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

configure:1384: creating cache ./config.cache
configure:1518: checking build system type
configure:1536: result: i686-pc-linux-gnu
configure:1544: checking host system type
configure:1558: result: arm-unknown-linux-gnu
configure:1566: checking target system type
configure:1580: result: arm-unknown-linux-gnu
configure:1627: checking for a BSD-compatible install
configure:1693: result: /usr/bin/install -c
configure:1704: checking whether build environment is sane
configure:1747: result: yes
configure:1812: checking for gawk
configure:1841: result: no
configure:1812: checking for mawk
configure:1828: found /usr/bin/mawk
configure:1838: result: mawk
configure:1848: checking whether make sets $(MAKE)
configure:1868: result: yes
configure:1944: checking for arm-linux-strip
configure:1970: result: /usr/local/arm/4.4.0/arm-linux/bin/strip
configure:2037: checking for --enable-version-specific-runtime-libs
configure:2052: result: no
configure:2055: checking whether to enable maintainer-specific portions of Makefiles
configure:2064: result: no
configure:2148: checking for arm-linux-gcc
configure:2174: result: /home/a/gcc-4.4.1/aaa/./gcc/xgcc -B/home/a/gcc-4.4.1/aaa/./gcc/ -B/usr/local/arm/4.4.0/arm-linux/bin/ -B/usr/local/arm/4.4.0/arm-linux/lib/ -isystem /usr/local/arm/4.4.0/arm-linux/include -isystem /usr/local/arm/4.4.0/arm-linux/sys-include
configure:2458: checking for C compiler version
configure:2461: /home/a/gcc-4.4.1/aaa/./gcc/xgcc -B/home/a/gcc-4.4.1/aaa/./gcc/ -B/usr/local/arm/4.4.0/arm-linux/bin/ -B/usr/local/arm/4.4.0/arm-linux/lib/ -isystem /usr/local/arm/4.4.0/arm-linux/include -isystem /usr/local/arm/4.4.0/arm-linux/sys-include --version </dev/null >&5
xgcc (GCC) 4.4.1
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:2464: $? = 0
configure:2466: /home/a/gcc-4.4.1/aaa/./gcc/xgcc -B/home/a/gcc-4.4.1/aaa/./gcc/ -B/usr/local/arm/4.4.0/arm-linux/bin/ -B/usr/local/arm/4.4.0/arm-linux/lib/ -isystem /usr/local/arm/4.4.0/arm-linux/include -isystem /usr/local/arm/4.4.0/arm-linux/sys-include -v </dev/null >&5
Reading specs from /home/a/gcc-4.4.1/aaa/./gcc/specs
Target: arm-linux
Configured with: ../configure --target=arm-linux --prefix=/usr/local/arm/4.4.0 --with-headers='~/linux-2.6.30.4/include' --disable-shared --disable-threads --enable-languages=c
Thread model: single
gcc version 4.4.1 (GCC)
configure:2469: $? = 0
configure:2471: /home/a/gcc-4.4.1/aaa/./gcc/xgcc -B/home/a/gcc-4.4.1/aaa/./gcc/ -B/usr/local/arm/4.4.0/arm-linux/bin/ -B/usr/local/arm/4.4.0/arm-linux/lib/ -isystem /usr/local/arm/4.4.0/arm-linux/include -isystem /usr/local/arm/4.4.0/arm-linux/sys-include -V </dev/null >&5
xgcc: '-V' must come at the start of the command line
configure:2474: $? = 1
configure:2497: checking for C compiler default output file name
configure:2500: /home/a/gcc-4.4.1/aaa/./gcc/xgcc -B/home/a/gcc-4.4.1/aaa/./gcc/ -B/usr/local/arm/4.4.0/arm-linux/bin/ -B/usr/local/arm/4.4.0/arm-linux/lib/ -isystem /usr/local/arm/4.4.0/arm-linux/include -isystem /usr/local/arm/4.4.0/arm-linux/sys-include -g -O2 conftest.c >&5
/usr/local/arm/4.4.0/arm-linux/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:2503: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "libmudflap"
| #define PACKAGE_TARNAME "libmudflap"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "libmudflap 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "libmudflap"
| #define VERSION "1.0"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2541: error: in `/home/a/gcc-4.4.1/aaa/arm-linux/libmudflap':
configure:2544: 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_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_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=arm-linux
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=arm-linux
ac_cv_host=arm-unknown-linux-gnu
ac_cv_host_alias=arm-linux
ac_cv_prog_AWK=mawk
ac_cv_prog_CC='/home/a/gcc-4.4.1/aaa/./gcc/xgcc -B/home/a/gcc-4.4.1/aaa/./gcc/ -B/usr/local/arm/4.4.0/arm-linux/bin/ -B/usr/local/arm/4.4.0/arm-linux/lib/ -isystem /usr/local/arm/4.4.0/arm-linux/include -isystem /usr/local/arm/4.4.0/arm-linux/sys-include'
ac_cv_prog_STRIP=/usr/local/arm/4.4.0/arm-linux/bin/strip
ac_cv_prog_make_make_set=yes
ac_cv_target=arm-unknown-linux-gnu
ac_cv_target_alias=arm-linux

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

ACLOCAL='${SHELL} /home/a/gcc-4.4.1/missing --run aclocal-1.9'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /home/a/gcc-4.4.1/missing --run tar'
AR='/usr/local/arm/4.4.0/arm-linux/bin/ar'
AUTOCONF='${SHELL} /home/a/gcc-4.4.1/missing --run autoconf'
AUTOHEADER='${SHELL} /home/a/gcc-4.4.1/missing --run autoheader'
AUTOMAKE='${SHELL} /home/a/gcc-4.4.1/missing --run automake-1.9'
AWK='mawk'
CC='/home/a/gcc-4.4.1/aaa/./gcc/xgcc -B/home/a/gcc-4.4.1/aaa/./gcc/ -B/usr/local/arm/4.4.0/arm-linux/bin/ -B/usr/local/arm/4.4.0/arm-linux/lib/ -isystem /usr/local/arm/4.4.0/arm-linux/include -isystem /usr/local/arm/4.4.0/arm-linux/sys-include'
CCDEPMODE=''
CFLAGS='-g -O2 '
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FGREP=''
GREP=''
INSTALL_DATA='/usr/bin/install -c -m 644'
INSTALL_PROGRAM='/usr/bin/install -c'
INSTALL_SCRIPT='/usr/bin/install -c'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LD='/home/a/gcc-4.4.1/aaa/./gcc/collect-ld'
LIBMUDFLAPTH_FALSE=''
LIBMUDFLAPTH_TRUE=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIPO='arm-linux-lipo'
LN_S=''
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='/home/a/gcc-4.4.1/missing makeinfo --split-size=5000000'
MF_HAVE_STDINT_H=''
MF_HAVE_UINTPTR_T=''
NM='/home/a/gcc-4.4.1/aaa/./gcc/nm'
NMEDIT=''
OBJDUMP='/usr/local/arm/4.4.0/arm-linux/bin/objdump'
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE='libmudflap'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='libmudflap'
PACKAGE_STRING='libmudflap 1.0'
PACKAGE_TARNAME='libmudflap'
PACKAGE_VERSION='1.0'
PATH_SEPARATOR=':'
RANLIB='/usr/local/arm/4.4.0/arm-linux/bin/ranlib'
SECTION_FLAGS=''
SED=''
SET_MAKE=''
SHELL='/bin/bash'
STRIP='/usr/local/arm/4.4.0/arm-linux/bin/strip'
VERSION='1.0'
ac_ct_AR=''
ac_ct_CC=''
ac_ct_DSYMUTIL=''
ac_ct_DUMPBIN=''
ac_ct_LIPO=''
ac_ct_NM=''
ac_ct_NMEDIT=''
ac_ct_OBJDUMP=''
ac_ct_OTOOL64=''
ac_ct_OTOOL=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias='i686-pc-linux-gnu'
build_cpu='i686'
build_libmudflapth=''
build_os='linux-gnu'
build_vendor='pc'
datadir='${prefix}/share'
enable_shared='no'
enable_static=''
exec_prefix='NONE'
host='arm-unknown-linux-gnu'
host_alias='arm-linux'
host_cpu='arm'
host_os='linux-gnu'
host_vendor='unknown'
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/home/a/gcc-4.4.1/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
lt_ECHO='echo'
mandir='${prefix}/man'
mkdir_p='mkdir -p --'
multi_basedir='../../../libmudflap/..'
oldincludedir='/usr/include'
prefix='/usr/local/arm/4.4.0'
program_transform_name='s,^,arm-linux-,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='arm-unknown-linux-gnu'
target_alias='arm-linux'
target_cpu='arm'
target_noncanonical='arm-linux'
target_os='linux-gnu'
target_vendor='unknown'
toolexecdir=''
toolexeclibdir=''

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

#define PACKAGE "libmudflap"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME "libmudflap"
#define PACKAGE_STRING "libmudflap 1.0"
#define PACKAGE_TARNAME "libmudflap"
#define PACKAGE_VERSION "1.0"
#define VERSION "1.0"

configure: exit 77

不知何解,请教高手们。


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 求助:安装arm-linux交叉编译工具链gcc时出错
帖子发表于 : 2009-08-06 17:22 

注册: 2008-11-28 13:29
帖子: 25
送出感谢: 1
接收感谢: 0 次
自己顶顶


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 2 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 3 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译