checking for forced unwind support... no cannot compute sizeof (long double)

来源:互联网 发布:数据质量自查报告 编辑:程序博客网 时间:2024/04/19 20:48
checking for forced unwind support... no cannot compute sizeof (long double)
2009-09-13 00:25
编译前配置
../glibc-2.3.4/configure --prefix=/tools --disable-profile --enable-add-ons --enable-kernel=2.6.0 --with-binutils=/tools/bin --without-gd --with-headers=/tools/include --without-selinux

出错信息
*** On GNU/Linux systems it is normal to compile GNU libc with the
*** `linuxthreads' add-on.  Without that, the library will be
*** incompatible with normal GNU/Linux systems.
*** If you really mean to not use this add-on, run configure again
*** using the extra parameter `--disable-sanity-checks'

出错信息
checking size of long double... configure: error: cannot compute sizeof (long double), 77
See `config.log' for more details.


出错信息
checking for forced unwind support... no
configure: error: forced unwind support is required

解决方法:

去掉 --enable-add-ons
加上--build=i686-pc-linux-gnu --host=i686-linux --disable-sanity-checks

即:

../glibc-2.3.4/configure --prefix=/tools --disable-profile  --enable-kernel=2.6.0 --with-binutils=/tools/bin --without-gd --with-headers=/tools/include --without-selinux --build=i686-pc-linux-gnu --host=i686-linux --disable-sanity-checks