New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rm fails for very long (>8192) command lines on Windows #3
Comments
thank you for the report. I see several issues here:
and being a windows only problem, it'll probably need to wait that someone with pockets deeper than mine will want to address it. |
The same problem for me, like this The gnu mcu eclipse seem has some problem when use in large-scale projects. So I would have to delete the output folder manually. Is there any solution? Thx
|
Unfortunately not much I can do, the way the You can try to add a file named
Please note that the last 3 lines start with a TAB. Then in project properties, C/C++ Build -> Behavior, reconfigure the clean target to use This will not fix the problem, just split the long line in two, hopefully short enough to not trigger the error. If the result is still to long, try splitting it into more lines. |
Thx. It‘s work fine when I add But, should change the |
Ok, great! Thank you for catching the typo, I fixed it. |
Interestingly, I'm not any more able to reproduce the original issue on my Windows 10 machine? Could it be that one of the Microsoft updates has fixed that problem? |
Ich habe keine Ahnung... :-( @ErichStyger, it would be interesting to try exactly the same project on an old Win 7, with exactly the same BusyBox. @armink, what Windows version do you use? |
|
I think this issue can be closed. I was unable to find an old Windows 7 installation to reproduce that issue. I tried a VM one, but was unable to reproduce it. |
Ok. Please note that even if the CMD.exe 8192 limitation can be overcome by using a custom sh.exe, on Windows there is still a 32K limitation for the full command line passed to the system when creating a process, and, at least the last time when I checked the Microsoft specs, there was no known workaround. |
Hi, I also encountered the same problem, and I'v found an indirect way to solve this problem by integrating a batch file to the Eclipse by which to clean all the .o and .d file in projects. the repo is here: https://github.com/GabeGu/Automate. wish it may help you. |
Thank you, @GabeGu. |
GNU ARM Eclipse Windows Build Tools v2.6-201507152002
The make/build/link is able to deal with very long command lines on windows.
But there seems to be a remaining isssue with 'rm' called as part of the 'clean'.
The problem is that in the clean target the clean tries to do everything in a single command:
clean:$(SECONDARY_SIZE)$ (C++_DEPS)$(OBJS)$(C_DEPS)$(ASM_DEPS)$(CC_DEPS)$(CPP_DEPS)$(CXX_DEPS)$(C_UPPER_DEPS)$(S_UPPER_DEPS) V2_MQX_PEx.elf
-$(RM)
The solution would be that the clean target in the make file would be splitted up into pieces like this:$(C++_DEPS)$ (OBJS)
clean:
-$(RM) $(SECONDARY_SIZE)
-$(RM)
-$(RM) $(C_DEPS)
-$(RM) $(ASM_DEPS)
-$(RM) $(CC_DEPS)
-$(RM) $(CPP_DEPS)
-$(RM) $(CXX_DEPS)
-$(RM) $(C_UPPER_DEPS)
-$(RM) $(S_UPPER_DEPS)
-$(RM) V2_MQX_PEx.elf
Maybe the make file generation could be updated that it would use multiple rm commands?
Thanks,
Erich
The text was updated successfully, but these errors were encountered: