编译uclinux内核过程出现错误

发布于 2022-09-29 22:44:03 字数 1306 浏览 26 评论 0

在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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(9

如歌彻婉言 2022-10-06 22:44:03

Leaving directory 和你的Entering directory 是对应的

楼主用的Cygwin吧
建议修改下环境再试下

2、 修改cygwin的环境,这里我做了如下的修改:

1) 在d:\cygwin\cygwin.bat中加入set CYGWIN=title ntea

2) 在d:\cygwin\usr\X11R6\bin\startwin.bat中加入set CYGWIN=ntea

3) 启动xterm后输入以下命令来修改sh.exe

cd /bin

mv sh.exe sh-original.exe

ln –s bash.exe sh.exe

酒几许 2022-10-06 22:44:03

大虾不愧为大虾啊。。   
一眼就看出俺用的是cygwin。。
现在正在编译中,希望能通过哦。。
末了,向大虾说声多谢拉。。

云胡 2022-10-06 22:44:03


还是有错误哦。。
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
但是错误却不一样了

欲拥i 2022-10-06 22:44:03

原帖由 duguowei 于 2007-8-14 09:08 发表

还是有错误哦。。
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  ...

这些信息比较难判断,楼主可以不可把全部编译过程信息贴上来,这样可能更容易判断一些

另.我用Cygwin过程中也跟楼主一样,碰到了比用Linux多了无数的问题,这本身也是一个学习的过程,希望楼主能耐心地一步一步往下走,不要像我,总是半途而废

2022-10-06 22:44:03

多谢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

夕嗳→ 2022-10-06 22:44:03

问题出在这儿

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.

需要重新配置你的Kernel

乱了心跳 2022-10-06 22:44:03

是这样吗  可是我已经配置过了啊

深海夜未眠 2022-10-06 22:44:03

再配置看看

如果没结果 2022-10-06 22:44:03

先检查下你Linux-2.4.x的路径是否包含在PATH里

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文