<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">This is something interesting, since it is the compiler that is failing with segmentation fault.  There is a small chance that your system does not have enough (virtual) memory to finalize the compilation, but I wouldn't be so sure about it.<div><br></div><div>I can recommend to install clang compiler and try to compile the code with it:</div><div><br></div><div>CXX=clang++ ./waf configure <all other options that you originally specified></div><div>./waf </div><div><br></div><div>--</div><div>Alex<br><div><br></div><div>Btw, are you using Ubuntu? If yes, then which version?</div><div><br></div><div><br><div><div>On Jun 12, 2013, at 7:57 PM, 陈胜蓝 <<a href="mailto:blindeafer@163.com">blindeafer@163.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="line-height: 1.7; font-size: 14px; font-family: arial; ">Hi All,<div>When I build in file "ndnSIM-ddos-interest-flooding<span style="line-height: 1.7;">", it return an error:</span></div><div><span style="line-height: 1.7;"><div><br></div><div>g++: internal compiler error: Segmentation fault (program cc1plus)</div><div>Please submit a full bug report,</div><div>with preprocessed source if appropriate.</div><div>See <<a href="file:///usr/share/doc/gcc-4.6/README.Bugs">file:///usr/share/doc/gcc-4.6/README.Bugs</a>> for instructions.</div><div>Waf: Leaving directory `/home/lam/ndnSIM/ndnSIM-Stats/build'</div><div>Build failed</div><div> -> task in 'interest-ddos-attack-and-mitigation-scenario' failed (exit status 4): </div><div><span class="Apple-tab-span" style="white-space:pre"> </span>{task 160146316: cxx interest-ddos-attack-and-mitigation-scenario.cc -> interest-ddos-attack-and-mitigation-scenario.cc.2.o}</div><div>['/usr/bin/g++', '-O3', '-g', '-std=c++0x', '-pthread', '-pthread', '-pth!
 read', '-
 pthread', '-pthread', '-pthread', '-pthread', '-I/home/lam/ndnSIM/ndnSIM-Stats/build/extensions', '-I/home/lam/ndnSIM/ndnSIM-Stats/extensions', '-I/usr/local/include', '-I/usr/local/include/ns3-dev', '-I/usr/include/libxml2', '-DHAVE_NS3_NDNSIM=1', '-DHAVE_NS3_CORE=1', '-DHAVE_NS3_NETWORK=1', '-DHAVE_NS3_INTERNET=1', '-DHAVE_NS3_POINT_TO_POINT=1', '-DHAVE_NS3_TOPOLOGY_READ=1', '-DHAVE_NS3_APPLICATIONS=1', '-DHAVE_NS3_MOBILITY=1', '-DHAVE_NS3_VISUALIZER=1', '-DNS3_LOG_ENABLE=1', '-DNS3_ASSERT_ENABLE=1', '../scenarios/interest-ddos-attack-and-mitigation-scenario.cc', '-c', '-o', 'scenarios/interest-ddos-attack-and-mitigation-scenario.cc.2.o']</div><div><br></div><div>How can I resolve it?</div><div><br></div><div>Regards.</div></span></div></div></blockquote></div></div></div></body></html>