LinuxSir.cn,穿越时空的Linuxsir!

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

gcc4.3.2编不过去... 谁帮我看一下

[复制链接]
发表于 2009-1-20 11:11:34 | 显示全部楼层 |阅读模式
宿主系统是ARCH X86_64


  1. In file included from /usr/include/features.h:354,
  2.                  from /usr/include/stdio.h:28,
  3.                  from ../../../../gcc-4.3.2/libgcc/../gcc/tsystem.h:90,
  4.                  from ../../../../gcc-4.3.2/libgcc/../gcc/libgcc2.c:33:
  5. /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
  6. make[5]: *** [_muldi3.o] Error 1
  7. make[5]: Leaving directory `/mnt/lfs/sources/gcc-build/x86_64-unknown-linux-gnu/32/libgcc'
  8. make[4]: *** [multi-do] Error 1
  9. make[4]: Leaving directory `/mnt/lfs/sources/gcc-build/x86_64-unknown-linux-gnu/libgcc'
  10. make[3]: *** [all-multi] Error 2
  11. make[3]: Leaving directory `/mnt/lfs/sources/gcc-build/x86_64-unknown-linux-gnu/libgcc'
  12. make[2]: *** [all-stage1-target-libgcc] Error 2
  13. make[2]: Leaving directory `/mnt/lfs/sources/gcc-build'
  14. make[1]: *** [stage1-bubble] Error 2
  15. make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
  16. make: *** [all] Error 2
复制代码
 楼主| 发表于 2009-1-20 12:13:11 | 显示全部楼层
有点明白了。。

如果我想要64位的系统。只能用CLFS?

http://cross-lfs.org/view/svn/x86_64/

纯64位好像比multilib简单一些。。

但是在一般桌面应用上 multilib 更好一些吧?

犹豫中~~现在应用纯64位应该也没什么太大问题吧,64位软件已经很普及了
回复 支持 反对

使用道具 举报

发表于 2009-1-20 13:26:44 | 显示全部楼层
如果你感兴趣,可以试一下这个版本的CLFS:http://cross-lfs.org/view/svn/native/
如果你确定要做的话,再帮我个忙:
做完http://cross-lfs.org/view/svn/native/temp-system/mpfr.html这一步后把
ldd /tools/lib/libmpfr.so的结果贴出来。
我答应聚焦深空兄去做这个实验,可我一直没空。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-1-20 14:10:20 | 显示全部楼层
Post by newper;1939980
如果你感兴趣,可以试一下这个版本的CLFS:http://cross-lfs.org/view/svn/native/
如果你确定要做的话,再帮我个忙:
做完http://cross-lfs.org/view/svn/native/temp-system/mpfr.html这一步后把
ldd /tools/lib/libmpfr.so的结果贴出来。
我答应聚焦深空兄去做这个实验,可我一直没空。


本地化 ?

纯64位哦。。 好吧,我现在去做,出结果了帖上来
回复 支持 反对

使用道具 举报

发表于 2009-1-20 14:15:26 | 显示全部楼层
host是x86_64的应该没问题,不过我没试过
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-1-20 14:45:24 | 显示全部楼层
  1. bash-3.2# ./version-check.sh
  2. bash, version 3.2.48(1)-release
  3. Binutils: (GNU Binutils) 2.19.0.20081119
  4. bison (GNU Bison) 2.4.1
  5. bzip2,  Version 1.0.5, 10-Dec-2007.
  6. Coreutils:  6.12
  7. diff (GNU diffutils) 2.8.1
  8. find (GNU findutils) 4.4.0
  9. GNU Awk 3.1.6
  10. gcc (GCC) 4.3.2
  11. GNU C Library stable release version 2.9,
  12. GNU grep 2.5.3
  13. gzip 1.3.12
  14. GNU Make 3.81
  15. ncurses 5.7.20081102
  16. patch 2.5.9
  17. GNU sed version 4.1.5
  18. tar (GNU tar) 1.21
  19. makeinfo (GNU texinfo) 4.13
复制代码
texinfo 版本不符合要求?
回复 支持 反对

使用道具 举报

发表于 2009-1-20 14:48:34 | 显示全部楼层
4.13可比4.4新啊
回复 支持 反对

使用道具 举报

发表于 2009-1-20 15:43:21 | 显示全部楼层
楼主,检查一下自己宿主的编译环境先,比如编译一个 hello.c 试试。
  1. cat > hello.c << eof
  2. #include <stdio.h>
  3. int main ()
  4. {
  5.         printf ("hello,world!\n");
  6.         return 0;
  7. }
  8. eof
  9. gcc hello.c
  10. ./a.out
复制代码
看起来您宿主编译工具链不完整,或不一致。
您是不是升级过宿主,如是这样,请先修复工具链。

宿主软件版本新一点一般不是问题,如果 archlinux 使用了特殊的补丁,那就不一定适合作宿主。
Post by newper;1939980
我答应聚焦深空兄去做这个实验,可我一直没空

很遗憾,只有无视您了!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-1-20 15:59:09 | 显示全部楼层
Post by 聚焦深空;1940033
楼主,检查一下自己宿主的编译环境先,比如编译一个 hello.c 试试。
  1. cat > hello.c << eof
  2. #include <stdio.h>

  3. int main ()
  4. {
  5.         printf ("hello,world!\n");
  6.         return 0;
  7. }
  8. eof

  9. gcc hello.c
  10. ./a.out
复制代码

看起来您宿主编译工具链不完整,或不一致。
您是不是升级过宿主,如是这样,请先修复工具链。

宿主软件版本新一点一般不是问题,如果 archlinux 使用了特殊的补丁,那就不一定适合作宿主。


  1. bash-3.2# cat > hello.c << eof
  2. > #include <stdio.h>
  3. > int main()
  4. > {
  5. > printf ("hello,world!\n");
  6. > return 0;
  7. > }
  8. > eof
  9. bash-3.2# gcc hello.c
  10. bash-3.2# ./a.out
  11. hello,world!
  12. bash-3.2#
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-1-20 16:03:29 | 显示全部楼层
手册上提供的glibc-2.9下载地址无效。。

我在ftp://sources.redhat.com/pub/glibc/snapshots/
下载了一个glibc-2.9-latest.tar.bz2
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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