|
|
我是在LFS官方上下的LIVECD ,版本是6.2.5的,直接用LIVE CD启动进行的安装.安装的顺序是参照CD内的说明文档进行的.看了一下,那个说明文档和以前版本的不太一样.文档链接为:http://lfs.cs.hit.edu.cn/en/index.html.
前几步,按照说明做没有出现任何提示错误.调整链接器也是按照书上做的.虽说是手动输入,但总不至于两次出现同样的错误吧.
以下是第二次编绎GCC时我所做的.
在/mnt/lfs(lfs用户的主目录)下建一gcc-build目录,将GCC包和补丁(只有一个,绝不会错的).解压GCC 包,进入目录,打补丁,没错误.再执行:
cp -v gcc/Makefile.in{,.orig} &&
sed 's@\./fixinc\.sh@-c true@' gcc/Makefile.in.orig > gcc/Makefile.in
和
cp -v gcc/Makefile.in{,.tmp} &&
sed 's/^XCFLAGS =$/& -fomit-frame-pointer/' gcc/Makefile.in.tmp \
> gcc/Makefile.in
(以上的那个,第一次是先执行帖出的命令,再打的补本,一样的出错)
再接着是
../gcc-4.0.3/configure --prefix=/tools \
--with-local-prefix=/tools --enable-clocale=gnu \
--enable-shared --enable-threads=posix \
--enable-__cxa_atexit --enable-languages=c,c++ \
--disable-libstdcxx-pch
再是:make
1,make > maketest 得到的文件的内容
Configuring in fixincludes
configure: loading cache ./config.cache
checking build system type... (cached) i686-pc-linux-gnu
checking host system type... (cached) i686-pc-linux-gnu
checking target system type... (cached) i686-pc-linux-gnu
checking for i686-pc-linux-gnu-gcc... (cached) gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... (cached) o
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking how to run the C preprocessor... (cached) gcc -E
checking for egrep... (cached) grep -E
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for stddef.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for strings.h... (cached) yes
checking for unistd.h... (cached) yes
checking for fcntl.h... (cached) yes
checking for sys/file.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for clearerr_unlocked... (cached) yes
checking for feof_unlocked... (cached) yes
checking for ferror_unlocked... (cached) yes
checking for fflush_unlocked... (cached) yes
checking for fgetc_unlocked... (cached) yes
checking for fgets_unlocked... (cached) yes
checking for fileno_unlocked... (cached) yes
checking for fprintf_unlocked... (cached) no
checking for fputc_unlocked... (cached) yes
checking for fputs_unlocked... (cached) yes
checking for fread_unlocked... (cached) yes
checking for fwrite_unlocked... (cached) yes
checking for getchar_unlocked... (cached) yes
checking for getc_unlocked... (cached) yes
checking for putchar_unlocked... (cached) yes
checking for putc_unlocked... (cached) yes
checking whether abort is declared... (cached) yes
checking whether errno is declared... (cached) no
checking whether clearerr_unlocked is declared... (cached) yes
checking whether feof_unlocked is declared... (cached) yes
checking whether ferror_unlocked is declared... (cached) yes
checking whether fflush_unlocked is declared... (cached) yes
checking whether fgetc_unlocked is declared... (cached) yes
checking whether fgets_unlocked is declared... (cached) no
checking whether fileno_unlocked is declared... (cached) yes
checking whether fprintf_unlocked is declared... (cached) no
checking whether fputc_unlocked is declared... (cached) yes
checking whether fputs_unlocked is declared... (cached) no
checking whether fread_unlocked is declared... (cached) yes
checking whether fwrite_unlocked is declared... (cached) yes
checking whether getchar_unlocked is declared... (cached) yes
checking whether getc_unlocked is declared... (cached) yes
checking whether putchar_unlocked is declared... (cached) yes
checking whether putc_unlocked is declared... (cached) yes
checking for an ANSI C-conforming const... (cached) yes
checking for sys/mman.h... (cached) yes
checking for mmap... (cached) yes
checking whether read-only mmap of a plain file works... (cached) yes
checking whether mmap from /dev/zero works... (cached) yes
checking for MAP_ANON(YMOUS)... (cached) yes
checking whether mmap with MAP_ANON(YMOUS) works... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating mkheaders
config.status: creating config.h
config.status: config.h is unchanged
Configuring in libiberty
configure: loading cache ./config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking for makeinfo... (cached) makeinfo
checking for perl... (cached) perl
checking build system type... (cached) i686-pc-linux-gnu
checking host system type... (cached) i686-pc-linux-gnu
checking for i686-pc-linux-gnu-ar... (cached) ar
checking for i686-pc-linux-gnu-ranlib... (cached) ranlib
checking for i686-pc-linux-gnu-gcc... (cached) gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... (cached) o
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking how to run the C preprocessor... (cached) gcc -E
checking whether gcc and cc understand -c and -o together... (cached) yes
checking for an ANSI C-conforming const... (cached) yes
checking for inline... (cached) inline
checking whether byte ordering is bigendian... (cached) no
checking for a BSD-compatible install... (cached) /usr/bin/install -c
Appending ./../config/mh-x86pic to xhost-mkfrag
xhost-mkfrag is unchanged
checking for sys/file.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for limits.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for malloc.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for strings.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for time.h... (cached) yes
checking for sys/resource.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for sys/mman.h... (cached) yes
checking for fcntl.h... (cached) yes
checking for alloca.h... (cached) yes
checking for sys/pstat.h... (cached) no
checking for sys/sysmp.h... (cached) no
checking for sys/sysinfo.h... (cached) yes
checking for machine/hal_sysinfo.h... (cached) no
checking for sys/table.h... (cached) no
checking for sys/sysctl.h... (cached) yes
checking for sys/systemcfg.h... (cached) no
checking for stdint.h... (cached) yes
checking for stdio_ext.h... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... (cached) yes
checking whether time.h and sys/time.h may both be included... (cached) yes
checking whether errno must be declared... (cached) no
checking for egrep... (cached) grep -E
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for int... (cached) yes
checking size of int... (cached) 4
checking for uintptr_t... (cached) yes
checking for a 64-bit type... (cached) uint64_t
checking for pid_t... (cached) yes
checking for library containing strerror... (cached) none required
checking for asprintf... (cached) yes
checking for atexit... (cached) yes
checking for basename... (cached) yes
checking for bcmp... (cached) yes
checking for bcopy... (cached) yes
checking for bsearch... (cached) yes
checking for bzero... (cached) yes
checking for calloc... (cached) yes
checking for clock... (cached) yes
checking for ffs... (cached) yes
checking for getcwd... (cached) yes
checking for getpagesize... (cached) yes
checking for index... (cached) yes
checking for insque... (cached) yes
checking for memchr... (cached) yes
checking for memcmp... (cached) yes
checking for memcpy... (cached) yes
checking for memmove... (cached) yes
checking for mempcpy... (cached) yes
checking for memset... (cached) yes
checking for mkstemps... (cached) no
checking for putenv... (cached) yes
checking for random... (cached) yes
checking for rename... (cached) yes
checking for rindex... (cached) yes
checking for setenv... (cached) yes
checking for snprintf... (cached) yes
checking for sigsetmask... (cached) yes
checking for stpcpy... (cached) yes
checking for stpncpy... (cached) yes
checking for strcasecmp... (cached) yes
checking for strchr... (cached) yes
checking for strdup... (cached) yes
checking for strncasecmp... (cached) yes
checking for strrchr... (cached) yes
checking for strstr... (cached) yes
checking for strtod... (cached) yes
checking for strtol... (cached) yes
checking for strtoul... (cached) yes
checking for tmpnam... (cached) yes
checking for vasprintf... (cached) yes
checking for vfprintf... (cached) yes
checking for vprintf... (cached) yes
checking for vsnprintf... (cached) yes
checking for vsprintf... (cached) yes
checking for waitpid... (cached) yes
checking whether alloca needs Cray hooks... (cached) no
checking stack direction for C alloca... (cached) -1
checking for unistd.h... (cached) yes
checking for vfork.h... (cached) no
checking for fork... (cached) yes
checking for vfork... (cached) yes
checking for working fork... (cached) yes
checking for working vfork... (cached) yes
checking for _doprnt... (cached) no
checking for sys_errlist... (cached) yes
checking for sys_nerr... (cached) yes
checking for sys_siglist... (cached) yes
checking for external symbol _system_configuration... no
checking for getrusage... (cached) yes
checking for on_exit... (cached) yes
checking for psignal... (cached) yes
checking for strerror... (cached) yes
checking for strsignal... (cached) yes
checking for sysconf... (cached) yes
checking for times... (cached) yes
checking for sbrk... (cached) yes
checking for gettimeofday... (cached) yes
checking for realpath... (cached) yes
checking for canonicalize_file_name... (cached) yes
checking for pstat_getstatic... (cached) no
checking for pstat_getdynamic... (cached) no
checking for sysmp... (cached) no
checking for getsysinfo... (cached) no
checking for table... (cached) no
checking for sysctl... (cached) yes
checking for __fsetlocking... (cached) yes
checking whether canonicalize_file_name must be declared... (cached) yes
checking for working strncmp... (cached) yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating testsuite/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default commands
make[1]: Entering directory `/mnt/lfs/gcc-bulid1/gcc-4.0.3/libiberty'
rm -f needed-list; touch needed-list; \
for f in atexit calloc memchr memcmp memcpy memmove memset rename strchr strerror strncmp strrchr strstr strtol strtoul tmpnam vfprintf vprintf vfork waitpid bcmp bcopy bzero; do \
for g in ./mkstemps.o ; do \
case "$g" in \
*$f*) echo $g >> needed-list ;; \
esac; \
done; \
done
echo ./regex.o ./cplus-dem.o ./cp-demangle.o ./md5.o ./alloca.o ./argv.o ./choose-temp.o ./concat.o ./cp-demint.o ./dyn-string.o ./fdmatch.o ./fibheap.o ./floatformat.o ./fnmatch.o ./fopen_unlocked.o ./getopt.o ./getopt1.o ./getpwd.o ./getruntime.o ./hashtab.o ./hex.o ./lbasename.o ./lrealpath.o ./make-relative-prefix.o ./make-temp-file.o ./objalloc.o ./obstack.o ./partition.o ./physmem.o ./pex-unix.o ./safe-ctype.o ./sort.o ./spaces.o ./splay-tree.o ./strerror.o ./strsignal.o ./ternary.o ./xatexit.o ./xexit.o ./xmalloc.o ./xmemdup.o ./xstrdup.o ./xstrerror.o > required-list
make[2]: Entering directory `/mnt/lfs/gcc-bulid1/gcc-4.0.3/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/mnt/lfs/gcc-bulid1/gcc-4.0.3/libiberty/testsuite'
make[1]: Leaving directory `/mnt/lfs/gcc-bulid1/gcc-4.0.3/libiberty'
make[1]: Entering directory `/mnt/lfs/gcc-bulid1/gcc-4.0.3/fixincludes'
gcc -c -g -O2 -DHAVE_CONFIG_H -I. -I. -I../include -I./../include fixincl.c
gcc -c -g -O2 -DHAVE_CONFIG_H -I. -I. -I../include -I./../include fixtests.c
gcc -c -g -O2 -DHAVE_CONFIG_H -I. -I. -I../include -I./../include fixfixes.c
gcc -c -g -O2 -DHAVE_CONFIG_H -I. -I. -I../include -I./../include server.c
gcc -c -g -O2 -DHAVE_CONFIG_H -I. -I. -I../include -I./../include procopen.c
gcc -c -g -O2 -DHAVE_CONFIG_H -I. -I. -I../include -I./../include fixlib.c
gcc -c -g -O2 -DHAVE_CONFIG_H -I. -I. -I../include -I./../include fixopts.c
gcc -g -O2 -o fixincl fixincl.o fixtests.o fixfixes.o server.o procopen.o fixlib.o fixopts.o ../libiberty/libiberty.a
echo timestamp > full-stamp
srcdir="." /bin/sh ./mkfixinc.sh i686-pc-linux-gnu
make[1]: Leaving directory `/mnt/lfs/gcc-bulid1/gcc-4.0.3/fixincludes'
Configuring in intl
configure: loading cache ./config.cache
checking whether make sets $(MAKE)... (cached) yes
checking for a BSD-compatible install... (cached) /usr/bin/install -c
checking whether NLS is requested... yes
checking for msgfmt... (cached) /usr/bin/msgfmt
checking for gmsgfmt... (cached) /usr/bin/msgfmt
checking for xgettext... (cached) /usr/bin/xgettext
checking for msgmerge... (cached) /usr/bin/msgmerge
checking for i686-pc-linux-gnu-gcc... (cached) gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... (cached) o
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking build system type... (cached) i686-pc-linux-gnu
checking host system type... (cached) i686-pc-linux-gnu
checking for i686-pc-linux-gnu-ranlib... (cached) ranlib
checking for library containing strerror... (cached) none required
checking how to run the C preprocessor... (cached) gcc -E
checking for egrep... (cached) grep -E
checking for ANSI C header files... (cached) yes
checking for an ANSI C-conforming const... (cached) yes
checking for inline... (cached) inline
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for off_t... (cached) yes
checking for size_t... (cached) yes
checking for working alloca.h... (cached) yes
checking for alloca... (cached) yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... (cached) yes
checking for working mmap... (cached) yes
checking whether we are using the GNU C Library 2.1 or newer... (cached) yes
checking whether integer division by zero raises SIGFPE... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unsigned long long... (cached) yes
checking for inttypes.h... (cached) yes
checking whether the inttypes.h PRIxNN macros are broken... (cached) no
checking for ld used by GCC... (cached) /mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.0.3/../../../../i686-pc-linux-gnu/bin/ld
checking if the linker (/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.0.3/../../../../i686-pc-linux-gnu/bin/ld) is GNU ld... (cached) yes
checking for shared library run path origin... (cached) done
checking for argz.h... (cached) yes
checking for limits.h... (cached) yes
checking for locale.h... (cached) yes
checking for nl_types.h... (cached) yes
checking for malloc.h... (cached) yes
checking for stddef.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for feof_unlocked... (cached) yes
checking for fgets_unlocked... (cached) yes
checking for getc_unlocked... (cached) yes
checking for getcwd... (cached) yes
checking for getegid... (cached) yes
checking for geteuid... (cached) yes
checking for getgid... (cached) yes
checking for getuid... (cached) yes
checking for mempcpy... (cached) yes
checking for munmap... (cached) yes
checking for putenv... (cached) yes
checking for setenv... (cached) yes
checking for setlocale... (cached) yes
checking for stpcpy... (cached) yes
checking for strcasecmp... (cached) yes
checking for strdup... (cached) yes
checking for strtoul... (cached) yes
checking for tsearch... (cached) yes
checking for __argz_count... (cached) yes
checking for __argz_stringify... (cached) yes
checking for __argz_next... (cached) yes
checking for __fsetlocking... (cached) yes
checking for iconv... (cached) yes
checking for iconv declaration... (cached)
extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for nl_langinfo and CODESET... (cached) yes
checking for LC_MESSAGES... (cached) yes
checking for bison... (cached) bison
checking version of bison... 2.2, ok
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking for GNU gettext in libc... (cached) yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for aclocal... (cached) aclocal
checking for autoconf... (cached) autoconf
checking for autoheader... (cached) autoheader
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.intl
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default-1 commands
Configuring in gcc
configure: loading cache ./config.cache
checking build system type... (cached) i686-pc-linux-gnu
checking host system type... (cached) i686-pc-linux-gnu
checking target system type... (cached) i686-pc-linux-gnu
checking LIBRARY_PATH variable... ok
checking GCC_EXEC_PREFIX variable... ok
checking whether to place generated files in the source directory... no
checking whether a default linker was specified... no
checking whether a default assembler was specified... no
checking for i686-pc-linux-gnu-gcc... (cached) gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... (cached) o
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking whether gcc and cc understand -c and -o together... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for inline... (cached) inline
checking for long long int... (cached) yes
checking for __int64... (cached) no
checking for egrep... (cached) grep -E
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for void *... (cached) yes
checking size of void *... (cached) 4
checking for short... (cached) yes
checking size of short... (cached) 2
checking for int... (cached) yes
checking size of int... (cached) 4
checking for long... (cached) yes
checking size of long... (cached) 4
checking for long long... (cached) yes
checking size of long long... (cached) 8
checking whether gcc accepts -Wno-long-long... (cached) yes
checking whether gcc accepts -Wno-variadic-macros... (cached) yes
checking whether gcc accepts -Wold-style-definition... (cached) yes
checking for valgrind.h... (cached) no
checking whether make sets $(MAKE)... (cached) yes
checking for gawk... (cached) gawk
checking whether ln -s works... (cached) yes
checking whether ln works... (cached) yes
checking for i686-pc-linux-gnu-ranlib... (cached) ranlib
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking for cmp's capabilities... (cached) gnucompare
checking for mktemp... (cached) yes
checking for makeinfo... (cached) makeinfo
checking for modern makeinfo... (cached) yes
checking for recent Pod::Man... yes
checking for flex... (cached) flex
checking for bison... (cached) bison
checking for nm... (cached) nm
checking for ar... (cached) ar
checking for GNU C library... (cached) yes
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be included... (cached) yes
checking whether string.h and strings.h may both be included... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... (cached) yes
checking for limits.h... (cached) yes
checking for stddef.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for time.h... (cached) yes
checking for iconv.h... (cached) yes
checking for fcntl.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/file.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for sys/mman.h... (cached) yes
checking for sys/resource.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for sys/times.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for direct.h... (cached) no
checking for malloc.h... (cached) yes
checking for langinfo.h... (cached) yes
checking for ldfcn.h... (cached) no
checking for locale.h... (cached) yes
checking for wchar.h... (cached) yes
checking for thread.h... (cached) no
checking for pthread.h... (cached) yes
checking for CHAR_BIT... (cached) yes
checking whether byte ordering is bigendian... (cached) no
checking for collect2 libraries... (cached) none required
checking for library containing exc_resume... (cached) no
checking for library containing ldexp... (cached) none required
checking for inttypes.h... (cached) yes
checking for times... (cached) yes
checking for clock... (cached) yes
checking for dup2... (cached) yes
checking for kill... (cached) yes
checking for getrlimit... (cached) yes
checking for setrlimit... (cached) yes
checking for atoll... (cached) yes
checking for atoq... (cached) no
checking for sysconf... (cached) yes
checking for strsignal... (cached) yes
checking for getrusage... (cached) yes
checking for nl_langinfo... (cached) yes
checking for scandir... (cached) yes
checking for alphasort... (cached) yes
checking for gettimeofday... (cached) yes
checking for mbstowcs... (cached) yes
checking for wcswidth... (cached) yes
checking for mmap... (cached) yes
checking for mincore... (cached) yes
checking for setlocale... (cached) yes
checking for clearerr_unlocked... (cached) yes
checking for feof_unlocked... (cached) yes
checking for ferror_unlocked... (cached) yes
checking for fflush_unlocked... (cached) yes
checking for fgetc_unlocked... (cached) yes
checking for fgets_unlocked... (cached) yes
checking for fileno_unlocked... (cached) yes
checking for fprintf_unlocked... (cached) no
checking for fputc_unlocked... (cached) yes
checking for fputs_unlocked... (cached) yes
checking for fread_unlocked... (cached) yes
checking for fwrite_unlocked... (cached) yes
checking for getchar_unlocked... (cached) yes
checking for getc_unlocked... (cached) yes
checking for putchar_unlocked... (cached) yes
checking for putc_unlocked... (cached) yes
checking whether mbstowcs works... (cached) yes
checking for ssize_t... (cached) yes
checking for uid_t in sys/types.h... (cached) yes
checking type of array argument to getgroups... (cached) gid_t
checking whether the printf functions support %p... (cached) yes
checking for sys/mman.h... (cached) yes
checking for mmap... (cached) yes
checking whether read-only mmap of a plain file works... (cached) yes
checking whether mmap from /dev/zero works... (cached) yes
checking for MAP_ANON(YMOUS)... (cached) yes
checking whether mmap with MAP_ANON(YMOUS) works... (cached) yes
checking for pid_t... (cached) yes
checking for unistd.h... (cached) yes
checking for vfork.h... (cached) no
checking for fork... (cached) yes
checking for vfork... (cached) yes
checking for working fork... (cached) yes
checking for working vfork... (cached) yes
checking for ld used by GCC... (cached) /mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.0.3/../../../../i686-pc-linux-gnu/bin/ld
checking if the linker (/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.0.3/../../../../i686-pc-linux-gnu/bin/ld) is GNU ld... (cached) yes
checking for shared library run path origin... (cached) done
checking for iconv... (cached) yes
checking for iconv declaration... (cached)
extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for LC_MESSAGES... (cached) yes
checking for nl_langinfo and CODESET... (cached) yes
checking whether getenv is declared... (cached) yes
checking whether atol is declared... (cached) yes
checking whether sbrk is declared... (cached) yes
checking whether abort is declared... (cached) yes
checking whether atof is declared... (cached) yes
checking whether getcwd is declared... (cached) yes
checking whether getwd is declared... (cached) yes
checking whether strsignal is declared... (cached) yes
checking whether strstr is declared... (cached) yes
checking whether errno is declared... (cached) yes
checking whether snprintf is declared... (cached) yes
checking whether vasprintf is declared... (cached) yes
checking whether malloc is declared... (cached) yes
checking whether realloc is declared... (cached) yes
checking whether calloc is declared... (cached) yes
checking whether free is declared... (cached) yes
checking whether basename is declared... (cached) yes
checking whether getopt is declared... (cached) no
checking whether clock is declared... (cached) yes
checking whether getpagesize is declared... (cached) yes
checking whether clearerr_unlocked is declared... (cached) yes
checking whether feof_unlocked is declared... (cached) yes
checking whether ferror_unlocked is declared... (cached) yes
checking whether fflush_unlocked is declared... (cached) yes
checking whether fgetc_unlocked is declared... (cached) yes
checking whether fgets_unlocked is declared... (cached) yes
checking whether fileno_unlocked is declared... (cached) yes
checking whether fprintf_unlocked is declared... (cached) no
checking whether fputc_unlocked is declared... (cached) yes
checking whether fputs_unlocked is declared... (cached) yes
checking whether fread_unlocked is declared... (cached) yes
checking whether fwrite_unlocked is declared... (cached) yes
checking whether getchar_unlocked is declared... (cached) yes
checking whether getc_unlocked is declared... (cached) yes
checking whether putchar_unlocked is declared... (cached) yes
checking whether putc_unlocked is declared... (cached) yes
checking whether getrlimit is declared... (cached) yes
checking whether setrlimit is declared... (cached) yes
checking whether getrusage is declared... (cached) yes
checking whether ldgetname is declared... (cached) no
checking whether times is declared... (cached) yes
checking for struct tms... (cached) yes
checking for clock_t... (cached) yes
checking for .preinit_array/.init_array/.fini_array support... (cached) yes
checking if mkdir takes one argument... (cached) no
Using `./config/i386/i386.c' for machine-specific logic.
Using `./config/i386/i386.md' as machine description file.
Using the following target machine macro files:
./config/i386/i386.h
./config/i386/unix.h
./config/i386/att.h
./config/dbxelf.h
./config/elfos.h
./config/svr4.h
./config/linux.h
./config/i386/linux.h
Using host-linux.o for host machine hooks.
checking for __cxa_atexit... (cached) yes
checking whether NLS is requested... yes
checking for catalogs to be installed... be ca da de el es fr ja nl rw sv tr zh_CN be ca da de el es fr ja nl rw sv tr zh_CN
checking what assembler to use... /tools/i686-pc-linux-gnu/bin/as
checking what linker to use... /mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.0.3/../../../../i686-pc-linux-gnu/bin/ld
checking what nm to use... nm
checking what objdump to use... objdump
checking assembler for .balign and .p2align... (cached) yes
checking assembler for .p2align with maximum skip... (cached) yes
checking assembler for working .subsection -1... (cached) yes
checking assembler for .weak... (cached) yes
checking assembler for .nsubspa comdat... (cached) no
checking assembler for .hidden... (cached) yes
checking linker for .hidden support... (cached) yes
checking assembler for .sleb128 and .uleb128... (cached) yes
checking assembler for eh_frame optimization... (cached) yes
checking assembler for section merging support... (cached) yes
checking assembler for COMDAT group support... (cached) yes
checking assembler for thread-local storage support... (cached) yes
checking linker -Bstatic/-Bdynamic option... yes
checking assembler for filds and fists mnemonics... (cached) yes
checking assembler for cmov syntax... (cached) no
checking assembler for GOTOFF in data... (cached) yes
checking assembler for dwarf2 debug_line support... (cached) yes
checking assembler for buggy dwarf2 .file directive... (cached) no
checking assembler for --gdwarf2 option... (cached) yes
checking assembler for --gstabs option... (cached) yes
checking linker read-only and read-write section mixing... read-write
checking linker PT_GNU_EH_FRAME support... yes
checking linker position independent executable support... yes
checking linker --as-needed support... (cached) yes
Using ggc-page for garbage collection.
checking whether to enable maintainer-specific portions of Makefiles... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating gccbug
config.status: creating mklibgcc
config.status: creating libada-mk
config.status: creating auto-host.h
config.status: auto-host.h is unchanged
config.status: executing default commands
make[1]: Entering directory `/mnt/lfs/gcc-bulid1/gcc-4.0.3/intl'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/mnt/lfs/gcc-bulid1/gcc-4.0.3/intl'
Configuring in build-i686-pc-linux-gnu/libiberty
COPYING.LIB ..linked
ChangeLog ..linked
Makefile ..linked
Makefile.in ..linked
README ..linked
_doprnt.c ..linked
aclocal.m4 ..linked
alloca.c ..linked
alloca.o ..linked
argv.c ..linked
argv.o ..linked
asprintf.c ..linked
atexit.c ..linked
basename.c ..linked
bcmp.c ..linked
bcopy.c ..linked
bsearch.c ..linked
bzero.c ..linked
calloc.c ..linked
choose-temp.c ..linked
choose-temp.o ..linked
clock.c ..linked
concat.c ..linked
concat.o ..linked
config ..working in
mh-aix ..linked
mh-cxux7 ..linked
mh-fbsd21 ..linked
mh-openedition ..linked
mh-windows ..linked
config.cache ..linked
config.h ..linked
config.h-vms ..linked
config.in ..linked
config.log ..linked
config.status ..linked
config.table ..linked
configure ..linked
configure.ac ..linked
copying-lib.texi ..linked
copysign.c ..linked
cp-demangle.c ..linked
cp-demangle.h ..linked
cp-demangle.o ..linked
cp-demint.c ..linked
cp-demint.o ..linked
cplus-dem.c ..linked
cplus-dem.o ..linked
dyn-string.c ..linked
dyn-string.o ..linked
fdmatch.c ..linked
fdmatch.o ..linked
ffs.c ..linked
fibheap.c ..linked
fibheap.o ..linked
floatformat.c ..linked
floatformat.o ..linked
fnmatch.c ..linked
fnmatch.o ..linked
fnmatch.txh ..linked
fopen_unlocked.c ..linked
fopen_unlocked.o ..linked
functions.texi ..linked
gather-docs ..linked
getcwd.c ..linked
getopt.c ..linked
getopt.o ..linked
getopt1.c ..linked
getopt1.o ..linked
getpagesize.c ..linked
getpwd.c ..linked
getpwd.o ..linked
getruntime.c ..linked
getruntime.o ..linked
hashtab.c ..linked
hashtab.o ..linked
hex.c ..linked
hex.o ..linked
index.c ..linked
insque.c ..linked
lbasename.c ..linked
lbasename.o ..linked
libiberty.a ..linked
libiberty.texi ..linked
lrealpath.c ..linked
lrealpath.o ..linked
maint-tool ..linked
make-relative-prefix.c ..linked
make-relative-prefix.o ..linked
make-temp-file.c ..linked
make-temp-file.o ..linked
makefile.vms ..linked
md5.c ..linked
md5.o ..linked
memchr.c ..linked
memcmp.c ..linked
memcpy.c ..linked
memmove.c ..linked
mempcpy.c ..linked
memset.c ..linked
mkstemps.c ..linked
mkstemps.o ..linked
mpw-config.in ..linked
mpw-make.sed ..linked
mpw.c ..linked
msdos.c ..linked
needed-list ..linked
objalloc.c ..linked
objalloc.o ..linked
obstack.c ..linked
obstack.o ..linked
obstacks.texi ..linked
partition.c ..linked
partition.o ..linked
pex-common.h ..linked
pex-djgpp.c ..linked
pex-mpw.c ..linked
pex-msdos.c ..linked
pex-os2.c ..linked
pex-unix.c ..linked
pex-unix.o ..linked
pex-win32.c ..linked
pexecute.txh ..linked
physmem.c ..linked
physmem.o ..linked
pic ..working in
alloca.o ..linked
argv.o ..linked
choose-temp.o ..linked
concat.o ..linked
cp-demangle.o ..linked
cp-demint.o ..linked
cplus-dem.o ..linked
dyn-string.o ..linked
fdmatch.o ..linked
fibheap.o ..linked
floatformat.o ..linked
fnmatch.o ..linked
fopen_unlocked.o ..linked
getopt.o ..linked
getopt1.o ..linked
getpwd.o ..linked
getruntime.o ..linked
hashtab.o ..linked
hex.o ..linked
lbasename.o ..linked
libiberty.a ..linked
lrealpath.o ..linked
make-relative-prefix.o ..linked
make-temp-file.o ..linked
md5.o ..linked
mkstemps.o ..linked
objalloc.o ..linked
obstack.o ..linked
partition.o ..linked
pex-unix.o ..linked
physmem.o ..linked
regex.o ..linked
safe-ctype.o ..linked
sort.o ..linked
spaces.o ..linked
splay-tree.o ..linked
strerror.o ..linked
strsignal.o ..linked
ternary.o ..linked
xatexit.o ..linked
xexit.o ..linked
xmalloc.o ..linked
xmemdup.o ..linked
xstrdup.o ..linked
xstrerror.o ..linked
putenv.c ..linked
random.c ..linked
regex.c ..linked
regex.o ..linked
rename.c ..linked
required-list ..linked
rindex.c ..linked
safe-ctype.c ..linked
safe-ctype.o ..linked
setenv.c ..linked
sigsetmask.c ..linked
snprintf.c ..linked
sort.c ..linked
sort.o ..linked
spaces.c ..linked
spaces.o ..linked
splay-tree.c ..linked
splay-tree.o ..linked
stamp-h ..linked
stamp-picdir ..linked
stpcpy.c ..linked
stpncpy.c ..linked
strcasecmp.c ..linked
strchr.c ..linked
strdup.c ..linked
strerror.c ..linked
strerror.o ..linked
strncasecmp.c ..linked
strncmp.c ..linked
strrchr.c ..linked
strsignal.c ..linked
strsignal.o ..linked
strstr.c ..linked
strtod.c ..linked
strtol.c ..linked
strtoul.c ..linked
ternary.c ..linked
ternary.o ..linked
testsuite ..working in
Makefile ..linked
Makefile.in ..linked
demangle-expected ..linked
test-demangle.c ..linked
tmpnam.c ..linked
vasprintf.c ..linked
vfork.c ..linked
vfprintf.c ..linked
vmsbuild.com ..linked
vprintf.c ..linked
vsnprintf.c ..linked
vsprintf.c ..linked
waitpid.c ..linked
xatexit.c ..linked
xatexit.o ..linked
xexit.c ..linked
xexit.o ..linked
xhost-mkfrag ..linked
xmalloc.c ..linked
xmalloc.o ..linked
xmemdup.c ..linked
xmemdup.o ..linked
xstrdup.c ..linked
xstrdup.o ..linked
xstrerror.c ..linked
xstrerror.o ..linked
make[1]: Entering directory `/mnt/lfs/gcc-bulid1/gcc-4.0.3/build-i686-pc-linux-gnu/libiberty'
make[2]: Entering directory `/mnt/lfs/gcc-bulid1/gcc-4.0.3/build-i686-pc-linux-gnu/libiberty/testsuite'
rm -f test-demangle
rm -f Makefile
make[2]: Leaving directory `/mnt/lfs/gcc-bulid1/gcc-4.0.3/build-i686-pc-linux-gnu/libiberty/testsuite'
make SUBDIRS="" clean
make[2]: Entering directory `/mnt/lfs/gcc-bulid1/gcc-4.0.3/build-i686-pc-linux-gnu/libiberty'
make SUBDIRS="" mostlyclean
make[3]: Entering directory `/mnt/lfs/gcc-bulid1/gcc-4.0.3/build-i686-pc-linux-gnu/libiberty'
rm -rf *.o pic core errs \#* *.E a.out
rm -f needed.awk needed2.awk errors dummy needed-list config.h stamp-*
rm -f stamp-picdir
rm -f libiberty.aux libiberty.cp libiberty.cps libiberty.fn libiberty.ky
rm -f libiberty.log libiberty.tmp libiberty.tps libiberty.pg
rm -f libiberty.pgs libiberty.toc libiberty.tp libiberty.tpl libiberty.vr
rm -f libtexi.stamp
make[3]: Leaving directory `/mnt/lfs/gcc-bulid1/gcc-4.0.3/build-i686-pc-linux-gnu/libiberty'
rm -f *.a required-list tmpmulti.out
rm -f libiberty.dvi libiberty.info* libiberty.html
make[2]: Leaving directory `/mnt/lfs/gcc-bulid1/gcc-4.0.3/build-i686-pc-linux-gnu/libiberty'
rm -f *~ Makefile config.cache config.status xhost-mkfrag TAGS multilib.out
rm -f config.log
rmdir testsuite 2>/dev/null
make[1]: Leaving directory `/mnt/lfs/gcc-bulid1/gcc-4.0.3/build-i686-pc-linux-gnu/libiberty'
configure: loading cache ../config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking for makeinfo... (cached) makeinfo
checking for perl... (cached) perl
checking build system type... (cached) i686-pc-linux-gnu
checking host system type... (cached) i686-pc-linux-gnu
checking for i686-pc-linux-gnu-ar... no
checking for ar... (cached) ar
checking for i686-pc-linux-gnu-ranlib... no
checking for ranlib... (cached) ranlib
checking for i686-pc-linux-gnu-gcc... (cached) gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... (cached) o
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking how to run the C preprocessor... (cached) gcc -E
checking whether gcc and cc understand -c and -o together... (cached) yes
checking for an ANSI C-conforming const... (cached) yes
checking for inline... (cached) inline
checking whether byte ordering is bigendian... (cached) no
checking for a BSD-compatible install... (cached) /usr/bin/install -c
checking for sys/file.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for limits.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for malloc.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for strings.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for time.h... (cached) yes
checking for sys/resource.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for sys/mman.h... (cached) yes
checking for fcntl.h... (cached) yes
checking for alloca.h... (cached) yes
checking for sys/pstat.h... (cached) no
checking for sys/sysmp.h... (cached) no
checking for sys/sysinfo.h... (cached) yes
checking for machine/hal_sysinfo.h... (cached) no
checking for sys/table.h... (cached) no
checking for sys/sysctl.h... (cached) yes
checking for sys/systemcfg.h... (cached) no
checking for stdint.h... (cached) yes
checking for stdio_ext.h... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... (cached) yes
checking whether time.h and sys/time.h may both be included... (cached) yes
checking whether errno must be declared... (cached) no
checking for egrep... (cached) grep -E
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for int... (cached) yes
checking size of int... (cached) 4
checking for uintptr_t... (cached) yes
checking for a 64-bit type... (cached) uint64_t
checking for pid_t... (cached) yes
checking for library containing strerror... (cached) none required
checking for asprintf... (cached) yes
checking for atexit... (cached) yes
checking for basename... (cached) yes
checking for bcmp... (cached) yes
checking for bcopy... (cached) yes
checking for bsearch... (cached) yes
checking for bzero... (cached) yes
checking for calloc... (cached) yes
checking for clock... (cached) yes
checking for ffs... (cached) yes
checking for getcwd... (cached) yes
checking for getpagesize... (cached) yes
checking for index... (cached) yes
checking for insque... (cached) yes
checking for memchr... (cached) yes
checking for memcmp... (cached) yes
checking for memcpy... (cached) yes
checking for memmove... (cached) yes
checking for mempcpy... (cached) yes
checking for memset... (cached) yes
checking for mkstemps... (cached) no
checking for putenv... (cached) yes
checking for random... (cached) yes
checking for rename... (cached) yes
checking for rindex... (cached) yes
checking for setenv... (cached) yes
checking for snprintf... (cached) yes
checking for sigsetmask... (cached) yes
checking for stpcpy... (cached) yes
checking for stpncpy... (cached) yes
checking for strcasecmp... (cached) yes
checking for strchr... (cached) yes
checking for strdup... (cached) yes
checking for strncasecmp... (cached) yes
checking for strrchr... (cached) yes
checking for strstr... (cached) yes
checking for strtod... (cached) yes
checking for strtol... (cached) yes
checking for strtoul... (cached) yes
checking for tmpnam... (cached) yes
checking for vasprintf... (cached) yes
checking for vfprintf... (cached) yes
checking for vprintf... (cached) yes
checking for vsnprintf... (cached) yes
checking for vsprintf... (cached) yes
checking for waitpid... (cached) yes
checking whether alloca needs Cray hooks... (cached) no
checking stack direction for C alloca... (cached) -1
checking for unistd.h... (cached) yes
checking for vfork.h... (cached) no
checking for fork... (cached) yes
checking for vfork... (cached) yes
checking for working fork... (cached) yes
checking for working vfork... (cached) yes
checking for _doprnt... (cached) no
checking for sys_errlist... (cached) yes
checking for sys_nerr... (cached) yes
checking for sys_siglist... (cached) yes
checking for external symbol _system_configuration... no
checking for getrusage... (cached) yes
checking for on_exit... (cached) yes
checking for psignal... (cached) yes
checking for strerror... (cached) yes
checking for strsignal... (cached) yes
checking for sysconf... (cached) yes
checking for times... (cached) yes
checking for sbrk... (cached) yes
checking for gettimeofday... (cached) yes
checking for realpath... (cached) yes
checking for canonicalize_file_name... (cached) yes
checking for pstat_getstatic... (cached) no
checking for pstat_getdynamic... (cached) no
checking for sysmp... (cached) no
checking for getsysinfo... (cached) no
checking for table... (cached) no
checking for sysctl... (cached) yes
checking for __fsetlocking... (cached) yes
checking whether canonicalize_file_name must be declared... (cached) yes
checking for working strncmp... (cached) yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating testsuite/Makefile
config.status: creating config.h
config.status: executing default commands
make[1]: Entering directory `/mnt/lfs/gcc-bulid1/gcc-4.0.3/build-i686-pc-linux-gnu/libiberty'
if [ x"" != x ] && [ ! -d pic ]; then \
mkdir pic; \
else true; fi
touch stamp-picdir
make[1]: Leaving directory `/mnt/lfs/gcc-bulid1/gcc-4.0.3/build-i686-pc-linux-gnu/libiberty'
make 2>errormake 文件中内容
Links are now set up to build a native compiler for i686-pc-linux-gnu.
make[1]: [distclean] Error 1 (ignored)
make[1]: *** No rule to make target `../include/ansidecl.h', needed by `regex.o'. Stop.
make: *** [all-build-libiberty] Error 2
想知道这是怎么一回事?是Makefile.in出问题了?期待高手帮忙解决啊~~ |
|