failure in compling 5.13. GCC-3.4.1 - Pass 2, need desperate help

Gordon Chan kcg.chan at gmail.com
Thu Feb 24 12:21:10 PST 2005


Hi, I am a newbie to lfs, i was compiling all the packges for lfs 6.0,
they went fine until 5.13 gcc-3.4.1 -Pass 2, when i type
                       expect -c "spawn ls"
it gave me 
                       spawn ls

and then i patched 
                       patch -Np1 -i ../gcc-3.4.1-no_fixincludes-1.patch
                       patch -Np1 -i ../gcc-3.4.1-specs-1.patch

it all went fine until the following (after I typed make):


linux:/mnt/lfs/gcc-build # make
Configuring in intl
loading cache ./config.cache
checking for non-GNU ld... (cached)
/usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin/ld
checking if the linker
(/usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin/ld)
is GNU ld... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unsigned long long... (cached) yes
checking for shared library run path origin... (cached) done
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 gcc... (cached) gcc
checking whether the C compiler (gcc -g -O2 ) works... yes
checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking host system type... i686-pc-linux-gnu
checking for ranlib... (cached) ranlib
checking for strerror in -lcposix... (cached) no
checking for ANSI C header files... (cached) yes
checking for working const... (cached) yes
checking for inline... (cached) inline
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 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 whether the inttypes.h PRIxNN macros are broken... (cached) no
checking for msgfmt... (cached) no
checking for gmsgfmt... (cached) :
checking for xgettext... (cached) no
checking for msgmerge... (cached) no
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... 1.875, 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
creating ./config.status
creating Makefile
creating config.intl
creating config.h
config.h is unchanged
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... 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 whether gcc accepts -Wno-long-long... (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 built-in _Bool... (cached) yes
checking size of void *... (cached) 4
checking size of short... (cached) 2
checking size of int... (cached) 4
checking size of long... (cached) 4
checking size of long long... (cached) 8
checking for i686-pc-linux-gnu-gnatbind... no
checking for gnatbind... (cached) no
checking whether compiler driver understands Ada... (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 valgrind.h... (cached) no
checking whether make sets $(MAKE)... (cached) yes
checking for gawk... (cached) gawk
checking whether ln works... (cached) yes
checking whether ln -s 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... no
configure: WARNING:
*** Makeinfo is missing or too old.
*** Info documentation will not be built.
checking for recent Pod::Man... yes
checking for flex... (cached) flex
checking for bison... (cached) bison
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 for working stdbool.h... (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 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 putc_unlocked... (cached) yes
checking for fputc_unlocked... (cached) yes
checking for fputs_unlocked... (cached) yes
checking for fwrite_unlocked... (cached) yes
checking for fprintf_unlocked... (cached) no
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 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 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 iconv.h... (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 LC_MESSAGES... (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 putc_unlocked is declared... (cached) yes
checking whether fputs_unlocked is declared... (cached) yes
checking whether fwrite_unlocked is declared... (cached) yes
checking whether fprintf_unlocked is declared... (cached) no
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 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 uchar...
checking for .preinit_array/.init_array/.fini_array support... (cached) yes
checking if mkdir takes one argument... (cached) no
checking for main in -lunwind... (cached) no
Using `../../gcc-3.4.1/gcc/config/i386/i386.c' for machine-specific logic.
Using `../../gcc-3.4.1/gcc/config/i386/i386.md' as machine description file.
Using the following target machine macro files:
        ../../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
Using host-default.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
sv tr be ca da de el es fr ja nl sv tr
checking what assembler to use... /tools/i686-pc-linux-gnu/bin/as
checking what linker to use...
/usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/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 .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 thread-local storage support... (cached) 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
checking for the document directory.
Links are now set up to build a native compiler for i686-pc-linux-gnu.
configure: creating ./config.status
config.status: creating Makefile
config.status: creating fixinc/Makefile
config.status: creating gccbug
config.status: creating mklibgcc
config.status: creating mkheaders
config.status: creating auto-host.h
config.status: auto-host.h is unchanged
config.status: executing default commands
Configuring in libiberty
configure: loading cache ./config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking for makeinfo... no
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... 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 ../../gcc-3.4.1/libiberty/../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 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 uintptr_t... (cached) yes
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 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-build/libiberty'
if [ x"-fpic" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -g -O2 -I.
-I../../gcc-3.4.1/libiberty/../include  -W -Wall -Wtraditional
-pedantic -fpic ../../gcc-3.4.1/libiberty/regex.c -o pic/regex.o; \
else true; fi
In file included from ../../gcc-3.4.1/include/xregex.h:26,
                 from ../../gcc-3.4.1/libiberty/regex.c:195:
../../gcc-3.4.1/include/xregex2.h:548: warning: ISO C90 does not
support `static' or type qualifiers in parameter array declarators
In file included from ../../gcc-3.4.1/libiberty/regex.c:649:
../../gcc-3.4.1/libiberty/regex.c: In function `byte_compile_range':
../../gcc-3.4.1/libiberty/regex.c:4548: warning: signed and unsigned
type in conditional expression
../../gcc-3.4.1/libiberty/regex.c:4558: warning: signed and unsigned
type in conditional expression
../../gcc-3.4.1/libiberty/regex.c:4558: warning: signed and unsigned
type in conditional expression
../../gcc-3.4.1/libiberty/regex.c: In function `xregcomp':
../../gcc-3.4.1/libiberty/regex.c:8043: warning: signed and unsigned
type in conditional expression
../../gcc-3.4.1/libiberty/regex.c: In function `xregerror':
../../gcc-3.4.1/libiberty/regex.c:8178: warning: unused parameter `preg'
Assembler messages:
FATAL: can't create pic/regex.o: No such file or directory
make[1]: *** [regex.o] Error 1
make[1]: Leaving directory `/mnt/lfs/gcc-build/libiberty'
make: *** [all-libiberty] Error 2

linux:/mnt/lfs/gcc-build #

I appologise if I put too much crap in this email, but I think it
might possibly help? Has anyone got an idea that could help me?

btw I am running SuSE 9.2 pro 2.6.8-24.11-smp if it helps

Thanks a lot in advance, and I appreciate your help.


Regards
Gordon

P.S if you need any extra information, please kindly remind me, and I
will post it up there.



More information about the lfs-support mailing list