gpt4 book ai didi

c - 在非标准位置构建 gcc-4.3.4 时遇到问题

转载 作者:太空狗 更新时间:2023-10-29 12:21:39 26 4
gpt4 key购买 nike

我需要在非标准位置(安装 NFS)构建 gcc-4.3.4。我配置:

../gcc-4.3.4/configure --prefix={install dir} --with-gmp={install dir} --with-mpfr={install dir} --with-local-prefix={install dir} --disable-shared

我运行了 make -j1。但我不断得到:

checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile

x86_64-unknown-linux-gnu/libgcc/config.log 中,我可以看到:

/home/panthdev/apps/gcc-4.3.4-compliant/compiler/objdir/./gcc/cc1: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory

libmpfr.so.1 位于 {install dir}/lib 中。此外,如果我将 LD_LIBRARY_PATH 设置为 {install dir}/lib,那么它会找到 libmpfr.so.1config.log 开始提示:

/tmp/cce9YhFK.s: Assembler messages:
/tmp/cce9YhFK.s:16: Error: bad register name `%rbp'
/tmp/cce9YhFK.s:18: Error: bad register name `%rsp'

最佳答案

当我读到here你有 32 位 binutils,因为 gcc 正在尝试进行 64 位构建。确保您的 binutils 和 gcc 具有相同的配置。

关于c - 在非标准位置构建 gcc-4.3.4 时遇到问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4688149/

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