Re: Error "The filename or extension is too long." while building a split image app

2018-03-18 Thread Christopher Collins
On Sun, Mar 18, 2018 at 09:26:19PM -0400, Abderrezak Mekkaoui wrote:
> Hi Chris.
> The result of the build with -ldebug can be found here:
> 
> https://www.dropbox.com/s/o749a6x6xjvva6t/clvrt_ess_split.log?dl=0

Darn... it seems Windows 7+ limits the command line length to 32767
characters [1].  The objcopy command that elicits the error is 80819
characters long, well in excess of the maximum.

Normally, the objcopy command isn't so massive.  However, as this
particular 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 using the `-K ` syntax.

This is a tricky problem.  I'm afraid I don't know of a workaround,
other than building in a non-Windows environment.

I have filed this issue in github:
https://github.com/apache/mynewt-newt/issues/149.  Thanks for the
report.

Chris

[1] https://blogs.msdn.microsoft.com/oldnewthing/20031210-00/?p=41553


Re: Error "The filename or extension is too long." while building a split image app

2018-03-18 Thread Abderrezak Mekkaoui

Hi Chris.
The result of the build with -ldebug can be found here:

https://www.dropbox.com/s/o749a6x6xjvva6t/clvrt_ess_split.log?dl=0

Thanks
Abderrezak



On 3/18/2018 7:16 PM, Christopher Collins wrote:

Hi Abderrezak,

Could you try building again with the `-ldebug` switch?  Please include
the output in a follow up.

Thanks,
Chris

On Sun, Mar 18, 2018 at 05:05:40PM -0400, Abderrezak Mekkaoui wrote:

Hi All,

I was following the tutorial to build a split image application. The
process got stalled with the following error:



...
Generating ROM elf
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.



I am suing mingw64 on windows 10 machine.

Any help is appreciated.

Best regards
Abderrezak





Re: Error "The filename or extension is too long." while building a split image app

2018-03-18 Thread Christopher Collins
Hi Abderrezak,

Could you try building again with the `-ldebug` switch?  Please include
the output in a follow up.

Thanks,
Chris

On Sun, Mar 18, 2018 at 05:05:40PM -0400, Abderrezak Mekkaoui wrote:
> Hi All,
> 
> I was following the tutorial to build a split image application. The 
> process got stalled with the following error:
> 
> 
> 
> ...
> Generating ROM elf
> 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.
> 
> 
> 
> I am suing mingw64 on windows 10 machine.
> 
> Any help is appreciated.
> 
> Best regards
> Abderrezak
>