delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/04/27/11:29:59

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <8939161.1083079644899.JavaMail.sargon@mac.com>
Date: Tue, 27 Apr 2004 17:27:24 +0200
From: Daniel Clausen <sargon AT mac DOT com>
To: cygwin AT cygwin DOT com
Subject: zsh & make
Mime-Version: 1.0
X-IsSubscribed: yes

Hi

After having asked very general about other people's experiences
with zsh/make under cygwin some weeks ago, this time a little bit
more concrete: (although admittedly no as concrete as I wish...)

When building my project with make under zsh and looking at its
build-log afterwards, I noticed that the following error occured:

[begin error]
gmake[5]: Entering directory `/c/work/Projects/XYZ/categories/TrxTables/unittest'
basename: too few arguments
Try `basename --help' for more information.
(last two lines repeated 8 times)
[end error]


We use 'basename' only in one place in the Makefiles and it looks
like this:

COMPONENT_NAME = $(shell basename `pwd`)


Since basename claims that it doesn't have enough arguments, I conclude
that `pwd` returns an empty string for some reason.

It always happens in the same directories. (I tried to shuffle them)
But the directorynames are not really special. And their depth also
varies. (and their content also doesn't look special ;o)

'pwd' in an interactive shell in these directories works correct.
When starting a sub-build in a subdirectory (and therefore only build
part of the application) the error is gone.


I started 'make' under the cygwin-distributed zsh and a self-compiled one
with the exact same results. No such problem under bash though. Also no
problem under zsh under a different platform. (Solaris in our case)


Any idea how to debug this further?

Daniel Clausen


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019