Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Error: Cannot run program "echo"
Error: Cannot run program "echo" [message #1232465] Fri, 17 January 2014 01:43 Go to next message
Richard Tenney is currently offline Richard TenneyFriend
Messages: 4
Registered: January 2014
Junior Member
Having used eclipse-based Codewarrior for years, I'm now trying to use eclipse CDT (Kepler) as an IDE for programming a BeagleBone Black. With much reading and help from folks on the Internet, I've installed a toolchain into eclipse and gotten to the point where I can compile a C program on a Windows 7 PC and debug "Hello World" on the BBB.

However, every time I compile the program, it generates
Error: Program "echo" not found in PATH
Location: Project Properties, C++ Preprocessor Include.../Providers, [CDT GCC Built-in Compiler Settings Cross ARM] options
Type: C/C++ Scanner Discovery Problem

I've looked in the log, and here's a sample of what goes with that error:

!ENTRY org.eclipse.cdt.core 4 0 2014-01-16 01:39:55.104
!MESSAGE Error: Cannot run program "echo": Launching failed
!STACK 0
java.io.IOException: Cannot run program "echo": Launching failed
	at org.eclipse.cdt.utils.spawner.Spawner.exec(Spawner.java:347)
	at org.eclipse.cdt.utils.spawner.Spawner.<init>(Spawner.java:89)
	at org.eclipse.cdt.utils.spawner.ProcessFactory.exec(ProcessFactory.java:89)
	at org.eclipse.cdt.core.CommandLauncher.execute(CommandLauncher.java:194)
	at org.eclipse.cdt.internal.core.BuildRunnerHelper.build(BuildRunnerHelper.java:238)
	at org.eclipse.cdt.managedbuilder.language.settings.providers.AbstractBuiltinSpecsDetector.runProgramForLanguage(AbstractBuiltinSpecsDetector.java:704)
	at org.eclipse.cdt.managedbuilder.language.settings.providers.AbstractBuiltinSpecsDetector.runForLanguage(AbstractBuiltinSpecsDetector.java:634)
	at org.eclipse.cdt.managedbuilder.language.settings.providers.AbstractBuiltinSpecsDetector.runForEachLanguage(AbstractBuiltinSpecsDetector.java:507)
	at org.eclipse.cdt.managedbuilder.language.settings.providers.AbstractBuiltinSpecsDetector$1.runInWorkspace(AbstractBuiltinSpecsDetector.java:441)
	at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)



I've put echo.exe into several directories on the path (e.g., the directory that has the gcc compiler), but that hasn't done any good.
I've run eclipse -clean and done a clean compile with no progress.

Please help!
Re: Error: Cannot run program &quot;echo&quot; [message #1232710 is a reply to message #1232465] Fri, 17 January 2014 14:40 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

Have you considered this sticky post at the forum's top?

http://www.eclipse.org/forums/index.php/t/161206/

On 01/17/2014 06:59 AM, Richard Tenney wrote:
> Having used eclipse-based Codewarrior for years, I'm now trying to use
> eclipse CDT (Kepler) as an IDE for programming a BeagleBone Black. With
> much reading and help from folks on the Internet, I've installed a
> toolchain into eclipse and gotten to the point where I can compile a C
> program on a Windows 7 PC and debug "Hello World" on the BBB.
>
> However, every time I compile the program, it generates
> Error: Program "echo" not found in PATH
> Location: Project Properties, C++ Preprocessor Include.../Providers,
> [CDT GCC Built-in Compiler Settings Cross ARM] options
> Type: C/C++ Scanner Discovery Problem
>
> I've looked in the log, and here's a sample of what goes with that error:
>
>
> !ENTRY org.eclipse.cdt.core 4 0 2014-01-16 01:39:55.104
> !MESSAGE Error: Cannot run program "echo": Launching failed
> !STACK 0
> java.io.IOException: Cannot run program "echo": Launching failed
> at org.eclipse.cdt.utils.spawner.Spawner.exec(Spawner.java:347)
> at org.eclipse.cdt.utils.spawner.Spawner.<init>(Spawner.java:89)
> at
> org.eclipse.cdt.utils.spawner.ProcessFactory.exec(ProcessFactory.java:89)
> at
> org.eclipse.cdt.core.CommandLauncher.execute(CommandLauncher.java:194)
> at
> org.eclipse.cdt.internal.core.BuildRunnerHelper.build(BuildRunnerHelper.java:238)
>
> at
> org.eclipse.cdt.managedbuilder.language.settings.providers.AbstractBuiltinSpecsDetector.runProgramForLanguage(AbstractBuiltinSpecsDetector.java:704)
>
> at
> org.eclipse.cdt.managedbuilder.language.settings.providers.AbstractBuiltinSpecsDetector.runForLanguage(AbstractBuiltinSpecsDetector.java:634)
>
> at
> org.eclipse.cdt.managedbuilder.language.settings.providers.AbstractBuiltinSpecsDetector.runForEachLanguage(AbstractBuiltinSpecsDetector.java:507)
>
> at
> org.eclipse.cdt.managedbuilder.language.settings.providers.AbstractBuiltinSpecsDetector$1.runInWorkspace(AbstractBuiltinSpecsDetector.java:441)
>
> at
> org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
>
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
>
>
>
> I've put echo.exe into several directories on the path (e.g., the
> directory that has the gcc compiler), but that hasn't done any good.
> I've run eclipse -clean and done a clean compile with no progress.
>
> Please help!
Re: Error: Cannot run program &quot;echo&quot; [message #1232763 is a reply to message #1232710] Fri, 17 January 2014 17:12 Go to previous messageGo to next message
Richard Tenney is currently offline Richard TenneyFriend
Messages: 4
Registered: January 2014
Junior Member
> Have you considered this sticky post at the forum's top?

Yes, I did think about it. It could have gone either way, but I decided that the question was really a newbie question, since it was the first program -- and a canned one at that -- that I'd ever run on a self-installed eclipse. I figured that if it doesn't get a response in this forum after a couple of days, I can try again in the CDT forum, with apologies for cross-posting.

- R
Re: Error: Cannot run program &amp;quot;echo&amp;quot; [message #1232838 is a reply to message #1232763] Fri, 17 January 2014 21:53 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 01/17/2014 10:12 AM, Richard Tenney wrote:
>> Have you considered this sticky post at the forum's top?
>
> Yes, I did think about it. It could have gone either way, but I decided
> that the question was really a newbie question, since it was the first
> program -- and a canned one at that -- that I'd ever run on a
> self-installed eclipse. I figured that if it doesn't get a response in
> this forum after a couple of days, I can try again in the CDT forum,
> with apologies for cross-posting.
>
> - R

True, it's a bit of a judgment call. From my point of view, it appears
strongly to be something that the guys in that forum would know about.
Previous Topic:SWT from Eclipse 3 to JUNO
Next Topic:Can't set break point in Eclipse
Goto Forum:
  


Current Time: Fri Mar 29 13:58:56 GMT 2024

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

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

Back to the top