LinuxSir.cn,穿越时空的Linuxsir!

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

6. Installing Basic System Software--- GCC-3.4.1

[复制链接]
发表于 2005-6-14 00:12:37 | 显示全部楼层 |阅读模式
6. Installing Basic System Software--- GCC-3.4.1        
III. Building the LFS System

*
6. Installing Basic System Software

GCC-3.4.1
-----------------------------

patch -Np1 -i ../gcc-3.4.1-no_fixincludes-1.patch
patch -Np1 -i ../gcc-3.4.1-linkonce-1.patch
sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
mkdir ../gcc-build
cd ../gcc-build
../gcc-3.4.1/configure --prefix=/usr \
--libexecdir=/usr/lib --enable-shared \
--enable-threads=posix --enable-__cxa_atexit \
--enable-clocale=gnu --enable-languages=c,c++
------------------------------
make(error info)
-------------------------------
root:/tools/gcc-build# make
make[1]: Entering directory `/tools/gcc-build/libiberty'
make[2]: Entering directory `/tools/gcc-build/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tools/gcc-build/libiberty/testsuite'
make[1]: Leaving directory `/tools/gcc-build/libiberty'
make[1]: Entering directory `/tools/gcc-build/intl'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tools/gcc-build/intl'
make[1]: Entering directory `/tools/gcc-build/gcc'
echo "/* This file is machine generated. Do not edit. */" > tmp-gtyp.h
echo "static const char *const srcdir = " >> tmp-gtyp.h
echo "\"../../gcc-3.4.1/gcc\"" >> tmp-gtyp.h
echo ";" >> tmp-gtyp.h
echo "static const char *const lang_files[] = {" >> tmp-gtyp.h
ll="../../gcc-3.4.1/gcc/cp/mangle.c ../../gcc-3.4.1/gcc/cp/name-lookup.h ../../gcc-3.4.1/gcc/cp/name-lookup.c ../../gcc-3.4.1/gcc/cp/cp-tree.h ../../gcc-3.4.1/gcc/cp/decl.h ../../gcc-3.4.1/gcc/cp/lex.h ../../gcc-3.4.1/gcc/cp/call.c ../../gcc-3.4.1/gcc/cp/decl.c ../../gcc-3.4.1/gcc/cp/decl2.c ../../gcc-3.4.1/gcc/cp/pt.c ../../gcc-3.4.1/gcc/cp/repo.c ../../gcc-3.4.1/gcc/cp/semantics.c ../../gcc-3.4.1/gcc/cp/tree.c ../../gcc-3.4.1/gcc/cp/parser.c ../../gcc-3.4.1/gcc/cp/method.c ../../gcc-3.4.1/gcc/c-common.c ../../gcc-3.4.1/gcc/c-common.h ../../gcc-3.4.1/gcc/c-pragma.c ../../gcc-3.4.1/gcc/c-lang.c ../../gcc-3.4.1/gcc/c-parse.in ../../gcc-3.4.1/gcc/c-tree.h ../../gcc-3.4.1/gcc/c-decl.c ../../gcc-3.4.1/gcc/c-common.c ../../gcc-3.4.1/gcc/c-common.h ../../gcc-3.4.1/gcc/c-pragma.c ../../gcc-3.4.1/gcc/c-objc-common.c "; \
for f in $ll; do \
echo "\"$f\", "; done >> tmp-gtyp.h
echo "NULL};" >> tmp-gtyp.h
echo "static const char *const langs_for_lang_files[] = {" >> tmp-gtyp.h
ff="cp cp cp cp cp cp cp cp cp cp cp cp cp cp cp cp cp cp c c c c c c c c "; \
for f in $ff; do \
echo "\"$f\", " ; done >> tmp-gtyp.h
echo "NULL};" >> tmp-gtyp.h
echo "static const char *const all_files[] = {" >> tmp-gtyp.h
gf="../../gcc-3.4.1/gcc/input.h ../../gcc-3.4.1/gcc/coretypes.h ../../gcc-3.4.1/gcc/cpplib.h auto-host.h ../../gcc-3.4.1/gcc/../include/ansidecl.h ../../gcc-3.4.1/gcc/config/i386/i386.h ../../gcc-3.4.1/gcc/config/i386/unix.h ../../gcc-3.4.1/gcc/config/i386/att.h ../../gcc-3.4.1/gcc/config/dbxelf.h ../../gcc-3.4.1/gcc/config/elfos.h ../../gcc-3.4.1/gcc/config/svr4.h ../../gcc-3.4.1/gcc/config/linux.h ../../gcc-3.4.1/gcc/config/i386/linux.h ../../gcc-3.4.1/gcc/defaults.h ../../gcc-3.4.1/gcc/../include/hashtab.h ../../gcc-3.4.1/gcc/../include/splay-tree.h ../../gcc-3.4.1/gcc/bitmap.h ../../gcc-3.4.1/gcc/coverage.c ../../gcc-3.4.1/gcc/function.h ../../gcc-3.4.1/gcc/rtl.h ../../gcc-3.4.1/gcc/optabs.h ../../gcc-3.4.1/gcc/tree.h ../../gcc-3.4.1/gcc/libfuncs.h ../../gcc-3.4.1/gcc/hashtable.h ../../gcc-3.4.1/gcc/real.h ../../gcc-3.4.1/gcc/varray.h ../../gcc-3.4.1/gcc/insn-addr.h ../../gcc-3.4.1/gcc/cselib.h ../../gcc-3.4.1/gcc/basic-block.h ../../gcc-3.4.1/gcc/cgraph.h ../../gcc-3.4.1/gcc/c-common.h ../../gcc-3.4.1/gcc/c-tree.h ../../gcc-3.4.1/gcc/alias.c ../../gcc-3.4.1/gcc/bitmap.c ../../gcc-3.4.1/gcc/cselib.c ../../gcc-3.4.1/gcc/cgraph.c ../../gcc-3.4.1/gcc/dbxout.c ../../gcc-3.4.1/gcc/dwarf2out.c ../../gcc-3.4.1/gcc/dwarf2asm.c ../../gcc-3.4.1/gcc/emit-rtl.c ../../gcc-3.4.1/gcc/except.c ../../gcc-3.4.1/gcc/explow.c ../../gcc-3.4.1/gcc/expr.c ../../gcc-3.4.1/gcc/fold-const.c ../../gcc-3.4.1/gcc/function.c ../../gcc-3.4.1/gcc/gcse.c ../../gcc-3.4.1/gcc/integrate.c ../../gcc-3.4.1/gcc/lists.c ../../gcc-3.4.1/gcc/optabs.c ../../gcc-3.4.1/gcc/profile.c ../../gcc-3.4.1/gcc/ra-build.c ../../gcc-3.4.1/gcc/regclass.c ../../gcc-3.4.1/gcc/reg-stack.c ../../gcc-3.4.1/gcc/cfglayout.c ../../gcc-3.4.1/gcc/langhooks.c ../../gcc-3.4.1/gcc/sdbout.c ../../gcc-3.4.1/gcc/stmt.c ../../gcc-3.4.1/gcc/stor-layout.c ../../gcc-3.4.1/gcc/stringpool.c ../../gcc-3.4.1/gcc/tree.c ../../gcc-3.4.1/gcc/varasm.c ../../gcc-3.4.1/gcc/config/i386/i386.c ../../gcc-3.4.1/gcc/cp/mangle.c ../../gcc-3.4.1/gcc/cp/name-lookup.h ../../gcc-3.4.1/gcc/cp/name-lookup.c ../../gcc-3.4.1/gcc/cp/cp-tree.h ../../gcc-3.4.1/gcc/cp/decl.h ../../gcc-3.4.1/gcc/cp/lex.h ../../gcc-3.4.1/gcc/cp/call.c ../../gcc-3.4.1/gcc/cp/decl.c ../../gcc-3.4.1/gcc/cp/decl2.c ../../gcc-3.4.1/gcc/cp/pt.c ../../gcc-3.4.1/gcc/cp/repo.c ../../gcc-3.4.1/gcc/cp/semantics.c ../../gcc-3.4.1/gcc/cp/tree.c ../../gcc-3.4.1/gcc/cp/parser.c ../../gcc-3.4.1/gcc/cp/method.c ../../gcc-3.4.1/gcc/c-common.c ../../gcc-3.4.1/gcc/c-common.h ../../gcc-3.4.1/gcc/c-pragma.c ../../gcc-3.4.1/gcc/c-lang.c ../../gcc-3.4.1/gcc/c-parse.in ../../gcc-3.4.1/gcc/c-tree.h ../../gcc-3.4.1/gcc/c-decl.c ../../gcc-3.4.1/gcc/c-common.c ../../gcc-3.4.1/gcc/c-common.h ../../gcc-3.4.1/gcc/c-pragma.c ../../gcc-3.4.1/gcc/c-objc-common.c"; \
for f in $gf; do \
echo "\"$f\", "; done >> tmp-gtyp.h
echo " NULL};" >> tmp-gtyp.h
echo "static const char *const lang_dir_names[] = { \"c\", " >> tmp-gtyp.h
gf="cp"; \
for l in $gf; do \
echo "\"$l\", "; done >> tmp-gtyp.h
echo "NULL};" >> tmp-gtyp.h
/bin/sh ../../gcc-3.4.1/gcc/move-if-change tmp-gtyp.h gtyp-gen.h
gtyp-gen.h is unchanged
AWK=gawk /bin/sh ../../gcc-3.4.1/gcc/opts.sh \
'/bin/sh ../../gcc-3.4.1/gcc/move-if-change' \
options.c options.h ../../gcc-3.4.1/gcc/c.opt ../../gcc-3.4.1/gcc/common.opt
options.h is unchanged
options.c is unchanged
if [ -f specs.ready ] ; then \
true; \
else \
echo timestamp > specs.ready; \
fi
/tools/gcc-build/gcc/xgcc -B/tools/gcc-build/gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I. -I../../gcc-3.4.1/gcc -I../../gcc-3.4.1/gcc/. -I../../gcc-3.4.1/gcc/../include -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-unit-at-a-time -fno-omit-frame-pointer \
-c ../../gcc-3.4.1/gcc/crtstuff.c -DCRT_BEGIN \
-o crtbegin.o
In file included from /usr/include/linux/errno.h:134,
from /usr/include/bits/errno.h:25,
from /usr/include/errno.h:36,
from ../../gcc-3.4.1/gcc/tsystem.h:85,
from ../../gcc-3.4.1/gcc/crtstuff.c:62:
/usr/include/asm/errno.h:4:31: asm-generic/errno.h: No such file or directory
make[1]: *** [crtbegin.o] Error 1
make[1]: Leaving directory `/tools/gcc-build/gcc'
make: *** [all-gcc] Error 2
---------------------------------------------------
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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