请教:cygwin上arm-elf-tools为何编译不过
从uclinx网站上下的arm-elf-tools源代码,都放在用户目录下,仅修改build-uclinux-tools.sh文件如下:。。。
MAKE=make
PATCH=patch
ELF2FLT="$BASEDIR/elf2flt"
UCLIBC="$BASEDIR/uClibc"
KERNEL="$BASEDIR/armtool/uClinux-dist/linux-2.4.x"
TARGET=arm-elf
PREFIX=/tmp/tools
PATH="${PREFIX}/bin:$PATH"; export PATH
CYGWIN=cygwin-
PATCH=/usr/bin/patch
。。。
编译到第三步出错。。!:
STAGE 2 - complete
--------------------------------------------------------
STAGE 3 - needs building
/bin/sh: line 1: arm-elf-gcc: command not found
/bin/sh: line 1: arm-elf-gcc: command not found
rm -rf include/bits
mkdir -p include/bits
./extra/config/conf: ./extra/config/conf: cannot execute binary file
make: *** Error 126
请问各位DX,该怎么搞啊??谢了! 设置一下环境变量,把arm-elf-gcc的路径加到PATH变量中
没有arm-elf-gcc
我设了PREFIX=/tmp/tools。到编译出错时,在/tmp/ools/bin目录下已经生产以下一些工具:arm-elf-addr2line.exearm-elf-ld.exe arm-elf-readelf.exe
arm-elf-ar.exe arm-elf-nm.exe arm-elf-size.exe
arm-elf-as.exe arm-elf-objcopy.exearm-elf-strings.exe
arm-elf-c++filt.exe arm-elf-objdump.exearm-elf-strip.exe
arm-elf-gasp.exe arm-elf-ranlib.exe
但是没有arm-elf-gcc,可能因此报错。
请高人指点。。。不胜感激! 我设了PREFIX=/tmp/tools。到编译出错时,在/tmp/ools/bin目录下已经生产以下一些工具:
arm-elf-addr2line.exe arm-elf-ld.exe arm-elf-readelf.exe
arm-elf-ar.exe arm-elf-nm.exe arm-elf-size.exe
arm-elf-as.exe arm-elf-objcopy.exe arm-elf-strings.exe
arm-elf-c++filt.exe arm-elf-objdump.exe arm-elf-strip.exe
arm-elf-gasp.exe arm-elf-ranlib.exe
但是没有arm-elf-gcc,可能因此报错。
请高人指点。。。不胜感激!
回复 1# myleone 的帖子
直接删除conf,程序会自动生成conf.exe如果不删除,程序认为之前已经存在了,cygwin上可执行文件是忽略后缀的。原先存在的conf是在linux下生成的,自然cygwin不会识别:!: 同意楼上
页:
[1]