From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Lind To: ecos-discuss@sourceware.cygnus.com Subject: [ECOS] Error when building GCC for PowerPC under WindowsNT Date: Wed, 06 Sep 2000 04:46:00 -0000 Message-id: <39B62E78.32770373@bluelabs.se> X-SW-Source: 2000-09/msg00056.html I have problem when building gcc for powerpc under windows NT. I'm following the instructions in the RedHat homepage. The problem arises after I have typed: make -w all-gcc install-gcc LANGUAGES="c c++" 2>&1 | tee make.out I get the following messages in make.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/texinfo' make all-recursive make[2]: Entering directory `/tmp/build/gcc/texinfo' Making all in intl make[3]: Entering directory `/tmp/build/gcc/texinfo/intl' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/tmp/build/gcc/texinfo/intl' Making all in lib make[3]: Entering directory `/tmp/build/gcc/texinfo/lib' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/tmp/build/gcc/texinfo/lib' Making all in makeinfo make[3]: Entering directory `/tmp/build/gcc/texinfo/makeinfo' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/tmp/build/gcc/texinfo/makeinfo' make[2]: Leaving directory `/tmp/build/gcc/texinfo' make[1]: Leaving directory `/tmp/build/gcc/texinfo' make[1]: Entering directory `/tmp/build/gcc/gcc' running /bin/sh /src/gcc/gcc-2.95.2/gcc/configure --verbose --host=i686-pc-cygwin32 --target=powerpc-eabi --prefix=/tools --exec-prefix=/tools/H-i686-pc-cygwin --srcdir=/src/gcc/gcc-2.95.2/gcc --with-gcc-version-trigger=/src/gcc/gcc-2.95.2/gcc/version.c --with-gnu-as --with-gnu-ld --with-newlib --cache-file=../config.cache --no-create --no-recursion loading cache ../config.cache checking LIBRARY_PATH variable... ok checking GCC_EXEC_PREFIX variable... ok checking host system type... i686-pc-cygwin32 checking target system type... powerpc-unknown-eabi checking build system type... i686-pc-cygwin32 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 whether make sets ${MAKE}... (cached) yes checking whether a default assembler was specified... no checking whether a default linker was specified... no checking for gawk... (cached) gawk checking for flex... (cached) flex checking for yywrap in -lfl... (cached) yes 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 bison... (cached) bison -y checking for a BSD compatible install... /bin/sh /src/gcc/gcc-2.95.2/install-sh -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... (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) 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... (cached) yes checking for sys/stat.h... (cached) yes checking for direct.h... (cached) no checking for thread.h... (cached) no checking for pthread.h... (cached) yes checking for gnatbind... (cached) no checking whether cpp understands the stringify operator... (cached) yes checking for inttypes.h... (cached) no checking for strtoul... (cached) yes checking for bsearch... (cached) yes checking for strerror... (cached) yes checking for putenv... (cached) yes checking for popen... (cached) yes checking for bcopy... (cached) yes checking for bzero... (cached) yes checking for bcmp... (cached) yes checking for index... (cached) yes checking for rindex... (cached) yes checking for strchr... (cached) yes checking for strrchr... (cached) yes checking for kill... (cached) yes checking for getrlimit... (cached) no checking for setrlimit... (cached) no checking for atoll... (cached) no 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) no checking for fputc_unlocked... (cached) no checking for fputs_unlocked... (cached) no checking for vprintf... (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 whether malloc must be declared... (cached) no checking whether realloc must be declared... (cached) no checking whether calloc must be declared... (cached) no checking whether free must be declared... (cached) no checking whether bcopy must be declared... (cached) no checking whether bzero must be declared... (cached) no checking whether bcmp must be declared... (cached) no checking whether index must be declared... (cached) no checking whether rindex must be declared... (cached) no checking whether getenv must be declared... (cached) no checking whether atol must be declared... (cached) no checking whether sbrk must be declared... (cached) no checking whether abort must be declared... (cached) no checking whether atof must be declared... (cached) no checking whether strerror must be declared... (cached) no checking whether getcwd must be declared... (cached) no checking whether getwd must be declared... (cached) yes checking whether strsignal must be declared... (cached) no checking whether putc_unlocked must be declared... (cached) yes checking whether fputs_unlocked must be declared... (cached) yes checking whether strstr must be declared... (cached) no checking whether getrlimit must be declared... (cached) yes checking whether setrlimit must be declared... (cached) yes checking for sys_siglist declaration in signal.h or unistd.h... (cached) no checking if mkdir takes one argument... (cached) no Using `/src/gcc/gcc-2.95.2/gcc/config/rs6000/rs6000.c' to output insns. Using `/src/gcc/gcc-2.95.2/gcc/config/rs6000/rs6000.md' as machine description file. Using `/src/gcc/gcc-2.95.2/gcc/config/rs6000/eabi.h' as target machine macro file. Using the following host machine macro files: /src/gcc/gcc-2.95.2/gcc/config/i386/xm-i386.h /src/gcc/gcc-2.95.2/gcc/config/i386/xm-cygwin.h checking for strerror in -lcposix... (cached) no 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) no checking for alloca... (cached) yes checking for unistd.h... (cached) yes checking for getpagesize... (cached) yes checking for working mmap... (cached) no checking for argz.h... (cached) no checking for limits.h... (cached) yes checking for locale.h... (cached) yes checking for nl_types.h... (cached) 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) 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) no checking for __argz_stringify... (cached) no checking for __argz_next... (cached) no checking for LC_MESSAGES... (cached) no checking whether NLS is requested... no checking assembler alignment features... checking assembler subsection support... checking assembler instructions... Using the Haifa scheduler. Removing toplev.o Links are now set up to build a cross-compiler for powerpc-unknown-eabi from i686-pc-cygwin32. updating cache ../config.cache creating ./config.status /bin/sh /src/gcc/gcc-2.95.2/gcc/configure.frag /src/gcc/gcc-2.95.2/gcc "cp" \ "/src/gcc/gcc-2.95.2/gcc/config/i386/x-cygwin" "/src/gcc/gcc-2.95.2/gcc/config/rs6000/t-ppcgas /src/gcc/gcc-2.95.2/gcc/config/rs6000/t-ppccomm /src/gcc/gcc-2.95.2/gcc/config/t-install-cpp" cp config.status config.run LANGUAGES="c++" /bin/sh config.run creating Makefile creating intl/Makefile creating po/Makefile.in creating fixinc/Makefile creating cp/Makefile creating auto-host.h auto-host.h is unchanged linking /src/gcc/gcc-2.95.2/gcc/intl/libgettext.h to intl/libintl.h creating libintl.h rm -f config.run make[1]: Leaving directory `/tmp/build/gcc/gcc' make[1]: Entering directory `/tmp/build/gcc/gcc' gcc -DCROSS_COMPILE -DIN_GCC -DHAIFA -g -O2 -DHAVE_CONFIG_H -I. -I/src/gcc/gcc-2.95.2/gcc -I/src/gcc/gcc-2.95.2/gcc/config -I/src/gcc/gcc-2.95.2/gcc/../include \ -DGCC_INCLUDE_DIR=\"/tools/H-i686-pc-cygwin/lib/gcc-lib/powerpc-eabi/2.95.2/include\" \ -DGPLUSPLUS_INCLUDE_DIR=\"/tools/H-i686-pc-cygwin/lib/gcc-lib/powerpc-eabi/2.95.2/../../../..`echo /tools/H-i686-pc-cygwin | sed -e 's|^/tools||' -e 's|/[^/]*|/..|g'`/include/g++-3\" \ -DLOCAL_INCLUDE_DIR=\"/tools/include\" \ -DCROSS_INCLUDE_DIR=\"/tools/H-i686-pc-cygwin/lib/gcc-lib/powerpc-eabi/2.95.2/../../../`echo /tools/H-i686-pc-cygwin | sed -e 's|^/tools||' -e 's|/$||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'`powerpc-eabi/sys-include\" \ -DTOOL_INCLUDE_DIR=\"/tools/H-i686-pc-cygwin/lib/gcc-lib/powerpc-eabi/2.95.2/../../../`echo /tools/H-i686-pc-cygwin | sed -e 's|^/tools||' -e 's|/$||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'`powerpc-eabi/include\" \ -c `echo /src/gcc/gcc-2.95.2/gcc/cccp.c | sed 's,^\./,,'` gcc -DCROSS_COMPILE -DIN_GCC -DHAIFA -g -O2 -DHAVE_CONFIG_H -I. -I/src/gcc/gcc-2.95.2/gcc -I/src/gcc/gcc-2.95.2/gcc/config -I/src/gcc/gcc-2.95.2/gcc/../include \ -DLOCALEDIR=\"/tools/share/locale\" \ -c `echo /src/gcc/gcc-2.95.2/gcc/intl.c | sed 's,^\./,,'` gcc -DCROSS_COMPILE -DIN_GCC -DHAIFA -g -O2 -DHAVE_CONFIG_H -I. -I/src/gcc/gcc-2.95.2/gcc -I/src/gcc/gcc-2.95.2/gcc/config -I/src/gcc/gcc-2.95.2/gcc/../include \ -DPREFIX=\"/tools\" \ -c `echo /src/gcc/gcc-2.95.2/gcc/prefix.c | sed 's,^\./,,'` gcc -DCROSS_COMPILE -DIN_GCC -DHAIFA -g -O2 -DHAVE_CONFIG_H -o cccp.exe cccp.o cexp.o intl.o prefix.o version.o mbchar.o obstack.o -ladvapi32 ../libiberty/libiberty.a rm -f cpp.exe ln cccp.exe cpp.exe (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' gcc -c -DCROSS_COMPILE -DIN_GCC -DHAIFA -g -O2 -DHAVE_CONFIG_H -I. -I/src/gcc/gcc-2.95.2/gcc -I/src/gcc/gcc-2.95.2/gcc/config -I/src/gcc/gcc-2.95.2/gcc/../include \ /src/gcc/gcc-2.95.2/gcc/gencheck.c gcc -DCROSS_COMPILE -DIN_GCC -DHAIFA -g -O2 -DHAVE_CONFIG_H -o gencheck \ gencheck.o ` case "obstack.o" in ?*) echo obstack.o ;; esac ` ` case "" in ?*) echo ;; esac ` ` case "" in ?*) echo ;; esac ` ` case "" in ?*) echo ;; esac ` ` case "" in ?*) echo ;; esac ` -ladvapi32 ./gencheck > tmp-check.h /src/gcc/gcc-2.95.2/gcc/move-if-change tmp-check.h tree-check.h tree-check.h is unchanged touch s-check gcc -DCROSS_COMPILE -DIN_GCC -DHAIFA -g -O2 -DHAVE_CONFIG_H -I. -I/src/gcc/gcc-2.95.2/gcc -I/src/gcc/gcc-2.95.2/gcc/config -I/src/gcc/gcc-2.95.2/gcc/../include \ -DTARGET_NAME=\"powerpc-eabi\" \ -c `echo /src/gcc/gcc-2.95.2/gcc/toplev.c | sed 's,^\./,,'` gcc -c -DCROSS_COMPILE -DIN_GCC -DHAIFA -g -O2 -DHAVE_CONFIG_H -I. -I/src/gcc/gcc-2.95.2/gcc -I/src/gcc/gcc-2.95.2/gcc/config -I/src/gcc/gcc-2.95.2/gcc/../include /src/gcc/gcc-2.95.2/gcc/reload1.c /src/gcc/gcc-2.95.2/gcc/reload1.c:9554: `LABEL' undeclared here (not in a function) /src/gcc/gcc-2.95.2/gcc/reload1.c:9554: `min_labelno' undeclared here (not in a function) /src/gcc/gcc-2.95.2/gcc/reload1.c:9556: syntax error before `static' /src/gcc/gcc-2.95.2/gcc/reload1.c: In function `reload_combine': /src/gcc/gcc-2.95.2/gcc/reload1.c:9604: stray '\' in program /src/gcc/gcc-2.95.2/gcc/reload1.c:9604: parse error before `)' /src/gcc/gcc-2.95.2/gcc/reload1.c:9795: stray '\' in program /src/gcc/gcc-2.95.2/gcc/reload1.c:9795: parse error before `;' make[1]: *** [reload1.o] Error 1 make[1]: Leaving directory `/tmp/build/gcc/gcc' make: *** [all-gcc] Error 2 make: Leaving directory `/tmp/build/gcc' What is the problem with reload1.c? What shall I do? /Daniel Lind Daniel.lind@bluelabs.se