This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Problem building GCC i686-pc-cygwin (my default) target
- From: M Laman <mlaman at home dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Sat, 22 Dec 2001 22:34:40 -0800
- Subject: Problem building GCC i686-pc-cygwin (my default) target
- Organization: @Home Network
- References: <1009083509.4854.ezmlm@gcc.gnu.org>
Hi,
[I'm new to this forum, so be kind, but certainly let me know
if I'm doing something wrong. TIA :-)]
I'm having a problem building GCC 3.0.3 i686-pc-cygwin (my default)
target.
What dumb thing have I done wrong or is this really broken?
After running "configure" in a separate object directory (output at end
of message),
I run "make bootstrap" and get many "Wrong number of alternatives in
the output template" in the gcc/config/i386/i386.md file. Here is some
of the output:
gcc -DIN_GCC -g -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long
-DHAVE_CONFIG_H -DCYGWIN_CROSS_DIR=\"/usr/local/i686-pc-cygwin\" -I.
-I. -I../../gcc -I../../gcc/. -I../../gcc/config -I../../gcc/../include
-c insn-extract.c
In file included from tm.h:9,
from ../../gcc/config/i386/xm-i386.h:39,
from config.h:5,
from insn-extract.c:4:
insn-flags.h:53: warning: carriage return in preprocessing directive
insn-flags.h:72: warning: carriage return in preprocessing directive
insn-flags.h:74: warning: carriage return in preprocessing directive
insn-flags.h:76: warning: carriage return in preprocessing directive
In file included from config.h:12,
from insn-extract.c:4:
insn-flags.h:53: warning: carriage return in preprocessing directive
insn-flags.h:72: warning: carriage return in preprocessing directive
insn-flags.h:74: warning: carriage return in preprocessing directive
insn-flags.h:76: warning: carriage return in preprocessing directive
gcc -c -DIN_GCC -g -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long
-DHAVE_CONFIG_H -DGENERATOR_FILE
-DCYGWIN_CROSS_DIR=\"/usr/local/i686-pc-cygwin\" -I. -I. -I../../gcc
-I../../gcc/. -I../../gcc/config -I../../gcc/../include
../../gcc/genoutput.c
gcc -DIN_GCC -g -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long
-DHAVE_CONFIG_H -DGENERATOR_FILE -o genoutput.exe \
genoutput.o rtl.o bitmap.o ggc-none.o gensupport.o hashtab.o
safe-ctype.o print-rtl.o errors.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 ` ` case "" in ?*) echo ;; esac ` -ladvapi32
./genoutput.exe ../../gcc/config/i386/i386.md > tmp-output.c
../../gcc/config/i386/i386.md:1063: Wrong number of alternatives in the
output template
../../gcc/config/i386/i386.md:1102: Wrong number of alternatives in the
output template
../../gcc/config/i386/i386.md:1134: Wrong number of alternatives in the
output template
../../gcc/config/i386/i386.md:1662: Wrong number of alternatives in the
output template
../../gcc/config/i386/i386.md:1799: Wrong number of alternatives in the
output template
[cut about 40 plus more]
###################
Here are lines 1063 through of i386.md. Hopefully this helps.
(define_insn "*cmpsi_ccno_1"
[(set (reg 17)
(compare (match_operand:SI 0 "nonimmediate_operand" "r,?mr")
(match_operand:SI 1 "const0_operand" "n,n")))]
"ix86_match_ccmode (insn, CCNOmode)"
"@
test{l}\\t{%0, %0|%0, %0}
cmp{l}\\t{%1, %0|%0, %1}"
[(set_attr "type" "test,icmp")
(set_attr "length_immediate" "0,1")
(set_attr "mode" "SI")])
###################
Here is the "configure" output:
Configuring for a i686-pc-cygwin host.
*** This configuration is not supported in the following subdirectories:
target-libffi target-boehm-gc target-zlib target-libjava
(Any other directories should still work fine.)
Created "Makefile" in /usr/src/gcc-3.0.3/objdir-pc using "mh-frag"
Configuring libiberty...
creating cache ../config.cache
checking host system type... i686-pc-cygwin
checking build system type... i686-pc-cygwin
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... 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 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... no
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... yes
checking for getpagesize... yes
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... yes
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... yes
checking for working alloca.h... yes
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... yes
checking for sys_errlist... yes
checking for sys_nerr... yes
checking for sys_siglist... no
checking for getrusage... yes
checking for on_exit... no
checking for psignal... no
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 unistd.h... (cached) 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... i686-pc-cygwin
checking target system type... i686-pc-cygwin
checking build system type... i686-pc-cygwin
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... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
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 ld used by GCC... /usr/i686-pc-cygwin/bin/ld.exe
checking if the linker (/usr/i686-pc-cygwin/bin/ld.exe) is GNU ld... yes
checking for /usr/i686-pc-cygwin/bin/ld.exe 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... file_magic file format
pei*-i386(.*architecture: i386)?
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 gcc option to produce PIC... -DDLL_EXPORT -DPIC
checking if gcc PIC flag -DDLL_EXPORT -DPIC works... yes
checking if gcc static flag -static works... yes
finding the maximum length of command line arguments... 12289
checking if gcc supports -c -o file.o... yes
checking if gcc supports -fno-rtti -fno-exceptions ... yes
checking whether the linker (/usr/i686-pc-cygwin/bin/ld.exe) supports
shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... Win32 ld.exe
checking command to parse /usr/bin/nm -B output... ok
checking if libtool supports shared libraries... yes
checking if package supports dlls... no
checking whether to build shared libraries... no
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) yes
checking for working mmap... (cached) no
checking for memcpy... (cached) yes
checking for strerror... (cached) yes
checking for unistd.h... (cached) yes
updating cache ../config.cache
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... i686-pc-cygwin
checking target system type... i686-pc-cygwin
checking build system type... i686-pc-cygwin
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 gcc and cc understand -c and -o together... yes
checking for long double... yes
checking for built-in _Bool... no
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... no
checking for nawk... no
checking for awk... no
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 for working stdbool.h... yes
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 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 thread.h... no
checking for pthread.h... yes
checking for gnatbind... no
checking for mktemp... no
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... 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... yes
checking for bcopy... (cached) yes
checking for strchr... (cached) yes
checking for strrchr... (cached) 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 isascii... yes
checking for gettimeofday... (cached) yes
checking for strsignal... (cached) yes
checking for putc_unlocked... no
checking for fputc_unlocked... no
checking for fputs_unlocked... no
checking for getrusage... (cached) yes
checking for nl_langinfo... no
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 for vprintf... (cached) yes
checking for strstr... (cached) yes
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... no, consider installing GNU libiconv
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... yes
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... yes
checking whether setrlimit is declared... yes
checking whether getrusage is declared... yes
checking if mkdir takes one argument... no
Using `../../gcc/config/i386/i386.c' for machine-specific logic.
Using `../../gcc/config/i386/i386.md' as machine description file.
Using `../../gcc/config/i386/cygwin.h' as target machine macro file.
Using the following host machine macro files:
../../gcc/config/i386/xm-i386.h
../../gcc/config/i386/xm-cygwin.h
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) yes
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) yes
checking for munmap... yes
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... yes
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking for libintl.h... yes
checking for gettext in libc... no
checking for bindtextdomain in -lintl... yes
checking for gettext in libintl... checking for gettext in -lintl... yes
yes
checking for msgfmt... /usr/bin/msgfmt
checking for dcgettext... yes
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking whether windows registry support is requested... yes
checking registry key on windows hosts... 3.0.3
checking what assembler to use... /usr/bin/as.exe
checking what nm to use... nm.exe
checking assembler alignment features... .p2align including maximum skip
checking assembler subsection support... no
checking assembler weak support... yes
checking assembler hidden support... no
checking assembler leb128 support... yes
checking assembler eh_frame optimization... bad
checking assembler instructions... filds fists
checking assembler dwarf2 debug_line support... yes
Using ggc-page for garbage collection.
checking whether to enable maintainer-specific portions of Makefiles...
no
Links are now set up to build a native compiler for i686-pc-cygwin
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
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... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
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 for a BSD compatible install... /usr/bin/install -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 dirent.h that defines DIR... yes
checking for opendir in -ldir... 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... 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... 2
checking size of int... 4
checking size of long... 4
checking size of long long... 8
checking whether byte ordering is bigendian... no
updating cache ../config.cache
creating ./config.status
creating Makefile
creating install-defs.sh
creating config.h
########