Page 1 of 1

What is the normal duration for first "make all" in Eclipse?

Posted: Fri Dec 15, 2017 10:35 am
by ahue32
I am just starting using Eclipse with the ESP IDF. Following the steps inthe tutorial and Neil Kolbans Tutorial I tried to "make all" the gatt_client example for the first time. Building this took 1h:20min. Is this normal? The CPU was not working on full capacity, so I don't think it is my computer that is causing this quite long build time.

Re: What is the normal duration for first "make all" in Eclipse?

Posted: Fri Dec 15, 2017 10:50 am
by ESP_krzychb
ahue32 wrote:I tried to "make all" the gatt_client example for the first time. Building this took 1h:20min. Is this normal?
This build time is out of range for a typical PC. Basing on my experience, on Linux build takes below one minute, on Windows - couple of minutes. I have about 5 years old PCs loaded with Ubuntu 16.04 and Windows 7. I do not use virtualization.

Re: What is the normal duration for first "make all" in Eclipse?

Posted: Fri Dec 15, 2017 11:49 am
by loboris
If running on PC with good processor the build process usually takes less than 30 seconds.
For example, on my system (i7 processor, 16GB RAM, Ubuntu 17.10) building any of the examples (after make clean) takes less than 10 seconds if building with -j8 option. Building the very large application which produces ~2MB binary takes 25 seconds.

Re: What is the normal duration for first "make all" in Eclipse?

Posted: Fri Dec 15, 2017 12:01 pm
by ahue32
Do you know any factors that may contribute to this abnormal build time? CPU is running beneath 10% capacity.

Re: What is the normal duration for first "make all" in Eclipse?

Posted: Fri Dec 15, 2017 7:07 pm
by chegewara
You can use -j flag to use multithreading. Im running ubuntu 14 in vm with 2 cores, but ive found that -j15 or even -j20 works much faster than suggested -j2 for 2 cores environment.

Re: What is the normal duration for first "make all" in Eclipse?

Posted: Sun Dec 17, 2017 10:40 pm
by ESP_Angus
ahue32 wrote:Do you know any factors that may contribute to this abnormal build time? CPU is running beneath 10% capacity.
What OS are you using?

If you're on Windows, Windows Defender and other anti-virus programs can make the compilation process quite slow. Disabling live scanning for the IDF & MSYS32 directories can speed things up significantly.

1h20m sounds very abnormal, though, the delays I've seen from anti-virus are more like an additional minute or so.


Angus