免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4024 | 回复: 2
打印 上一主题 下一主题

求救:gdbserver编译后不能执行。 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-12-25 16:40 |只看该作者 |倒序浏览
$ ./configure --target=arm-softfloat-linux-gnu --host=arm-softfloat-linux-gnu
  $ make CC=arm-softfloat-linux-gnu-gcc


编译gdbserver成功后,生成gdbserver可执行文件,但是通过NFS在arm板上gdbserver不能执行。提示:
# ./gdbserver 192.168.1.1:2345 hello
-sh: ./gdbserver: not found

我的交叉编译器是:arm-softfloat-linux-gcc,不知道有没有什么影响。用的是gdb6.6
谢谢各位指导。

配置gdbserver文件如下:

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.59.  Invocation command line was

  $ ./configure --target=arm-softfloat-linux-gnu --host=arm-softfloat-linux-gnu

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

hostname = localhost.localdomain
uname -m = i686
uname -r = 2.6.17
uname -s = Linux
uname -v = #2 Fri Dec 1 13:41:49 CST 2006

/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/local/sbin
PATH: /usr/local/bin
PATH: /sbin
PATH: /bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /usr/X11R6/bin
PATH: /root/bin
PATH: /opt/crosstool/gcc-3.4.1-glibc-2.3.3/arm-softfloat-linux-gnu/bin


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

configure:1308: checking for arm-softfloat-linux-gnu-gcc
configure:1324: found /opt/crosstool/gcc-3.4.1-glibc-2.3.3/arm-softfloat-linux-gnu/bin/arm-softfloat-linux-gnu-gcc
configure:1334: result: arm-softfloat-linux-gnu-gcc
configure:1616: checking for C compiler version
configure:1619: arm-softfloat-linux-gnu-gcc --version </dev/null >&5
arm-softfloat-linux-gnu-gcc (GCC) 3.4.1
Copyright (C) 2004 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:1622: $? = 0
configure:1624: arm-softfloat-linux-gnu-gcc -v </dev/null >&5
Reading specs from /opt/crosstool/gcc-3.4.1-glibc-2.3.3/arm-softfloat-linux-gnu/lib/gcc/arm-softfloat-linux-gnu/3.4.1/specs
Configured with: /home/zzl/downloads/crosstool-0.42/build/arm-softfloat-linux-gnu/gcc-3.4.1-glibc-2.3.3/gcc-3.4.1/configure --target=arm-softfloat-linux-gnu --host=i686-host_pc-linux-gnu --prefix=/opt/crosstool/gcc-3.4.1-glibc-2.3.3/arm-softfloat-linux-gnu --with-float=soft --with-headers=/opt/crosstool/gcc-3.4.1-glibc-2.3.3/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu/include --with-local-prefix=/opt/crosstool/gcc-3.4.1-glibc-2.3.3/arm-softfloat-linux-gnu/arm-softfloat-linux-gnu --disable-nls --enable-threads=posix --enable-symvers=gnu --enable-__cxa_atexit --enable-languages=c,c++ --enable-shared --enable-c99 --enable-long-long
Thread model: posix
gcc version 3.4.1
configure:1627: $? = 0
configure:1629: arm-softfloat-linux-gnu-gcc -V </dev/null >&5
arm-softfloat-linux-gnu-gcc: `-V' option must have argument
configure:1632: $? = 1
configure:1655: checking for C compiler default output file name
configure:1658: arm-softfloat-linux-gnu-gcc    conftest.c  >&5
configure:1661: $? = 0
configure:1707: result: a.out
configure:1712: checking whether the C compiler works
configure:1718: ./a.out
./configure: line 1: ./a.out: cannot execute binary file
configure:1721: $? = 126
configure:1738: result: yes
configure:1745: checking whether we are cross compiling
configure:1747: result: yes
configure:1750: checking for suffix of executables
configure:1752: arm-softfloat-linux-gnu-gcc -o conftest    conftest.c  >&5
configure:1755: $? = 0
configure:1780: result:
configure:1786: checking for suffix of object files
configure:1807: arm-softfloat-linux-gnu-gcc -c   conftest.c >&5
configure:1810: $? = 0
configure:1832: result: o
configure:1836: checking whether we are using the GNU C compiler
configure:1860: arm-softfloat-linux-gnu-gcc -c   conftest.c >&5
configure:1866: $? = 0
configure:1870: test -z
    || test ! -s conftest.err
configure:1873: $? = 0
configure:1876: test -s conftest.o
configure:1879: $? = 0
configure:1892: result: yes
configure:1898: checking whether arm-softfloat-linux-gnu-gcc accepts -g
configure:1919: arm-softfloat-linux-gnu-gcc -c -g  conftest.c >&5
configure:1925: $? = 0
configure:1929: test -z
    || test ! -s conftest.err
configure:1932: $? = 0
configure:1935: test -s conftest.o
configure:1938: $? = 0
configure:1949: result: yes
configure:1966: checking for arm-softfloat-linux-gnu-gcc option to accept ANSI C
configure:2036: arm-softfloat-linux-gnu-gcc  -c -g -O2  conftest.c >&5
configure:2042: $? = 0
configure:2046: test -z
    || test ! -s conftest.err
configure:2049: $? = 0
configure:2052: test -s conftest.o
configure:2055: $? = 0
configure:2073: result: none needed
configure:2091: arm-softfloat-linux-gnu-gcc -c -g -O2  conftest.c >&5
conftest.c:2: error: parse error before "me"
configure:2097: $? = 1
configure: failed program was:
| #ifndef __cplusplus
|   choke me
| #endif
configure:2262: checking build system type
configure:2280: result: i686-pc-linux-gnu
configure:2288: checking host system type
configure:2302: result: arm-softfloat-linux-gnu
configure:2310: checking target system type
configure:2324: result: arm-softfloat-linux-gnu
configure:2352: checking for a BSD-compatible install
configure:2407: result: /usr/bin/install -c
configure:2439: checking how to run the C preprocessor
configure:2474: arm-softfloat-linux-gnu-gcc -E  conftest.c
configure:2480: $? = 0
configure:2512: arm-softfloat-linux-gnu-gcc -E  conftest.c
conftest.c:9:28: ac_nonexistent.h: No such file or directory
configure:2518: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:2557: result: arm-softfloat-linux-gnu-gcc -E
configure:2581: arm-softfloat-linux-gnu-gcc -E  conftest.c
configure:2587: $? = 0
configure:2619: arm-softfloat-linux-gnu-gcc -E  conftest.c
conftest.c:9:28: ac_nonexistent.h: No such file or directory
configure:2625: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:2669: checking for egrep
configure:2679: result: grep -E
configure:2684: checking for ANSI C header files
configure:2709: arm-softfloat-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:2715: $? = 0
configure:2719: test -z
    || test ! -s conftest.err
configure:2722: $? = 0
configure:2725: test -s conftest.o
configure:2728: $? = 0
configure:2837: result: yes
configure:2862: checking for sys/types.h
configure:2878: arm-softfloat-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:2884: $? = 0
configure:2888: test -z
    || test ! -s conftest.err
configure:2891: $? = 0
configure:2894: test -s conftest.o
configure:2897: $? = 0
configure:2908: result: yes
configure:2862: checking for sys/stat.h
configure:2878: arm-softfloat-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:2884: $? = 0
configure:2888: test -z
    || test ! -s conftest.err
configure:2891: $? = 0
configure:2894: test -s conftest.o
configure:2897: $? = 0
configure:2908: result: yes
configure:2862: checking for stdlib.h
configure:2878: arm-softfloat-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:2884: $? = 0
configure:2888: test -z
    || test ! -s conftest.err
configure:2891: $? = 0
configure:2894: test -s conftest.o
configure:2897: $? = 0
configure:2908: result: yes
configure:2862: checking for string.h
configure:2878: arm-softfloat-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:2884: $? = 0
configure:2888: test -z
    || test ! -s conftest.err
configure:2891: $? = 0
configure:2894: test -s conftest.o
configure:2897: $? = 0
configure:2908: result: yes
configure:2862: checking for memory.h
configure:2878: arm-softfloat-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:2884: $? = 0
configure:2888: test -z
    || test ! -s conftest.err
configure:2891: $? = 0
configure:2894: test -s conftest.o
configure:2897: $? = 0
configure:2908: result: yes
configure:2862: checking for strings.h
configure:2878: arm-softfloat-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:2884: $? = 0
configure:2888: test -z
    || test ! -s conftest.err
configure:2891: $? = 0
configure:2894: test -s conftest.o
configure:2897: $? = 0
configure:2908: result: yes
configure:2862: checking for inttypes.h
configure:2878: arm-softfloat-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:2884: $? = 0
configure:2888: test -z
    || test ! -s conftest.err
configure:2891: $? = 0
configure:2894: test -s conftest.o
configure:2897: $? = 0
configure:2908: result: yes
configure:2862: checking for stdint.h
configure:2878: arm-softfloat-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:2884: $? = 0
configure:2888: test -z
    || test ! -s conftest.err
configure:2891: $? = 0
configure:2894: test -s conftest.o
configure:2897: $? = 0
configure:2908: result: yes
configure:2862: checking for unistd.h
configure:2878: arm-softfloat-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:2884: $? = 0
configure:2888: test -z
    || test ! -s conftest.err
configure:2891: $? = 0
configure:2894: test -s conftest.o
configure:2897: $? = 0
configure:2908: result: yes
configure:2952: checking sgtty.h usability
configure:2964: arm-softfloat-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:2970: $? = 0
configure:2974: test -z
    || test ! -s conftest.err
configure:2977: $? = 0
configure:2980: test -s conftest.o
configure:2983: $? = 0
configure:2993: result: yes
configure:2997: checking sgtty.h presence
configure:3007: arm-softfloat-linux-gnu-gcc -E  conftest.c
configure:3013: $? = 0
configure:3033: result: yes
configure:3068: checking for sgtty.h
configure:3075: result: yes
configure:2952: checking termio.h usability
configure:2964: arm-softfloat-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:2970: $? = 0
configure:2974: test -z
    || test ! -s conftest.err
configure:2977: $? = 0
configure:2980: test -s conftest.o
configure:2983: $? = 0
configure:2993: result: yes
configure:2997: checking termio.h presence
configure:3007: arm-softfloat-linux-gnu-gcc -E  conftest.c
configure:3013: $? = 0
configure:3033: result: yes
configure:3068: checking for termio.h
configure:3075: result: yes
configure:2952: checking termios.h usability
configure:2964: arm-softfloat-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:2970: $? = 0
configure:2974: test -z
    || test ! -s conftest.err
configure:2977: $? = 0
configure:2980: test -s conftest.o
configure:2983: $? = 0
configure:2993: result: yes
configure:2997: checking termios.h presence
configure:3007: arm-softfloat-linux-gnu-gcc -E  conftest.c
configure:3013: $? = 0
configure:3033: result: yes
configure:3068: checking for termios.h
configure:3075: result: yes
configure:2952: checking sys/reg.h usability
configure:2964: arm-softfloat-linux-gnu-gcc -c -g -O2  conftest.c >&5
conftest.c:56:21: sys/reg.h: No such file or directory
configure:2970: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SGTTY_H 1
| #define HAVE_TERMIO_H 1
| #define HAVE_TERMIOS_H 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #if HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #if HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #if STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # if HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #if HAVE_STRING_H
| # if !STDC_HEADERS && HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #if HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #if HAVE_INTTYPES_H
| # include <inttypes.h>
| #else
| # if HAVE_STDINT_H
| #  include <stdint.h>
| # endif
| #endif
| #if HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <sys/reg.h>
configure:2993: result: no
configure:2997: checking sys/reg.h presence
configure:3007: arm-softfloat-linux-gnu-gcc -E  conftest.c
conftest.c:22:21: sys/reg.h: No such file or directory
configure:3013: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SGTTY_H 1
| #define HAVE_TERMIO_H 1
| #define HAVE_TERMIOS_H 1
| /* end confdefs.h.  */
| #include <sys/reg.h>
configure:3033: result: no
configure:3068: checking for sys/reg.h
configure:3075: result: no
configure:2943: checking for string.h
configure:2948: result: yes
configure:2952: checking proc_service.h usability
configure:2964: arm-softfloat-linux-gnu-gcc -c -g -O2  conftest.c >&5
conftest.c:57:26: proc_service.h: No such file or directory
configure:2970: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SGTTY_H 1
| #define HAVE_TERMIO_H 1
| #define HAVE_TERMIOS_H 1
| #define HAVE_STRING_H 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #if HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #if HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #if STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # if HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #if HAVE_STRING_H
| # if !STDC_HEADERS && HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #if HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #if HAVE_INTTYPES_H
| # include <inttypes.h>
| #else
| # if HAVE_STDINT_H
| #  include <stdint.h>
| # endif
| #endif
| #if HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <proc_service.h>
configure:2993: result: no
configure:2997: checking proc_service.h presence
configure:3007: arm-softfloat-linux-gnu-gcc -E  conftest.c
conftest.c:23:26: proc_service.h: No such file or directory
configure:3013: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SGTTY_H 1
| #define HAVE_TERMIO_H 1
| #define HAVE_TERMIOS_H 1
| #define HAVE_STRING_H 1
| /* end confdefs.h.  */
| #include <proc_service.h>
configure:3033: result: no
configure:3068: checking for proc_service.h
configure:3075: result: no
configure:2952: checking sys/procfs.h usability
configure:2964: arm-softfloat-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:2970: $? = 0
configure:2974: test -z
    || test ! -s conftest.err
configure:2977: $? = 0
configure:2980: test -s conftest.o
configure:2983: $? = 0
configure:2993: result: yes
configure:2997: checking sys/procfs.h presence
configure:3007: arm-softfloat-linux-gnu-gcc -E  conftest.c
configure:3013: $? = 0
configure:3033: result: yes
configure:3068: checking for sys/procfs.h
configure:3075: result: yes
configure:2952: checking thread_db.h usability
configure:2964: arm-softfloat-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:2970: $? = 0
configure:2974: test -z
    || test ! -s conftest.err
configure:2977: $? = 0
configure:2980: test -s conftest.o
configure:2983: $? = 0
configure:2993: result: yes
configure:2997: checking thread_db.h presence
configure:3007: arm-softfloat-linux-gnu-gcc -E  conftest.c
configure:3013: $? = 0
configure:3033: result: yes
configure:3068: checking for thread_db.h
configure:3075: result: yes
configure:2952: checking linux/elf.h usability
configure:2964: arm-softfloat-linux-gnu-gcc -c -g -O2  conftest.c >&5
configure:2970: $? = 0
configure:2974: test -z
    || test ! -s conftest.err
configure:2977: $? = 0
configure:2980: test -s conftest.o
configure:2983: $? = 0
configure:2993: result: yes
configure:2997: checking linux/elf.h presence
configure:3007: arm-softfloat-linux-gnu-gcc -E  conftest.c
configure:3013: $? = 0
configure:3033: result: yes
configure:3068: checking for linux/elf.h
configure:3075: result: yes
configure:2943: checking for stdlib.h
configure:2948: result: yes
configure:2943: checking for unistd.h
configure:2948: result: yes
configure:2952: checking terminal.h usability
configure:2964: arm-softfloat-linux-gnu-gcc -c -g -O2  conftest.c >&5
conftest.c:62:22: terminal.h: No such file or directory
configure:2970: $? = 1
configure: failed program was:
|

论坛徽章:
0
2 [报告]
发表于 2006-12-25 16:46 |只看该作者
权限也是可以执行的。

论坛徽章:
0
3 [报告]
发表于 2006-12-26 08:55 |只看该作者
有谁用过arm-softfloat-linux -gnu-gcc交叉编译吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP