-
Notifications
You must be signed in to change notification settings - Fork 3k
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
mbed-cli build path exceeds Windows command line argument sting length #7129
Comments
After adding below in .mbedignore It compiled but break the UART. source/platform/linux/ |
@marcuschangarm Flatenning parts of the nordic SDK port would help mediate this problem quite a bit. Specifically the |
ARM Internal Ref: MBOTRIAGE-426 |
There are at least 2 issues reported and currently opened. Thus this should be closed as duplicate and add the initial report to the opened one. |
Flatenning just postpones the real issue. From experience, we get new features, targets hal folders - all these will extend the command length and will exceed the limit eventually. |
Agreed that it postpones the problem, but seems like the real solution is to fundamentally change how our code is built, which will take some planning |
@0xc0170 the other two linked are exporter and/or makefile type issues not core compilation using Windows command interpreter. |
cc: @bulislaw |
#6861 - this is not exporter but build - all of them however are about the same - if it is exporter or a build - it is related to the command line length - one fix should resolve all of them. I reopened #6861 (this one is duplicate, same report) - to keep 2 issues - exporters and cli building problem |
I strongly disagree with this statement: exporters have there own limitations that I can't fix. |
Some more info. After running
the command is reliably unable to compile the first file. The output:
Attached is the .includes file that is autogenerated so that it can be piped into GCC. Note that because it's above 32kb (the Windows CreateProcess limit), includes get trunkcated causing the compile to fail. includes_caee3eb4543e3b31a0d18d93d4078d69.txt Some sort of directory squashing needs to happen, since there are a whole bunch of long directories still showing up in the include file. |
Internal Jira reference: https://jira.arm.com/browse/IOTCORE-529 |
We closed this issue because it has been inactive for quite some time and we believe it to be low priority. If you think that the priority should be higher, then please reopen with your justification for increasing the priority. |
Description
Building mbed-cloud-client-example and possibly other projects that have lots of source files overruns the Windows command line argument sting length of 32k. Targets like Nordic where the peripheral feature set is broken down to separate directories (e.g. mbed-os/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_SDK_14_2/drivers_nrf/*) exacerbate this problem and make it more noticeable on smaller source projects.
maximum-length-of-command-line-string
Error Output
Source files to be passed to compiler are truncated on the command line in Windows.
Issue request type
[ ] Question
[ ] Enhancement
[X] Bug
The text was updated successfully, but these errors were encountered: