当前位置: 技术问答>linux和unix
Cygwin上建立交叉编译环境的问题
来源: 互联网 发布时间:2015-11-24
本文导语: 在Cygwin上建立交叉编译环境使用了:binutils-2.11.2, gcc-3.0.4, glibc-2.2.5. LINUX内核为2.4.8 环境已经建立,但是在编译程序通过后链接时,出现以下错误: /home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/ lib/libc.so.6: ...
在Cygwin上建立交叉编译环境使用了:binutils-2.11.2, gcc-3.0.4, glibc-2.2.5.
LINUX内核为2.4.8
环境已经建立,但是在编译程序通过后链接时,出现以下错误:
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__dup'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `utime'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libpthread.so: undefined reference to `__libc_fcntl'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__getcwd'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__dup2'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__unlink'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libpthread.so: undefined reference to `__libc_read'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__xstat64'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libpthread.so: undefined reference to `pipe'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__lxstat'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__chmod'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__isatty'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__statfs'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libpthread.so: undefined reference to `__libc_open64'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__chdir'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__readlink'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__mkdir'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libpthread.so: undefined reference to `__poll'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libpthread.so: undefined reference to `__libc_close'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__statvfs64'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__pipe'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libpthread.so: undefined reference to `__libc_open'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__chown'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__xmknod'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__lxstat64'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__ttyname_r'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libpthread.so: undefined reference to `__libc_lseek'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__rmdir'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__fstatfs'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__fxstat64'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__fxstat'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libpthread.so: undefined reference to `__libc_write'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__access'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__fstatvfs64'
collect2: ld returned 1 exit status
make: *** [] Error 1
在线等,分不够可以另开贴送分
LINUX内核为2.4.8
环境已经建立,但是在编译程序通过后链接时,出现以下错误:
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__dup'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `utime'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libpthread.so: undefined reference to `__libc_fcntl'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__getcwd'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__dup2'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__unlink'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libpthread.so: undefined reference to `__libc_read'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__xstat64'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libpthread.so: undefined reference to `pipe'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__lxstat'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__chmod'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__isatty'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__statfs'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libpthread.so: undefined reference to `__libc_open64'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__chdir'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__readlink'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__mkdir'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libpthread.so: undefined reference to `__poll'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libpthread.so: undefined reference to `__libc_close'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__statvfs64'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__pipe'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libpthread.so: undefined reference to `__libc_open'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__chown'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__xmknod'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__lxstat64'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__ttyname_r'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libpthread.so: undefined reference to `__libc_lseek'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__rmdir'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__fstatfs'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__fxstat64'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__fxstat'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libpthread.so: undefined reference to `__libc_write'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__access'
/home/FiTSA-HG/sh-linux/tools/lib/gcc-lib/sh3-linux/3.0.4/../../../../sh3-linux/
lib/libc.so.6: undefined reference to `__fstatvfs64'
collect2: ld returned 1 exit status
make: *** [] Error 1
在线等,分不够可以另开贴送分
|
友情支持!!!
顶一下!!顺便接分!!
顶一下!!顺便接分!!