CodeWarrior Build error

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

CodeWarrior Build error

Jump to solution
112 Views
Julian99
Contributor III

Every so-often I get a build error:-

mingw32-make: *** No rule to make target Dropbox//Projects/\Project_x/\Project_Headers/\../\Sources/\Events.c',                     needed by `Sources/Events_c.obj'.  Stop.

The file Events_c.obj does, of course, exist, but the usual remedies do not work. I tried a Clean build, I deleted Events_c.obj', I deleted the whole Flash folder, I tried shutting down and re-starting but nothing worked. I ended up creating a new project and cut and pasted the source file content. This problem occurs once every few weeks and on a couple of occasions, after the computer was "sleeping", the problem cleared itself.

0 Kudos
Reply
1 Solution
48 Views
luis_maravilla
NXP Employee
NXP Employee

Hello,

Which version of CodeWarrior are you using?

Does the Clean build that you tried is by using the commander>Clean (All)?

When you move to a new project it works and after a few weeks happens again?

Probably your make files doesn’t match according to your directory.

Please try this to clean and make a re-creation of the make files

On the Project view>Clean>Select your project to build

 

luis_maravilla_1-1787091476012.pngluis_maravilla_1-1787091476012.png

 

Also, as a recommendation do not use the Dropbox folder, kindly change to a local path and add it or change it in the build directory.

Please refer to this post for more information No rule to make target | MCU on Eclipse

Best Regards, Luis

View solution in original post

0 Kudos
Reply
2 Replies
49 Views
luis_maravilla
NXP Employee
NXP Employee

Hello,

Which version of CodeWarrior are you using?

Does the Clean build that you tried is by using the commander>Clean (All)?

When you move to a new project it works and after a few weeks happens again?

Probably your make files doesn’t match according to your directory.

Please try this to clean and make a re-creation of the make files

On the Project view>Clean>Select your project to build

 

luis_maravilla_1-1787091476012.pngluis_maravilla_1-1787091476012.png

 

Also, as a recommendation do not use the Dropbox folder, kindly change to a local path and add it or change it in the build directory.

Please refer to this post for more information No rule to make target | MCU on Eclipse

Best Regards, Luis

0 Kudos
Reply
74 Views
Julian99
Contributor III
Thanks, the sync issue makes sense, but it will be a few days before I can try it.
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2404542%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ECodeWarrior%20Build%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2404542%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EEvery%20so-often%20I%20get%20a%20build%20error%3A-%3C%2FP%3E%3CP%3Emingw32-make%3A%20***%20No%20rule%20to%20make%20target%20Dropbox%2F%2FProjects%2F%5CProject_x%2F%5CProject_Headers%2F%5C..%2F%5CSources%2F%5CEvents.c'%2C%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20needed%20by%20%60Sources%2FEvents_c.obj'.%3CSPAN%20class%3D%22%22%3E%26nbsp%3B%20%3C%2FSPAN%3EStop.%3C%2FP%3E%3CP%3EThe%20file%20Events_c.obj%20does%2C%20of%20course%2C%20exist%2C%20but%20the%20usual%20remedies%20do%20not%20work.%20I%20tried%20a%20Clean%20build%2C%20I%20deleted%26nbsp%3BEvents_c.obj'%2C%20I%20deleted%20the%20whole%20Flash%20folder%2C%20I%20tried%20shutting%20down%20and%20re-starting%20but%20nothing%20worked.%20I%20ended%20up%20creating%20a%20new%20project%20and%20cut%20and%20pasted%20the%20source%20file%20content.%20This%20problem%20occurs%20once%20every%20few%20weeks%20and%20on%20a%20couple%20of%20occasions%2C%20after%20the%20computer%20was%20%22sleeping%22%2C%20the%20problem%20cleared%20itself.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2405213%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20CodeWarrior%20Build%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2405213%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThis%20sounds%20less%20like%20an%20issue%20with%20the%20.obj%20file%20itself%20and%20more%20like%20a%20stale%20or%20malformed%20dependency%20path%20in%20the%20generated%20Makefile.%20The%20Dropbox%2F%2FProjects%2F%5CProject_x...%20path%20with%20the%20odd%20slashes%20is%20a%20big%20clue.%20I%E2%80%99d%20check%20whether%20the%20project%20is%20being%20built%20directly%20from%20a%20Dropbox-synced%20folder%20and%20try%20moving%20it%20to%20a%20local%2C%20non-synced%20directory.%20Also%2C%20compare%20the%20generated%20dependency%2FMakefile%20entries%20when%20the%20problem%20occurs%20with%20a%20working%20build.%20If%20the%20error%20disappears%20after%20the%20Dropbox%20folder%20syncs%20or%20the%20PC%20wakes%2C%20that%20would%20further%20point%20toward%20Dropbox%2Ffile-system%20timing%20rather%20than%20the%20source%20file.%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2405409%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20CodeWarrior%20Build%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2405409%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EThanks%2C%20the%20sync%20issue%20makes%20sense%2C%20but%20it%20will%20be%20a%20few%20days%20before%20I%20can%20try%20it.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2406337%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20CodeWarrior%20Build%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2406337%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3EWhich%20version%20of%20CodeWarrior%20are%20you%20using%3F%3C%2FP%3E%0A%3CP%3EDoes%20the%20Clean%20build%20that%20you%20tried%20is%20by%20using%20the%20%3CEM%3Ecommander%26gt%3BClean%20(All)%3C%2FEM%3E%3F%3C%2FP%3E%0A%3CP%3EWhen%20you%20move%20to%20a%20new%20project%20it%20works%20and%20after%20a%20few%20weeks%20happens%20again%3F%3C%2FP%3E%0A%3CP%3EProbably%20your%20make%20files%20doesn%E2%80%99t%20match%20according%20to%20your%20directory.%3C%2FP%3E%0A%3CP%3EPlease%20try%20this%20to%20clean%20and%20make%20a%20re-creation%20of%20the%20make%20files%3C%2FP%3E%0A%3CP%3EOn%20the%20%3CEM%3EProject%20view%26gt%3BClean%26gt%3BSelect%20your%20project%20to%20build%3C%2FEM%3E%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorluis_maravilla_0%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22luis_maravilla_1-1787091476012.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22luis_maravilla_1-1787091476012.png%22%20style%3D%22width%3A%20240px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F394883i36189A2448C4EC2F%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22luis_maravilla_1-1787091476012.png%22%20alt%3D%22luis_maravilla_1-1787091476012.png%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3Eluis_maravilla_1-1787091476012.png%3C%2Fspan%3E%3C%2Fspan%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3Eluis_maravilla_1-1787091476012.png%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EAlso%2C%20as%20a%20recommendation%20do%20not%20use%20the%20Dropbox%20folder%2C%20kindly%20change%20to%20a%20local%20path%20and%20add%20it%20or%20change%20it%20in%20the%20build%20directory.%3C%2FP%3E%0A%3CP%3EPlease%20refer%20to%20this%20post%20for%20more%20information%20%3CA%20href%3D%22https%3A%2F%2Fmcuoneclipse.com%2F2012%2F03%2F12%2Fno-rule-to-make-target%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3ENo%20rule%20to%20make%20target%20%7C%20MCU%20on%20Eclipse%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EBest%20Regards%2C%20Luis%3C%2FP%3E%3C%2FLINGO-BODY%3E