./configure fails on MSYS

Sam Rawlins sam.rawlins at gmail.com
Tue Feb 8 17:46:37 CET 2011

Hi Az,

On Tue, Feb 8, 2011 at 6:48 AM, Azrael Valedhel
<azrael.valedhel at gmail.com>wrote:

> I was trying to build GMP library using MSYS and MinGW on Windows XP, but
> unfortunately ./configure failed.
> This is where the problem starts (I think), but I can paste the whole
> ./configure output here (or if that's not to be done, please point me in
> the
> right direction):
> creating config.m4
> e:\MinGW\bin\sed.exe: -e expression #1, char 1: unknown command: `E'
> configure: creating ./config.status
> e:\MinGW\bin\sed.exe: -e expression #1, char 1: unknown command: `E'
> config.status: creating demos/pexpr-config.h
> gawk: ./conf3888-32638/subs.awk:24: S["gmp_srclinks"]=" mpn/add.c
> mpn/add_1.c mpn/add_n.asm mpn/sub.c mpn/sub_1.c
> mpn/sub_n.asm mpn/neg.c mpn/com.c mpn/mul_1.asm mpn/addmul_1.asm
> mpn/submul_1.asm mpn/lsh"\
> gawk: ./conf3888-32638/subs.awk:24:
> ^ backslash not last cha
> racter on line
> config.status: error: could not create demos/pexpr-config.h
> e:\MinGW\bin\sed.exe: -e expression #1, char 1: unknown command: `E'
> (./configure returns 1, no Makefile is created)
> I suspect some confusion can come from incopatible \ and / characters on
> Windows and *nix...
> Did anybody come across that kind of errors and happen to solve them?

Super strange errors, but lets start with the MS Windows DLLs section at:
I use MSYS as well, and always call: ./configure --disable-static

If that doesn't work, please post the version of MSYS (or lets say, the
version of gcc. 3.4.5 should work, but I'm all for 4.5.1 ish.) at a minimum.

> Thanks in advance, Az
> _______________________________________________
> gmp-discuss mailing list
> gmp-discuss at gmplib.org
> https://gmplib.org/mailman/listinfo/gmp-discuss

Sam Rawlins

More information about the gmp-discuss mailing list