Bug 694

Summary: compilation of src/simulator/time.cc with gcc eats up to 1.4G of RAM
Product: ns-3 Reporter: Andrey Mazo <ahippo>
Component: coreAssignee: ns-bugs <ns-bugs>
Status: RESOLVED FIXED    
Severity: critical CC: ahippo, mathieu.lacage
Priority: P3    
Version: ns-3-dev   
Hardware: All   
OS: All   

Description Andrey Mazo 2009-09-29 14:12:02 UTC
Steps to reproduce:
1) hg up -r 1a805e0bf415
2) ./waf configure -d optimized --enable-static
3) ./waf build

Compilation of time.cc eats up to 1.4G of RAM and about 5 minutes with gcc-4.3.2 and gcc-4.4.1 (not tested on other compilers yet).
This makes the whole compilation of ns-3 nearly impossible on low-memory machines.

gcc-4.1.2 produces a bunch of warnings:
../src/simulator/time.cc: In member function 'virtual bool ns3::ConversionTestCase::DoRun()':
../src/simulator/time.cc:629: warning: passing 'double' for argument 1 to 'ns3::Time ns3::MilliSeconds(uint64_t)'
../src/simulator/time.cc:629: warning: passing 'double' for argument 1 to 'ns3::Time ns3::MicroSeconds(uint64_t)'
../src/simulator/time.cc:629: warning: passing 'double' for argument 1 to 'ns3::Time ns3::NanoSeconds(uint64_t)'
../src/simulator/time.cc:629: warning: passing 'double' for argument 1 to 'ns3::Time ns3::PicoSeconds(uint64_t)'
Comment 1 Andrey Mazo 2009-10-06 14:22:56 UTC
(In reply to comment #0)
> Compilation of time.cc eats up to 1.4G of RAM and about 5 minutes with
> gcc-4.3.2 and gcc-4.4.1 (not tested on other compilers yet).
> This makes the whole compilation of ns-3 nearly impossible on low-memory
> machines.
changeset d0b9a6e08e47 workarounds this problem.