LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2354|回复: 3

configure出错求助-- error: cannot compute sizeof (long double), 77

[复制链接]
发表于 2004-9-8 15:14:12 | 显示全部楼层 |阅读模式
我装 LFS  , 当编译到 glibc,
configure时用了--with-binutils=/mnt/lfs/tools/bin
结果出现如下错误
checking size of long double... configure:
error: cannot compute sizeof (long double), 77
如果去掉上面那个--with-binutils 项就没问题
请问该怎么解决, 多谢
发表于 2004-9-8 18:56:47 | 显示全部楼层
binutil太旧了?。。你的主系统是什么?book是什么?
发表于 2004-9-8 21:48:48 | 显示全部楼层
#Keith Antoine wrote:
        #> checking size of long double... configure: error: cannot compute sizeof (long
        #> double), 77

        #Known bug, introduced in glibc on April, 17. Details: Glibc configure
        #script wants to run a test program linked against
        #/tools/lib/libgcc_s.so.1. But this directroy is not in the library
        #search path, and therefore the compiled program won't run. To work
        #around this:

        #LD_LIBRARY_PATH=/tools/lib ../glibc-2.3.4-20040510/configure --stuff
        #make
        #make install

        #--
        #Alexander E. Patrakov
        #

        #
        # But the workaround suggested by Alexander E. Patrakov
        # don't work here. Here is my workaround for this error
        #        'cannot compute sizeof (long double), 77'
        # in 'configure'ing. If you don't get this error,
        # comment it out.
        #                                 - HongMingJian
        rmdir /lib && ln -s /tools/lib /lib  
        #

        mkdir ../glibc-2.3.3-lfs-5.1-build &&
        cd ../glibc-2.3.3-lfs-5.1-build &&
        ../glibc-2.3.3-lfs-5.1/configure \
                                                 --prefix=/usr \
                                             --disable-profile \
                                              --enable-add-ons=linuxthreads \
                                              --libexecdir=/usr/lib \
                                              --with-headers=/usr/include \
                                              --without-cvs

        #
        # But the workaround suggested by Alexander E. Patrakov
        # don't work here. Here is my workaround for this error
        #        'cannot compute sizeof (long double), 77'
        # in 'configure'ing. If you don't get this error,
        # comment it out.
        #                                 - HongMingJian
        rm /lib && mkdir /lib  
        #


make && make install && ........


Hope this helps!
--
Hong MingJian
 楼主| 发表于 2004-9-9 17:10:05 | 显示全部楼层
多谢楼上的两位大哥了, 我再去试试.
本来我想得不到回答的话就放弃了,呵呵.
问一下你是怎么找到这个资料的, 是不是google搜来的

我是在 Fedora core 2上面编译的. LFS 版本是5.1的.
我在学校里用代理不能下校外的 ftp, 只能下到 http 里面的包
而 testing 里面的 glibc 好像找不到 http 站点下载, 真郁闷,只好下了一个打包的 5.1 来装了.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表