|
|
刚刚开始,第一边安装 GCC
,前面都没有问题,在这里出现问题了! 请指点!
[lfs@Jerry gcc-build]$ make install
/bin/sh /LFS/sources/gcc-2.95.3/mkinstalldirs /tools /tools
make[1]: Entering directory `/LFS/sources/gcc-build/gcc'
(cd intl && make all)
make[2]: Entering directory `/LFS/sources/gcc-build/gcc/intl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/LFS/sources/gcc-build/gcc/intl'
if [ -d /tools ] ; then true ; else mkdir /tools ; chmod a+rx /tools ; fi
if [ -d /tools ] ; then true ; else mkdir /tools ; chmod a+rx /tools ; fi
if [ -d /tools/lib ] ; then true ; else mkdir /tools/lib ; chmod a+rx /tools/lib ; fi
if [ -d /tools/lib/gcc-lib ] ; then true ; else mkdir /tools/lib/gcc-lib ; chmod a+rx /tools/lib/gcc-lib ; fi
fdir= ; for dir in `echo /tools/lib/gcc-lib/i686-pc-linux-gnu/2.95.3 | tr '/' '
'`; do \
fdir=${fdir}/${dir}; \
if [ -d ${fdir} ] ; then true ; else mkdir ${fdir}; chmod a+rx ${fdir}; fi ; \done
if [ -d /tools/bin ] ; then true ; else mkdir /tools/bin ; chmod a+rx /tools/bin ; fi
if [ -d /tools/include ] ; then true ; else mkdir /tools/include ; chmod a+rx /tools/include ; fi
if [ -d /tools/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/../../../../i686-pc-linux-gnu ] ; then true ; else mkdir /tools/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/../../../../i686-pc-linux-gnu ; chmod a+rx /tools/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/../../../../i686-pc-linux-gnu ; fi
if [ -d /tools/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/../../../../i686-pc-linux-gnu/include ] ; then true ; else mkdir /tools/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/../../../../i686-pc-linux-gnu/include ; chmod a+rx /tools/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/../../../../i686-pc-linux-gnu/include ; fi
if [ -d /tools/info ] ; then true ; else mkdir /tools/info ; chmod a+rx /tools/info ; fi
parent=`echo /tools/man/man1|sed -e 's@/[^/]*$@@'`; \
if [ -d $parent ] ; then true ; else mkdir $parent ; chmod a+rx $parent ; fi
if [ -d /tools/man/man1 ] ; then true ; else mkdir /tools/man/man1 ; chmod a+rx
/tools/man/man1 ; fi
if [ -f cc1chill ] ; then \
if [ -f chill.install ] ; then \
if [ -f gcc-cross ]; then \
rm -f /tools/bin/i686-pc-linux-gnu-chill; \
/bin/sh /LFS/sources/gcc-2.95.3/install-sh -c chill.install /tools/bin/i686-pc-linux-gnu-chill; \
chmod a+x /tools/bin/i686-pc-linux-gnu-chill; \
else \
rm -f /tools/bin/chill; \
/bin/sh /LFS/sources/gcc-2.95.3/install-sh -c chill.install /tools/bin/chill; \
chmod a+x /tools/bin/chill; \
fi ; \
fi ; \
fi
cp: cannot create regular file `/tools/bin/#inst.2541#': Permission denied
chmod: failed to get attributes of `/tools/bin/chill': No such file or directorymake[1]: [CHILL.install-common] Error 1 (ignored)
if [ -f cc1plus ] ; then \
if [ -f g++-cross ] ; then \
rm -f /tools/bin/`t='s,^,i686-pc-linux-gnu-,'; echo g++ | sed $t`; \
/bin/sh /LFS/sources/gcc-2.95.3/install-sh -c g++-cross /tools/bin/`t='s,^,i686-pc-linux-gnu-,'; echo g++ | sed $t`; \
chmod a+x /tools/bin/`t='s,^,i686-pc-linux-gnu-,'; echo g++ | sed $t`; \
rm -f /tools/bin/`t='s,^,i686-pc-linux-gnu-,'; echo c++ | sed $t`; \
ln /tools/bin/`t='s,^,i686-pc-linux-gnu-,'; echo g++ | sed $t` /tools/bin/`t='s,^,i686-pc-linux-gnu-,'; echo c++ | sed $t`; \
else \
rm -f /tools/bin/`t='s,x,x,'; echo g++ | sed $t`; \
/bin/sh /LFS/sources/gcc-2.95.3/install-sh -c g++ /tools/bin/`t='s,x,x,'; echo g++ | sed $t`; \
chmod a+x /tools/bin/`t='s,x,x,'; echo g++ | sed $t`; \
rm -f /tools/bin/`t='s,x,x,'; echo c++ | sed $t`; \
ln /tools/bin/`t='s,x,x,'; echo g++ | sed $t` /tools/bin/`t='s,x,x,'; echo c++ | sed $t`; \
fi ; \
if [ xc++filt != x ] && [ -x "c++filt" ]; then \
if [ -f g++-cross ] ; then \
rm -f /tools/bin/`t='s,^,i686-pc-linux-gnu-,'; echo c++filt | sed $t`; \
/bin/sh /LFS/sources/gcc-2.95.3/install-sh -c c++filt /tools/bin/`t='s,^,i686-pc-linux-gnu-,'; echo c++filt | sed $t`; \
chmod a+x /tools/bin/`t='s,^,i686-pc-linux-gnu-,'; echo c++filt | sed $t`; \
else \
rm -f /tools/bin/`t='s,x,x,'; echo c++filt | sed $t`; \
/bin/sh /LFS/sources/gcc-2.95.3/install-sh -c c++filt /tools/bin/`t='s,x,x,'; echo c++filt | sed $t`; \
chmod a+x /tools/bin/`t='s,x,x,'; echo c++filt | sed $t`; \
fi ; \
fi ; \
fi
cp: cannot create regular file `/tools/bin/#inst.2556#': Permission denied
chmod: failed to get attributes of `/tools/bin/g++': No such file or directory
ln: accessing `/tools/bin/g++': No such file or directory
cp: cannot create regular file `/tools/bin/#inst.2584#': Permission denied
chmod: failed to get attributes of `/tools/bin/c++filt': No such file or directory
make[1]: [c++.install-common] Error 1 (ignored)
case "c proto gcov CHILL c++ f77 java objc" in \
*[fF]77*) touch /tools/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/lang-f77;; \
*) rm -f /tools/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/lang-f77;; \
esac
if [ -f /tools/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/lang-f77 -a -f f771 ] ; then \
if [ -f g77-cross ] ; then \
rm -f /tools/bin/`t='s,^,i686-pc-linux-gnu-,'; echo g77 | sed $t`; \
/bin/sh /LFS/sources/gcc-2.95.3/install-sh -c g77-cross /tools/bin/`t='s,^,i686-pc-linux-gnu-,'; echo g77 | sed $t`; \
chmod a+x /tools/bin/`t='s,^,i686-pc-linux-gnu-,'; echo g77 | sed $t`; \
else \
rm -f /tools/bin/`t='s,x,x,'; echo g77 | sed $t`; \
/bin/sh /LFS/sources/gcc-2.95.3/install-sh -c g77 /tools/bin/`t='s,x,x,'; echo g77 | sed $t`; \
chmod a+x /tools/bin/`t='s,x,x,'; echo g77 | sed $t`; \
fi ; \
else true; fi
cp: cannot create regular file `/tools/bin/#inst.2604#': Permission denied
chmod: failed to get attributes of `/tools/bin/g77': No such file or directory
make[1]: [f77.install-common] Error 1 (ignored)
rm -f /tools/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/lang-f77
if [ -f gcj ]; then \
if [ -f gcj-cross ]; then \
rm -f /tools/bin/`t='s,^,i686-pc-linux-gnu-,'; echo gcj | sed $t`; \
/bin/sh /LFS/sources/gcc-2.95.3/install-sh -c gcj-cross /tools/bin/`t='s,^,i686-pc-linux-gnu-,'; echo gcj | sed $t`; \
chmod a+x /tools/bin/`t='s,^,i686-pc-linux-gnu-,'; echo gcj | sed $t`; \
else \
rm -f /tools/bin/`t='s,x,x,'; echo gcj | sed $t`; \
/bin/sh /LFS/sources/gcc-2.95.3/install-sh -c gcj /tools/bin/`t='s,x,x,'; echo gcj | sed $t`; \
chmod a+x /tools/bin/`t='s,x,x,'; echo gcj | sed $t`; \
fi ; \
fi ; \
for tool in gcjh jv-scan jcf-dump; do \
if [ -f $tool ]; then \
rm -f /tools/bin/$tool; \
/bin/sh /LFS/sources/gcc-2.95.3/install-sh -c $tool /tools/bin/$tool; \
chmod a+x /tools/bin/$tool; \
fi ; \
done
cp: cannot create regular file `/tools/bin/#inst.2624#': Permission denied
chmod: failed to get attributes of `/tools/bin/gcj': No such file or directory
cp: cannot create regular file `/tools/bin/#inst.2635#': Permission denied
chmod: failed to get attributes of `/tools/bin/gcjh': No such file or directory
cp: cannot create regular file `/tools/bin/#inst.2643#': Permission denied
chmod: failed to get attributes of `/tools/bin/jv-scan': No such file or directory
cp: cannot create regular file `/tools/bin/#inst.2651#': Permission denied
chmod: failed to get attributes of `/tools/bin/jcf-dump': No such file or directory
make[1]: [java.install-common] Error 1 (ignored)
for file in cc1 cc1chill cc1plus f771 jc1 jvgenmain cc1obj; do \
if [ -f $file ] ; then \
rm -f /tools/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/$file; \
/bin/sh /LFS/sources/gcc-2.95.3/install-sh -c $file /tools/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/$file; \
else true; \
fi; \
done
for file in collect2 ..; do \
if [ x"$file" != x.. ]; then \
rm -f /tools/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/$file; \
/bin/sh /LFS/sources/gcc-2.95.3/install-sh -c $file /tools/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/$file; \
else true; fi; \
done
for file in crtbegin.o crtbeginS.o crtend.o crtendS.o ..; do \
if [ x"$file" != x.. ]; then \
rm -f /tools/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/$file; \
/bin/sh /LFS/sources/gcc-2.95.3/install-sh -c -m 644 $file /tools/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/$file; \
chmod a-x /tools/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/$file; \
else true; fi; \
done
if [ -f specs ] ; then \
rm -f /tools/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/specs; \
/bin/sh /LFS/sources/gcc-2.95.3/install-sh -c -m 644 specs /tools/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/specs; \
chmod a-x /tools/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/specs; \
fi
if [ -f protoize ]; \
then \
if [ -f gcc-cross ] ; then \
rm -f /tools/bin/`t='s,^,i686-pc-linux-gnu-,'; echo protoize | sed -e $t`; \
/bin/sh /LFS/sources/gcc-2.95.3/install-sh -c protoize /tools/bin/`t='s,^,i686-pc-linux-gnu-,'; echo protoize | sed -e $t`; \
rm -f /tools/bin/`t='s,^,i686-pc-linux-gnu-,'; echo unprotoize | sed -e
$t`; \
/bin/sh /LFS/sources/gcc-2.95.3/install-sh -c unprotoize /tools/bin/`t='s,^,i686-pc-linux-gnu-,'; echo unprotoize | sed -e $t`; \
else \
rm -f /tools/bin/`t='s,x,x,'; echo protoize | sed -e $t`; \
/bin/sh /LFS/sources/gcc-2.95.3/install-sh -c protoize /tools/bin/`t='s,x,x,'; echo protoize | sed -e $t`; \
rm -f /tools/bin/`t='s,x,x,'; echo unprotoize | sed -e $t`; \
/bin/sh /LFS/sources/gcc-2.95.3/install-sh -c unprotoize /tools/bin/`t='s,x,x,'; echo unprotoize | sed -e $t`; \
fi ; \
rm -f /tools/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/SYSCALLS.c.X; \
/bin/sh /LFS/sources/gcc-2.95.3/install-sh -c -m 644 SYSCALLS.c.X /tools/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/SYSCALLS.c.X; \
chmod a-x /tools/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/SYSCALLS.c.X; \
fi
cp: cannot create regular file `/tools/bin/#inst.2818#': Permission denied
cp: cannot create regular file `/tools/bin/#inst.2831#': Permission denied
rm -f /tools/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/cpp0
/bin/sh /LFS/sources/gcc-2.95.3/install-sh -c cpp0 /tools/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/cpp0
if [ -f gcov ]; \
then \
rm -f /tools/bin/gcov; \
/bin/sh /LFS/sources/gcc-2.95.3/install-sh -c gcov /tools/bin/`t='s,x,x,';
echo gcov | sed -e $t`; \
fi
cp: cannot create regular file `/tools/bin/#inst.2865#': Permission denied
make[1]: [install-common] Error 1 (ignored)
rm -rf /tools/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include
mkdir /tools/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include
chmod a+rx /tools/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include
(cd `pwd`/include ; \
tar -cf - .; exit 0) | (cd /tools/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include; tar xpBf - )
files=`cd /tools/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include; find . -type l -print 2>/dev/null`; \
if [ $? -eq 0 ]; then \
dir=`cd include; pwd`; \
for i in $files; do \
dest=`ls -ld /tools/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include/$i | sed -n 's/.*-> //p'`; \
if expr "$dest" : "$dir.*" > /dev/null; then \
rm -f /tools/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include/$i; \
ln -s `echo $i | sed "s|/[^/]*|/..|g" | sed 's|/..$||'``echo "$dest" | sed "s|$dir||"` /tools/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/include/$i; \
fi; \
done; \
fi
if [ -f libgcc2.ready ] ; then \
true; \
else \
touch libgcc2.ready; \
fi
if [ -f libgcc.a ] ; then \
rm -f /tools/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/libgcc.a; \
/bin/sh /LFS/sources/gcc-2.95.3/install-sh -c -m 644 libgcc.a /tools/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/libgcc.a; \
if [ -f ranlib ] || ( [ "i686-pc-linux-gnu" = "i686-pc-linux-gnu" ] && [ -f /usr/bin/ranlib -o -f /bin/ranlib ] ) ; then \
(cd /tools/lib/gcc-lib/i686-pc-linux-gnu/2.95.3; ranlib libgcc.a); else true; fi; \
chmod a-x /tools/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/libgcc.a; \
else true; fi
rm -f /tools/bin/`t='s,x,x,'; echo cpp | sed -e $t`
/bin/sh /LFS/sources/gcc-2.95.3/install-sh -c -m 755 cpp /tools/bin/`t='s,x,x,'; echo cpp | sed -e $t`
cp: cannot create regular file `/tools/bin/#inst.2909#': Permission denied
make[1]: *** [install-cpp] Error 1
make[1]: Leaving directory `/LFS/sources/gcc-build/gcc'
make: *** [install-gcc] Error 2 |
|