This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: make fails to change directory.


Hi Dave, and thank you for your help.

Concerning your comment - here is the data, but from another project I
am trying to compile (sox) because the source tree is a little
simpler.

1. ./configure --prefix=/usr : pass Ok
2. make returns

$ make
Making all in lpc10
/bin/sh: line 17: cd: lpc10: No such file or directory
make: *** [all-recursive] Error 1

3. pwd
/home/ext/sox-14.0.1

4. ls -la
total 2330
drwx------+  6 gaoro Domain Users      0 May 25 10:56 ./
drwxr-xr-x+ 17 gaoro Users             0 May 25 10:54 ../
-rw-------   1 gaoro Domain Users   3529 Nov  4  2007 AUTHORS
-rw-------   1 gaoro Domain Users   4048 Jan 29 00:47 CMakeLists.txt
-rw-------   1 gaoro Domain Users    549 Feb 25  2007 COPYING
-rw-------   1 gaoro Domain Users  48863 Jan 29 19:38 ChangeLog
-rw-------   1 gaoro Domain Users   3921 Nov 12  2007 INSTALL
-rw-------   1 gaoro Domain Users  25700 May 25 10:56 Makefile
-rw-------   1 gaoro Domain Users   1095 Oct 22  2007 Makefile.am
-rw-------   1 gaoro Domain Users  25710 Jan 29 00:47 Makefile.in
-rw-------   1 gaoro Domain Users     14 Dec  6  2006 NEWS
-rw-------   1 gaoro Domain Users   4611 Jul  8  2007 README
-rw-------   1 gaoro Domain Users 273736 Jan 29 00:47 aclocal.m4
-rwx------   1 gaoro Domain Users   3707 Jan 29 18:52 compile*
-rwx------   1 gaoro Domain Users  43420 Jan 15  2007 config.guess*
-rw-------   1 gaoro Domain Users  89433 May 25 10:56 config.log
-rwx------   1 gaoro Domain Users  48750 May 25 10:56 config.status*
-rwx------   1 gaoro Domain Users  31743 Jan 15  2007 config.sub*
-rwx------   1 gaoro Domain Users 996557 Jan 29 00:47 configure*
-rwx------   1 gaoro Domain Users  14824 Jan 29 00:47 configure.ac*
-rwx------   1 gaoro Domain Users  15936 Jan 15  2007 depcomp*
-rwx------   1 gaoro Domain Users   9233 Jan 15  2007 install-sh*
drwx------+  3 gaoro Domain Users      0 May 25 10:56 libgsm/
-rw-------   1 gaoro Domain Users  11894 Jan  8 05:36 libsox.3
-rw-------   1 gaoro Domain Users  12378 Jan 14 05:41 libsox.txt
-rwx------   1 gaoro Domain Users 219982 May 25 10:55 libtool*
drwx------+  4 gaoro Domain Users      0 May 25 11:03 lpc10/
-rw-------   1 gaoro Domain Users 198965 Aug 29  2007 ltmain.sh
drwx------+  2 gaoro Domain Users      0 Jan 29 19:39 m4/
-rwx------   1 gaoro Domain Users  11014 Jan 15  2007 missing*
-rw-------   1 gaoro Domain Users  28682 May 16  2007 sox.1
-rw-------   1 gaoro Domain Users  30663 Aug 30  2007 sox.txt
-rw-------   1 gaoro Domain Users  49122 Jan 20 03:34 soxeffect.7
-rw-------   1 gaoro Domain Users  51869 Jan 20 05:08 soxeffect.txt
-rw-------   1 gaoro Domain Users  14742 Nov  4  2007 soxexam.7
-rw-------   1 gaoro Domain Users  15694 Jan 14 05:41 soxexam.txt
-rw-------   1 gaoro Domain Users  21083 Jan 29 00:47 soxformat.7
-rw-------   1 gaoro Domain Users  22656 Jan 29 00:48 soxformat.txt
drwx------+  3 gaoro Domain Users      0 May 25 10:56 src/

5. cd lpc10; make

Works great

Does this clears things?

Thank you.


> Whenever I am compiling something with "make" and there is somekind of
> nested make, it fails with the following error:
>
> cd fdlibm; make -f Makefile.ref all
> /bin/sh: line 0: cd: fdlibm: No such file or directory
> make[2]: *** [all] Error 1
>
> This error is not restricted to a single soft, but I've encountered it
> in many place.
>
> The workaround I have is to go into the corresponding makefile and add
>
> SHELL = bash
>
> This would resolve the issue, but needless to say, the change is
> annoying especially when the Makefile is created by a "configure"...
>
> Can someone help me with that?

 Let's get some diagnostic info.  Replace the command-line with

pwd ; ls -la ; cd fdlibm; make -f Makefile.ref all

and let's try and find out whether make (or to be precise, the shell
launched by make) is actually in the directory that it's supposed to be in
or not.

--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]