当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 3 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : [问题]smart2200 交叉编译minigui 时出现错误
帖子发表于 : 2008-08-24 10:37 

注册: 2008-07-24 21:30
帖子: 11
地址: 南京大学
送出感谢: 0 次
接收感谢: 0 次
过程如下
root@abcd:/home/a# cd /home/minigui/lib*
root@abcd:/home/minigui/libminigui-str-1.6.2# chmod 777 buildlib-smartarm2200
root@abcd:/home/minigui/libminigui-str-1.6.2# ./autogen.sh
root@abcd:/home/minigui/libminigui-str-1.6.2# ./buildlib-smartarm2200
checking build system type... i386-pc-linux-gnu
checking host system type... arm-elf-linux-gnu
checking target system type... arm-elf-linux-gnu
checking for arm-elf-linux-gcc... arm-elf-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 configure, which was
generated by GNU Autoconf 2.61. Invocation command line was

$ ./configure --prefix=/home/minigui_lib --build=i386-linux --host=arm-elf-linux --target=arm-elf-linux --disable-shared --disable-lite --disable-standalone --with-osname=uclinux --with-style=pc3d --disable-newgal --enable-nativegal --disable-cursor --disable-micemoveable --enable-galfbcon --enable-fblin16 --disable-textmode --enable-dummyial --disable-nativeial --disable-qvfbial --disable-latin9support --disable-big5support --disable-savebitmap --disable-imegb2312 --disable-jpgsupport --disable-pngsupport --disable-aboutdlg --disable-savescreen --enable-tinyscreen

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

hostname = abcd
uname -m = i686
uname -r = 2.6.24-21-generic
uname -s = Linux
uname -v = #1 SMP Tue Aug 12 13:37:22 UTC 2008

/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:2102: checking build system type
configure:2120: result: i386-pc-linux-gnu
configure:2142: checking host system type
configure:2157: result: arm-elf-linux-gnu
configure:2179: checking target system type
configure:2194: result: arm-elf-linux-gnu
configure:2231: checking for arm-elf-linux-gcc
configure:2258: result: arm-elf-gcc
configure:2536: checking for C compiler version
configure:2543: arm-elf-gcc --version >&5
2.95.3
configure:2546: $? = 0
configure:2553: arm-elf-gcc -v >&5
Reading specs from /usr/local/lib/gcc-lib/arm-elf/2.95.3/specs
gcc version 2.95.3 20010315 (release)(ColdFire patches - 20010318 from http://fiddes.net/coldfire/)(uClinux XIP and shared lib patches from http://www.snapgear.com/)
configure:2556: $? = 0
configure:2563: arm-elf-gcc -V >&5
arm-elf-gcc: argument to `-V' is missing
configure:2566: $? = 1
configure:2589: checking for C compiler default output file name
configure:2616: arm-elf-gcc -Os -g -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/usr/src/uClinux-dist/lib/uClibc/include -I/usr/src/uClinux-dist/lib/libm -I/usr/src/uClinux-dist/lib/libcrypt_old -I/usr/src/uClinux-dist -fno-builtin -nostartfiles -D__PIC__ -fpic -msingle-pic-base -I/usr/src/uClinux-dist/linux-2.4.x/include -Wl,-elf2flt -static -L/usr/src/uClinux-dist/lib/uClibc/. -L/usr/src/uClinux-dist/lib/uClibc/lib -L//usr/src/uClinux-dist/lib/libm -L//usr/src/uClinux-dist/lib/libnet -L//usr/src/uClinux-dist/lib/libdes -L//usr/src/uClinux-dist/lib/libaes -L//usr/src/uClinux-dist/lib/libpcap -L//usr/src/uClinux-dist/lib/libcrypt_old -L//usr/src/uClinux-dist/lib/libssl -L//usr/src/uClinux-dist/lib/zlib -lc conftest.c >&5
/usr/local/arm-elf/bin/ld.real: warning: cannot find entry symbol _start; defaulting to 00000000
configure:2619: $? = 0
configure:2657: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2664: error: C compiler cannot create executables
See `config.log' for more details.

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

ac_cv_build=i386-pc-linux-gnu
ac_cv_env_CC_set=set
ac_cv_env_CC_value=arm-elf-gcc
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-Os -g -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/usr/src/uClinux-dist/lib/uClibc/include -I/usr/src/uClinux-dist/lib/libm -I/usr/src/uClinux-dist/lib/libcrypt_old -I/usr/src/uClinux-dist -fno-builtin -nostartfiles -D__PIC__ -fpic -msingle-pic-base -I/usr/src/uClinux-dist/linux-2.4.x/include '
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=set
ac_cv_env_LDFLAGS_value='-Wl,-elf2flt -static -L/usr/src/uClinux-dist/lib/uClibc/. -L/usr/src/uClinux-dist/lib/uClibc/lib -L//usr/src/uClinux-dist/lib/libm -L//usr/src/uClinux-dist/lib/libnet -L//usr/src/uClinux-dist/lib/libdes -L//usr/src/uClinux-dist/lib/libaes -L//usr/src/uClinux-dist/lib/libpcap -L//usr/src/uClinux-dist/lib/libcrypt_old -L//usr/src/uClinux-dist/lib/libssl -L//usr/src/uClinux-dist/lib/zlib -lc '
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=i386-linux
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=arm-elf-linux
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=arm-elf-linux
ac_cv_host=arm-elf-linux-gnu
ac_cv_prog_CC=arm-elf-gcc
ac_cv_target=arm-elf-linux-gnu

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

ACLOCAL=''
ALLOCA=''
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR=''
AUTOCONF=''
AUTOHEADER=''
AUTOMAKE=''
AWK=''
CC='arm-elf-gcc'
CCDEPMODE=''
CFLAGS='-Os -g -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/usr/src/uClinux-dist/lib/uClibc/include -I/usr/src/uClinux-dist/lib/libm -I/usr/src/uClinux-dist/lib/libcrypt_old -I/usr/src/uClinux-dist -fno-builtin -nostartfiles -D__PIC__ -fpic -msingle-pic-base -I/usr/src/uClinux-dist/linux-2.4.x/include '
CPP=''
CPPFLAGS=''
CYGPATH_W=''
DEFS=''
DEPDIR=''
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FLAT_WINDOW_STYLE_FALSE=''
FLAT_WINDOW_STYLE_TRUE=''
GREP=''
IME_GB2312_SUPPORT_FALSE=''
IME_GB2312_SUPPORT_TRUE=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
INSTALL_STRIP_PROGRAM=''
LDFLAGS='-Wl,-elf2flt -static -L/usr/src/uClinux-dist/lib/uClibc/. -L/usr/src/uClinux-dist/lib/uClibc/lib -L//usr/src/uClinux-dist/lib/libm -L//usr/src/uClinux-dist/lib/libnet -L//usr/src/uClinux-dist/lib/libdes -L//usr/src/uClinux-dist/lib/libaes -L//usr/src/uClinux-dist/lib/libpcap -L//usr/src/uClinux-dist/lib/libcrypt_old -L//usr/src/uClinux-dist/lib/libssl -L//usr/src/uClinux-dist/lib/zlib -lc '
LIBOBJS=''
LIBS=''
LIBTOOL=''
LITE_VERSION_FALSE=''
LITE_VERSION_TRUE=''
LN_S=''
LTLIBOBJS=''
LT_AGE='0'
LT_CURRENT='2'
LT_RELEASE='1.6'
LT_REVISION='0'
MAKEINFO=''
MiniGUI_BINARY_AGE='0'
MiniGUI_INTERFACE_AGE='0'
MiniGUI_MAJOR_VERSION='1'
MiniGUI_MICRO_VERSION='2'
MiniGUI_MINOR_VERSION='6'
MiniGUI_VERSION='1.6.2'
NATIVE_IAL_ENGINE_FALSE=''
NATIVE_IAL_ENGINE_TRUE=''
OBJEXT=''
PACKAGE=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PC3D_WINDOW_STYLE_FALSE=''
PC3D_WINDOW_STYLE_TRUE=''
PHONE_WINDOW_STYLE_FALSE=''
PHONE_WINDOW_STYLE_TRUE=''
RANLIB=''
SET_MAKE=''
SHELL='/bin/bash'
STAND_ALONE_FALSE=''
STAND_ALONE_TRUE=''
STRIP=''
SYSTEM_LIBS=''
VERSION=''
VIDEO_DRIVERS=''
VIDEO_SUBDIRS=''
ac_ct_CC=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
am__isrc=''
am__leading_dot=''
am__quote=''
am__tar=''
am__untar=''
bindir='${exec_prefix}/bin'
build='i386-pc-linux-gnu'
build_alias='i386-linux'
build_cpu='i386'
build_os='linux-gnu'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
host='arm-elf-linux-gnu'
host_alias='arm-elf-linux'
host_cpu='arm'
host_os='linux-gnu'
host_vendor='elf'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p=''
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/home/minigui_lib'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='arm-elf-linux-gnu'
target_alias='arm-elf-linux'
target_cpu='arm'
target_os='linux-gnu'
target_vendor='elf'

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

#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""

configure: exit 77


麻烦各位帮忙找找错。。。。。


页首
 用户资料  
 
2 楼 
 文章标题 : 自己顶一个
帖子发表于 : 2008-08-26 13:16 

注册: 2008-07-24 21:30
帖子: 11
地址: 南京大学
送出感谢: 0 次
接收感谢: 0 次
来个人帮忙啊


页首
 用户资料  
 
3 楼 
 文章标题 : 已解决
帖子发表于 : 2008-08-27 14:13 

注册: 2008-07-24 21:30
帖子: 11
地址: 南京大学
送出感谢: 0 次
接收感谢: 0 次
解决 了,,,


困扰了我8天阿,,,
用了个很暴力的方法,,,把什么CFLAGS ,,,LDFLAGS。。。。。。全部删掉,,,,,,,就好了


虽然还是有warning.....但无伤大雅了。。。。。哈哈哈哈


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

当前时区为 UTC + 8 小时


在线用户

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


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

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

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