This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: need help compiling gcc for Windows
Someone on the mingw-msys list was able to identify the problem. I was using
a hardcoded paths instead of relative ones to execute configure, and this
was causing confusion for gengtype. When I switched to a relative path, the
problem went away. Of course, now I have a new problem. It's still not
building.
- Sheryl
----- Original Message -----
From: "Andy Howell" <AndyHowell@austin.rr.com>
To: <gcc-help@gcc.gnu.org>
Cc: "Sheryl Canter" <sheryl@permutations.com>
Sent: Thursday, October 09, 2003 10:25 AM
Subject: Re: need help compiling gcc for Windows
Sheryl Canter wrote:
> If no ideas on the problem below, then at least help me to find it myself?
>
> I'm knew to Unix and can't tell exactly what is happening when I issue the
> command "make bootstrap". If I knew what files were being executed,
perhaps
> I could find the problem.
>
> Someone please help??
>
> - Sheryl
>
>
> ----- Original Message -----
> From: "Sheryl Canter" <sheryl@permutations.com>
> To: <gcc-help@gcc.gnu.org>
> Sent: Wednesday, October 08, 2003 5:15 PM
> Subject: Re: need help compiling gcc for Windows
>
>
> Please, somebody help me with this! I'm completely stuck.
>
> The configure is completing correctly (as far as I can tell), but the
> build didn't work. It works up to this point:
>
> ------------
> Bootstrapping the compiler
> make[1]: Entering directory `/c/gcc-objdir/gcc'
> make AR_FOR_TARGET="ar" \
> RANLIB_FOR_TARGET="ranlib" \
> CC="gcc" libdir=/c/gcc-3.3.1/lib LANGUAGES="c " \
> CFLAGS="-g " MAKEINFO="makeinfo --no-split" \
> MAKEINFOFLAGS="" COVERAGE_FLAGS=
> make[2]: Entering directory `/c/gcc-objdir/gcc'
> ./gengtype
> /c/gcc-srcdir/gcc-3.3.1/gcc/../include/ansidecl.h: No such file or
directory
> make[2]: *** [s-gtype] Error 1
> make[2]: Leaving directory `/c/gcc-objdir/gcc'
> make[1]: *** [stage1_build] Error 2
> make[1]: Leaving directory `/c/gcc-objdir/gcc'
> make: *** [bootstrap] Error 2
> ------------
>
> That file spec with the error message looks a little strange, but it
> correctly points to the file. ansidecl.h can be found here:
>
> /c/gcc-srcdir/gcc-3.3.1/include/ansidecl.h
>
> Any idea why the build didn't work? How do I correct this problem?
>
> - Sheryl
>
Its been a long time since I built gcc, and never have done it on
windows...
Is gengtype a shell script? If so, cd to /c/gcc-objdir/gcc and run:
sh -x ./gengtype
This may give some idea why it is not finding the file.
If it is an binary executable, then if you have the "strace" command,
you could do
strace -o out ./gengtype
Look in the file 'out' to see what it doing. You could grep:
egrep 'open|stat' out
Which will show you the files that gengtype is trying to open or find
info on (stat).
Hope this helps.
Andy