Make target not working: Cannot run program "mymake": Launching failed [message #228846] |
Fri, 16 January 2009 22:41 |
San Messages: 11 Registered: July 2009 |
Junior Member |
|
|
Hi all,
I have Eclipse in Windows, with the Cygwin toolchain.
I have a script that I use to build (named mymake), instead of make (my
script handles some variables and it invokes make). When I run the script
from a (Cygwin) bash prompt, it works fine. The directory where the script
is located is in the PATH.
In Eclipse, I created a make target for that project, which I attempt to
use for building. I have tried several things on "Build command" line,
listed below with the corresponding output:
1- which make
-----
**** Build of configuration Cygwin GCC for project multfem ****
which make
/usr/bin/make
2- make
-----
**** Build of configuration Cygwin GCC for project multfem ****
make
make: *** No targets specified and no makefile found. Stop.
Note: this means that it is finding and executing make, i.e., behaving as
expected
3- which mymake
-----
**** Build of configuration Cygwin GCC for project multfem ****
which mymake
/cygdrive/d/Appls/make/mymake
4- mymake
-----
**** Build of configuration Cygwin GCC for project multfem ****
(Cannot run program "mymake": Launching failed)
Does anyone know why, if my script is in the PATH (as found by which
mymake) it cannot be run? It has the right permissions. To test a little
more, I had copied it in the same directory as make, and then I did
chmod --reference=make mymake
chown --reference=make mymake
chgrp --reference=make mymake
with the same result. I had previously renamed the original mymake to be
sure that the script being found in the PATH was the one located in
/usr/bin.
What makes mymake different from make, given that make can be run and
mymake not?
I went nuts about this!!
Thanks
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02164 seconds