Problem while building NS-3 DCE mptcp with waf

138 views
Skip to first unread message

Mijanur Rahaman Palash

unread,
Sep 5, 2016, 12:11:43 AM9/5/16
to ns-3-users, matt...@gmail.com, Hajime Tazaki, Kang Chen
Hi,

I am trying to build mptcp simulation using hajime's guide. (https://plus.google.com/u/0/wm/4/+HajimeTazaki/posts/1QUmR3n3vNA). It is mptcp_v0.88.

When I try to run ./waf configure- i get following error:


lab123@engEE-E123-Dxx:~/mptcp903/mptcp/arch/sim/test/buildtop/source/ns-3-dce$ ./waf configure
Setting top to                           : /home/lab123/mptcp903/mptcp/arch/sim/test/buildtop/source/ns-3-dce
Setting out to                           : /home/lab123/mptcp903/mptcp/arch/sim/test/buildtop/source/ns-3-dce/build
Checking for 'gcc' (c compiler)          : /usr/bin/gcc
Checking for 'g++' (c++ compiler)        : /usr/bin/g++
Checking for program pkg-config          : /usr/bin/pkg-config
Checking for pkg-config version >= '0.0.0' : yes
Checking for -Wl,--soname=foo              : yes
Traceback (most recent call last):
  File "/home/lab123/mptcp903/mptcp/arch/sim/test/buildtop/source/ns-3-dce/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Scripting.py", line 97, in waf_entry_point
    run_commands()
  File "/home/lab123/mptcp903/mptcp/arch/sim/test/buildtop/source/ns-3-dce/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Scripting.py", line 151, in run_commands
    run_command(cmd_name)
  File "/home/lab123/mptcp903/mptcp/arch/sim/test/buildtop/source/ns-3-dce/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Scripting.py", line 143, in run_command
    ctx.execute()
  File "/home/lab123/mptcp903/mptcp/arch/sim/test/buildtop/source/ns-3-dce/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Configure.py", line 128, in execute
    super(ConfigurationContext,self).execute()
  File "/home/lab123/mptcp903/mptcp/arch/sim/test/buildtop/source/ns-3-dce/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Context.py", line 87, in execute
    self.recurse([os.path.dirname(g_module.root_path)])
  File "/home/lab123/mptcp903/mptcp/arch/sim/test/buildtop/source/ns-3-dce/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Context.py", line 128, in recurse
    user_function(self)
  File "/home/lab123/mptcp903/mptcp/arch/sim/test/buildtop/source/ns-3-dce/wscript", line 91, in configure
    ns3waf.check_modules(conf, ['core', 'network', 'internet'], mandatory = True)
  File "/home/lab123/mptcp903/mptcp/arch/sim/test/buildtop/source/ns-3-dce/ns3waf/__init__.py", line 273, in check_modules
    _check_dependencies(conf, modules, mandatory)
  File "/home/lab123/mptcp903/mptcp/arch/sim/test/buildtop/source/ns-3-dce/ns3waf/__init__.py", line 158, in _check_dependencies
    pcfiles = glob.glob(conf.env['NS3_DIR'] + '/lib*/pkgconfig/' + 'libns%s*-%s-%s*'
TypeError: can only concatenate list (not "str") to list


From a discussion in the group (https://groups.google.com/forum/#!topic/ns-3-users/K9FMMn01gwQ)- I assumed that this is problem for waf version 1.6, but as this hajime tutorial by deafault download this how can I solve this problem?

I know there is a newer version of this tutorial available in DCE manual 1.8, but I have problem regarding first two line. When I give following command (as given in manual) it showed error:

$   git clone mptcp_git_       (error: fatal: repository 'mptcp_git_' does not exist)


$ git checkout -b sim3.14 mptcp_v0.89  (fatal: git checkout: updating paths is incompatible with switching branches.)

I followed exactly as in manual- what is wrong here?


Please help,

Thank you
 



Matt Anonyme

unread,
Sep 5, 2016, 4:42:34 PM9/5/16
to ns-3-users, matt...@gmail.com, taz...@wide.ad.jp, kc...@siu.edu
I can't fix the doc right now but the command should be :
$ git clone https://github.com/direct-code-execution/ns-3-dce.git

Matt Anonyme

unread,
Sep 5, 2016, 4:43:39 PM9/5/16
to ns-3-users, matt...@gmail.com
also you forgot ./waf configure --with-ns3=PATHTONS3PREFIX

Mijanur Rahaman Palash

unread,
Sep 5, 2016, 4:48:52 PM9/5/16
to ns-3-...@googlegroups.com, Matt Anonyme
Hi Matt,

Thank you for replying. I tried with utils/mptcp-build.sh  file:


#!/bin/sh -ex
# See dce-user-kernel.rst for more information
# You should run this from the mptcp repository on tag 0.89
git remote add dce git://github.com/thehajime/net-next-sim.git || echo "ignore"
git fetch dce
git merge dce/sim-ns3-3.14.0-branch --no-commit
cat >> arch/sim/defconfig <<END
CONFIG_MPTCP=y
CONFIG_MPTCP_PM_ADVANCED=y
CONFIG_MPTCP_FULLMESH=y
CONFIG_MPTCP_NDIFFPORTS=y
CONFIG_DEFAULT_FULLMESH=y
CONFIG_DEFAULT_MPTCP_PM="fullmesh"
CONFIG_TCP_CONG_COUPLED=y
CONFIG_TCP_CONG_OLIA=y
END
make clean ARCH=sim
make defconfig ARCH=sim
make library ARCH=sim COV=yes
# this will download dce & run tests
# make testbin -C arch/sim/test


But it generates following error:


+ git merge dce/sim-ns3-3.14.0-branch --no-commit
+ cat
+ make clean ARCH=sim
make: *** /home/lab123/.config: Is a directory.  Stop.


Any idea?



Thank you.



Best Regards,
Mijanur R Palash
Graduate Student, ECE, SIUC
Illinois, USA


--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/pHTEHLBkmgA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+unsubscribe@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages