Re: Compile and build time, any way to speed up?

2017-01-06 Thread Christopher Collins
Hi Cris, On Fri, Jan 06, 2017 at 12:54:03PM -0500, Cris Frusina wrote: > Fixed the TCP issue by restarting Virtualbox, did an newt upgrade and a > newt install with the 0-dev in the project file. > > Still missing something as -j is not recognized. The -j option is only supported in the

Re: Compile and build time, any way to speed up?

2017-01-06 Thread Cris Frusina
Fixed the TCP issue by restarting Virtualbox, did an newt upgrade and a newt install with the 0-dev in the project file. Still missing something as -j is not recognized. ~/newt version Apache Newt (incubating) version: 1.0.0-b1 ~/newt build -j 5 ble_usb Error: unknown shorthand flag: 'j' in

Re: Compile and build time, any way to speed up?

2017-01-06 Thread David G. Simmons
That looks like your network isn't working from your Docker instance. If that's actually the case, it could also (possibly) explain the torturously long compile times. Maybe. dg > On Jan 6, 2017, at 12:24 PM, Cris Frusina wrote: > > David, > > I've tried what you suggested

Re: Compile and build time, any way to speed up?

2017-01-06 Thread Cris Frusina
David, I've tried what you suggested I'm getting this error: *apache-mynewt-core** **Error: Get https://api.github.com/repos/apache/incubator-mynewt-core/contents/repository.yml?ref=master: dial tcp: lookup api.github.com on 10.0.2.3:53: read udp 172.17.0.2:38728->10.0.2.3:53: i/o timeout*

Re: Compile and build time, any way to speed up?

2017-01-06 Thread David G. Simmons
You could do that, but if you don't want to remake the whole Docker instance, you should be able to simply edit the project.yml file and change the vers strin for repository.apache-mynewt-core to 0-dev and then run newt install Best regards, dg > On Jan 6, 2017, at 5:23 AM, Fabio Utzig

Re: Compile and build time, any way to speed up?

2017-01-06 Thread Fabio Utzig
I'm not using the docker version myself, but I think you could try rebuilding the docker image: https://github.com/runtimeinc/newt-docker Inside the Makefile, change the branch that is checked out from "-b mynewt_1_0_0_b1_tag" to "-b develop":

Re: Compile and build time, any way to speed up?

2017-01-05 Thread Cris Frusina
Stupid question... Is there any way to try out the development branch while using the docker method on a Windows machine? Cris On 1/5/2017 8:20 PM, Sterling Hughes wrote: This is awesome, timing on the new build (after a clean): Target successfully built: targets/nrf52 real0m6.327s

Re: Compile and build time, any way to speed up?

2017-01-05 Thread Sterling Hughes
This is awesome, timing on the new build (after a clean): Target successfully built: targets/nrf52 real0m6.327s user0m26.972s sys 0m9.276s $ newt target show nrf52 targets/nrf52 app=apps/slinky bsp=hw/bsp/nrf52dk build_profile=debug 6 seconds for a full build. Not bad!

Re: Compile and build time, any way to speed up?

2017-01-05 Thread Christopher Collins
On Thu, Jan 05, 2017 at 09:00:11AM -0500, Cris Frusina wrote: > Hi David, > > Sounds like a pain! > > So I got an Ubuntu VM running on the Windows machine and installed the myNewt > natively. I didn't really see much of a speed bump (needs a bit further > testing). I'll try a different

Re: Compile and build time, any way to speed up?

2017-01-05 Thread Christopher Collins
On Thu, Jan 05, 2017 at 08:34:04AM -0500, David G. Simmons wrote: > Well, I spent the entire day yesterday working on this, and unfortunately, I > don't have any real results. > > My only Windows setup is a VM, and it turns out that running a Docker > instance on a Windows VM on top of Mac OS

Re: Compile and build time, any way to speed up?

2017-01-05 Thread Cris Frusina
Hi David, Sounds like a pain! So I got an Ubuntu VM running on the Windows machine and installed the myNewt natively. I didn't really see much of a speed bump (needs a bit further testing). I'll try a different computer later today. Worst case I'll find a Mac to try it on. Cris > On Jan

Re: Compile and build time, any way to speed up?

2017-01-05 Thread David G. Simmons
Well, I spent the entire day yesterday working on this, and unfortunately, I don't have any real results. My only Windows setup is a VM, and it turns out that running a Docker instance on a Windows VM on top of Mac OS X is a fairly unrewarding experience in and of itself, and getting the

Re: Compile and build time, any way to speed up?

2017-01-04 Thread Cris Frusina
Thanks Marko, I'll try it out when I get a chance. Cheers, Cris > On Jan 4, 2017, at 1:55 PM, marko kiiskila wrote: > > Hi, > > those are merged in, and are present in develop branch. > > https://github.com/apache/incubator-mynewt-core/pull/150 >

Re: Compile and build time, any way to speed up?

2017-01-04 Thread marko kiiskila
Hi, those are merged in, and are present in develop branch. https://github.com/apache/incubator-mynewt-core/pull/150 https://github.com/apache/incubator-mynewt-newt/pull/29 >

Re: Compile and build time, any way to speed up?

2017-01-04 Thread Cris Frusina
Hi Marko, Where do I find Simon's changes? I'd like to give it a try. Thanks Cris > On Jan 4, 2017, at 1:21 PM, marko kiiskila wrote: > > Hi Cris, > > Simon Ratner has made a number of improvements to newt which should > help with the native Windows support. > > I have not

Re: Compile and build time, any way to speed up?

2017-01-04 Thread marko kiiskila
Hi Cris, Simon Ratner has made a number of improvements to newt which should help with the native Windows support. I have not had a chance to try those out (as I don’t have Windows setup), so I don’t know what the exact state is. But they did seem pretty good. I do recommend trying that out. And

Re: Compile and build time, any way to speed up?

2017-01-04 Thread David G. Simmons
Hi Cris, Ok, that helps. Those times seem very high to me. I'm running natively on Mac OS Sierra and using the same bleprph code base -- modified a fair amount for an ADC sensor -- and any changes to main take about 4 seconds to compile, and more substantial changes to other parts of the code

Re: Compile and build time, any way to speed up?

2017-01-04 Thread Cris Frusina
Hi David, I'm building my code on top of the bleprph app. I haven't done too much to it as I'm still just playing around with myNewt. I've added the nffs dependency and some custom code, most of it is still the same. It depends on the changes I make to the code, if I only change the main.c

Re: Compile and build time, any way to speed up?

2017-01-04 Thread David G. Simmons
Hi Cris, What sorts of compile times are you seeing? And for what apps? Thanks, dg > On Jan 4, 2017, at 8:53 AM, Cris Frusina wrote: > > Hi All, > > I'm using the Docker method to run myNewt. > > I have tried giving the VM more resources doesn't seem to do anything in >

Compile and build time, any way to speed up?

2017-01-04 Thread Cris Frusina
Hi All, I'm using the Docker method to run myNewt. I have tried giving the VM more resources doesn't seem to do anything in terms of speed. Is there any way to speed up the compile and build time? Would the native method be substantially faster? Thanks, Cris