Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » make:***No rule to make target 'all'.(Cannot run c++ program)
make:***No rule to make target 'all'. [message #900594] Tue, 07 August 2012 16:28 Go to next message
kalyan alapati is currently offline kalyan alapati
Messages: 1
Registered: August 2012
Junior Member
Hello,

I am getting make:***No rule to make target 'all'. error and sh-c "autoreconf-i" (configure problem".

I don't know what these errors are. I have spent hours of time on googling about this error. Found something but did not understand a bit.

Somebody said make file missing or something like that.

I need clear instructions on what to do. Could someone help me to fix this?

Please provide clear instructions as I don't know nothing. Thanks in advance.
Re: make:***No rule to make target 'all'. [message #900676 is a reply to message #900594] Wed, 08 August 2012 07:11 Go to previous messageGo to next message
Joost Kraaijeveld is currently offline Joost Kraaijeveld
Messages: 173
Registered: July 2009
Senior Member
On 07/08/12 18:28, kalyan alapati wrote:
> Hello,
>
> I am getting make:***No rule to make target 'all'. error and sh-c
> "autoreconf-i" (configure problem".
>
> I don't know what these errors are. I have spent hours of time on
> googling about this error. Found something but did not understand a bit.
> Somebody said make file missing or something like that.
>
> I need clear instructions on what to do. Could someone help me to fix this?
>
> Please provide clear instructions as I don't know nothing. Thanks in
> advance.

To be able to help you a little bit more information is needed.

What is the platform you are using? I.e. Windows XX / Eclipse Juno / CDT
8.1 / MingW or something other combination?
What kind of project do you use?
Does a new auto generated "Hello World C++" executable Project work?
Does a new auto generated "Hello World C++" GNU Autotools Project work?

In all other cases, it could be a nice idea to check the documentation
and follow the C/C++ Development User Guide, especially the sections
"Before you begin" and "Getting started".

--
Groeten,

Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
web: www.askesis.nl
Re: make:***No rule to make target 'all'. [message #900682 is a reply to message #900594] Wed, 08 August 2012 07:26 Go to previous messageGo to next message
Axel Mueller is currently offline Axel Mueller
Messages: 1952
Registered: July 2009
Senior Member
kalyan alapati wrote on Tue, 07 August 2012 18:28
Hello,

I am getting make:***No rule to make target 'all'. error and sh-c "autoreconf-i" (configure problem".

I don't know what these errors are. I have spent hours of time on googling about this error. Found something but did not understand a bit.

Somebody said make file missing or something like that.

I need clear instructions on what to do. Could someone help me to fix this?

Please provide clear instructions as I don't know nothing. Thanks in advance.

Please use the search function of the forum first!
See my instructions in this thread http://www.eclipse.org/forums/index.php/t/369006/


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Re: make:***No rule to make target 'all'. [message #900827 is a reply to message #900594] Wed, 08 August 2012 15:52 Go to previous messageGo to next message
Charles Letcher is currently offline Charles Letcher
Messages: 3
Registered: August 2012
Junior Member
I am getting this same error: ***No rule to make target 'all'. error and sh-c "autoreconf-i" (configure problem"

This is a fresh install on a new Windows 7 computer with recently downloaded MinGW/Eclipse. The environment variable is set for MinGW. gcc/g++ work from the command line OK. The errors above occur when trying to compile the "Hello World" sample application as a new exe and as a new auto-build.

CDT does not seem to be recognizing the MinGW toolchain.

Searching through the settings did not show where sh -c ... is set. I did re-read the documentation and retry everything. I'm fairly certain that MinGW is installed/running all OK. My previous computer had no trouble finding/using MinGW for C projects.



Re: make:***No rule to make target 'all'. [message #900840 is a reply to message #900827] Wed, 08 August 2012 17:00 Go to previous messageGo to next message
Joost Kraaijeveld is currently offline Joost Kraaijeveld
Messages: 173
Registered: July 2009
Senior Member
On 08/08/12 17:52, Charles Letcher wrote:
> I am getting this same error: ***No rule to make target 'all'. error and
> sh-c "autoreconf-i" (configure problem"
>
> This is a fresh install on a new Windows 7 computer with recently
> downloaded MinGW/Eclipse. The environment variable is set for MinGW.
> gcc/g++ work from the command line OK. The errors above occur when
> trying to compile the "Hello World" sample application as a new exe and
> as a new auto-build.
> CDT does not seem to be recognizing the MinGW toolchain.
> Searching through the settings did not show where sh -c ... is set. I
> did re-read the documentation and retry everything. I'm fairly certain
> that MinGW is installed/running all OK. My previous computer had no
> trouble finding/using MinGW for C projects.

If you say gcc works from the command line, do you mean with the command
line that is created by the mingw installation utility or the plain
Windows cmd.exe command prompt? The script / batch file that starts the
MingW Shell adds, amongst things, a lot of stuff to the environment. If
you do not use a script to create the same environment in which Eclipse
starts, you should add the "MingW\bin" and "MingW\msys\1.0\bin" to your
Windows path environment.

By the error you show, especially "sh-c "autoreconf-i" (configure
problem"", I deduce that you tried to create a GNU Autotools Hello World
application. Did you also install Msys and added its bin path to your
path (see above)? Does a new auto generated "Hello World C++" executable
Project work?

For what it is worth: because of teaching duties I tested the basic
functionality of Eclipse / MingW and they work for me out-of-the-box on
Windows XP. Both the auto generated "Hello World C++" executable Project
and the auto generated "Hello World C++" GNU Autotools Project work.

The MingW installation was done by downloading the installer at
http://sourceforge.net/projects/mingw/files/Installer/, latest version:
mingw-get-inst-20120426.exe (downloaded on 5-8-2012). I chose to
download the lates repository catalogues, and installed the C en C++
compiler, MSYS Basic system and MINGW Developer Toolkit. Because I do
not use the msys.bat I added the two paths I mentioned above to the
Windows system environment.



--
Groeten,

Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
web: www.askesis.nl
Re: make:***No rule to make target 'all'. [message #900888 is a reply to message #900827] Wed, 08 August 2012 20:21 Go to previous messageGo to next message
Charles Letcher is currently offline Charles Letcher
Messages: 3
Registered: August 2012
Junior Member
Thank you very much for the fast response.

Yes, you were right about the MSys installation. MSys was not installed. There are some good instructions here: max.berger.name/howto/cdt/ar01s03.jsp#wincompiler Adding the MSys bin directory to the path as you suggested cleared that error.

Now, when I type sh from the command prompt, something happens.

This problem came about because I ignorantly chose an auto-tools project instead of an executable project. Apparently you need MSys for auto-tools. Creating an new project, and select executable with MinGW as the toolset allowed me to successfully run the hello world project.

The Eclipse IDE is still giving an error under "problems" saying no rule for make target all. I have tried modifying the makefile to add a rule for the target but no luck yet. However, this does not prevent the program from running. That seems like a solvable problem.

Thanks!



Re: make:***No rule to make target 'all'. [message #900889 is a reply to message #900888] Wed, 08 August 2012 20:34 Go to previous messageGo to next message
Joost Kraaijeveld is currently offline Joost Kraaijeveld
Messages: 173
Registered: July 2009
Senior Member
On 08-08-12 22:21, Charles Letcher wrote:
> Thank you very much for the fast response.
>
> Yes, you were right about the MSys installation. MSys was not
> installed. There are some good instructions here:
> max.berger.name/howto/cdt/ar01s03.jsp#wincompiler Adding the MSys bin
> directory to the path as you suggested cleared that error.
>
> Now, when I type sh from the command prompt, something happens.
>
> This problem came about because I ignorantly chose an auto-tools project
> instead of an executable project. Apparently you need MSys for
> auto-tools. Creating an new project, and select executable with MinGW
> as the toolset allowed me to successfully run the hello world project.
>
> The Eclipse IDE is still giving an error under "problems" saying no rule
> for make target all. I have tried modifying the makefile to add a rule
> for the target but no luck yet. However, this does not prevent the
> program from running. That seems like a solvable problem.

Just try to delete the error by selecting it and choose delete from the
popup menu (I think, no machine for testing availbale)


--
Groeten,

Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
web: www.askesis.nl
Re: make:***No rule to make target 'all'. [message #900904 is a reply to message #900889] Wed, 08 August 2012 23:06 Go to previous messageGo to next message
Charles Letcher is currently offline Charles Letcher
Messages: 3
Registered: August 2012
Junior Member
Joost wrote: >Just try to delete the error by selecting it and choose delete from the
popup menu (I think, no machine for testing availbale)

That was exactly right. After deleting the error, it did not re-appear after re-building. All problems solved. Thanks!
Re: make:***No rule to make target 'all'. [message #1060901 is a reply to message #900904] Wed, 29 May 2013 05:55 Go to previous messageGo to next message
srinivas rao is currently offline srinivas rao
Messages: 2
Registered: May 2013
Location: HYDERABAD
Junior Member
hai i have been working eclipse c/c++ development tool on windows 7 with cygwin .when i try to build a program.i got an error make: *** No rule to make target `all'. how can remove this error.can give me suggestion
Re: make:***No rule to make target 'all'. [message #1061107 is a reply to message #1060901] Thu, 30 May 2013 04:34 Go to previous message
srinivas rao is currently offline srinivas rao
Messages: 2
Registered: May 2013
Location: HYDERABAD
Junior Member
srinivas rao wrote on Wed, 29 May 2013 01:55
hai i have been working eclipse c/c++ development tool on windows 7 with cygwin .when i try to build a program.i got an error make: *** No rule to make target `all'. how can remove this error.can give me suggestion

Previous Topic:Convert to a C/C++ project
Next Topic:I can't step into while debugging
Goto Forum:
  


Current Time: Fri Sep 19 18:12:35 GMT 2014

Powered by FUDForum. Page generated in 0.01995 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software