gpt4 book ai didi

linux - 如何重新编译 libc 以使用软 float ?

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:27:02 26 4
gpt4 key购买 nike

必须为某个软件包升级(通过 apt-get)Libc。不再需要该软件包,通过 apt-get 升级 libc,我无法再从源代码构建某些其他程序。我需要重新编译 libc 以使用软浮点而不是硬浮点,这样我就可以再次编译我需要的程序。

现在我收到这样的警告:

Warning: /usr/lib64/libc_nonshared.a(elf-init.oS) uses hard float, foobar uses soft float

...并运行编译后的 foobar 将导致错误:

Floating point exception

系统本身采用 MIPS64 架构。在通过apt-get升级libc之前,这些程序编译运行成功。

最佳答案

重新编译 libc 很困难。最好的办法是在网上找到预编译的 64 位软浮点 libc,或者从备份中恢复原始文件。看看免费CodeSourcery Lite MIPS 工具链,其中包括许多不同的 libc 版本。

关于linux - 如何重新编译 libc 以使用软 float ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10337112/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com