You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2018/03/19 05:33:02 UTC

[GitHub] ccollins476ad opened a new issue #149: [Windows] Command line length exceeded for split images

ccollins476ad opened a new issue #149: [Windows] Command line length exceeded for split images
URL: https://github.com/apache/mynewt-newt/issues/149
 
 
   When building a split image in Windows, newt will likely fail witha message similar to the following:
   ```
   Error: fork/exec C:\Program Files (x86)\GNU Tools ARM Embedded\7.0 2017q4\bin\arm-none-eabi-objcopy.exe: The filename or extension is too long.
   ```
   
   It seems Windows 7+ limits the command line length to 32767 characters [1].  The objcopy command that elicited the above error is 80819 characters long, well in excess of the maximum.
   
   Normally, the objcopy command isn't so massive.  However, for split images, target is a split image, newt needs to specify which symbols go in which image (loader or app).  Newt does this by explicitly specifying each symbol to keep usingthe `-K <symbol>` syntax.
   
   [1] https://blogs.msdn.microsoft.com/oldnewthing/20031210-00/?p=41553

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services