编译环境如下:
cygwin.040615
uClinux-dist-20040408.tar.gz(解压到/usr/local/src目录下)
arm-elf for cygwin(安装到/usr/local/armtools目录下)
编译内核前三步都通过了:
make dep
make clean
make lib_only
到第四步make user_only,有如下报错并终止编译:
/usr/local/armtools/arm-elf/bin/ld: installation problem, cannot exec '/usr/local/armtools/arm-elf/bin/ld': invalid argument
collect2: ld returned 255 exit status
make[2]: *** [sh] Error 1
make[2]: Leaving directory '/usr/local/src/uClinux-dist/user/sash'
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/local/src/uClinux-dist/user'
make: *** [user_only] Error 2
我一直搞不明白怎么回事,请各位高手不吝赐教,谢谢!
关键词:
求助
cygwin
arm-elf
编译
ucli