Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <20040604064009.88326.qmail@web8308.mail.in.yahoo.com> Date: Fri, 4 Jun 2004 07:40:09 +0100 (BST) From: =?iso-8859-1?q?sankarshan=20sen?= Reply-To: sankarshan AT poseidon-systems DOT com Subject: compilation errors gcc 3.2 To: cygwin AT cygwin DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit hi all, I am trying to build gcc 3.2 sources on cygwin- but i cant get past errors like undefined reference to _fputs_unlocked... ive provided some screen dumps below ... guess it'll be useful...please help...thanx. Sen. ======================== cygcheck -V cygcheck version 1.43 System Checker for Cygwin Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004 Red Hat, Inc. Compiled on May 25 2004 ========================= ####### Part of make output...######## make .. .. HEADERS="auto-host.h ansidecl.h i386/xm-cygwin.h i386/cygwin.h defaults.h" DEFINES="POSIX" \ TARGET_CPU_DEFAULT="TARGET_CPU_DEFAULT_pentiumpro" \ /bin/sh ./mkconfig.sh config.h HEADERS="auto-host.h ansidecl.h i386/xm-cygwin.h i386/cygwin.h defaults.h" DEFINES="POSIX" \ TARGET_CPU_DEFAULT="TARGET_CPU_DEFAULT_pentiumpro" \ /bin/sh ./mkconfig.sh hconfig.h ltf="./cp/cp-tree.def ./java/java-tree.def ./objc/objc-tree.def"; for f in $ltf; do \ echo "#include \"$f\""; \ done | sed 's|./||' > tmp-gencheck.h /bin/sh ./move-if-change tmp-gencheck.h gencheck.h gencheck.h is unchanged echo timestamp > s-gencheck gcc -DIN_GCC -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -o genflags.exe \ genflags.o rtl.o read-rtl.o bitmap.o ggc-none.o gensupport.o print-rtl.o errors.o ../libiberty/libiberty.a make[1]: Leaving directory `/cygdrive/e/gcc-3.2/gcc' ine': /cygdrive/e/gcc-3.2/gcc/gensupport.c:113: undefined reference to `_fputc_unlocked' collect2: ld returned 1 exit status make[1]: *** [genflags.exe] Error 1 make: *** [all-gcc] Error 2 #### heres the config dump ##### ./configure Configuring for a i686-pc-cygwin host. Created "Makefile" in /cygdrive/e/gcc-3.2 using "mh-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... 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 xhost-mkfrag is unchanged 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 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 (gcc -g -O2 ) works... yes checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no checking for asprintf... yes 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 ffs... 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... yes 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... no checking for sys_errlist... yes checking for sys_nerr... yes checking for sys_siglist... no checking for getrusage... yes checking for on_exit... yes 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 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 config.h is unchanged 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... 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) 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 ... no 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 gnatbind... gnatbind checking for compiler driver that understands Ada... no checking whether gcc accepts -Wno-long-long... yes checking how to run the C preprocessor... (cached) gcc -E checking for inline... (cached) inline checking for volatile... yes checking for long double... yes checking for long long int... yes checking for __int64... no 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 execution character set... ASCII 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 mawk... no checking for gawk... gawk checking whether ln works... yes checking whether ln -s works... yes checking for ranlib... (cached) ranlib checking for a BSD compatible install... (cached) /usr/bin/install -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... 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 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... little-endian checking floating point format... IEEE (little-endian) checking for mktemp... yes checking for makeinfo... (cached) makeinfo checking for modern makeinfo... yes checking for recent Pod::Man... yes checking for flex... flex checking for bison... bison checking for collect2 libraries... none required 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... yes 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... no, consider installing GNU libiconv 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... yes checking whether getopt is declared... no 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 `./config/i386/i386.c' for machine-specific logic. Using `./config/i386/i386.md' as machine description file. Using `./config/i386/cygwin.h' as target machine macro file. Using `./config/ i386/xm-cygwin.h' as host machine macro file. 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... yes 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 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... yes checking for munmap... yes checking for putenv... (cached) yes checking for setenv... (cached) yes checking for setlocale... yes checking for stpcpy... no 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... yes checking for __argz_stringify... yes checking for __argz_next... yes checking for iconv... (cached) no, consider installing GNU libiconv checking for nl_langinfo and CODESET... yes 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 GNU gettext in libc... no checking for GNU gettext in libintl... yes checking for dcgettext... yes checking for msgfmt... no checking for gmsgfmt... : checking for xgettext... no checking for bison... bison checking version of bison... 1.875, ok checking for catalogs to be installed... da el es fr ja nl sv tr da el es fr ja nl sv tr checking whether windows registry support is requested... yes checking for library containing RegOpenKeyExA... no checking registry key on windows hosts... 3.2 checking what assembler to use... /usr/bin/as.exe checking what linker to use... /usr/bin/ld.exe checking what nm to use... nm.exe checking what objdump to use... objdump.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 section merging support... no checking assembler instructions... filds fists checking assembler GOTOFF in data directives... yes checking assembler dwarf2 debug_line support... yes checking assembler --gdwarf2 support... yes checking assembler --gstabs support... yes 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 auto-host.h is unchanged 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... found checking for working automake... missing 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... 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 Cygwin environment... yes checking for mingw32 environment... no checking for executable suffix... .exe 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) 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 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... no updating cache ../config.cache creating ./config.status creating Makefile creating install-defs.sh creating config.h config.h is unchanged ===== ________________________________________________________________________ Yahoo! India Matrimony: Find your partner online. http://yahoo.shaadi.com/india-matrimony/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/