Can't run configure in MinGW

500 views
Skip to first unread message

rr.bo...@gmail.com

unread,
Jan 14, 2014, 4:00:31 PM1/14/14
to cppu...@googlegroups.com
I am trying to build cpputest v3.5 in MinGW, but it fails in the ./configure script.
 Here is the last part of the  output from ./configure:
checking if gcc supports -fno-rtti -fno-exceptions... C:\MinGW\bin\sed.exe: -e expression #1, char 1: unknown command: `C'
no
checking for gcc option to produce PIC... -DDLL_EXPORT -DPIC
checking if gcc PIC flag -DDLL_EXPORT -DPIC works... C:\MinGW\bin\sed.exe: -e expression #1, char 1: unknown command: `C'
yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... C:\MinGW\bin\sed.exe: -e expression #1, char 1: unknown command: `C'
yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/mingw/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /mingw/bin/ld
checking if the linker (/mingw/bin/ld) is GNU ld... yes
checking whether the g++ linker (/mingw/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -DDLL_EXPORT -DPIC
checking if g++ PIC flag -DDLL_EXPORT -DPIC works... C:\MinGW\bin\sed.exe: -e expression #1, char 1: unknown command: `C'
yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... C:\MinGW\bin\sed.exe: -e expression #1, char 1: unknown command: `C'
yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/mingw/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
C:\MinGW\bin\sed.exe: -e expression #1, char 1: unknown command: `C'
configure: creating ./config.status
C:\MinGW\bin\sed.exe: -e expression #1, char 1: unknown command: `C'
config.status: creating cpputest.pc
gawk: ./conf7600-12686/subs.awk:29: S["CPPUTEST_CPPFLAGS"]=" -include ./include/CppUTest/MemoryLeakDetectorMallocMacros.h -I./include/CppUTestExt/CppUTestGMock -I./include/CppUTestExt/CppUTestGTest -I ./inclu"\
gawk: ./conf7600-12686/subs.awk:29:                                                                                                                                                                              ^ backslash not last character on line
config.status: error: could not create cpputest.pc
C:\MinGW\bin\sed.exe: -e expression #1, char 1: unknown command: `C'
'

I have spent a couple of days on this and would really appreciate any help.

thanks,
Rusty

Bas Vodde

unread,
Jan 14, 2014, 10:02:57 PM1/14/14
to cppu...@googlegroups.com

Hi,

That *is* interesting. It looks like something with sed/awk.

Could you try the following:
- Install the autoconf package
- Run “autoreconf” on the command line in the cpputest directory.

To clarify, the “autoreconf” should re-create the configure file from the configure.ac (and several other) file. I’m curious if the configure script when generated on MinGW would be different.

I’ve not seen this problem ever before :)

Bas
> --
> You received this message because you are subscribed to the Google Groups "cpputest" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to cpputest+u...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

A. Robert S.

unread,
Jan 15, 2014, 6:14:43 AM1/15/14
to cppu...@googlegroups.com
What make are you actually running?
 
Robert

rr.bo...@gmail.com

unread,
Jan 15, 2014, 8:39:49 AM1/15/14
to cppu...@googlegroups.com
Hi Bas,

I ran autoreconf, and then configure, but I get the same result.

thanks,
Rusty

rr.bo...@gmail.com

unread,
Jan 15, 2014, 8:40:42 AM1/15/14
to cppu...@googlegroups.com
$ make -v
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i686-pc-msys

thanks,
Rusty

rr.bo...@gmail.com

unread,
Jan 15, 2014, 9:12:55 AM1/15/14
to cppu...@googlegroups.com
I found it.

I had 2 instances of sed.exe; one in C:\MinGW\bin and one in C:\MinGW\msys\1.0\bin. I deleted the one in C:\MinGW\bin and now ./configure completes with no errors. I guess this version of sed was left from an older install.

thanks for your help!
Rusty

Bas Vodde

unread,
Jan 15, 2014, 11:41:12 PM1/15/14
to cppu...@googlegroups.com
Nice :)

Bas
Reply all
Reply to author
Forward
0 new messages