[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cannot cross-compile gawk-3.1.5 with mingw

From: Eli Zaretskii
Subject: Re: cannot cross-compile gawk-3.1.5 with mingw
Date: Thu, 16 Nov 2006 06:37:43 +0200

> From: Mike Frysinger <address@hidden>
> Date: Wed, 15 Nov 2006 18:23:52 -0500
> when i try to cross-compile gawk-3.1.5, gawkmisc.c fails:
> if
> mingw32-gcc -DDEFPATH="\".:/usr/share/awk\"" -DHAVE_CONFIG_H -DGAWK 
> -DLOCALEDIR="\"/usr/share/locale\"" -I. -I. -I.     -g -O2 -MT gawkmisc.o -MD 
> -MP -MF ".deps/gawkmisc.Tpo" -c -o gawkmisc.o gawkmisc.c; \
>         then mv -f ".deps/gawkmisc.Tpo" ".deps/gawkmisc.Po"; else
> rm -f ".deps/gawkmisc.Tpo"; exit 1; fi
> gawkmisc.c:38:23: error: gawkmisc.pc: No such file or directory
> make[2]: *** [gawkmisc.o] Error 1
> reason for failure is pretty obvious ... gawkmisc.pc only exists in pc/ but
> the gawkmisc.c file does:
> #if defined(MSDOS) || defined(OS2) || defined(WIN32)
> #include "gawkmisc.pc"
> #else /* not MSDOS, not OS2, not WIN32 */

The reason for the failure is that you are building Gawk with MinGW,
but not in the way you are supposed to do that.  Please read the file
README_d/README.pc for the MinGW build instructions.  In a nutshell,
you need to copy a few files from the pc/ directory, and then say
something like "make mingw32"; you are NOT supposed to run the
configure script.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]