交叉编译期望用于ARM

我已经下载expect5.4 。 我试图交叉编译ARM(PandaBoard)运行精简版的Linux。

在configuration的初始设置,我尝试

Shell$ ./configure --host=ARM configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. checking for correct TEA configuration... ok (TEA 3.9) configure: configuring expect 5.45 checking for Tcl configuration... found /home/user1/scripts/tcl8.6.0/unix/tclConfig.sh checking for existence of /home/user1/scripts/tcl8.6.0/unix/tclConfig.sh... loading configure: --prefix defaulting to TCL_PREFIX /usr/local configure: --exec-prefix defaulting to TCL_EXEC_PREFIX /usr/local checking for ARM-gcc... /home/user1/toolchain/toolchain/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... yes checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /home/user1/toolchain/toolchain/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc accepts -g... yes checking for /home/user1/toolchain/toolchain/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc option to accept ANSI C... none needed checking how to run the C preprocessor... /home/user1/toolchain/toolchain/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc -E checking for a BSD-compatible install... /usr/bin/install -c checking whether make sets $(MAKE)... yes checking for ARM-ranlib... no checking for ranlib... ranlib checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes .. .. .. .. .. checking for openpty... no checking for openpty in -lutil... yes checking if running Sequent running SVR4... no checking build system type... i686-pc-linux-gnu checking host system type... Invalid configuration `ARM': machine `ARM' not recognized configure: error: /bin/bash tclconfig/config.sub ARM failed 

更新:用./configure –host = arm进行编译,现在我得到的错误是进一步的

 checking for sysconf... yes checking for strftime... yes checking for strchr... yes checking for timezone... yes checking for siglongjmp... yes checking for memcpy... yes checking if WNOHANG requires _POSIX_SOURCE... configure: error: Expect can't be cross compiled 

它能够selectarm-gcc但由于某种原因失败。

你会得到一个更进一步的 – --host=arm (小写),但不是很多:期望只是不想交叉编译。 克服这个问题需要在configure.in进行非平凡的修改。 如果expect是唯一想要交叉编译的东西,那么对它们进行处理可能是合理的,但是如果还有其他的东西,那么最好设置一些可以运行编译后的二进制文件的环境( scratchbox或类似的东西)。