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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
2,962 次查看
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

标记 (1)
1 解答
2,847 次查看
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 项奖励
回复
3 回复数
2,848 次查看
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 项奖励
回复
2,847 次查看
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 项奖励
回复
2,847 次查看
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.