public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Sheryl Canter" <sheryl@permutations.com>
To: <gcc-help@gcc.gnu.org>
Subject: Re: need help compiling gcc for Windows
Date: Thu, 09 Oct 2003 21:53:00 -0000	[thread overview]
Message-ID: <033b01c38eaf$af7ece50$6401a8c0@tpa21p> (raw)
In-Reply-To: <028801c38e95$db191030$6401a8c0@tpa21p>

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






      reply	other threads:[~2003-10-09 21:53 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-07 13:15 cross compiling question Sheryl Canter
2003-10-08  2:27 ` need help compiling for Windows Sheryl Canter
2003-10-08  4:52   ` Sheryl Canter
2003-10-08  5:16   ` Philip Walford
2003-10-08  5:26     ` Sheryl Canter
2003-10-08 13:36   ` Sheryl Canter
2003-10-08 16:08     ` need help compiling gcc " Sheryl Canter
2003-10-08 21:15       ` Sheryl Canter
2003-10-08 22:38         ` Sheryl Canter
2003-10-09 14:26           ` Andy Howell
2003-10-09 15:20             ` Sheryl Canter
2003-10-09 15:23           ` Sheryl Canter
2003-10-09 18:48             ` Sheryl Canter
2003-10-09 21:53               ` Sheryl Canter [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='033b01c38eaf$af7ece50$6401a8c0@tpa21p' \
    --to=sheryl@permutations.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).