Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Kepler: C++ "hello world" build takes a long time
Kepler: C++ "hello world" build takes a long time [message #1099185] Sun, 01 September 2013 08:59 Go to next message
Joost Kraaijeveld is currently offline Joost KraaijeveldFriend
Messages: 273
Registered: July 2009
Senior Member
Hi,

Building the "Hello world" C++ takes > 21 seconds (see below) the first
time or any other time any (empty) function is added. An ordinary
recompile after that (e.g. a "clean" followed by a "build") takes only
122 ms. A rebuild of the index of the same program takes ~ 2.5 seconds
(from the error log, see below).

Why does it take so long? What is Eclipse doing (as indexing only takes
~ 2.5 seconds)? And last but not least, what can I do to improve the
performance?

TIA

Joost




////////////////////////////////


10:30:41 **** Build of configuration Debug for project HelloWorldC++ ****
make all
Building file: ../src/HelloWorldC++.cpp
Invoking: GCC C++ Compiler
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP
-MF"src/HelloWorldC++.d" -MT"src/HelloWorldC++.d" -o
"src/HelloWorldC++.o" "../src/HelloWorldC++.cpp"
distcc[8462] (dcc_parse_hosts) Warning: /home/jkr/.distcc/zeroconf/hosts
contained no hosts; can't distribute work
distcc[8462] (dcc_zeroconf_add_hosts) CRITICAL! failed to parse host file.

distcc[8462] (dcc_build_somewhere) Warning: failed to distribute,
running locally instead
Finished building: ../src/HelloWorldC++.cpp

Building target: HelloWorldC++
Invoking: GCC C++ Linker
g++ -o "HelloWorldC++" ./src/HelloWorldC++.o
Finished building target: HelloWorldC++


10:31:02 Build Finished (took 21s.158ms)

////////////////////////////////

eclipse.buildId=4.3.0.I20130605-2000
java.version=1.6.0_27
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_GB
Framework arguments: -product org.eclipse.epp.package.standard.product
Command-line arguments: -os linux -ws gtk -arch x86_64 -product
org.eclipse.epp.package.standard.product -data
/home/jkr/HAN/Workspaces/CAR-2013-9/ESAD

Info
Sun Sep 01 10:43:08 CEST 2013
Indexed 'HelloWorldC++' (1 sources, 134 headers) in 2.54 sec: 11,029
declarations; 17,988 references; 0 unresolved inclusions; 2 syntax
errors; 2 unresolved names (0.01%)


Cheers,

Joost
Re: Kepler: C++ "hello world" build takes a long time [message #1099899 is a reply to message #1099185] Mon, 02 September 2013 11:09 Go to previous messageGo to next message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
Quote:
distcc[8462] (dcc_parse_hosts) Warning: /home/jkr/.distcc/zeroconf/hosts
contained no hosts; can't distribute work
distcc[8462] (dcc_zeroconf_add_hosts) CRITICAL! failed to parse host file.

distcc[8462] (dcc_build_somewhere) Warning: failed to distribute,

Is this the cause of the delay?


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Re: Kepler: C++ "hello world" build takes a long time [message #1100088 is a reply to message #1099899] Mon, 02 September 2013 16:51 Go to previous message
Joost Kraaijeveld is currently offline Joost KraaijeveldFriend
Messages: 273
Registered: July 2009
Senior Member
On 02-09-13 13:09, Axel Mueller wrote:
> Quote:
>> distcc[8462] (dcc_parse_hosts) Warning:
>> /home/jkr/.distcc/zeroconf/hosts contained no hosts; can't distribute
>> work
>> distcc[8462] (dcc_zeroconf_add_hosts) CRITICAL! failed to parse host
>> file.
>>
>> distcc[8462] (dcc_build_somewhere) Warning: failed to distribute,
>
> Is this the cause of the delay?
No, it is not. It happens also when not using distcc. The delay is
after "Finished building target: HelloWorldC++ " appeared.

Joost


Cheers,

Joost
Previous Topic:Eclipse RCP 4.2 to 4.3
Next Topic:Debug startup tab for STM32
Goto Forum:
  


Current Time: Thu Apr 25 17:08:00 GMT 2024

Powered by FUDForum. Page generated in 0.02736 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top