make problem with cygwin

Joel Sherrill <joel@OARcorp.com> joel.sherrill at OARcorp.com
Thu Aug 26 22:28:26 UTC 2004


Martin R. Calsyn wrote:
> Ahh - having $(LIB) set could be it.  If you have almost any version of
> Microsoft Visual Studio installed, LIB and INCLUDE will be set in global
> environment variables and make will pick up those settings.


That's a known one that's bad.  Also having spaces in your PATH is bad.
But I don't have those issues and still get it.

I have a TEMP and TMP set.  Some variables with paths do have ~'s in
them.

Ralf.. if you suspect something on this line, I can privately email
you the env output.

> -----Original Message-----
> From: Ralf Corsepius [mailto:ralf_corsepius at rtems.org] 
> Sent: Thursday, August 26, 2004 8:57 AM
> To: Martin R. Calsyn
> Cc: Haberhausen, Dierk; RTEMS Users
> Subject: RE: make problem with cygwin
> 
> On Thu, 2004-08-26 at 17:13, Martin R. Calsyn wrote:
> 
>>I ran into this same problem.  The 'multiple targets' error is a bit
>>misleading.  I solved the error by removing the .PRECIOUS
> 
> entry/entries
> 
>>on or immediately before the line indicated (567 in your example
> 
> below).
> 
>>I encountered this in perhaps six makefiles and each time it was
> 
> solved
> 
>>by removing a dotted makefile directive.
> 
> 
>>I haven't dug deeper into why this is happening - it seems to be an
>>incompatibility with the 'make' packaged in cygwin.
> 
> 
>>  I haven't submitted
>>deltas because I don't have enough confidence that this is a proper
> 
> fix
> 
>>or just a workaround for cygwin weirdness.
> 
> I am pretty sure it is not. Conversely, I am pretty sure it will do
> harm.
> 
> I'd guess, the cause is Dierk having $(LIB) or $(ARCH) set in his
> environment:
> ....
> .PRECIOUS: $(LIB)
>  
> ${ARCH}/%.$(OBJEXT): sapi/%.c
>         ${COMPILE} -o $@ -c $<
>  
> ${ARCH}/%.$(OBJEXT): rtems/%.c
>         ${COMPILE} -o $@ -c $<
> ....
> 
> Ralf
> 
> 
> 


-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel at OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
    Support Available             (256) 722-9985




More information about the users mailing list