Is there a good workaround for "make clean" with error code 87?

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

Is there a good workaround for "make clean" with error code 87?

Jump to solution
2,482 Views
Takashi_Kashiwagi
Senior Contributor I

Hi lpcxpresso_support

I have using MCUXpresso IDE v10.3.0. 

When I clean my project, "make clean" fails with erro code 87.

make: [makefile:143: clean] Error 87 (ignored)

The cause is that the command line for windows is limited.

https://github.com/gnu-mcu-eclipse/windows-build-tools/issues/3

It will work if you delete the contents of the Debug / Release folder manually , split "clean" in the makefile as follows or create "clean2",  but is there a simpler workaround?

# Other Targets

clean:
 -$(RM) $(CC_DEPS)

 -$(RM) $(C++_DEPS)

 -$(RM) $(EXECUTABLES)

 -$(RM) $(C_UPPER_DEPS)

 -$(RM) $(CXX_DEPS)

 -$(RM) $(OBJS)

 -$(RM) ******.axf

Beset Regards,

T.Kashiwagi

Tags (1)
1 Solution
2,367 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

unfortunately no there isn't,

as per Liviu Lonesco said there isn't a workaround, unless the one already proposed,

Regards,
Aldo.

View solution in original post

0 Kudos
3 Replies
2,368 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

unfortunately no there isn't,

as per Liviu Lonesco said there isn't a workaround, unless the one already proposed,

Regards,
Aldo.

0 Kudos
2,367 Views
Takashi_Kashiwagi
Senior Contributor I

Hi Aldo

Thank you for the advice!

> unfortunately no there isn't,

> as per Liviu Lonesco said there isn't a workaround, unless the one already proposed,

OK... I'll split "clean" in makefile.

Beset Regards,

T.Kashiwagi

0 Kudos
2,367 Views
converse
Senior Contributor V

A workaround is to shorten directory/folder/project names and also to make the project folder as close to the drive root as possible.