cURL / Mailing Lists / curl-library / Single Mail

curl-library

Calling make twice fails the second time

From: Mason <mpeg.blue_at_free.fr>
Date: Mon, 12 Mar 2012 14:09:39 +0100

Hello,

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?

(I don't think it's really interesting to list system headers as dependencies
because I'm not going to touch those. I.e. in the gcc syntax, I'd use -MM
instead of just -M)

If it matters,
$ make -v
GNU Make 3.81
This program built for i686-pc-cygwin

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