Problem with compiling gcc-20010122 snapshot

brenner jogava@freesurf.ch
Sat Jan 27 10:40:00 GMT 2001


Richard Earnshaw wrote:
> 
> repl: bad addresses:
>         joel.brenner@tchip.com -- illegal address construct ()
> 
> This shouldn't happen -- if the configure script for fastjar won't run on
> a cross compiler, then configure should skip the directory.  Can you
> please post this to gcc-bugs@gcc.gnu.org
> 
> R.
> 
> > 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:
> >
> > Created "Makefile" in /tmp/build/gcc
> > Configuring libiberty...
> > creating cache ../config.cache
> > checking host system type... i686-pc-linux-gnu
> > checking build system type... i686-pc-linux-gnu
> > checking for ar... ar
> > checking for ranlib... ranlib
> > checking for gcc... gcc
> > checking whether we are using GNU C... yes
> > checking whether gcc accepts -g... yes
> > checking for POSIXized ISC... no
> > checking for working const... yes
> > checking for inline... inline
> > checking for a BSD compatible install... /usr/bin/install -c
> > checking how to run the C preprocessor... gcc -E
> > checking for sys/file.h... yes
> > checking for sys/param.h... yes
> > checking for limits.h... yes
> > checking for stdlib.h... yes
> > checking for string.h... yes
> > checking for unistd.h... yes
> > checking for strings.h... no
> > checking for sys/time.h... yes
> > checking for time.h... yes
> > checking for sys/resource.h... yes
> > checking for sys/stat.h... yes
> > checking for sys/mman.h... no
> > checking for fcntl.h... yes
> > checking for sys/wait.h that is POSIX.1 compatible... yes
> > checking whether time.h and sys/time.h may both be included... yes
> > checking whether errno must be declared... no
> > checking whether the C compiler (gcc -g -O2 ) works... yes
> > checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... yes
> > checking for asprintf... no
> > checking for atexit... yes
> > checking for basename... no
> > checking for bcmp... yes
> > checking for bcopy... yes
> > checking for bsearch... yes
> > checking for bzero... yes
> > checking for calloc... yes
> > checking for clock... yes
> > checking for getcwd... no
> > checking for getpagesize... no
> > checking for index... yes
> > checking for insque... no
> > checking for memchr... yes
> > checking for memcmp... yes
> > checking for memcpy... yes
> > checking for memmove... yes
> > checking for memset... yes
> > checking for mkstemps... no
> > checking for putenv... yes
> > checking for random... no
> > checking for rename... yes
> > checking for rindex... yes
> > checking for setenv... yes
> > checking for sigsetmask... no
> > checking for strcasecmp... yes
> > checking for strchr... yes
> > checking for strdup... yes
> > checking for strncasecmp... yes
> > checking for strrchr... yes
> > checking for strstr... yes
> > checking for strtod... yes
> > checking for strtol... yes
> > checking for strtoul... yes
> > checking for tmpnam... yes
> > checking for vasprintf... no
> > checking for vfprintf... yes
> > checking for vprintf... yes
> > checking for vsprintf... yes
> > checking for waitpid... no
> > checking for working alloca.h... no
> > checking for alloca... yes
> > checking for ANSI C header files... yes
> > checking for pid_t... yes
> > checking for vfork.h... no
> > checking for working vfork... checking for vfork... no
> > no
> > checking for sys_errlist... no
> > checking for sys_nerr... no
> > checking for sys_siglist... no
> > checking for getrusage... no
> > checking for on_exit... no
> > checking for psignal... no
> > checking for strerror... yes
> > checking for strsignal... no
> > checking for sysconf... no
> > checking for times... yes
> > checking for sbrk... yes
> > checking for gettimeofday... yes
> > checking for unistd.h... (cached) yes
> > checking for getpagesize... (cached) no
> > checking for working mmap... no
> > checking for working strncmp... no
> > updating cache ../config.cache
> > creating ./config.status
> > creating Makefile
> > creating testsuite/Makefile
> > creating config.h
> > Configuring zlib...
> > loading cache ../config.cache
> > checking host system type... i686-pc-linux-gnu
> > checking target system type... arm-unknown-elf
> > checking build system type... i686-pc-linux-gnu
> > checking for a BSD compatible install... (cached) /usr/bin/install -c
> > checking whether build environment is sane... yes
> > checking whether make sets ${MAKE}... 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) gcc
> > checking whether we are using GNU C... (cached) yes
> > checking whether gcc accepts -g... (cached) yes
> > checking for ranlib... (cached) ranlib
> > checking for ld used by GCC... /usr/local/arm-tools/arm-elf/bin/ld
> > checking if the linker (/usr/local/arm-tools/arm-elf/bin/ld) is GNU ld...
> > yes
> > checking for BSD-compatible nm... /usr/local/arm-tools/arm-elf/bin/nm -B
> > checking command to parse /usr/local/arm-tools/arm-elf/bin/nm -B output...
> > yes
> > checking for _ prefix in compiled symbols... (cached) no
> > checking whether ln -s works... yes
> > updating cache ../config.cache
> > loading cache ../config.cache within ltconfig
> > checking whether -lc should be explicitly linked in... yes
> > checking for objdir... .libs
> > checking for gcc option to produce PIC... -fPIC -DPIC
> > checking if gcc PIC flag -fPIC -DPIC works... yes
> > checking if gcc static flag -static works... yes
> > checking if gcc supports -c -o file.o... yes
> > checking if gcc supports -fno-rtti -fno-exceptions ... yes
> > checking whether the linker (/usr/local/arm-tools/arm-elf/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
> > updating cache ../config.cache
> > loading cache ../config.cache
> > checking how to run the C preprocessor... (cached) gcc -E
> > checking for unistd.h... (cached) yes
> > checking for getpagesize... (cached) no
> > checking for working mmap... (cached) no
> > 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... i686-pc-linux-gnu
> > checking target system type... arm-unknown-elf
> > checking build system type... i686-pc-linux-gnu
> > 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... yes
> > checking whether we are using GNU C... (cached) yes
> > checking whether gcc accepts -g... (cached) yes
> > checking whether gcc and cc understand -c and -o together... yes
> > checking for long double... yes
> > checking whether gcc accepts -Wno-long-long... 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... no
> > checking for inline... (cached) inline
> > checking for mawk... no
> > checking for gawk... gawk
> > checking whether ln works... yes
> > checking whether ln -s works... yes
> > checking for volatile... yes
> > checking for ranlib... (cached) ranlib
> > checking for a BSD compatible install... (cached) /usr/bin/install -c
> > checking how to run the C preprocessor... (cached) 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... no
> > checking for sys/wait.h that is POSIX.1 compatible... (cached) yes
> > checking for limits.h... (cached) yes
> > checking for stddef.h... yes
> > checking for string.h... (cached) yes
> > checking for strings.h... (cached) no
> > 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... no
> > checking for sys/file.h... (cached) yes
> > checking for sys/time.h... (cached) yes
> > checking for sys/resource.h... (cached) yes
> > checking for sys/param.h... (cached) yes
> > checking for sys/times.h... yes
> > checking for sys/stat.h... (cached) yes
> > checking for direct.h... no
> > checking for malloc.h... yes
> > checking for langinfo.h... no
> > checking for iconv.h... no
> > checking for thread.h... no
> > checking for pthread.h... yes
> > checking for gnatbind... no
> > checking for mktemp... yes
> > checking for makeinfo... makeinfo
> > checking for modern makeinfo... no
> > checking for recent Pod::Man... no
> > checking for flex... flex
> > checking for bison... bison
> > checking for preprocessor stringizing operator... yes
> > checking for inttypes.h... no
> > checking for unsigned enumerated bitfields... yes
> > checking for strtoul... (cached) yes
> > checking for bsearch... (cached) yes
> > checking for putenv... (cached) yes
> > checking for popen... no
> > checking for bcopy... (cached) yes
> > checking for strchr... (cached) yes
> > checking for strrchr... (cached) yes
> > checking for kill... yes
> > checking for getrlimit... no
> > checking for setrlimit... no
> > checking for atoll... no
> > checking for atoq... no
> > checking for sysconf... (cached) no
> > checking for isascii... yes
> > checking for gettimeofday... (cached) yes
> > checking for strsignal... (cached) no
> > checking for putc_unlocked... no
> > checking for fputc_unlocked... no
> > checking for fputs_unlocked... no
> > checking for getrusage... (cached) no
> > checking for iconv... no
> > checking for nl_langinfo... no
> > checking for ssize_t... yes
> > checking for uid_t in sys/types.h... yes
> > checking type of array argument to getgroups... gid_t
> > checking for vprintf... (cached) yes
> > checking for strstr... (cached) yes
> > checking whether the printf functions support %p... no
> > checking for pid_t... (cached) yes
> > checking for vfork.h... (cached) no
> > checking for working vfork... (cached) no
> > checking for getpagesize... (cached) no
> > checking for working mmap from /dev/zero... yes
> > checking for working mmap with MAP_ANON(YMOUS)... no
> > checking for working mmap of a file... no
> > checking whether bcopy is declared... yes
> > checking whether getenv is declared... yes
> > checking whether atol is declared... yes
> > checking whether sbrk is declared... yes
> > checking whether abort is declared... yes
> > checking whether atof is declared... yes
> > checking whether getcwd is declared... yes
> > checking whether getwd is declared... no
> > checking whether strsignal is declared... yes
> > checking whether putc_unlocked is declared... no
> > checking whether fputs_unlocked is declared... no
> > checking whether strstr is declared... yes
> > checking whether environ is declared... yes
> > checking whether malloc is declared... yes
> > checking whether realloc is declared... yes
> > checking whether calloc is declared... yes
> > checking whether free is declared... yes
> > checking whether basename is declared... yes
> > checking whether getopt is declared... no
> > checking whether getrlimit is declared... no
> > checking whether setrlimit is declared... no
> > checking whether getrusage is declared... no
> > checking if mkdir takes one argument... no
> > Using `/home/brenner/src/gcc-20010122/gcc/config/arm/arm.c' to output
> > insns.
> > Using `/home/brenner/src/gcc-20010122/gcc/config/arm/arm.md' as machine
> > description file.
> > Using `/home/brenner/src/gcc-20010122/gcc/config/arm/unknown-elf.h' as
> > target machine macro file.
> > Using `/home/brenner/src/gcc-20010122/gcc/config/i386/xm-i386.h' as host
> > machine macro file.
> > checking for strerror in -lcposix... no
> > checking for working const... (cached) yes
> > checking for off_t... yes
> > checking for size_t... yes
> > checking for working alloca.h... (cached) no
> > checking for alloca... (cached) yes
> > checking for argz.h... no
> > checking for limits.h... (cached) yes
> > checking for locale.h... yes
> > checking for nl_types.h... no
> > 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) no
> > checking for munmap... no
> > checking for putenv... (cached) yes
> > checking for setenv... (cached) yes
> > checking for setlocale... yes
> > checking for strchr... (cached) yes
> > checking for strcasecmp... (cached) yes
> > checking for strdup... (cached) yes
> > checking for __argz_count... no
> > checking for __argz_stringify... no
> > checking for __argz_next... no
> > checking for stpcpy... no
> > checking for LC_MESSAGES... no
> > checking whether NLS is requested... yes
> > checking whether included gettext is requested... no
> > checking for libintl.h... no
> > checking whether catgets can be used... no
> > checking for msgfmt... /usr/bin/msgfmt
> > checking for gmsgfmt... /usr/bin/msgfmt
> > checking for xgettext... /usr/bin/xgettext
> > checking for catalogs to be installed...
> > checking whether windows registry support is requested... yes
> > checking registry key on windows hosts... 2.97
> > checking what assembler to use...
> > checking what nm to use...
> > checking assembler alignment features... none
> > checking assembler subsection support... no
> > checking assembler weak support... no
> > 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
> > updating cache ../config.cache
> > creating ./config.status
> > creating Makefile
> > creating intl/Makefile
> > creating po/Makefile.in
> > creating fixinc/Makefile
> > creating gccbug
> > creating mklibgcc
> > creating auto-host.h
> > linking /home/brenner/src/gcc-20010122/gcc/intl/libgettext.h to
> > intl/libintl.h
> > creating libintl.h
> > Configuring fastjar...
> > loading cache ../config.cache
> > checking for a BSD compatible install... (cached) /usr/bin/install -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) gcc
> > checking whether the C compiler (gcc -g -O2 ) works... yes
> > checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... yes
> > checking whether we are using GNU C... (cached) yes
> > checking whether gcc accepts -g... (cached) yes
> > checking for a BSD compatible install... /usr/bin/install -c
> > checking for rm... /bin/rm
> > checking for cp... /bin/cp
> > checking for strip... /usr/local/arm-tools/arm-elf/bin/strip
> > checking for chmod... /bin/chmod
> > checking for dirent.h that defines DIR... no
> > checking for sys/ndir.h that defines DIR... no
> > checking for sys/dir.h that defines DIR... no
> > checking for ndir.h that defines DIR... no
> > checking for opendir in -lx... no
> > checking how to run the C preprocessor... (cached) gcc -E
> > checking for ANSI C header files... (cached) yes
> > checking whether struct tm is in sys/time.h or time.h... 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... no
> > 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...
> > configure: error: can not run test program while cross compiling
> > Configure in /tmp/build/gcc/fastjar failed, exiting.
> >


More information about the Gcc-bugs mailing list