|
我是使用jhalfs来编译,机器是Turion64位双核心的笔记本电脑
使用的live CD是
lfslivecd-x86_64-6.3-r2014.iso
指定的优化参数是
- CFLAGS: <-march=k8 -msse3 -O2 -pipe>
- CXXFLAGS: <-march=k8 -msse3 -O2 -pipe>
- LDFLAGS: <x86_64-pc-linux-gnu>
- OTHER_CFLAGS: <-march=k8 -msse3 -O2 -pipe>
- OTHER_CXXFLAGS: <-march=k8 -msse3 -O2 -pipe>
- OTHER_LDFLAGS: <x86_64-pc-linux-gnu>
复制代码
这些包没有使用优化参数
- binutils noOpt
- gcc noOpt
- glibc noOpt
- grub noOpt
- zlib defOpt_fPIC
复制代码
编译到第二个包也就是GCC时出错
下面是出错日志:
- 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
- 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 \
- 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 \
- build/errors.o ../build-x86_64-unknown-linux-gnu/libiberty/libiberty.a
- build/genoutput ../../gcc-4.1.2/gcc/config/i386/i386.md > tmp-output.c
- /bin/sh ../../gcc-4.1.2/gcc/../move-if-change tmp-output.c insn-output.c
- insn-output.c is unchanged
- echo timestamp > s-output
- 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 \
- -o insn-output.o
- 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
- 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 \
- 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 \
- build/errors.o ../build-x86_64-unknown-linux-gnu/libiberty/libiberty.a
- /tools/x86_64-unknown-linux-gnu/bin/ld: final link failed: No space left on device
- collect2: ld returned 1 exit status
- make[3]: *** [build/genpeep] Error 1
- make[3]: Leaving directory `/mnt/build_dir/sources/gcc-build/gcc'
- make[2]: *** [stage3_build] Error 2
- make[2]: Leaving directory `/mnt/build_dir/sources/gcc-build/gcc'
- make[1]: *** [bootstrap] Error 2
- make[1]: Leaving directory `/mnt/build_dir/sources/gcc-build'
复制代码 |
|