<div dir="ltr">Hi Spyros.<div><br></div><div>For some unknown reason, it did not help recreating the workspace from scratch. It is still crashing as below. Note: I have disabled the python during configure stage. </div><div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div>anjangam:ns-3 anjangam$ ./waf --run=ndn-simple</div></div><div><div>Waf: Entering directory `/Users/anjangam/workspace/ndnSIM/ns-3/build'</div></div><div><div>Waf: Leaving directory `/Users/anjangam/workspace/ndnSIM/ns-3/build'</div></div><div><div>Build commands will be stored in build/compile_commands.json</div></div><div><div>'build' finished successfully (3.004s)</div></div><div><div>Command ['/Users/anjangam/workspace/ndnSIM/ns-3/build/src/ndnSIM/examples/ns3-dev-ndn-simple-debug'] terminated with signal SIGSEGV. Run it under a debugger to get more information (./waf --run <program> --command-template="gdb --args %s <args>").</div></div><div><div>anjangam:ns-3 anjangam$ ./waf --run=ndn-simple --command-template="gdb %s"</div></div><div><div>Waf: Entering directory `/Users/anjangam/workspace/ndnSIM/ns-3/build'</div></div><div><div>Waf: Leaving directory `/Users/anjangam/workspace/ndnSIM/ns-3/build'</div></div><div><div>Build commands will be stored in build/compile_commands.json</div></div><div><div>'build' finished successfully (2.142s)</div></div><div><div>Traceback (most recent call last):</div></div><div><div>  File "/Users/anjangam/workspace/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Scripting.py", line 108, in waf_entry_point</div></div><div><div>    run_commands()</div></div><div><div>  File "/Users/anjangam/workspace/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Scripting.py", line 171, in run_commands</div></div><div><div>    run_command('shutdown')</div></div><div><div>  File "/Users/anjangam/workspace/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Scripting.py", line 160, in run_command</div></div><div><div>    ctx.execute()</div></div><div><div>  File "/Users/anjangam/workspace/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", line 92, in execute</div></div><div><div>    self.recurse([os.path.dirname(g_module.root_path)])</div></div><div><div>  File "/Users/anjangam/workspace/ndnSIM/ns-3/.waf-1.8.12-f00e5b53f6bbeab1384a38c9cc5d51f7/waflib/Context.py", line 133, in recurse</div></div><div><div>    user_function(self)</div></div><div><div>  File "/Users/anjangam/workspace/ndnSIM/ns-3/wscript", line 937, in shutdown</div></div><div><div>    visualize=Options.options.visualize)</div></div><div><div>  File "/Users/anjangam/workspace/ndnSIM/ns-3/wutils.py", line 215, in run_program</div></div><div><div>    return run_argv(execvec, env, cwd=cwd)</div></div><div><div>  File "/Users/anjangam/workspace/ndnSIM/ns-3/wutils.py", line 132, in run_argv</div></div><div><div>    retval = subprocess.Popen(argv, env=proc_env, cwd=cwd).wait()</div></div><div><div>  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 390, in __init__</div></div><div><div>    errread, errwrite)</div></div><div><div>  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1024, in _execute_child</div></div><div><div>    raise child_exception</div></div><div><div>OSError: [Errno 2] No such file or directory</div></div><div><div>anjangam:ns-3 anjangam$ </div></div></blockquote><div><br></div><div>Another minor issue is that I am seeing quite a few warnings while compiling. </div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>In file included from /opt/local/include/boost/asio/basic_socket.hpp:20:</div></div><div><div>In file included from /opt/local/include/boost/asio/basic_io_object.hpp:19:</div></div><div><div>In file included from /opt/local/include/boost/asio/io_service.hpp:767:</div></div><div><div>/opt/local/include/boost/asio/impl/io_service.hpp:85:67: warning: unused typedef 'type_check' [-Wunused-local-typedef]</div></div><div><div>  BOOST_ASIO_COMPLETION_HANDLER_CHECK(CompletionHandler, handler) type_check;</div></div><div><div>                                                                  ^</div></div><div><div>/opt/local/include/boost/asio/impl/io_service.hpp:102:67: warning: unused typedef 'type_check' [-Wunused-local-typedef]</div></div><div><div>  BOOST_ASIO_COMPLETION_HANDLER_CHECK(CompletionHandler, handler) type_check;</div></div><div><div>                                                                  ^</div></div><div><div>In file included from ../src/ndnSIM/NFD/daemon/table/cs-entry-impl.cpp:26:</div></div><div><div>In file included from ../src/ndnSIM/NFD/daemon/table/cs-entry-impl.hpp:29:</div></div><div><div>In file included from ../src/ndnSIM/NFD/daemon/table/cs-entry.hpp:29:</div></div><div><div>In file included from ns3/ndnSIM/NFD/core/common.hpp:65:</div></div><div><div>In file included from ns3/ndnSIM/ndn-cxx/util/face-uri.hpp:32:</div></div><div><div>In file included from /opt/local/include/boost/asio/ip/udp.hpp:19:</div></div><div><div>In file included from /opt/local/include/boost/asio/basic_datagram_socket.hpp:20:</div></div><div><div>/opt/local/include/boost/asio/basic_socket.hpp:755:63: warning: unused typedef 'type_check' [-Wunused-local-typedef]</div></div><div><div>    BOOST_ASIO_CONNECT_HANDLER_CHECK(ConnectHandler, handler) type_check;</div></div><div><div>                                                              ^</div></div><div><div>In file included from ../src/ndnSIM/NFD/daemon/table/cs-entry-impl.cpp:26:</div></div><div><div>In file included from ../src/ndnSIM/NFD/daemon/table/cs-entry-impl.hpp:29:</div></div><div><div>In file included from ../src/ndnSIM/NFD/daemon/table/cs-entry.hpp:29:</div></div><div><div>In file included from ns3/ndnSIM/NFD/core/common.hpp:65:</div></div><div><div>In file included from ns3/ndnSIM/ndn-cxx/util/face-uri.hpp:32:</div></div><div><div>In file included from /opt/local/include/boost/asio/ip/udp.hpp:19:</div></div><div><div>/opt/local/include/boost/asio/basic_datagram_socket.hpp:344:59: warning: unused typedef 'type_check' [-Wunused-local-typedef]</div></div><div><div>    BOOST_ASIO_WRITE_HANDLER_CHECK(WriteHandler, handler) type_check;</div></div><div><div>                                                          ^</div></div><div><div>/opt/local/include/boost/asio/basic_datagram_socket.hpp:387:59: warning: unused typedef 'type_check' [-Wunused-local-typedef]</div></div><div><div>    BOOST_ASIO_WRITE_HANDLER_CHECK(WriteHandler, handler) type_check;</div></div><div><div>                                                          ^</div></div><div><div>/opt/local/include/boost/asio/basic_datagram_socket.hpp:527:59: warning: unused typedef 'type_check' [-Wunused-local-typedef]</div></div><div><div>    BOOST_ASIO_WRITE_HANDLER_CHECK(WriteHandler, handler) type_check;</div><div><br></div></div></blockquote>/anil.<div>                                                          <br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 4, 2017 at 7:34 PM, Spyridon (Spyros) Mastorakis <span dir="ltr"><<a href="mailto:mastorakis@cs.ucla.edu" target="_blank">mastorakis@cs.ucla.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi Anil,<div><br></div><div>that has happened to me too and it seems to be related to waf. I am not sure why it fails, but the solution that worked for me was to do a fresh clone of the repo from github and recompile.</div><div><br></div><div>Thanks,</div><div><br><div>
<div><div><div><span style="float:none;display:inline!important">Spyridon (Spyros) Mastorakis</span><br><span style="float:none;display:inline!important">Personal Website: </span><a href="http://cs.ucla.edu/~mastorakis/" target="_blank">http://cs.ucla.edu/~<wbr>mastorakis/</a><br><span style="float:none;display:inline!important">Internet Research Laboratory</span><br><span style="float:none;display:inline!important">Computer Science Department</span><br><span style="float:none;display:inline!important">UCLA</span></div><div><br></div></div></div></div><div><div class="h5"><div><blockquote type="cite"><div>On May 4, 2017, at 10:46 AM, Anil Jangam <<a href="mailto:anilj.mailing@gmail.com" target="_blank">anilj.mailing@gmail.com</a>> wrote:</div><br class="m_-5816640075207731196Apple-interchange-newline"><div><div dir="ltr"><br><div>Hi Alex,</div><div><br></div><div>Using macOS with MacPorts, I was able to compile ndnSIM on Mac OSX (El Captain) 10.11.6; however, it crashes while running an example. Below is the stack trace. </div><div><br></div><div>I ran the confogure stage with and without python (i.e. <span style="font-size:14.6667px">./waf configure --disable-python --enable-examples and using macport specific python version). Can you point out to specific reason why its failing?</span></div><div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div>anjangam:ns-3 anjangam$ </div></div><div><div>anjangam:ns-3 anjangam$ ./waf --run=ndn-simple --command-template="gdb %s"</div></div><div><div>Waf: Entering directory `/Users/anjangam/workspace/ndn<wbr>SIM/ns-3/build'</div></div><div><div>Waf: Leaving directory `/Users/anjangam/workspace/ndn<wbr>SIM/ns-3/build'</div></div><div><div>Build commands will be stored in build/compile_commands.json</div></div><div><div>'build' finished successfully (2.293s)</div></div><div><div>Traceback (most recent call last):</div></div><div><div>  File "/Users/anjangam/workspace/ndn<wbr>SIM/ns-3/.waf-1.8.12-f00e5b53f<wbr>6bbeab1384a38c9cc5d51f7/waflib<wbr>/Scripting.py", line 108, in waf_entry_point</div></div><div><div>    run_commands()</div></div><div><div>  File "/Users/anjangam/workspace/ndn<wbr>SIM/ns-3/.waf-1.8.12-f00e5b53f<wbr>6bbeab1384a38c9cc5d51f7/waflib<wbr>/Scripting.py", line 171, in run_commands</div></div><div><div>    run_command('shutdown')</div></div><div><div>  File "/Users/anjangam/workspace/ndn<wbr>SIM/ns-3/.waf-1.8.12-f00e5b53f<wbr>6bbeab1384a38c9cc5d51f7/waflib<wbr>/Scripting.py", line 160, in run_command</div></div><div><div>    ctx.execute()</div></div><div><div>  File "/Users/anjangam/workspace/ndn<wbr>SIM/ns-3/.waf-1.8.12-f00e5b53f<wbr>6bbeab1384a38c9cc5d51f7/waflib<wbr>/Context.py", line 92, in execute</div></div><div><div>    self.recurse([os.path.dirname(<wbr>g_module.root_path)])</div></div><div><div>  File "/Users/anjangam/workspace/ndn<wbr>SIM/ns-3/.waf-1.8.12-f00e5b53f<wbr>6bbeab1384a38c9cc5d51f7/waflib<wbr>/Context.py", line 133, in recurse</div></div><div><div>    user_function(self)</div></div><div><div>  File "/Users/anjangam/workspace/ndn<wbr>SIM/ns-3/wscript", line 937, in shutdown</div></div><div><div>    visualize=Options.options.visu<wbr>alize)</div></div><div><div>  File "/Users/anjangam/workspace/ndn<wbr>SIM/ns-3/wutils.py", line 215, in run_program</div></div><div><div>    return run_argv(execvec, env, cwd=cwd)</div></div><div><div>  File "/Users/anjangam/workspace/ndn<wbr>SIM/ns-3/wutils.py", line 132, in run_argv</div></div><div><div>    retval = subprocess.Popen(argv, env=proc_env, cwd=cwd).wait()</div></div><div><div>  File "/System/Library/Frameworks/Py<wbr>thon.framework/Versions/2.7/li<wbr>b/python2.7/subprocess.py", line 710, in __init__</div></div><div><div>    errread, errwrite)</div></div><div><div>  File "/System/Library/Frameworks/Py<wbr>thon.framework/Versions/2.7/li<wbr>b/python2.7/subprocess.py", line 1335, in _execute_child</div></div><div><div>    raise child_exception</div></div><div><div>OSError: [Errno 2] No such file or directory</div></div></blockquote><div><br></div><div><br></div><div>/anil.</div><div><br></div></div>
</div></blockquote></div><br></div></div></div></div></blockquote></div><br></div>