cURL / Mailing Lists / curl-library / Single Mail


Re: Failures while building on cygwin

From: Michael Osipov <>
Date: Thu, 25 Sep 2014 21:19:06 +0200

Am 2014-09-23 um 15:16 schrieb Daniel Stenberg:
> On Mon, 22 Sep 2014, Michael Osipov wrote:
>> I was finally able to make some progress on the issue. I have
>> installed git with cygwin, so CR problems anymore. Though the
>> following is still open:
>> 1. docs/INSTALL [1] says that a mere configure is sufficient.
>> Unfortunately it is not. You need to pass --host=mingw32 otherwise
>> it won't execute ar correctly and some other stuff will fail.
>> Should I provide a PR?
> That surprises me a bit. The Cygwin project itself seems to offer curl
> 7.37.1 packages so at least some people keep building curl with cygwin.
> Doesn't --host=mingw32 imply some sort of cross-compile?
> Did you use the configure script from the 7.38.0 release archive or did
> you generate your own from git?

mosipov_at_mika /cygdrive/d/Projekte/curl.cygwin
$ LANG=C git branch
* (detached from curl-7_38_0)

Executed ./buildconf and ran configure without passing host. At some
point make exits with:

libtool: link: /usr/bin/ar cru .libs/libcurl.a libcurl_la-file.o
libcurl_la-timeval.o libcurl_la-base64.o libcurl_la-hostip.o
libcurl_la-progress.o libcurl_la-formdata.o libcurl_la-cookie.o [...]
../libtool: line 1101: /usr/bin/ar: No such file or directory
make[2]: *** [] Error 127
make[2]: Leaving directory `/d/Projekte/curl.cygwin/lib'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/d/Projekte/curl.cygwin/lib'
make: *** [all-recursive] Error 1


mosipov_at_mika /cygdrive/d/Projekte/curl.cygwin
$ which ar

I am clueless here...

>> 2. make install still throws sed errors like:
>> sed: -e expression #1, char 3: unknown command: `.'
>> I was able to tackle at least one to
>> docs/libcurl/opts/ | sed -n '/\.3[a-z]*$$/p'; \
>> Unfortunately, I have no idea what is wrong with that expression.
> The files are generated by automake, and if that's the file
> from the source archive it was made by automake 1.14.1 on my machine...
> The error looks strange too since character 3 is just a dot that is
> escaped with a backslash, nothing odd! I don't understand it.

This is less of a problem now.


List admin:
Received on 2014-09-25