JnBrymn
JnBrymn

Reputation: 25353

Eclipse CDT error: "make: *** [src/test2.o] Error 127"

On Windows XP I've installed Eclipse CDT. I've installed cygwin including make, gcc, g++, and gdb. I've added C:\cygwin\bin to the windows path variable.

When I create the default HelloWorld project in Eclipse and try to build, I get the following text in the console:

make all

make: echo: Command not found

make: *** [src/test3.o] Error 127

If I try make at the command line, then all's well.

Other clues:

(Note: there is a related question that I didn't find helpful. Perhaps it's answer was over my head.)

Upvotes: 0

Views: 21063

Answers (6)

user2971399
user2971399

Reputation: 660

I had the same problem using eclipse. Also a debug directory was created there and it had an error too. I deleted debug directory and I right click on project directory and select "Build Project". Then every thing just fixed.

Upvotes: 0

G3NTL3
G3NTL3

Reputation: 21

On WINDOWS This work for me after setting your variable PATH try to do this PROJECT--> C/C++ BUILD--> TOOL CHAIN EDITOR--> then change the CURRENT BUILDER TO CDT INTERNAL BUILDER Hope it works.

Upvotes: 2

Pedro Gordo
Pedro Gordo

Reputation: 1865

Reinstalling Cygwin also worked for me. Turns out I needed to install it as an administrator. :-)

Upvotes: 0

Lucas A.
Lucas A.

Reputation: 406

I had the same problem using Eclipse CDT (Juno) under Lubuntu 12.10.

The following fixed it:

  1. Terminal: executed which make --> /usr/bin/make
  2. Terminal: executed which echo --> /bin/echo
  3. Eclipse: Under Project Properties > C/C++ Build > Environment, I made sure the contents of the PATH variable were /usr/bin:/bin, this is, the full path for make and echo, respectively.

Upvotes: 3

JnBrymn
JnBrymn

Reputation: 25353

It works! I completely reinstalled cygwin and left the pathing the way I had it and Eclipse CDT compiles the hello world program. Something important in the last cygwin major update must have changed.

Upvotes: 0

Borealid
Borealid

Reputation: 98459

The problem is that there is no echo binary in your PATH. Locate echo, and add it to your PATH environment variable.

Upvotes: 1

Related Questions