This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

bootstraping fails on AIX 5.1 w/ Version 6 AIX compilers


Bootstraping GCC-3.1.1 on AIX 5.1 fails with:

cc -c -DIN_GCC -g -DHAVE_CONFIG_H -I. -I. -I../../src/gcc -I../../src/gcc/. -I../../src/gcc/config -I../../src/gcc/../include ../../src/gcc/tradcif.c -o tradcif.o
"tradcif.y", line 222.17: 1506-196 (W) Initialization between types "unsigned char*" and "const unsigned char*" is not allowed.
"tradcif.y", line 319.12: 1506-068 (W) Operation between types "unsigned char*" and "const unsigned char*" is not allowed.
"tradcif.y", line 438.1: 1506-343 (S) Redeclaration of parse_escape differs from previous declaration on line 35 of "tradcif.y".
"tradcif.y", line 438.1: 1506-381 (I) The type "const unsigned char**" of parameter 1 in the prototype declaration is not compatible with the corresponding parameter type "unsigned char**" in the nonprototype declaration.

In the past using c89 instead of cc here would get me past this,
however that is not the case when bootstraping with
VisualAge C++ Professional / C for AIX Compiler, Version 6

Thanks
Nathan

The following is the result if c89 or xlc is used:
c89 -c -DIN_GCC -g -DHAVE_CONFIG_H -I. -I. -I../../src/gcc -I../../src/gcc/. -I../../src/gcc/config -I../../src/gcc/../include ../../src/gcc/tradcif.c -o tradcif.o
"tradcif.y", line 25.10: 1506-296 (S) #include file "config.h" not found.
"../../src/gcc/system.h", line 331.20: 1506-166 (S) Definition of function strsignal requires parentheses.
"/usr/include/stdarg.h", line 57.9: 1506-213 (S) Macro name va_start cannot be redefined.
"/usr/include/stdarg.h", line 57.9: 1506-358 (I) "va_start" is defined on line 29 of /usr/include/varargs.h.
"/usr/include/stdarg.h", line 58.9: 1506-213 (S) Macro name va_end cannot be redefined.
"/usr/include/stdarg.h", line 58.9: 1506-358 (I) "va_end" is defined on line 30 of /usr/include/varargs.h.
"/usr/include/stdarg.h", line 59.9: 1506-213 (S) Macro name va_arg cannot be redefined.
"/usr/include/stdarg.h", line 59.9: 1506-358 (I) "va_arg" is defined on line 31 of /usr/include/varargs.h.
"../../src/gcc/system.h", line 331.30: 1506-276 (S) Syntax error: possible missing '{'?
"tradcif.y", line 50.3: 1506-273 (E) Missing type in declaration of YYSTYPE.
"/usr/lib/bison.simple", line 138.1: 1506-166 (S) Definition of function YYSTYPE requires parentheses.
"/usr/lib/bison.simple", line 138.9: 1506-276 (S) Syntax error: possible missing '{'?
"/usr/lib/bison.simple", line 190.22: 1506-045 (S) Undeclared identifier from.
"/usr/lib/bison.simple", line 191.22: 1506-045 (S) Undeclared identifier to.
"/usr/lib/bison.simple", line 192.20: 1506-045 (S) Undeclared identifier count.
"/usr/lib/bison.simple", line 253.20: 1506-277 (S) Syntax error: possible missing ';' or ','?
"/usr/lib/bison.simple", line 258.11: 1506-277 (S) Syntax error: possible missing ';' or ','?
"/usr/lib/bison.simple", line 260.3: 1506-275 (S) Unexpected text 'short' encountered.
"/usr/lib/bison.simple", line 261.12: 1506-045 (S) Undeclared identifier yyvs.
"/usr/lib/bison.simple", line 261.17: 1506-277 (S) Syntax error: possible missing ';' or ','?
"/usr/lib/bison.simple", line 273.3: 1506-275 (S) Unexpected text 'int' encountered.
"/usr/lib/bison.simple", line 274.3: 1506-275 (S) Unexpected text 'int' encountered.
"/usr/lib/bison.simple", line 285.11: 1506-275 (S) Unexpected text yyval encountered.
"/usr/lib/bison.simple", line 289.3: 1506-275 (S) Unexpected text 'int' encountered.
"/usr/lib/bison.simple", line 298.3: 1506-045 (S) Undeclared identifier yynerrs.
"/usr/lib/bison.simple", line 307.3: 1506-045 (S) Undeclared identifier yyvsp.
"/usr/lib/bison.simple", line 323.16: 1506-045 (S) Undeclared identifier yyvs1.
"/usr/lib/bison.simple", line 323.22: 1506-277 (S) Syntax error: possible missing ';' or ','?
"/usr/lib/bison.simple", line 324.7: 1506-275 (S) Unexpected text 'short' encountered.
"/usr/lib/bison.simple", line 330.7: 1506-275 (S) Unexpected text 'int' encountered.
"/usr/lib/bison.simple", line 378.24: 1506-275 (S) Unexpected text ')' encountered.
"/usr/lib/bison.simple", line 378.71: 1506-277 (S) Syntax error: possible missing ')' or ','?
"/usr/lib/bison.simple", line 380.57: 1506-275 (S) Unexpected text ')' encountered.
"/usr/lib/bison.simple", line 502.14: 1506-045 (S) Undeclared identifier yylval.
"/usr/lib/bison.simple", line 524.5: 1506-045 (S) Undeclared identifier yyval.
"tradcif.y", line 76.3: 1506-045 (S) Undeclared identifier expression_value.
"tradcif.y", line 208.65: 1506-045 (S) Undeclared identifier lexptr.
"tradcif.y", line 222.19: 1506-045 (S) Undeclared identifier lexptr.
"tradcif.y", line 237.3: 1506-045 (S) Undeclared identifier yylval.
"tradcif.y", line 255.24: 1506-045 (S) Undeclared identifier _hex_value.
"tradcif.y", line 319.14: 1506-045 (S) Undeclared identifier lexptr.
"tradcif.y", line 347.11: 1506-045 (S) Undeclared identifier flag_signed_char.
"tradcif.y", line 348.22: 1506-045 (S) Undeclared identifier CHAR_TYPE_SIZE.
"tradcif.y", line 349.9: 1506-045 (S) Undeclared identifier yylval.
"tradcif.y", line 445.14: 1506-045 (S) Undeclared identifier TARGET_BELL.
"tradcif.y", line 447.14: 1506-045 (S) Undeclared identifier TARGET_BS.
"tradcif.y", line 451.14: 1506-045 (S) Undeclared identifier TARGET_FF.
"tradcif.y", line 453.14: 1506-045 (S) Undeclared identifier TARGET_NEWLINE.
"tradcif.y", line 455.14: 1506-045 (S) Undeclared identifier TARGET_CR.
"tradcif.y", line 457.14: 1506-045 (S) Undeclared identifier TARGET_TAB.
"tradcif.y", line 459.14: 1506-045 (S) Undeclared identifier TARGET_VT.
"tradcif.y", line 495.26: 1506-045 (S) Undeclared identifier CHAR_TYPE_SIZE.
"tradcif.y", line 508.17: 1506-045 (S) Undeclared identifier _hex_value.
"tradcif.y", line 516.26: 1506-045 (S) Undeclared identifier BITS_PER_UNIT.
"tradcif.y", line 529.1: 1506-343 (S) Redeclaration of yyerror differs from previous declaration on line 358 of "/usr/lib/bison.simple".
"tradcif.y", line 529.1: 1506-050 (I) Return type "void" in redeclaration is not compatible with the previous return type "int".
"tradcif.y", line 533.12: 1506-045 (S) Undeclared identifier parse_return_error.
"tradcif.y", line 547.3: 1506-045 (S) Undeclared identifier lexptr.
"tradcif.y", line 557.15: 1506-045 (S) Undeclared identifier parse_return_error.
"tradcif.y", line 566.10: 1506-045 (S) Undeclared identifier expression_value.

The build was configured with the following:
../src/configure --with-gcc-version-trigger=/projects-n1/zierfuss/gcc-3.1.1/src/gcc/ver sion.c --host=powerpc-ibm-aix5.1.0.0 --prefix=/usr/local/pkg/gcc/gcc-3.1.1 --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --disable-nls --norecursion

The following is the configure output:
Configuring for a powerpc-ibm-aix5.1.0.0 host.
Created "Makefile" in /projects-n1/zierfuss/gcc-3.1.1/obj using "mt-frag"
Configuring libiberty...
creating cache ../config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking for makeinfo... makeinfo
checking for perl... perl
checking host system type... powerpc-ibm-aix5.1.0.0
checking build system type... powerpc-ibm-aix5.1.0.0
checking for ar... ar
checking for ranlib... ranlib
checking for gcc... cc
checking whether we are using GNU C... no
checking for POSIXized ISC... no
checking for working const... yes
checking for inline... inline
checking for a BSD compatible install... ../../src/libiberty/../install-sh -c
checking how to run the C preprocessor... /lib/cpp
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... yes
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... yes
checking for fcntl.h... yes
checking for alloca.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 for ANSI C header files... yes
checking for uintptr_t... yes
checking whether the C compiler (cc -g ) works... yes
checking whether the C compiler (cc -g ) is a cross-compiler... no
checking for asprintf... no
checking for atexit... yes
checking for basename... yes
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 ffs... yes
checking for getcwd... yes
checking for getpagesize... yes
checking for index... yes
checking for insque... yes
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... yes
checking for rename... yes
checking for rindex... yes
checking for setenv... yes
checking for sigsetmask... yes
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... yes
checking whether alloca needs Cray hooks... no
checking stack direction for C alloca... -1
checking for pid_t... yes
checking for vfork.h... no
checking for working vfork... yes
checking for _doprnt... yes
checking for sys_errlist... yes
checking for sys_nerr... yes
checking for sys_siglist... yes
checking for getrusage... yes
checking for on_exit... yes
checking for psignal... yes
checking for strerror... yes
checking for strsignal... yes
checking for sysconf... yes
checking for times... yes
checking for sbrk... yes
checking for gettimeofday... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for sys/types.h... yes
checking for getpagesize... (cached) yes
checking for working mmap... no
checking for working strncmp... yes
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... powerpc-ibm-aix5.1.0.0
checking target system type... powerpc-ibm-aix5.1.0.0
checking build system type... powerpc-ibm-aix5.1.0.0
checking for a BSD compatible install... ../../src/zlib/../install-sh -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... found
checking for working automake... missing
checking for working autoheader... found
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... (cached) cc
checking whether we are using GNU C... (cached) no
checking for non-GNU ld... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependant libraries... pass_all
checking for object suffix... o
checking for ranlib... (cached) ranlib
checking for strip... strip
updating cache ../config.cache
loading cache ../config.cache within ltconfig
checking for objdir... .libs
checking for cc option to produce PIC... -DPIC
checking if cc PIC flag -DPIC works... yes
checking if cc static flag -lC works... yes
finding the maximum length of command line arguments... 12289
checking if cc supports -c -o file.o... no
checking if we can lock with hard links... 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... aix5.1.0.0 ld.so
checking command to parse /usr/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) /lib/cpp
checking for unistd.h... (cached) yes
checking for getpagesize... (cached) yes
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 host system type... powerpc-ibm-aix5.1.0.0
checking target system type... powerpc-ibm-aix5.1.0.0
checking build system type... powerpc-ibm-aix5.1.0.0
checking for gcc... (cached) cc
checking whether the C compiler (cc -g ) works... yes
checking whether the C compiler (cc -g ) is a cross-compiler... no
checking whether we are using GNU C... (cached) no
checking whether cc accepts -g... yes
checking whether cc understands -c and -o together... yes
checking for gnatbind... no
checking for compiler driver that understands Ada... no
checking whether cc accepts -Wno-long-long... no
checking how to run the C preprocessor... (cached) /lib/cpp
checking for inline... (cached) inline
checking for volatile... yes
checking for long double... yes
checking for long long int... yes
checking for __int64... yes
checking for built-in _Bool... yes
checking size of short... 2
checking size of int... 4
checking size of long... 4
checking size of long long... 8
checking size of __int64... 8
checking execution character set... ASCII
checking whether make sets ${MAKE}... (cached) yes
checking whether a default assembler was specified... yes (/usr/ccs/bin/as)
checking whether a default linker was specified... yes (/usr/ccs/bin/ld)
checking for GNU C library... no
checking for mawk... no
checking for gawk... no
checking for nawk... nawk
checking whether ln works... yes
checking whether ln -s works... yes
checking for ranlib... (cached) ranlib
checking for a BSD compatible install... ../../src/gcc/../install-sh -c
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... no
checking whether string.h and strings.h may both be included... yes
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) 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/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... yes
checking for thread.h... no
checking for pthread.h... yes
checking for CHAR_BIT... yes
checking byte ordering... big-endian
checking floating point format... IEEE (big-endian)
checking for mktemp... no
checking for makeinfo... (cached) makeinfo
checking for modern makeinfo... no
checking for recent Pod::Man... no
checking for flex... false
checking for bison... false
checking for collect2 libraries... -lld
checking for library containing exc_resume... no
checking for preprocessor stringizing operator... yes
checking for inttypes.h... yes
checking for times... (cached) yes
checking for clock... (cached) yes
checking for dup2... yes
checking for kill... yes
checking for getrlimit... yes
checking for setrlimit... yes
checking for atoll... no
checking for atoq... no
checking for sysconf... (cached) yes
checking for strsignal... (cached) yes
checking for putc_unlocked... yes
checking for fputc_unlocked... no
checking for fputs_unlocked... no
checking for fwrite_unlocked... no
checking for fprintf_unlocked... no
checking for getrusage... (cached) yes
checking for nl_langinfo... yes
checking for lstat... yes
checking for ssize_t... yes
checking for uid_t in sys/types.h... yes
checking type of array argument to getgroups... gid_t
checking whether the printf functions support %p... 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... yes
checking for working mmap with MAP_ANON(YMOUS)... yes
checking for working mmap of a file... yes
checking for iconv... yes
checking for iconv declaration...
extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
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... yes
checking whether strsignal is declared... yes
checking whether putc_unlocked is declared... yes
checking whether fputs_unlocked is declared... no
checking whether fwrite_unlocked is declared... no
checking whether fprintf_unlocked is declared... no
checking whether strstr is declared... yes
checking whether errno 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... no
checking whether getopt is declared... yes
checking whether clock is declared... yes
checking whether getrlimit is declared... yes
checking whether setrlimit is declared... yes
checking whether getrusage is declared... yes
checking whether times is declared... yes
checking for struct tms... yes
checking for clock_t... yes
checking if mkdir takes one argument... no
Using `../../src/gcc/config/rs6000/rs6000.c' for machine-specific logic.
Using `../../src/gcc/config/rs6000/rs6000.md' as machine description file.
Using the following target machine macro files:
../../src/gcc/config/rs6000/rs6000.h
../../src/gcc/config/rs6000/aix.h
../../src/gcc/config/rs6000/aix51.h
../../src/gcc/config/rs6000/xcoff.h
checking for library containing strerror... none required
checking for working const... (cached) yes
checking for off_t... yes
checking for size_t... yes
checking for working alloca.h... (cached) yes
checking for alloca... yes
checking whether we are using the GNU C Library 2.1 or newer... no
checking for argz.h... no
checking for limits.h... (cached) yes
checking for locale.h... yes
checking for nl_types.h... 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... no
checking for fgets_unlocked... no
checking for getcwd... (cached) yes
checking for getegid... yes
checking for geteuid... yes
checking for getgid... yes
checking for getuid... yes
checking for mempcpy... no
checking for munmap... yes
checking for putenv... (cached) yes
checking for setenv... (cached) yes
checking for setlocale... yes
checking for stpcpy... yes
checking for strchr... (cached) yes
checking for strcasecmp... (cached) yes
checking for strdup... (cached) yes
checking for strtoul... (cached) yes
checking for tsearch... yes
checking for __argz_count... no
checking for __argz_stringify... no
checking for __argz_next... no
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... yes
checking for LC_MESSAGES... yes
checking whether NLS is requested... no
checking for bison... no
checking what assembler to use... /usr/ccs/bin/as
checking what linker to use... /usr/ccs/bin/ld
checking what nm to use... nm
checking what objdump to use... objdump
checking assembler alignment features... none
checking assembler subsection support... no
checking assembler weak support... no
checking assembler hidden support... no
checking assembler leb128 support... no
checking assembler eh_frame optimization... no
checking assembler section merging support... no
checking assembler dwarf2 debug_line support... no
checking assembler --gdwarf2 support... no
checking assembler --gstabs support... no
checking linker PT_GNU_EH_FRAME 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 fixinc/Makefile
creating gccbug
creating mklibgcc
creating auto-host.h
Configuring fastjar...
loading cache ../config.cache
checking for a BSD compatible install... ../../src/fastjar/install-sh -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... missing
checking for working autoconf... found
checking for working automake... missing
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... (cached) cc
checking whether the C compiler (cc -g ) works... yes
checking whether the C compiler (cc -g ) is a cross-compiler... no
checking whether we are using GNU C... (cached) no
checking whether cc accepts -g... (cached) yes
checking for a BSD compatible install... ../../src/fastjar/install-sh -c
checking for rm... /usr/bin/rm
checking for cp... /usr/bin/cp
checking for strip... /usr/bin/strip
checking for chmod... /usr/bin/chmod
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for executable suffix... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking how to run the C preprocessor... (cached) /lib/cpp
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 stdlib.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... 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... yes
updating cache ../config.cache
creating ./config.status
creating Makefile
creating install-defs.sh
creating config.h
----------------------------<>---------------------------
Nathan Zierfuss		  Ph: (907) 474-6424
Systems Analyst		  Fx: (907) 474-5494
         Arctic Region Supercomputing Center
      910 Yukon Dr. Suite 108, PO Box 756020
              Fairbanks, Alaska 99775-6020


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