Skip to content
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

Command line length out of control with large tree giving lots of -I paths. #36

Closed
ghost opened this issue Apr 7, 2016 · 6 comments
Closed
Labels

Comments

@ghost
Copy link

ghost commented Apr 7, 2016

A number of folks are now getting blocked by the compile command line reaching a hard limit due to large trees creating large numbers of -I PATH

@ghost ghost added the bug label Apr 7, 2016
@bogdanm
Copy link
Contributor

bogdanm commented Apr 7, 2016

That can be fixed with "reponse files":

  • put all your options in a file (options.txt for example)
  • instead of doing gcc -opt1 -opt2 ..., do gcc @options.txt). ld supports this too.

armcc has similar support with the --via option. I think armlink also supports this.

No idea if IAR supports it.

Additional caveat: if this is done, in case of a compiler error, one needs to cat the content of options.txt to stdout manually (I think). Also, if we do this, compiling in verbose mode (neo compile -v) doesn't have a lot of meaning anymore.

@screamerbg
Copy link
Contributor

@bogdanm Thanks for the hint. This is for the build system.
@mjs-arm Can you help me reproduce the issue? e.g. repository to clone etc

@ghost
Copy link
Author

ghost commented Apr 7, 2016

I've personally not hit it, try building the demo on windows. I believe @c1728p9 has definitely hit the issue somewhere....

@0xc0170
Copy link
Contributor

0xc0170 commented Apr 12, 2016

This is a duplicate of #6

@bogdanm
Copy link
Contributor

bogdanm commented Apr 12, 2016

I've personally not hit it, try building the demo on windows. I believe @c1728p9 has definitely hit the issue somewhere....

From my experience, it's quite difficult to reproduce this issue on different Windows installations (even if all of them are Windows 7) across different computers. But it definitely happens.

@screamerbg
Copy link
Contributor

This is now implemented in the latest tools in https://github.com/ARMmbed/mbed-os

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants