From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10618 invoked by alias); 9 Oct 2003 18:48:21 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 10599 invoked from network); 9 Oct 2003 18:48:20 -0000 Received: from unknown (HELO qbert.vosn.net) (205.214.76.4) by sources.redhat.com with SMTP; 9 Oct 2003 18:48:20 -0000 Received: from mail.svcable.net ([67.28.116.50] helo=tpa21p) by qbert.vosn.net with asmtp (Exim 4.24) id 1A7fpl-0001M2-O3 for gcc-help@gcc.gnu.org; Thu, 09 Oct 2003 12:48:22 -0600 Message-ID: <028801c38e95$db191030$6401a8c0@tpa21p> From: "Sheryl Canter" To: References: <006601c38cd5$0363f130$ad036c42@tpa21p> <007901c38d43$b5ed2a10$6401a8c0@tpa21p> <005701c38da1$1dd909c0$6401a8c0@tpa21p> <00d101c38db6$61120100$6401a8c0@tpa21p> <035301c38de1$4dce4e70$6401a8c0@tpa21p> <03c001c38dec$e95efaa0$6401a8c0@tpa21p> <015901c38e79$44159d00$6401a8c0@tpa21p> Subject: Re: need help compiling gcc for Windows Date: Thu, 09 Oct 2003 18:48:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - qbert.vosn.net X-AntiAbuse: Original Domain - gcc.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - permutations.com X-SW-Source: 2003-10/txt/msg00159.txt.bz2 I found the problem with the headers. It was in the way I was specifying the paths in the configure statement. The path to the configure file has to be relative, and the paths to the prefix directories have to be hardcoded, Unix style (not Windows style). Now I have a new error: ------------- /c/gcc-obj-win/gcc/xgcc -shared-libgcc -B/c/gcc-obj-win/gcc/ -nostdinc++ -L/ c/gcc-obj-win/mingw32/libstdc++-v3/src -L/c/gcc-obj-win/mingw32/libstdc++-v3 /src/.libs -B/c/gcc-windows/mingw32/bin/ -B/c/gcc-windows/mingw32/lib/ -isys tem /c/gcc-windows/mingw32/include -nostdinc++ -I/c/gcc-obj-win/mingw32/libstdc+ +-v3/include/mingw32 -I/c/gcc-obj-win/mingw32/libstdc++-v3/include -I../../. ./../gcc-src/libstdc++-v3/libsupc++ -I../../../../gcc-src/libstdc++-v3/libma th -g -O2 -fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings -fdia gnostics-show-location=once -ffunction-sections -fdata-sections -c basic_file.cc cc1plus.exe: warning: -ffunction-sections may affect debugging on some targets basic_file.cc: In member function `streamsize std::__basic_file::showmanyc_helper()': basic_file.cc:246: error: `ioctl' undeclared (first use this function) basic_file.cc:246: error: (Each undeclared identifier is reported only once for each function it appears in.) make[4]: *** [basic_file.lo] Error 1 make[4]: Leaving directory `/c/gcc-obj-win/mingw32/libstdc++-v3/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/c/gcc-obj-win/mingw32/libstdc++-v3' make[2]: *** [all-recursive-am] Error 2 make[2]: Leaving directory `/c/gcc-obj-win/mingw32/libstdc++-v3' make[1]: *** [all-target-libstdc++-v3] Error 2 make[1]: Leaving directory `/c/gcc-obj-win' make: *** [bootstrap] Error 2 ------------- Any ideas? - Sheryl ----- Original Message ----- From: "Sheryl Canter" To: Sent: Thursday, October 09, 2003 11:23 AM Subject: Re: need help compiling gcc for Windows I'm still trying to compile gcc for Windows using msys/mingw, and having problems. It's failing at a certain point in the build (error output below). Can anyone tell me how to deal with this? I installed w32api and mingw-runtime into the prefix directory before building (someone suggested this to me), but it didn't help. The script still is not finding the header files. Where are they supposed to go? - Sheryl --------------------- if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi /c/gcc-obj-win/gcc/xgcc -B/c/gcc-obj-win/gcc/ -B../gcc-windows/mingw32/bin/ -B../gcc-windows/mingw32/lib/ -isystem ../gcc-windows/mingw32/include -O2 -I../../gcc-src/gcc/../winsup/include -I. ./../gcc-src/gcc/../winsup/cygwin/include -I../../gcc-src/gcc/../winsup/w32a pi/include -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissin g-prototypes -isystem ./include -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I . -I. -I../../gcc-src/gcc -I../../gcc-src/gcc/. -I../../gcc-src/gcc/config - I../../gcc-src/gcc/../include -DL_muldi3 -c ../../gcc-src/gcc/libgcc2.c -o libgcc/./_muldi3.o In file included from ../../gcc-src/gcc/config/i386/mingw32.h:32, from tconfig.h:17, from ../../gcc-src/gcc/libgcc2.c:36: ../../gcc-src/gcc/config/i386/cygwin.h:30:19: stdio.h: No such file or directory In file included from ../../gcc-src/gcc/config/i386/mingw32.h:32, from tconfig.h:17, from ../../gcc-src/gcc/libgcc2.c:36: ../../gcc-src/gcc/config/i386/cygwin.h:415: error: parse error before '*' token ../../gcc-src/gcc/config/i386/cygwin.h:415: warning: function declaration isn't a prototype ../../gcc-src/gcc/config/i386/cygwin.h:417: error: parse error before '*' token ../../gcc-src/gcc/config/i386/cygwin.h:417: warning: function declaration isn't a prototype In file included from ../../gcc-src/gcc/libgcc2.c:37: ../../gcc-src/gcc/tsystem.h:72:19: stdio.h: No such file or directory ../../gcc-src/gcc/tsystem.h:75:23: sys/types.h: No such file or directory ../../gcc-src/gcc/tsystem.h:78:19: errno.h: No such file or directory ../../gcc-src/gcc/tsystem.h:85:20: string.h: No such file or directory ../../gcc-src/gcc/tsystem.h:89:20: stdlib.h: No such file or directory ../../gcc-src/gcc/tsystem.h:90:20: unistd.h: No such file or directory In file included from c:/gcc-obj-win/gcc/include/limits.h:122, from c:/gcc-obj-win/gcc/include/syslimits.h:7, from c:/gcc-obj-win/gcc/include/limits.h:11, from ../../gcc-src/gcc/tsystem.h:93, from ../../gcc-src/gcc/libgcc2.c:37: include/limits.h:122:75: no include path in which to find limits.h In file included from ../../gcc-src/gcc/libgcc2.c:37: ../../gcc-src/gcc/tsystem.h:96:18: time.h: No such file or directory make[2]: *** [libgcc/./_muldi3.o] Error 1 make[2]: Leaving directory `/c/gcc-obj-win/gcc' make[1]: *** [libgcc.a] Error 2 make[1]: Leaving directory `/c/gcc-obj-win/gcc' make: *** [all-gcc] Error 2