LinuxSir.cn,穿越时空的Linuxsir!

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

我编译GCC-4.1.2的时候似乎进入死循环了?

[复制链接]
发表于 2009-9-13 22:15:09 | 显示全部楼层 |阅读模式
我安照youbest大侠的手把手操作,现在在第三次编译GCC-4.1.2

我编译了2个多小时了,晚上开机差不多就是GCC开始的。
root [ ~ ]# uptime
22:11:44 up  2:52,  3 users,  load average: 1.19, 1.22, 1.19
root [ ~ ]#

现在,我发现它反复输出如下内容,感觉好像进入死循环了?各位大侠有好招没?难道编译过程中本来就会输出这么多重复的信息?

make[1]: Entering directory `/sources/glibc-2.5.1'
/tools/bin/install -c -m 644 include/limits.h /usr/include/limits.h
rm -f /sources/glibc-build/tls.makeT /sources/glibc-build/tls.make.dT
(echo '# Generated from tls.make.c by Makerules.'; \
         gcc -std=gnu99 -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -g -Wstrict-prototypes -mpreferred-stack-boundary=2     -Iinclude  -I/sources/glibc-build -Isysdeps/i386/elf -Inptl/sysdeps/unix/sysv/linux/i386/i686 -Inptl/sysdeps/unix/sysv/linux/i386 -Isysdeps/unix/sysv/linux/i386 -Inptl/sysdeps/unix/sysv/linux -Inptl/sysdeps/pthread -Isysdeps/pthread -Isysdeps/unix/sysv/linux -Isysdeps/gnu -Isysdeps/unix/common -Isysdeps/unix/mman -Isysdeps/unix/inet -Isysdeps/unix/sysv/i386 -Inptl/sysdeps/unix/sysv -Isysdeps/unix/sysv -Isysdeps/unix/i386 -Inptl/sysdeps/unix -Isysdeps/unix -Isysdeps/posix -Isysdeps/i386/i686/fpu -Inptl/sysdeps/i386/i686 -Isysdeps/i386/i686 -Isysdeps/i386/i486 -Inptl/sysdeps/i386/i486 -Isysdeps/i386/fpu -Inptl/sysdeps/i386 -Isysdeps/i386 -Isysdeps/wordsize-32 -Isysdeps/ieee754/ldbl-96 -Isysdeps/ieee754/dbl-64 -Isysdeps/ieee754/flt-32 -Isysdeps/ieee754 -Isysdeps/generic/elf -Isysdeps/generic -Inptl   -Ilibio -I.  -D_LIBC_REENTRANT -include include/libc-symbols.h       -E -DASSEMBLER tls.make.c \
               -MD -MP -MT '$(common-objpfx)tls.make' -MF /sources/glibc-build/tls.make.dT \
         | sed -n '/@@@/{s/@@@[  ]*\(.*\)@@@/\1/;s/[     ]*$//p;}'; \
         echo 'common-generated += tls.make'; \
         sed -e 's@ /sources/glibc-build/@ $(common-objpfx)@g' -e 's@^/sources/glibc-build/@$(common-objpfx)@g' -e 's@  *\([^   \/$][^  \]*\)@ $(..)\1@g' -e 's@^\([^        \/$][^  \]*\)@$(..)\1@g' /sources/glibc-build/tls.make.dT; \
         rm -f /sources/glibc-build/tls.make.dT) > /sources/glibc-build/tls.makeT
mv -f /sources/glibc-build/tls.makeT /sources/glibc-build/tls.make
make[1]: Leaving directory `/sources/glibc-2.5.1'
make[1]: Entering directory `/sources/glibc-2.5.1'
/tools/bin/install -c -m 644 include/limits.h /usr/include/limits.h
rm -f /sources/glibc-build/tls.makeT /sources/glibc-build/tls.make.dT
(echo '# Generated from tls.make.c by Makerules.'; \
         gcc -std=gnu99 -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -g -Wstrict-prototypes -mpreferred-stack-boundary=2     -Iinclude  -I/sources/glibc-build -Isysdeps/i386/elf -Inptl/sysdeps/unix/sysv/linux/i386/i686 -Inptl/sysdeps/unix/sysv/linux/i386 -Isysdeps/unix/sysv/linux/i386 -Inptl/sysdeps/unix/sysv/linux -Inptl/sysdeps/pthread -Isysdeps/pthread -Isysdeps/unix/sysv/linux -Isysdeps/gnu -Isysdeps/unix/common -Isysdeps/unix/mman -Isysdeps/unix/inet -Isysdeps/unix/sysv/i386 -Inptl/sysdeps/unix/sysv -Isysdeps/unix/sysv -Isysdeps/unix/i386 -Inptl/sysdeps/unix -Isysdeps/unix -Isysdeps/posix -Isysdeps/i386/i686/fpu -Inptl/sysdeps/i386/i686 -Isysdeps/i386/i686 -Isysdeps/i386/i486 -Inptl/sysdeps/i386/i486 -Isysdeps/i386/fpu -Inptl/sysdeps/i386 -Isysdeps/i386 -Isysdeps/wordsize-32 -Isysdeps/ieee754/ldbl-96 -Isysdeps/ieee754/dbl-64 -Isysdeps/ieee754/flt-32 -Isysdeps/ieee754 -Isysdeps/generic/elf -Isysdeps/generic -Inptl   -Ilibio -I.  -D_LIBC_REENTRANT -include include/libc-symbols.h       -E -DASSEMBLER tls.make.c \
               -MD -MP -MT '$(common-objpfx)tls.make' -MF /sources/glibc-build/tls.make.dT \
         | sed -n '/@@@/{s/@@@[  ]*\(.*\)@@@/\1/;s/[     ]*$//p;}'; \
         echo 'common-generated += tls.make'; \
         sed -e 's@ /sources/glibc-build/@ $(common-objpfx)@g' -e 's@^/sources/glibc-build/@$(common-objpfx)@g' -e 's@  *\([^   \/$][^  \]*\)@ $(..)\1@g' -e 's@^\([^        \/$][^  \]*\)@$(..)\1@g' /sources/glibc-build/tls.make.dT; \
         rm -f /sources/glibc-build/tls.make.dT) > /sources/glibc-build/tls.makeT
mv -f /sources/glibc-build/tls.makeT /sources/glibc-build/tls.make
make[1]: Leaving directory `/sources/glibc-2.5.1'
make[1]: Entering directory `/sources/glibc-2.5.1'
/tools/bin/install -c -m 644 include/limits.h /usr/include/limits.h
rm -f /sources/glibc-build/tls.makeT /sources/glibc-build/tls.make.dT
(echo '# Generated from tls.make.c by Makerules.'; \
         gcc -std=gnu99 -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -g -Wstrict-prototypes -mpreferred-stack-boundary=2     -Iinclude  -I/sources/glibc-build -Isysdeps/i386/elf -Inptl/sysdeps/unix/sysv/linux/i386/i686 -Inptl/sysdeps/unix/sysv/linux/i386 -Isysdeps/unix/sysv/linux/i386 -Inptl/sysdeps/unix/sysv/linux -Inptl/sysdeps/pthread -Isysdeps/pthread -Isysdeps/unix/sysv/linux -Isysdeps/gnu -Isysdeps/unix/common -Isysdeps/unix/mman -Isysdeps/unix/inet -Isysdeps/unix/sysv/i386 -Inptl/sysdeps/unix/sysv -Isysdeps/unix/sysv -Isysdeps/unix/i386 -Inptl/sysdeps/unix -Isysdeps/unix -Isysdeps/posix -Isysdeps/i386/i686/fpu -Inptl/sysdeps/i386/i686 -Isysdeps/i386/i686 -Isysdeps/i386/i486 -Inptl/sysdeps/i386/i486 -Isysdeps/i386/fpu -Inptl/sysdeps/i386 -Isysdeps/i386 -Isysdeps/wordsize-32 -Isysdeps/ieee754/ldbl-96 -Isysdeps/ieee754/dbl-64 -Isysdeps/ieee754/flt-32 -Isysdeps/ieee754 -Isysdeps/generic/elf -Isysdeps/generic -Inptl   -Ilibio -I.  -D_LIBC_REENTRANT -include include/libc-symbols.h       -E -DASSEMBLER tls.make.c \
               -MD -MP -MT '$(common-objpfx)tls.make' -MF /sources/glibc-build/tls.make.dT \
         | sed -n '/@@@/{s/@@@[  ]*\(.*\)@@@/\1/;s/[     ]*$//p;}'; \
         echo 'common-generated += tls.make'; \
         sed -e 's@ /sources/glibc-build/@ $(common-objpfx)@g' -e 's@^/sources/glibc-build/@$(common-objpfx)@g' -e 's@  *\([^   \/$][^  \]*\)@ $(..)\1@g' -e 's@^\([^        \/$][^  \]*\)@$(..)\1@g' /sources/glibc-build/tls.make.dT; \
         rm -f /sources/glibc-build/tls.make.dT) > /sources/glibc-build/tls.makeT
mv -f /sources/glibc-build/tls.makeT /sources/glibc-build/tls.make
make[1]: Leaving directory `/sources/glibc-2.5.1'
make[1]: Entering directory `/sources/glibc-2.5.1'
/tools/bin/install -c -m 644 include/limits.h /usr/include/limits.h
rm -f /sources/glibc-build/tls.makeT /sources/glibc-build/tls.make.dT
(echo '# Generated from tls.make.c by Makerules.'; \
         gcc -std=gnu99 -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -g -Wstrict-prototypes -mpreferred-stack-boundary=2     -Iinclude  -I/sources/glibc-build -Isysdeps/i386/elf -Inptl/sysdeps/unix/sysv/linux/i386/i686 -Inptl/sysdeps/unix/sysv/linux/i386 -Isysdeps/unix/sysv/linux/i386 -Inptl/sysdeps/unix/sysv/linux -Inptl/sysdeps/pthread -Isysdeps/pthread -Isysdeps/unix/sysv/linux -Isysdeps/gnu -Isysdeps/unix/common -Isysdeps/unix/mman -Isysdeps/unix/inet -Isysdeps/unix/sysv/i386 -Inptl/sysdeps/unix/sysv -Isysdeps/unix/sysv -Isysdeps/unix/i386 -Inptl/sysdeps/unix -Isysdeps/unix -Isysdeps/posix -Isysdeps/i386/i686/fpu -Inptl/sysdeps/i386/i686 -Isysdeps/i386/i686 -Isysdeps/i386/i486 -Inptl/sysdeps/i386/i486 -Isysdeps/i386/fpu -Inptl/sysdeps/i386 -Isysdeps/i386 -Isysdeps/wordsize-32 -Isysdeps/ieee754/ldbl-96 -Isysdeps/ieee754/dbl-64 -Isysdeps/ieee754/flt-32 -Isysdeps/ieee754 -Isysdeps/generic/elf -Isysdeps/generic -Inptl   -Ilibio -I.  -D_LIBC_REENTRANT -include include/libc-symbols.h       -E -DASSEMBLER tls.make.c \
               -MD -MP -MT '$(common-objpfx)tls.make' -MF /sources/glibc-build/tls.make.dT \
         | sed -n '/@@@/{s/@@@[  ]*\(.*\)@@@/\1/;s/[     ]*$//p;}'; \
         echo 'common-generated += tls.make'; \
         sed -e 's@ /sources/glibc-build/@ $(common-objpfx)@g' -e 's@^/sources/glibc-build/@$(common-objpfx)@g' -e 's@  *\([^   \/$][^  \]*\)@ $(..)\1@g' -e 's@^\([^        \/$][^  \]*\)@$(..)\1@g' /sources/glibc-build/tls.make.dT; \
         rm -f /sources/glibc-build/tls.make.dT) > /sources/glibc-build/tls.makeT
mv -f /sources/glibc-build/tls.makeT /sources/glibc-build/tls.make
make[1]: Leaving directory `/sources/glibc-2.5.1'
make[1]: Entering directory `/sources/glibc-2.5.1'
/tools/bin/install -c -m 644 include/limits.h /usr/include/limits.h
rm -f /sources/glibc-build/tls.makeT /sources/glibc-build/tls.make.dT
(echo '# Generated from tls.make.c by Makerules.'; \
         gcc -std=gnu99 -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -g -Wstrict-prototypes -mpreferred-stack-boundary=2     -Iinclude  -I/sources/glibc-build -Isysdeps/i386/elf -Inptl/sysdeps/unix/sysv/linux/i386/i686 -Inptl/sysdeps/unix/sysv/linux/i386 -Isysdeps/unix/sysv/linux/i386 -Inptl/sysdeps/unix/sysv/linux -Inptl/sysdeps/pthread -Isysdeps/pthread -Isysdeps/unix/sysv/linux -Isysdeps/gnu -Isysdeps/unix/common -Isysdeps/unix/mman -Isysdeps/unix/inet -Isysdeps/unix/sysv/i386 -Inptl/sysdeps/unix/sysv -Isysdeps/unix/sysv -Isysdeps/unix/i386 -Inptl/sysdeps/unix -Isysdeps/unix -Isysdeps/posix -Isysdeps/i386/i686/fpu -Inptl/sysdeps/i386/i686 -Isysdeps/i386/i686 -Isysdeps/i386/i486 -Inptl/sysdeps/i386/i486 -Isysdeps/i386/fpu -Inptl/sysdeps/i386 -Isysdeps/i386 -Isysdeps/wordsize-32 -Isysdeps/ieee754/ldbl-96 -Isysdeps/ieee754/dbl-64 -Isysdeps/ieee754/flt-32 -Isysdeps/ieee754 -Isysdeps/generic/elf -Isysdeps/generic -Inptl   -Ilibio -I.  -D_LIBC_REENTRANT -include include/libc-symbols.h       -E -DASSEMBLER tls.make.c \
               -MD -MP -MT '$(common-objpfx)tls.make' -MF /sources/glibc-build/tls.make.dT \
         | sed -n '/@@@/{s/@@@[  ]*\(.*\)@@@/\1/;s/[     ]*$//p;}'; \
         echo 'common-generated += tls.make'; \
         sed -e 's@ /sources/glibc-build/@ $(common-objpfx)@g' -e 's@^/sources/glibc-build/@$(common-objpfx)@g' -e 's@  *\([^   \/$][^  \]*\)@ $(..)\1@g' -e 's@^\([^        \/$][^  \]*\)@$(..)\1@g' /sources/glibc-build/tls.make.dT; \
         rm -f /sources/glibc-build/tls.make.dT) > /sources/glibc-build/tls.makeT
mv -f /sources/glibc-build/tls.makeT /sources/glibc-build/tls.make
make[1]: Leaving directory `/sources/glibc-2.5.1'
make[1]: Entering directory `/sources/glibc-2.5.1'
/tools/bin/install -c -m 644 include/limits.h /usr/include/limits.h
rm -f /sources/glibc-build/tls.makeT /sources/glibc-build/tls.make.dT
(echo '# Generated from tls.make.c by Makerules.'; \
         gcc -std=gnu99 -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -g -Wstrict-prototypes -mpreferred-stack-boundary=2     -Iinclude  -I/sources/glibc-build -Isysdeps/i386/elf -Inptl/sysdeps/unix/sysv/linux/i386/i686 -Inptl/sysdeps/unix/sysv/linux/i386 -Isysdeps/unix/sysv/linux/i386 -Inptl/sysdeps/unix/sysv/linux -Inptl/sysdeps/pthread -Isysdeps/pthread -Isysdeps/unix/sysv/linux -Isysdeps/gnu -Isysdeps/unix/common -Isysdeps/unix/mman -Isysdeps/unix/inet -Isysdeps/unix/sysv/i386 -Inptl/sysdeps/unix/sysv -Isysdeps/unix/sysv -Isysdeps/unix/i386 -Inptl/sysdeps/unix -Isysdeps/unix -Isysdeps/posix -Isysdeps/i386/i686/fpu -Inptl/sysdeps/i386/i686 -Isysdeps/i386/i686 -Isysdeps/i386/i486 -Inptl/sysdeps/i386/i486 -Isysdeps/i386/fpu -Inptl/sysdeps/i386 -Isysdeps/i386 -Isysdeps/wordsize-32 -Isysdeps/ieee754/ldbl-96 -Isysdeps/ieee754/dbl-64 -Isysdeps/ieee754/flt-32 -Isysdeps/ieee754 -Isysdeps/generic/elf -Isysdeps/generic -Inptl   -Ilibio -I.  -D_LIBC_REENTRANT -include include/libc-symbols.h       -E -DASSEMBLER tls.make.c \
               -MD -MP -MT '$(common-objpfx)tls.make' -MF /sources/glibc-build/tls.make.dT \
         | sed -n '/@@@/{s/@@@[  ]*\(.*\)@@@/\1/;s/[     ]*$//p;}'; \
         echo 'common-generated += tls.make'; \
         sed -e 's@ /sources/glibc-build/@ $(common-objpfx)@g' -e 's@^/sources/glibc-build/@$(common-objpfx)@g' -e 's@  *\([^   \/$][^  \]*\)@ $(..)\1@g' -e 's@^\([^        \/$][^  \]*\)@$(..)\1@g' /sources/glibc-build/tls.make.dT; \
         rm -f /sources/glibc-build/tls.make.dT) > /sources/glibc-build/tls.makeT
mv -f /sources/glibc-build/tls.makeT /sources/glibc-build/tls.make
make[1]: Leaving directory `/sources/glibc-2.5.1'
make[1]: Entering directory `/sources/glibc-2.5.1'
/tools/bin/install -c -m 644 include/limits.h /usr/include/limits.h
rm -f /sources/glibc-build/tls.makeT /sources/glibc-build/tls.make.dT
(echo '# Generated from tls.make.c by Makerules.'; \
         gcc -std=gnu99 -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -g -Wstrict-prototypes -mpreferred-stack-boundary=2     -Iinclude  -I/sources/glibc-build -Isysdeps/i386/elf -Inptl/sysdeps/unix/sysv/linux/i386/i686 -Inptl/sysdeps/unix/sysv/linux/i386 -Isysdeps/unix/sysv/linux/i386 -Inptl/sysdeps/unix/sysv/linux -Inptl/sysdeps/pthread -Isysdeps/pthread -Isysdeps/unix/sysv/linux -Isysdeps/gnu -Isysdeps/unix/common -Isysdeps/unix/mman -Isysdeps/unix/inet -Isysdeps/unix/sysv/i386 -Inptl/sysdeps/unix/sysv -Isysdeps/unix/sysv -Isysdeps/unix/i386 -Inptl/sysdeps/unix -Isysdeps/unix -Isysdeps/posix -Isysdeps/i386/i686/fpu -Inptl/sysdeps/i386/i686 -Isysdeps/i386/i686 -Isysdeps/i386/i486 -Inptl/sysdeps/i386/i486 -Isysdeps/i386/fpu -Inptl/sysdeps/i386 -Isysdeps/i386 -Isysdeps/wordsize-32 -Isysdeps/ieee754/ldbl-96 -Isysdeps/ieee754/dbl-64 -Isysdeps/ieee754/flt-32 -Isysdeps/ieee754 -Isysdeps/generic/elf -Isysdeps/generic -Inptl   -Ilibio -I.  -D_LIBC_REENTRANT -include include/libc-symbols.h       -E -DASSEMBLER tls.make.c \
               -MD -MP -MT '$(common-objpfx)tls.make' -MF /sources/glibc-build/tls.make.dT \
         | sed -n '/@@@/{s/@@@[  ]*\(.*\)@@@/\1/;s/[     ]*$//p;}'; \
         echo 'common-generated += tls.make'; \
         sed -e 's@ /sources/glibc-build/@ $(common-objpfx)@g' -e 's@^/sources/glibc-build/@$(common-objpfx)@g' -e 's@  *\([^   \/$][^  \]*\)@ $(..)\1@g' -e 's@^\([^        \/$][^  \]*\)@$(..)\1@g' /sources/glibc-build/tls.make.dT; \
         rm -f /sources/glibc-build/tls.make.dT) > /sources/glibc-build/tls.makeT
mv -f /sources/glibc-build/tls.makeT /sources/glibc-build/tls.make
make[1]: Leaving directory `/sources/glibc-2.5.1'
 楼主| 发表于 2009-9-13 22:59:36 | 显示全部楼层
是不是我敲入的命令错了?哎呀,编译太慢了,敲入命令不连续,很多时间在等待,很容易就弄错了。

root:/sources/glibc-build#
root:/sources/glibc-build# history
    1  mkdir -pv /{bin,boot,etc/opt,home,lib,mnt,opt}
    2  mkdir -pv /{media/{floppy,cdrom},sbin,srv,var}
    3  install -dv -m 0750 /root
    4  install -dv -m 1777 /tmp /var/tmp
    5  mkdir -pv /usr/{,local/}{bin,include,lib,sbin,src}
    6  mkdir -pv /usr/{,local/}share/{doc,info,locale,man}
    7  mkdir -pv /usr/{,local/}share/{misc,terminfo,zoneinfo}
    8  mkdir -pv /usr/{,local/}share/man/man{1..8}
    9  for dir in /usr /usr/local; do ln -sv share/{man,doc,info} $dir; done
   10  mkdir -pv /var/{lock,log,mail,run,spool}
   11  mkdir -pv /var/{opt,cache,lib/{misc,locate},local}
   12  ln -sv /tools/bin/{bash,cat,echo,grep,pwd,stty} /bin
   13  ln -sv /tools/bin/perl /usr/bin
   14  ln -sv /tools/lib/libgcc_s.so{,.1} /usr/lib
   15  ln -sv /tools/lib/libstdc++.so{,.6} /usr/lib
   16  ln -sv bash /bin/sh
   17  touch /etc/mtab
   18  cat > /etc/passwd << "EOF"
   19  cat > /etc/group << "EOF"
   20  exec /tools/bin/bash --login +h
   21  touch /var/run/utmp /var/log/{btmp,lastlog,wtmp}
   22  chgrp -v utmp /var/run/utmp /var/log/lastlog
   23  chmod -v 664 /var/run/utmp /var/log/lastlog
   24  cd /sources
   25  export LFS=/sources
   26  tar xvf $LFS/linux-2.6.22.5.tar.bz2
   27  cd linux-2.6.22.5
   28  sed -i '/scsi/d' include/Kbuild
   29  make mrproper
   30  make headers_check
   31  make INSTALL_HDR_PATH=dest headers_install
   32  cp -rv dest/include/* /usr/include
   33  cd ..
   34  rm -rf linux-2.6.22.5
   35  tar xvf $LFS/man-pages-2.63.tar.bz2
   36  cd man-pages-2.63
   37  make install
   38  cd ..
   39  rm -rf man-pages-2.63
   40  tar xvf $LFS/glibc-2.5.1.tar.bz2
   41  cd glibc-2.5.1
   42  tar -xvf $LFS/glibc-libidn-2.5.1.tar.gz
   43  mv glibc-libidn-2.5.1 libidn
   44  sed -i '/vi_VN.TCVN/d' localedata/SUPPORTED
   45  sed -i 's|libs -o|libs -L/usr/lib -Wl,-dynamic-linker=/lib/ld-linux.so.2 -o|'    scripts/test-installation.pl
   46  sed -i 's|@BASH@|/bin/bash|' elf/ldd.bash.in
   47  mkdir -v ../glibc-build
   48  cd ../glibc-build
   49  ../glibc-2.5.1/configure --prefix=/usr --disable-profile --enable-add-ons --enable-kernel=2.6.0 --libexecdir=/usr/lib/glibc
   50  make
   51  make -k check 2>&1 | tee glibc-check-log
   52  grep Error glibc-check-log
   53  touch /etc/ld.so.conf
   54  make install
   55  make localedata/install-locales
   56  cat > /etc/nsswitch.conf << "EOF"
   57  cp -v --remove-destination /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
   58  cat > /etc/ld.so.conf << "EOF"
   59  cd ..
   60  rm -rf glibc-build
   61  rm -rf glibc-2.5.1
   62  mv -v /tools/bin/{ld,ld-old}
   63  mv -v /tools/$(gcc -dumpmachine)/bin/{ld,ld-old}
   64  mv -v /tools/bin/{ld-new,ld}
   65  ln -sv /tools/bin/ld /tools/$(gcc -dumpmachine)/bin/ld
   66  gcc -dumpspecs | sed -e 's@/tools/lib/ld-linux.so.2@/lib/ld-linux.so.2@g' -e '/\*startfile_prefix_spec:/{n;s@.*@/usr/lib/ @}' -e '/\*cpp:/{n;s@$@ -isystem /usr/include@}' > `dirname $(gcc --print-libgcc-file-name)`/specs
   67  echo 'main(){}' > dummy.c
   68  cc dummy.c -v -Wl,--verbose &> dummy.log
   69  readelf -l a.out | grep '/lib'
   70  grep -o '/usr/lib.*/crt[1in].*succeeded' dummy.log
   71  grep -B1 '^ /usr/include' dummy.log
   72  grep 'SEARCH.*/usr/lib' dummy.log |sed 's|; |\n|g'
   73  grep "/lib/libc.so.6 " dummy.log
   74  grep found dummy.log
   75  rm -v dummy.c a.out dummy.log
   76  halt
   77  exit
   78  ls
   79  ls /sources/
   80  cd /sources
   81  export LFS=/sources
   82  tar xvf $LFS/linux-2.6.22.5.tar.bz2
   83  cd linux-2.6.22.5
   84  sed -i '/scsi/d' include/Kbuild
   85  make mrproper
   86  make headers_check
   87  make INSTALL_HDR_PATH=dest headers_install
   88  cp -rv dest/include/* /usr/include
   89  cd ..
   90  rm -rf linux-2.6.22.5
   91  tar xvf $LFS/man-pages-2.63.tar.bz2
   92  cd man-pages-2.63
   93  make install
   94  cd ..
   95  rm -rf man-pages-2.63
   96  ls | glibc
   97  ls | grep glibc
   98  tar xvf $LFS/glibc-2.5.1.tar.bz2
   99  cd glibc-2.5.1
  100  tar -xvf $LFS/glibc-libidn-2.5.1.tar.gz
  101  mv glibc-libidn-2.5.1 libidn
  102  sed -i '/vi_VN.TCVN/d' localedata/SUPPORTED
  103  sed -i 's|libs -o|libs -L/usr/lib -Wl,-dynamic-linker=/lib/ld-linux.so.2 -o|'    scripts/test-installation.pl
  104  sed -i 's|@BASH@|/bin/bash|' elf/ldd.bash.in
  105  mkdir -v ../glibc-build
  106  cd ../glibc-build
  107  ../glibc-2.5.1/configure --prefix=/usr --disable-profile --enable-add-ons --enable-kernel=2.6.0 --libexecdir=/usr/lib/glibc
  108  make
  109  history
root:/sources/glibc-build#
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-9-13 23:02:40 | 显示全部楼层
仔细核对了下,好像命令顺序没错,比较奇怪有这种现象。。。
回复 支持 反对

使用道具 举报

发表于 2009-9-14 09:38:04 | 显示全部楼层
Boot strap,
迭代编译自己三遍
比较第二次和第三次编译的结果是否相同.
回复 支持 反对

使用道具 举报

发表于 2009-9-15 13:43:08 | 显示全部楼层
您的情况有下面几种解释:
不读手册,尤其是前几章,特别是宿主要求,看老版手册 却 顽固使用比较现代的宿主;
不读手册,尤其是 LFS 用户环境设置,顽固使用宿主 root 用户(有权限损坏宿主);
不读手册,特别是路径部分;
不停设置系统时间(gcc 等 make 时要靠文件时间戳控制流程)。
回复 支持 反对

使用道具 举报

发表于 2009-9-15 16:11:55 | 显示全部楼层
gcc编译的就是慢,如果等待时间超过4个小时,才可能是出了问题!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-9-15 18:44:28 | 显示全部楼层
按youbest的手把手操作的,用的r2145的liveCD作为宿主系统。
我也怀疑是时间没到,不过看到它每次都输出同样东西,对有一个好的结果没有信心。
迭代编译自己三遍倒是不错,不过它太慢,我还没来得及尝试。
打算先研究下手册,把原理看清楚,再尝试一下。谢谢各位。
回复 支持 反对

使用道具 举报

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

本版积分规则

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