need help compiling gcc for Windows

Sheryl Canter sheryl@permutations.com
Thu Oct 9 21:53:00 GMT 2003


I tried the exact script used to build mingw, and that solved the
problem--don't know exactly why.

Now I'll try the cross compiler for linux, which is my main goal.

    - Sheryl


----- Original Message ----- 
From: "Sheryl Canter" <sheryl@permutations.com>
To: <gcc-help@gcc.gnu.org>
Sent: Thursday, October 09, 2003 2:47 PM
Subject: Re: need help compiling gcc for Windows


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<char>::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" <sheryl@permutations.com>
To: <gcc-help@gcc.gnu.org>
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








More information about the Gcc-help mailing list