LinuxSir.cn,穿越时空的Linuxsir!

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

GCC编译失败,原因没有空间了,已解决

[复制链接]
发表于 2007-8-23 15:44:45 | 显示全部楼层 |阅读模式
我是使用jhalfs来编译,机器是Turion64位双核心的笔记本电脑

使用的live CD是
lfslivecd-x86_64-6.3-r2014.iso


指定的优化参数是
  1. CFLAGS: <-march=k8 -msse3 -O2 -pipe>
  2. CXXFLAGS: <-march=k8 -msse3 -O2 -pipe>
  3. LDFLAGS: <x86_64-pc-linux-gnu>
  4. OTHER_CFLAGS: <-march=k8 -msse3 -O2 -pipe>
  5. OTHER_CXXFLAGS: <-march=k8 -msse3 -O2 -pipe>
  6. OTHER_LDFLAGS: <x86_64-pc-linux-gnu>
复制代码


这些包没有使用优化参数
  1.   binutils       noOpt
  2. gcc            noOpt
  3. glibc          noOpt
  4. grub           noOpt
  5. zlib           defOpt_fPIC
复制代码

编译到第二个包也就是GCC时出错

下面是出错日志:
  1. stage2/xgcc -Bstage2/ -B/tools/x86_64-unknown-linux-gnu/bin/ -c   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute     -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I../../gcc-4.1.2/gcc -I../../gcc-4.1.2/gcc/build -I../../gcc-4.1.2/gcc/../include -I../../gcc-4.1.2/gcc/../libcpp/include     -o build/genoutput.o ../../gcc-4.1.2/gcc/genoutput.c
  2. stage2/xgcc -Bstage2/ -B/tools/x86_64-unknown-linux-gnu/bin/   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute     -DHAVE_CONFIG_H -DGENERATOR_FILE  -o build/genoutput \
  3.                 build/genoutput.o build/rtl.o build/read-rtl.o build/ggc-none.o build/min-insn-modes.o build/gensupport.o build/insn-conditions.o build/print-rtl.o \
  4.                 build/errors.o ../build-x86_64-unknown-linux-gnu/libiberty/libiberty.a
  5. build/genoutput ../../gcc-4.1.2/gcc/config/i386/i386.md > tmp-output.c
  6. /bin/sh ../../gcc-4.1.2/gcc/../move-if-change tmp-output.c insn-output.c
  7. insn-output.c is unchanged
  8. echo timestamp > s-output
  9. stage2/xgcc -Bstage2/ -B/tools/x86_64-unknown-linux-gnu/bin/   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute     -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.1.2/gcc -I../../gcc-4.1.2/gcc/. -I../../gcc-4.1.2/gcc/../include -I../../gcc-4.1.2/gcc/../libcpp/include     -c insn-output.c \
  10.           -o insn-output.o
  11. stage2/xgcc -Bstage2/ -B/tools/x86_64-unknown-linux-gnu/bin/ -c   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute     -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I../../gcc-4.1.2/gcc -I../../gcc-4.1.2/gcc/build -I../../gcc-4.1.2/gcc/../include -I../../gcc-4.1.2/gcc/../libcpp/include     -o build/genpeep.o ../../gcc-4.1.2/gcc/genpeep.c
  12. stage2/xgcc -Bstage2/ -B/tools/x86_64-unknown-linux-gnu/bin/   -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute     -DHAVE_CONFIG_H -DGENERATOR_FILE  -o build/genpeep \
  13.                 build/genpeep.o build/rtl.o build/read-rtl.o build/ggc-none.o build/min-insn-modes.o build/gensupport.o build/insn-conditions.o build/print-rtl.o \
  14.                 build/errors.o ../build-x86_64-unknown-linux-gnu/libiberty/libiberty.a
  15. /tools/x86_64-unknown-linux-gnu/bin/ld: final link failed: No space left on device
  16. collect2: ld returned 1 exit status
  17. make[3]: *** [build/genpeep] Error 1
  18. make[3]: Leaving directory `/mnt/build_dir/sources/gcc-build/gcc'
  19. make[2]: *** [stage3_build] Error 2
  20. make[2]: Leaving directory `/mnt/build_dir/sources/gcc-build/gcc'
  21. make[1]: *** [bootstrap] Error 2
  22. make[1]: Leaving directory `/mnt/build_dir/sources/gcc-build'
复制代码
发表于 2007-8-23 16:10:26 | 显示全部楼层
/tools/x86_64-unknown-linux-gnu/bin/ld: final link failed: No space left on device

没空间了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-8-23 16:29:37 | 显示全部楼层
查了一下,是没有空间了,谢谢了
回复 支持 反对

使用道具 举报

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

本版积分规则

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