Getting an error on build

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Getting an error on build

2,002 Views
gorakk
Contributor IV

I'm seeing a build issue on my project - it had been working fine yesterday but this morning it would not build.

 

Two errors are reported:

'"C:/Freescale/CW MCU v10.3/gnu/bin/rm -f"' is not recognized as an internal or external command, operable program or batch file.

mingw32-make: *** [../source/stream.c] Error 1

 

 

The directory, and rm.exe, do exist.

 

The stream.c file hasn't changed in over two months so I'm thinking that it's not the issue.

 

This blog post sounds similar - but a difference is that my project had been working.  And as far as I can see there aren't any incorrect double quotes in my configuration.

The Quotation Problem | MCU on Eclipse

 

I deleted the workspace directory and got the latest version from source control - still having the same problem.

 

 

 

Any suggestions on where to look?

 

 

 

 

 

 

Labels (1)
0 Kudos
Reply
3 Replies

1,772 Views
gorakk
Contributor IV

Thanks for the suggestions. :smileyhappy:

One of my colleagues noticed that the second error, Error 1, was sometimes pointing to stream.c and sometimes to serscale.c.  He excluded both of them from the build on his machine and also commented out all references to them and was able to build the project without errors. 

After that I did the following on my machine:

  • Deleted the project workspace folder and all its contents
  • Got the latest version of the project from source control
  • Unable to build the project – errors:

'"C:/Freescale/CW MCU v10.3/gnu/bin/rm -f"' is not recognized as an internal or external command, operable program or batch file.

mingw32-make: *** [../source/serscale.c] Error 1

  • Opened the serscale.c file
  • Randomly added a space to a line and saved the file
  • Builds ok – no errors

Answers to some of the questions / suggestions:

  • Deleting the .metadata folder did not correct the issue
  • Problem was for a specific project
  • rm.exe was able to be run from a command prompt

As far as I am concerned the problem is fixed - but what would cause an Error 1 that could be corrected by touching the offending (serscale.c) file?

0 Kudos
Reply

1,772 Views
BlackNight
NXP Employee
NXP Employee

Hello,

maybe you could copy and post the console log output in a text file. Maybe there is indeed a quotation problem and it might be hard to see it. The other things is: try to run the rm.exe from a DOS shell (with the path shown in console log, maybe copy-paste that command line.

The error message is basically about this: Eclipse passes the command line to an 'exec' API of the host OS, and then the host OS for whatever reason is not able to locate/execute that command line.

I hope this helps.

1,772 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Can you please remove .metadata folder then restart CW. Can it work now? if still not, is this problem in one specific project or a common issue for all project? can you please send us your entire project folder in zip and the problem screenshot so that we can check the problem directly ?