cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Calling make twice fails the second time

From: Mason <mpeg.blue_at_free.fr>
Date: Mon, 19 Mar 2012 13:38:37 +0100

Mason wrote:

> If I start from scratch, and run the configure script, then
> cd lib (all I want is libcurl.a), then run make, everything
> works as expected, I get .libs/libcurl.a
>
> But if I run make again, it fails immediately:
>
> $ /usr/bin/make
> .deps/asyn-ares.Plo:1: *** multiple target patterns. Stop.
>
> The first few lines are
>
> asyn-ares.lo: asyn-ares.c setup.h curl_config.h \
> ../include/curl/curlbuild.h \
> C:\STM\ST40R5.2.0\bin\../lib/gcc/sh-superh-elf/4.5.3/../../../../sh-superh-elf/include/sys/types.h \
> C:\STM\ST40R5.2.0\bin\../lib/gcc/sh-superh-elf/4.5.3/../../../../sh-superh-elf/include/_ansi.h \
>
> The build host is i686-pc-cygwin, which would explain the mixing of
> forward and backward slashes. It looks like make is being confused
> by the backward slashes, doesn't it ?
>
> Indeed, if I
> sed 's,C:\\STM\\ST40R5.2.0\\bin\\,/cygdrive/c/STM/ST40R5.2.0/bin/,g' asyn-ares.Plo
>
> then make stumbles on the *next* dep file:
>
> $ make
> .deps/asyn-thread.Plo:1: *** multiple target patterns. Stop.
>
> I don't think I'm the first person to cross-compile libcurl
> using cygwin. What am I doing wrong?

An acceptable work-around is to tell --disable-dependency-tracking
to the configure script.

-- 
Regards.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2012-03-19