编译uclinux内核过程出现错误
在make lib_only的时候出现以下错误:
make[1]: Entering directory `/uClinux-dist/lib'
make -j1 -C ../include || exit $?
make[2]: Entering directory `/uClinux-dist/include'
find . -depth -type l -a ! -name Makefile | xargs rm > /dev/null 2>&1 || exit 0
find . -depth -type d | grep -v .svn | xargs rmdir > /dev/null 2>&1 || exit 0
Making symlinks in include/
Making include/c++ symlink to compiler c++ includes
13312 [main] sh 1224 D:\cygwin\bin\sh.exe: *** fatal error - D:\cygwin\bin\sh.
exe: *** WFSO timed out loaded dlls
402 [main] sh 1536 child_copy: loaded dll bss write copy failed, 0x703E1000.
.0x703E2530, done 0, windows pid 2277744, Win32 error 5
/bin/sh: fork: Resource temporarily unavailable
ln: creating symbolic link `./c++' to `c++': File exists
make[2]: *** [all] Error 1
make[2]: Leaving directory `/uClinux-dist/include'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/uClinux-dist/lib'
我的编译器是好的,请问Leaving directory是什么意思啊//
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(9)
Leaving directory 和你的Entering directory 是对应的
楼主用的Cygwin吧
建议修改下环境再试下
大虾不愧为大虾啊。。
一眼就看出俺用的是cygwin。。
现在正在编译中,希望能通过哦。。
末了,向大虾说声多谢拉。。
还是有错误哦。。
make[6]: *** [__assert.o] Error 126
make[6]: Leaving directory `/uClinux-dist/uClibc/libc/misc/assert'
make[5]: *** [_dir_assert] Error 2
make[5]: Leaving directory `/uClinux-dist/uClibc/libc/misc'
make[4]: *** [_dir_misc] Error 2
make[4]: Leaving directory `/uClinux-dist/uClibc/libc'
make[3]: *** [_dir_libc] 错误 2
make[3]: Leaving directory `/uClinux-dist/uClibc'
make[2]: *** [uClibc] 错误 2
make[2]: Leaving directory `/uClinux-dist/lib'
make[1]: *** [all] 错误 2
make[1]: Leaving directory `/uClinux-dist/lib'
make: *** [lib_only] 错误 2
但是错误却不一样了
这些信息比较难判断,楼主可以不可把全部编译过程信息贴上来,这样可能更容易判断一些
另.我用Cygwin过程中也跟楼主一样,碰到了比用Linux多了无数的问题,这本身也是一个学习的过程,希望楼主能耐心地一步一步往下走,不要像我,总是半途而废
多谢bitmilong大哥啊
错误代码好长啊
make[1]: Entering directory `/uClinux-dist/lib'
make -j1 -C ../include || exit $?
make[2]: Entering directory `/uClinux-dist/include'
find . -depth -type l -a ! -name Makefile | xargs rm > /dev/null 2>&1 || exit 0
find . -depth -type d | grep -v .svn | xargs rmdir > /dev/null 2>&1 || exit 0
Making symlinks in include/
Making include/c++ symlink to compiler c++ includes
make[2]: Leaving directory `/uClinux-dist/include'
[ -z "uClibc" ] ||\
make -j4 uClibc || exit $?
make[2]: Entering directory `/uClinux-dist/lib'
[ ! -d "uClibc" ] || ( touch uClibc/.sgbuilt_lib && make -j1 -C uClibc ) || exit
$?
make[3]: Entering directory `/uClinux-dist/uClibc'
make[3]: warning: -jN forced in submake: disabling jobserver mode.
+ ./extra/scripts/fix_includes.sh -k /uClinux-dist/linux-2.4.x/. -t arm
Current kernel version is 2.4.32-uc0
Using kernel headers from 2.4.32-uc0 for architecture 'arm'
provided in directory /uClinux-dist/linux-2.4.x/.
The symlink /uClinux-dist/linux-2.4.x/./include/asm is missing\!
Perhaps you forgot to configure your kernel source?
You really should configure your kernel source tree so I
do not have to try and guess about this sort of thing.
Attempting to guess a usable value....
+ ln -fs /uClinux-dist/linux-2.4.x/./include/asm-arm include/asm
+ set +x
+ TOPDIR=.
+ CC=arm-elf-gcc
+ /bin/sh extra/scripts/gen_bits_syscall_h.sh
arm-elf-gcc: arm-elf-gcc: installation problem, cannot exec `cpp0': No such file
or directory
installation problem, cannot exec `cpp0': No such file or directory
+ cmp include/bits/sysnum.h include/bits/sysnum.h.new
+ rm -f include/bits/sysnum.h.new
make -C libc/sysdeps/linux/common headers
make[4]: Entering directory `/uClinux-dist/uClibc/libc/sysdeps/linux/common'
ln -fs ../libc/sysdeps/linux/common/fpu_control.h ../../../..//include/
make[4]: Leaving directory `/uClinux-dist/uClibc/libc/sysdeps/linux/common'
make -C libc/sysdeps/linux/arm headers
make[4]: Entering directory `/uClinux-dist/uClibc/libc/sysdeps/linux/arm'
ln -fs ../libc/sysdeps/linux/arm/fpu_control.h ../../../..//include/
make[4]: Leaving directory `/uClinux-dist/uClibc/libc/sysdeps/linux/arm'
make -C ldso
make[4]: Entering directory `/uClinux-dist/uClibc/ldso'
ln -fs ../../include/elf.h include/
ln -fs ../ldso/arm/dl-startup.h include/
ln -fs ../ldso/arm/dl-syscalls.h include/
ln -fs ../ldso/arm/dl-sysdep.h include/
echo "Not building ld-uClibc"
Not building ld-uClibc
make[4]: Leaving directory `/uClinux-dist/uClibc/ldso'
make -C libc
make[4]: Entering directory `/uClinux-dist/uClibc/libc'
make -C misc
make[5]: Entering directory `/uClinux-dist/uClibc/libc/misc'
make -C assert
make[6]: Entering directory `/uClinux-dist/uClibc/libc/misc/assert'
arm-elf-gcc -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fst
rict-aliasing -O2 -O2 -g -fomit-frame-pointer -pipe -msoft-float -fno-common -
fno-builtin -Wall -DEMBED -mlittle-endian -msoft-float -fno-builtin -nostdinc
-D_LIBC -I../../../include -I. -isystem /usr/local/lib/gcc-lib/arm-elf/2.95.3/in
clude -DNDEBUG -c __assert.c -o __assert.o
/usr/local/bin/arm-elf-gcc: /usr/local/bin/arm-elf-gcc: cannot execute binary fi
le
make[6]: *** [__assert.o] Error 126
make[6]: Leaving directory `/uClinux-dist/uClibc/libc/misc/assert'
make[5]: *** [_dir_assert] Error 2
make[5]: Leaving directory `/uClinux-dist/uClibc/libc/misc'
make[4]: *** [_dir_misc] Error 2
make[4]: Leaving directory `/uClinux-dist/uClibc/libc'
make[3]: *** [_dir_libc] 错误 2
make[3]: Leaving directory `/uClinux-dist/uClibc'
make[2]: *** [uClibc] 错误 2
make[2]: Leaving directory `/uClinux-dist/lib'
make[1]: *** [all] 错误 2
make[1]: Leaving directory `/uClinux-dist/lib'
make: *** [lib_only] 错误 2
问题出在这儿
需要重新配置你的Kernel
是这样吗 可是我已经配置过了啊
再配置看看
先检查下你Linux-2.4.x的路径是否包含在PATH里