cygwin下安装crosstool-ng错误'Installing kernel headers': scripts/basic/fixdep: No such file or directory

[INFO ]  =================================================================
[INFO ]  Installing kernel headers
[DEBUG]    Using kernel's headers_install
[EXTRA]    Installing kernel headers
[DEBUG]    ==> Executing: 'make -C /home/Administrator/crosstool-ng/crosstool-ng-1.9.3_build/targets/src/linux-2.6.33.7 O=/home/Administrator/crosstool-ng/crosstool-ng-1.9.3_build/targets/arm-apollo-linux-gnueabi/build/build-kernel-headers ARCH=arm

INSTALL_HDR_PATH=/home/Administrator/crosstool-ng/x-tools/arm-apollo-linux-gnueabi/arm-apollo-linux-gnueabi//sys-root/usr V=0 headers_install'
[ALL  ]    make[2]: Entering directory `/home/Administrator/crosstool-ng/crosstool-ng-1.9.3_build/targets/src/linux-2.6.33.7'
[ALL  ]      CHK     include/linux/version.h
[ALL  ]      UPD     include/linux/version.h
[ALL  ]      HOSTCC  scripts/basic/fixdep
[ALL  ]    /home/Administrator/crosstool-ng/crosstool-ng-1.9.3_build/targets/src/linux-2.6.33.7/scripts/basic/fixdep.c: In function 'parse_config_file':
[ALL  ]    /home/Administrator/crosstool-ng/crosstool-ng-1.9.3_build/targets/src/linux-2.6.33.7/scripts/basic/fixdep.c:242: warning: array subscript has type 'char'
[ALL  ]    /home/Administrator/crosstool-ng/crosstool-ng-1.9.3_build/targets/src/linux-2.6.33.7/scripts/basic/fixdep.c: In function 'parse_dep_file':
[ALL  ]    /home/Administrator/crosstool-ng/crosstool-ng-1.9.3_build/targets/src/linux-2.6.33.7/scripts/basic/fixdep.c:323: warning: array subscript has type 'char'
[ALL  ]    /bin/sh: scripts/basic/fixdep: No such file or directory
[ERROR]    make[4]: *** [scripts/basic/fixdep] Error 1
[ERROR]    make[3]: *** [scripts_basic] Error 2
[ERROR]    make[2]: *** [sub-make] Error 2
[ALL  ]    make[2]: Leaving directory `/home/Administrator/crosstool-ng/crosstool-ng-1.9.3_build/targets/src/linux-2.6.33.7'
[ERROR]    Build failed in step 'Installing kernel headers'
[ERROR]    Error happened in '/opt/crosstool-ng/lib/ct-ng-1.9.3/scripts/functions' in function 'CT_DoExecLog' (line unknown, sorry)
[ERROR]          called from '/opt/crosstool-ng/lib/ct-ng-1.9.3/scripts/build/kernel/linux.sh' at line # 98 in function 'do_kernel_install'
[ERROR]          called from '/opt/crosstool-ng/lib/ct-ng-1.9.3/scripts/build/kernel/linux.sh' at line # 75 in function 'do_kernel_headers'
[ERROR]          called from '/opt/crosstool-ng/lib/ct-ng-1.9.3/scripts/crosstool-NG.sh' at line # 597 in function 'main'
[ERROR]    Look at '/home/Administrator/crosstool-ng/x-tools/arm-apollo-linux-gnueabi/build.log' for more info on this error.


解决:

 错误不是"/bin/sh: scripts/basic/fixdep: No such file or directory" ,即没有fixdep.exe(或者没有fixdep)可执行文件吗?
 那就手动生成该文件:
 进入Administrator/crosstool-ng/crosstool-ng-1.9.3_build/targets/src/linux-2.6.33.7/scripts/basic 目录
 gcc -O -o fixdep fixdep.c
 同时参考网站上说还要生成:
 gcc -O -o docproc docproc.c

太好了,这步编译过了!!希望下一步不要出错。。。

那位大侠知道内部原因的,请不吝赐教!很想知道错误的真正原因,谢谢!

 

参考  http://linux.derkeiler.com/Mailing-Lists/Kernel/2005-08/6584.html

你可能感兴趣的:(file,function,gcc,basic,build,path)