2

嗨,我用 arm-linux-gnueabi-gcc 工具链和 qemu 模拟器设置了一个暂存盒。

当我想在 scratchbox [sbox-arm:/]> 一个 ./configure 脚本(来自单压缩包)中运行时,我收到了错误消息:
checking whether the c compiler works... ...
configure error: cannot run c compiled programs.
if you meant to cross compile, use --host.

当我编译一个简单的 hello.c 时它可以工作,但是当我执行 hello.oi 时出现错误:
lib/ld-linux.so.3 no such file.

(编辑:
通过使用带有 uClibc 的工具链,错误是
/lib/ld-uClibc.so.0:)

我可以通过使用 -static 标志来解决此错误,但这不适用于 .configure 问题。

有没有人解决这个问题?

编辑2:似乎我通过从零再次设置scratchbox来修复它,现在一些编译工作没有静态链接。

4

0 回答 0