This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Problem with compiling gcc-20010122 snapshot


Richard Earnshaw wrote:
> 
> > Richard Earnshaw wrote:
> >
> > > > HI, I've problems to compiling  gcc-20010122 snapshot. I've configured
> > > > with:
> > > >
> > > >     configure --target=arm-elf  --prefix=$tooldir  (to obtain a gcc
> > > > version how supports  ARM and THUMB instructions )
> > > >
> > > > and then compiled with
> > > >
> > > >     make -w all-gcc install-gcc   LANGUAGES="c c++"
> > > >
> > > > but there are errors ( see below). Are there someone how can help me?
> > >
> > > The compiler is unable to find the arm assembler, so it is trying to use
> > > the system one.
> > >
> > > Have you installed the gas/arm assembler?  Is it on your path?
> > >
> > > R.
> >
> > I've added gas to path but now there are an error douring configuration:
> >
Now the right compiler is used but there are other errors :


/usr/src/packages/SOURCES/gcc-20010122/configure --target=arm-elf
--prefix=/usr/local/arm-tools --with-gnu-as --with-gnu-ld --with-newlib
> configure.out   

Created "Makefile" in /tmp/build/gcc
./config.status is unchanged
Configuring libiberty...
loading cache ../config.cache
checking host system type... i586-pc-linux-gnu
checking build system type... i586-pc-linux-gnu
checking for ar... (cached) /usr/bin/ar
checking for ranlib... (cached) ranlib
checking for gcc... (cached) /usr/bin/gcc
checking whether we are using GNU C... (cached) yes
checking whether /usr/bin/gcc accepts -g... (cached) yes
checking for POSIXized ISC... no
checking for working const... (cached) yes
checking for inline... (cached) inline
checking for a BSD compatible install... (cached) /usr/bin/ginstall -c
xhost-mkfrag is unchanged
checking how to run the C preprocessor... (cached) /usr/bin/gcc -E
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 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) no
checking for sys/stat.h... (cached) yes
checking for sys/mman.h... (cached) yes
checking for fcntl.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 whether the C compiler (/usr/bin/gcc -g -O2 ) works... yes
checking whether the C compiler (/usr/bin/gcc -g -O2 ) is a
cross-compiler... no
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 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 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 sigsetmask... (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 vsprintf... (cached) yes
checking for waitpid... (cached) yes
checking for working alloca.h... (cached) yes
checking for alloca... (cached) yes
checking for ANSI C header files... (cached) yes
checking for pid_t... (cached) yes
checking for vfork.h... (cached) no
checking for working vfork... (cached) yes
checking for sys_errlist... (cached) yes
checking for sys_nerr... (cached) yes
checking for sys_siglist... (cached) yes
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 unistd.h... (cached) yes
checking for getpagesize... (cached) yes
checking for working mmap... (cached) yes
checking for working strncmp... (cached) yes
creating ./config.status
creating Makefile
creating testsuite/Makefile
creating config.h
config.h is unchanged
Configuring zlib...
loading cache ../config.cache
checking host system type... i586-pc-linux-gnu
checking target system type... arm-unknown-elf
checking build system type... i586-pc-linux-gnu
checking for a BSD compatible install... (cached) /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles...
no
checking for gcc... (cached) /usr/bin/gcc
checking whether we are using GNU C... (cached) yes
checking whether /usr/bin/gcc accepts -g... (cached) yes
checking for ranlib... (cached) ranlib
checking for ld used by GCC... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for BSD-compatible nm... (cached)
/usr/local/arm-tools/arm-elf/bin//nm -B
checking command to parse /usr/local/arm-tools/arm-elf/bin//nm -B
output... (cached) yes
checking for _ prefix in compiled symbols... (cached) no
checking whether ln -s works... (cached) yes
loading cache ../config.cache within ltconfig
checking whether -lc should be explicitly linked in... (cached) no
checking for objdir... .libs
checking for /usr/bin/gcc option to produce PIC...  -fPIC -DPIC
checking if /usr/bin/gcc PIC flag  -fPIC -DPIC works... (cached) yes
checking if /usr/bin/gcc static flag -static works... (cached) yes
checking if /usr/bin/gcc supports -c -o file.o... yes
checking if /usr/bin/gcc supports -fno-rtti -fno-exceptions ... yes
checking whether the linker (/usr/bin/ld) supports shared libraries...
yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking command to parse /usr/local/arm-tools/arm-elf/bin//nm -B
output... ok
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
creating libtool
loading cache ../config.cache
checking how to run the C preprocessor... (cached) /usr/bin/gcc -E
checking for unistd.h... (cached) yes
checking for getpagesize... (cached) yes
checking for working mmap... (cached) yes
checking for memcpy... (cached) yes
checking for strerror... (cached) yes
checking for unistd.h... (cached) yes
creating ./config.status
creating Makefile
Configuring gcc...
loading cache ../config.cache
checking LIBRARY_PATH variable... ok
checking GCC_EXEC_PREFIX variable... ok
checking for libstdc++ to install... v3
checking host system type... i586-pc-linux-gnu
checking target system type... arm-unknown-elf
checking build system type... i586-pc-linux-gnu
checking for gcc... (cached) /usr/bin/gcc
checking whether the C compiler (/usr/bin/gcc -g -O2 ) works... yes
checking whether the C compiler (/usr/bin/gcc -g -O2 ) is a
cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether /usr/bin/gcc accepts -g... (cached) yes
checking whether /usr/bin/gcc and cc understand -c and -o together...
(cached) yes
checking for long double... (cached) yes
checking whether /usr/bin/gcc accepts -Wno-long-long... (cached) yes
checking whether make sets ${MAKE}... (cached) yes
checking whether a default assembler was specified... no
checking whether a default linker was specified... no
checking for GNU C library... (cached) yes
checking for inline... (cached) inline
checking for mawk... (cached) gawk
checking whether ln works... (cached) yes
checking whether ln -s works... (cached) yes
checking for volatile... (cached) yes
checking for ranlib... (cached) ranlib
checking for a BSD compatible install... (cached) /usr/bin/ginstall -c
checking how to run the C preprocessor... (cached) /usr/bin/gcc -E
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 fcntl.h... (cached) yes
checking for unistd.h... (cached) yes
checking for stab.h... (cached) yes
checking for sys/file.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for sys/resource.h... (cached) no
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 iconv.h... (cached) yes
checking for thread.h... (cached) no
checking for pthread.h... (cached) yes
checking for gnatbind... (cached) no
checking for mktemp... (cached) yes
checking for makeinfo... (cached) makeinfo
checking for modern makeinfo... (cached) no
checking for recent Pod::Man... no
checking for flex... (cached) flex
checking for bison... (cached) bison
checking for preprocessor stringizing operator... (cached) yes
checking for inttypes.h... (cached) yes
checking for unsigned enumerated bitfields... (cached) yes
checking for strtoul... (cached) yes
checking for bsearch... (cached) yes
checking for putenv... (cached) yes
checking for popen... (cached) yes
checking for bcopy... (cached) yes
checking for strchr... (cached) yes
checking for strrchr... (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 isascii... (cached) yes
checking for gettimeofday... (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 getrusage... (cached) yes
checking for iconv... (cached) yes
checking for nl_langinfo... (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 for vprintf... (cached) yes
checking for strstr... (cached) yes
checking whether the printf functions support %p... (cached) yes
checking for pid_t... (cached) yes
checking for vfork.h... (cached) no
checking for working vfork... (cached) yes
checking for getpagesize... (cached) yes
checking for working mmap from /dev/zero... (cached) yes
checking for working mmap with MAP_ANON(YMOUS)... (cached) yes
checking for working mmap of a file... (cached) yes
checking whether bcopy is declared... (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 strstr is declared... (cached) yes
checking whether environ 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) yes
checking whether getrlimit is declared... (cached) no
checking whether setrlimit is declared... (cached) no
checking whether getrusage is declared... (cached) no
checking if mkdir takes one argument... (cached) no
Using `/usr/src/packages/SOURCES/gcc-20010122/gcc/config/arm/arm.c' to
output insns.
Using `/usr/src/packages/SOURCES/gcc-20010122/gcc/config/arm/arm.md' as
machine description file.
Using
`/usr/src/packages/SOURCES/gcc-20010122/gcc/config/arm/unknown-elf.h' as
target machine macro file.
Using `/usr/src/packages/SOURCES/gcc-20010122/gcc/config/i386/xm-i386.h'
as host machine macro file.
checking for strerror in -lcposix... (cached) no
checking for working const... (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 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 string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for getcwd... (cached) yes
checking for munmap... (cached) yes
checking for putenv... (cached) yes
checking for setenv... (cached) yes
checking for setlocale... (cached) yes
checking for strchr... (cached) yes
checking for strcasecmp... (cached) yes
checking for strdup... (cached) yes
checking for __argz_count... (cached) yes
checking for __argz_stringify... (cached) yes
checking for __argz_next... (cached) yes
checking for LC_MESSAGES... (cached) yes
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking for libintl.h... (cached) yes
checking for gettext in libc... (cached) yes
checking for msgfmt... (cached) /usr/bin/msgfmt
checking for dcgettext... (cached) yes
checking for gmsgfmt... (cached) /usr/bin/msgfmt
checking for xgettext... (cached) /usr/bin/xgettext
checking for catalogs to be installed... sv
checking whether windows registry support is requested... yes
checking registry key on windows hosts... 2.97
checking what assembler to use... /usr/bin/as
checking what nm to use... 
checking assembler alignment features... .p2align including maximum skip
checking assembler subsection support... .subsection
checking assembler weak support... yes
checking assembler hidden support... no
checking assembler dwarf2 debug_line support... no
Using ggc-page for garbage collection.
checking whether to enable maintainer-specific portions of Makefiles...
no
creating ./config.status
creating Makefile
creating intl/Makefile
creating po/Makefile.in
creating fixinc/Makefile
creating gccbug
creating mklibgcc
creating auto-host.h
auto-host.h is unchanged
Configuring fastjar...
loading cache ../config.cache
checking for a BSD compatible install... (cached) /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... (cached) /usr/bin/gcc
checking whether the C compiler (/usr/bin/gcc -g -O2 ) works... yes
checking whether the C compiler (/usr/bin/gcc -g -O2 ) is a
cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether /usr/bin/gcc accepts -g... (cached) yes
checking for a BSD compatible install... /usr/bin/ginstall -c
checking for rm... (cached) /bin/rm
checking for cp... (cached) /bin/cp
checking for strip... (cached) /usr/local/arm-tools/arm-elf/bin//strip
checking for chmod... (cached) /bin/chmod
checking for dirent.h that defines DIR... (cached) yes
checking for opendir in -ldir... (cached) no
checking how to run the C preprocessor... (cached) /usr/bin/gcc -E
checking for ANSI C header files... (cached) yes
checking whether struct tm is in sys/time.h or time.h... (cached) time.h
checking for fcntl.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for getopt.h... (cached) yes
checking for off_t... (cached) yes
checking whether struct tm is in sys/time.h or time.h... (cached) time.h
checking size of char... (cached) 1
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 whether byte ordering is bigendian... (cached) no
creating ./config.status
creating Makefile
creating install-defs.sh
creating config.h
config.h is unchanged


make  -w all-gcc install-gcc LANGUAGES="c c++" > compile.out

make: Entering directory `/tmp/build/gcc'
make[1]: Entering directory `/tmp/build/gcc/libiberty'
make[2]: Entering directory `/tmp/build/gcc/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/build/gcc/libiberty/testsuite'
make[1]: Leaving directory `/tmp/build/gcc/libiberty'
make[1]: Entering directory `/tmp/build/gcc/zlib'
true "AR_FLAGS=rc" "CC_FOR_BUILD=/usr/bin/gcc" "CFLAGS=-g -O2"
"CXXFLAGS=-g -O2" "CFLAGS_FOR_BUILD=" "CFLAGS_FOR_TARGET=-g -O2"
"INSTALL=/bin/sh /usr/src/packages/SOURCES/gcc-20010122/install-sh -c"
"INSTALL_DATA=/bin/sh /usr/src/packages/SOURCES/gcc-20010122/install-sh
-c -m 644" "INSTALL_PROGRAM=/bin/sh
/usr/src/packages/SOURCES/gcc-20010122/install-sh -c "
"INSTALL_SCRIPT=/bin/sh
/usr/src/packages/SOURCES/gcc-20010122/install-sh -c" "LDFLAGS="
"LIBCFLAGS=-g -O2" "LIBCFLAGS_FOR_TARGET=-g -O2" "MAKE=make"
"MAKEINFO=makeinfo  " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh"
"EXPECT=expect" "RUNTEST=runtest" "RUNTESTFLAGS="
"exec_prefix=/usr/local/arm-tools" "infodir=/usr/local/arm-tools/info"
"libdir=/usr/local/arm-tools/lib" "prefix=/usr/local/arm-tools"
"tooldir=/usr/local/arm-tools/arm-elf" "AR=ar" "AS=as" "CC=/usr/bin/gcc"
"CXX=c++" "LD=ld" "LIBCFLAGS=-g -O2" "NM=nm" "PICFLAG=" "RANLIB=ranlib"
"DESTDIR=" DO=all multi-do
make[1]: Leaving directory `/tmp/build/gcc/zlib'
make[1]: Entering directory `/tmp/build/gcc/gcc'
(cd intl && make all)
make[2]: Entering directory `/tmp/build/gcc/gcc/intl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/build/gcc/gcc/intl'
(cd po && make all)
make[2]: Entering directory `/tmp/build/gcc/gcc/po'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/build/gcc/gcc/po'
/usr/bin/gcc -DCROSS_COMPILE -DIN_GCC    -g -O2 -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic
-Wno-long-long  -DHAVE_CONFIG_H    -I. -I.
-I/usr/src/packages/SOURCES/gcc-20010122/gcc
-I/usr/src/packages/SOURCES/gcc-20010122/gcc/.
-I/usr/src/packages/SOURCES/gcc-20010122/gcc/config
-I/usr/src/packages/SOURCES/gcc-20010122/gcc/../include \
  -DSTANDARD_STARTFILE_PREFIX=\"../../../\"
-DSTANDARD_EXEC_PREFIX=\"/usr/local/arm-tools/lib/gcc-lib/\"
-DDEFAULT_TARGET_VERSION=\"2.97\" -DDEFAULT_TARGET_MACHINE=\"arm-elf\"
-DSTANDARD_BINDIR_PREFIX=\"/usr/local/arm-tools/bin/\"
-DTOOLDIR_BASE_PREFIX=\"../../../../\" `test "HLIB_LINK" -a "yes" =
"yes" && echo "-DENABLE_SHARED_LIBGCC"` `test "HLIB_MULTILIB" && echo
"-DNO_SHARED_LIBGCC_MULTILIB"` \
  -c /usr/src/packages/SOURCES/gcc-20010122/gcc/gcc.c
make[1]: Leaving directory `/tmp/build/gcc/gcc'
make: Leaving directory `/tmp/build/gcc'

/usr/src/packages/SOURCES/gcc-20010122/gcc/gcc.c: In function `execute':
/usr/src/packages/SOURCES/gcc-20010122/gcc/gcc.c:2662: `prus' has an
incomplete type
/usr/src/packages/SOURCES/gcc-20010122/gcc/gcc.c:2663: `RUSAGE_CHILDREN'
undeclared (first use in this function)
/usr/src/packages/SOURCES/gcc-20010122/gcc/gcc.c:2663: (Each undeclared
identifier is reported only once
/usr/src/packages/SOURCES/gcc-20010122/gcc/gcc.c:2663: for each function
it appears in.)
/usr/src/packages/SOURCES/gcc-20010122/gcc/gcc.c:2664: invalid use of
undefined type `struct rusage'
/usr/src/packages/SOURCES/gcc-20010122/gcc/gcc.c:2664: invalid use of
undefined type `struct rusage'
/usr/src/packages/SOURCES/gcc-20010122/gcc/gcc.c:2665: invalid use of
undefined type `struct rusage'
/usr/src/packages/SOURCES/gcc-20010122/gcc/gcc.c:2665: invalid use of
undefined type `struct rusage'
/usr/src/packages/SOURCES/gcc-20010122/gcc/gcc.c:2668: invalid use of
undefined type `struct rusage'
/usr/src/packages/SOURCES/gcc-20010122/gcc/gcc.c:2668: invalid use of
undefined type `struct rusage'
/usr/src/packages/SOURCES/gcc-20010122/gcc/gcc.c:2669: invalid use of
undefined type `struct rusage'
/usr/src/packages/SOURCES/gcc-20010122/gcc/gcc.c:2669: invalid use of
undefined type `struct rusage'
/usr/src/packages/SOURCES/gcc-20010122/gcc/gcc.c: At top level:
/usr/src/packages/SOURCES/gcc-20010122/gcc/gcc.c:211: storage size of
`rus' isn't known
/usr/src/packages/SOURCES/gcc-20010122/gcc/gcc.c:211: storage size of
`prus' isn't known
make[1]: *** [gcc.o] Error 1
make: *** [all-gcc] Error 2

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]