mynewt-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] ccollins476ad opened a new issue #149: [Windows] Command line length exceeded for split images
Date Mon, 19 Mar 2018 05:33:02 GMT
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

Mime
View raw message