+ -
当前位置:首页 → 问答吧 → CLFS-sysroot0.0.1:::为ARM做交叉工具链:gcc4.2.1编译(Final)出错,提示缺少Pthreads支持!

CLFS-sysroot0.0.1:::为ARM做交叉工具链:gcc4.2.1编译(Final)出错,提示缺少Pthreads支持!

时间:2007-10-14

来源:互联网

一下是编译时的部分输出信息:
........................(some information)
checking for uintptr_t... yes
checking for int_least32_t... yes
checking for int_fast32_t... yes
checking for uint64_t... yes
checking what to include in gstdint.h... stdint.h (already complete)
configure: error: Pthreads are required to build libgomp
make[1]: *** [configure-target-libgomp] 错误1
make[1]: Leaving directory
`/mnt/clfs/ARM-cross-compiler/sbc2440/builddir-v1.0/gcc-build'
make: *** [all] 错误 2

我的配置选项是这样的:

../gcc-4.2.1/configure --target=$TARGET --prefix=${PREFIX}
--disable-multilib --disable-nls --enable-shared --enable-__cxa_atexit
--enable-c99 --enable-long-long --enable-threads=posix
--enable-languages=c,c++ --host=i686-pc-linux-gnu

这里 $TARGET=arm-linux,

主机是 i686pc.

哪位大哥帮忙看看是怎么回事,谢谢!不知道pthread支持是怎么搞的,也不知道ARM上目前
支不支持。

谢谢!

作者: dangbinghoo   发布时间: 2007-10-14