Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Cannot build: all build commands fail without error, do nothing.
Cannot build: all build commands fail without error, do nothing. [message #631572] Fri, 08 October 2010 00:25 Go to next message
Eclipse UserFriend
Does anyone know how to fix this? I was creating a new Eclipse project for some old code with a working Makefile when all the build commands in Eclipse just stopped working.

First, I created a new Makefile project, created some build targets, and that was working fine. Then, I created a debug configuration for one target, and that was working fine, too. Then, for some unknown reason, all the Eclipse build commands stopped working.

Now, when I try to build any target or build all, nothing happens. The console tab shows no output whatsoever. Clean still works, but then I'm completely stuck because I can't rebuild any targets.

GNU make still works as expected. And, if I rebuild a target that way, I can debug it with Eclipse. But I still can't build anything with Eclipse.

So confused.
Re: Cannot build: all build commands fail without error, do nothing. [message #631586 is a reply to message #631572] Fri, 08 October 2010 02:16 Go to previous messageGo to next message
Eclipse UserFriend
Quote:
Now, when I try to build any target or build all, nothing happens. The console tab shows no output whatsoever. Clean still works, but then I'm completely stuck because I can't rebuild any targets.

What is your build and clean command? When you create a new make target with the command "pwd" will it show some output in the console (it should print the working directory)?
Re: Cannot build: all build commands fail without error, do nothing. [message #631835 is a reply to message #631572] Fri, 08 October 2010 20:46 Go to previous messageGo to next message
Eclipse UserFriend
I'm not sure what you mean. I think the command is 'make <target>'. At least that's what *used to be* on the console when it was working. Or, 'make all'. The clean command is 'make cleanall', which I changed from the default since there is no 'clean' target in the Makefile, only 'cleanall'. Does that answer your question?
Re: Cannot build: all build commands fail without error, do nothing. [message #631978 is a reply to message #631835] Mon, 11 October 2010 02:43 Go to previous messageGo to next message
Eclipse UserFriend
When you create a new make target with the command "pwd" will it show some output in the console (it should print the working directory)? Can you please try.
Re: Cannot build: all build commands fail without error, do nothing. [message #632138 is a reply to message #631572] Mon, 11 October 2010 13:16 Go to previous messageGo to next message
Eclipse UserFriend
Thank you for your help. I'm sorry but I had to give up on using Eclipse this way, and I deleted the project that was having this problem. As I said, I've had this recur every time I've tried to build a project for this code. But, naturally, I couldn't reproduce it this time.

In the new project, a target called 'pwd' produces this output:

make pwd
make: *** No rule to make target `pwd'. Stop.

This makes sense to me and I don't think it should print the working directory.

But, before, when this problem is occurring, there is no output in the console tab at all. I've tried creating new targets when this happens and they don't work, either.

I will not delete this project, this time, and see if the problem recurs later.

I do have a copy of the old .cproject and .project files, though. Comparing them to the new ones shows many differences. But, it looks like there are multiple instances of the some variables in different places in both versions, so it's not easy to tell what is different, exactly. Maybe when it recurs, I'll be able to see what changed in the .cproject file, this time.
Re: Cannot build: all build commands fail without error, do nothing. [message #757184 is a reply to message #631572] Wed, 16 November 2011 21:00 Go to previous messageGo to next message
Eclipse UserFriend
Same thing happened to me. EXTREMELY frustrating. No clue what's gone wrong, and no indication from the UI anywhere that I even requested it to build anything.
make is not executed, without error [message #757215 is a reply to message #631572] Thu, 17 November 2011 02:42 Go to previous messageGo to next message
Eclipse UserFriend
I have a similar problem on my Linux development environment, using Eclipse 3.7.0 with CDT 8.0.0.201106081058.

make is set up properly in /usr/bin/make and this is contained in my $PATH.
Calling make from the command line works fine.

In my Eclipse C++ project, the C++ Build settings may be set either to "Use default build command"
(which is make), or explicitely to "make ".
In both cases, triggering a build just shows

**** Build of configuration Default for project test_genstruct ****

make all 

**** Build Finished ****


Even worse, sometimes the build works, other times not. I have no clue why.

A solution is to set the build command explicitely to "/usr/bin/make".
But why doesn't Eclipse execute the "make"?

[Updated on: Thu, 17 November 2011 02:43] by Moderator

Re: make is not executed, without error [message #757737 is a reply to message #757215] Mon, 21 November 2011 07:28 Go to previous messageGo to next message
Eclipse UserFriend
Is there a different make in your $PATH? When you type
which make
on the console will it output
/usr/bin/make
?
Re: make is not executed, without error [message #758665 is a reply to message #757737] Thu, 24 November 2011 02:27 Go to previous message
Eclipse UserFriend
The make path is ok:
which make
/usr/bin/make

Maybe there was a problem with the Build location in the C/C++ Build settings, so the make has been started in another directory where it had nothing to do.
Now, it works fine, either with Build command = "make" or "/usr/bin/make".
Previous Topic:Debugging Issues
Next Topic:new installation - problems with the editor
Goto Forum:
  


Current Time: Sun Jul 13 01:00:17 EDT 2025

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

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

Back to the top