DCE Linux Building Error

143 views
Skip to first unread message

Kun Win

unread,
Mar 24, 2022, 9:24:46 AM3/24/22
to ns-3-users
To replicate this error:

git clone https://gitlab.com/nsnam/bake.git

cd bake

export PATH=$PATH:pwd/build/bin:pwd/build/bin_dce

export PYTHONPATH=pwd/build/lib${PYTHONPATH:+:$PYTHONPATH}

export LD_LIBRARY_PATH=pwd/build/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}

export DCE_PATH=pwd/build/bin_dce:pwd/build/sbin

./bake.py configure -e dce-linux-dev

./bake.py download

./bake.py build -vvv

This error seems to originate from github security.Screenshot from 2022-03-24 14-20-06.png

Kun Win

unread,
Mar 24, 2022, 9:36:40 AM3/24/22
to ns-3-users
Solution: In file /bake/source/net-next-nuse-4.4.0/arch/lib/Makefile

Replace word "git" with "https".

From: LIBOS_GIT_REPO=git://github.com/libos-nuse/linux-libos-tools

Tom Henderson

unread,
Mar 24, 2022, 5:48:45 PM3/24/22
to ns-3-...@googlegroups.com
On 3/24/22 06:36, Kun Win wrote:
> Solution: In file /bake/source/net-next-nuse-4.4.0/arch/lib/Makefile
>
> Replace word "git" with "https".
>
> From: LIBOS_GIT_REPO=git://github.com/libos-nuse/linux-libos-tools
> To: LIBOS_GIT_REPO=https://github.com/libos-nuse/linux-libos-tools

This has been fixed upstream already, so should not be a problem going
forward:

https://github.com/libos-nuse/net-next-nuse/commit/dba16ad4d1a316ef4865c1b4e1030df8a9cda504

- Tom

tesla pop

unread,
Jun 21, 2023, 9:55:31 AM6/21/23
to ns-3-users
Hello i am trying to build dce using these exact steps and I am getting one error
I have changed the bakeconf.xml file and updated the line to
The download completes successfully.
when i run this command ./bake.py build -vvv
ns-3-dev completes successfully however during build of dce-linux-dev

it gives me this error

In file included from ../model/linux/linux-dccp6-socket-factory.cc:20:
../model/linux/linux-dccp6-socket-factory.h:23:10: fatal error: ns3/socket-factory.h: No such file or directory
23 | #include "ns3/socket-factory.h"
| ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

../model/dce-poll.cc:1:10: fatal error: ns3/log.h: No such file or directory
1 | #include "ns3/log.h"
| ^~~~~~~~~~~
compilation terminated.

../model/dce-pwd.cc:2:10: fatal error: ns3/log.h: No such file or directory
2 | #include "ns3/log.h"
| ^~~~~~~~~~~
compilation terminated.

../model/cmsg.cc:2:10: fatal error: ns3/log.h: No such file or directory
2 | #include "ns3/log.h"
| ^~~~~~~~~~~
compilation terminated.

../model/wait-queue.cc:22:10: fatal error: ns3/log.h: No such file or directory
22 | #include "ns3/log.h"
| ^~~~~~~~~~~
compilation terminated.

../model/file-usage.cc:22:10: fatal error: ns3/log.h: No such file or directory
22 | #include "ns3/log.h"
| ^~~~~~~~~~~
compilation terminated.

In file included from ../model/dce-dl.cc:21:
../model/loader-factory.h:4:10: fatal error: ns3/object.h: No such file or directory
4 | #include "ns3/object.h"
| ^~~~~~~~~~~~~~
compilation terminated.

../model/dce-syslog.cc:4:10: fatal error: ns3/log.h: No such file or directory
4 | #include <ns3/log.h>
| ^~~~~~~~~~~
compilation terminated.

In file included from ../model/dce-manager.cc:20:
../model/dce-manager.h:26:10: fatal error: ns3/object.h: No such file or directory
26 | #include "ns3/object.h"
| ^~~~~~~~~~~~~~
compilation terminated.

In file included from ../model/unix-fd.cc:1:
../model/unix-fd.h:7:10: fatal error: ns3/object.h: No such file or directory
7 | #include "ns3/object.h"
| ^~~~~~~~~~~~~~
compilation terminated.

In file included from ../model/dce-pthread.cc:4:
../model/dce-manager.h:26:10: fatal error: ns3/object.h: No such file or directory
26 | #include "ns3/object.h"
| ^~~~~~~~~~~~~~
compilation terminated.

In file included from ../model/pipe-fd.h:24,
from ../model/pipe-fd.cc:21:
../model/unix-fd.h:7:10: fatal error: ns3/object.h: No such file or directory
7 | #include "ns3/object.h"
| ^~~~~~~~~~~~~~
compilation terminated.

../model/ipv4-dce-routing.cc:27:10: fatal error: ns3/log.h: No such file or directory
27 | #include "ns3/log.h"
| ^~~~~~~~~~~
compilation terminated.

In file included from ../model/dce-credentials.cc:3:
../model/utils.h:8:10: fatal error: ns3/nstime.h: No such file or directory
8 | #include "ns3/nstime.h"
| ^~~~~~~~~~~~~~
compilation terminated.

In file included from ../model/dce.cc:1:
../model/dce-manager.h:26:10: fatal error: ns3/object.h: No such file or directory
26 | #include "ns3/object.h"
| ^~~~~~~~~~~~~~
compilation terminated.

../model/linux/linux-socket-impl.cc:21:10: fatal error: ns3/log.h: No such file or directory
21 | #include "ns3/log.h"
| ^~~~~~~~~~~
compilation terminated.

In file included from ../model/dce-wait.cc:2:
../model/utils.h:8:10: fatal error: ns3/nstime.h: No such file or directory
8 | #include "ns3/nstime.h"
| ^~~~~~~~~~~~~~
compilation terminated.

In file included from ../model/dce-stat.cc:4:
../model/utils.h:8:10: fatal error: ns3/nstime.h: No such file or directory
8 | #include "ns3/nstime.h"
| ^~~~~~~~~~~~~~
compilation terminated.

In file included from ../model/dce-global-variables.cc:3:
../model/process.h:30:10: fatal error: ns3/callback.h: No such file or directory
30 | #include "ns3/callback.h"
| ^~~~~~~~~~~~~~~~
compilation terminated.

In file included from ../model/dce-stdio.cc:7:
../model/process.h:30:10: fatal error: ns3/callback.h: No such file or directory
30 | #include "ns3/callback.h"
| ^~~~~~~~~~~~~~~~
compilation terminated.

In file included from ../model/dce-fd.cc:2:
../model/dce-manager.h:26:10: fatal error: ns3/object.h: No such file or directory
26 | #include "ns3/object.h"
| ^~~~~~~~~~~~~~
compilation terminated.

In file included from ../model/utils.cc:1:
../model/utils.h:8:10: fatal error: ns3/nstime.h: No such file or directory
8 | #include "ns3/nstime.h"
| ^~~~~~~~~~~~~~
compilation terminated.

In file included from ../model/dce-node-context.cc:21:
../model/dce-node-context.h:25:10: fatal error: ns3/object.h: No such file or directory
25 | #include "ns3/object.h"
| ^~~~~~~~~~~~~~
compilation terminated.

In file included from ../model/dce-time.cc:2:
../model/dce-manager.h:26:10: fatal error: ns3/object.h: No such file or directory
26 | #include "ns3/object.h"
| ^~~~~~~~~~~~~~
compilation terminated.

In file included from ../model/dce-misc.cc:2:
../model/process.h:30:10: fatal error: ns3/callback.h: No such file or directory
30 | #include "ns3/callback.h"
| ^~~~~~~~~~~~~~~~
compilation terminated.

Waf: Leaving directory `/home/user/bake/source/ns-3-dce/build'
Build failed
-> task in './lib/ns3-dce' failed with exit status 1 (run with -v to display more information)
-> task in './lib/ns3-dce' failed with exit status 1 (run with -v to display more information)
-> task in './lib/ns3-dce' failed with exit status 1 (run with -v to display more information)
-> task in './lib/ns3-dce' failed with exit status 1 (run with -v to display more information)
-> task in './lib/ns3-dce' failed with exit status 1 (run with -v to display more information)
-> task in './lib/ns3-dce' failed with exit status 1 (run with -v to display more information)
-> task in './lib/ns3-dce' failed with exit status 1 (run with -v to display more information)
-> task in './lib/ns3-dce' failed with exit status 1 (run with -v to display more information)
-> task in './lib/ns3-dce' failed with exit status 1 (run with -v to display more information)
-> task in './lib/ns3-dce' failed with exit status 1 (run with -v to display more information)
-> task in './lib/ns3-dce' failed with exit status 1 (run with -v to display more information)
-> task in './lib/ns3-dce' failed with exit status 1 (run with -v to display more information)
-> task in './lib/ns3-dce' failed with exit status 1 (run with -v to display more information)
-> task in './lib/ns3-dce' failed with exit status 1 (run with -v to display more information)
-> task in './lib/ns3-dce' failed with exit status 1 (run with -v to display more information)
-> task in './lib/ns3-dce' failed with exit status 1 (run with -v to display more information)
-> task in './lib/ns3-dce' failed with exit status 1 (run with -v to display more information)
-> task in './lib/ns3-dce' failed with exit status 1 (run with -v to display more information)
-> task in './lib/ns3-dce' failed with exit status 1 (run with -v to display more information)
-> task in './lib/ns3-dce' failed with exit status 1 (run with -v to display more information)
-> task in './lib/ns3-dce' failed with exit status 1 (run with -v to display more information)
-> task in './lib/ns3-dce' failed with exit status 1 (run with -v to display more information)
-> task in './lib/ns3-dce' failed with exit status 1 (run with -v to display more information)
-> task in './lib/ns3-dce' failed with exit status 1 (run with -v to display more information)
-> task in './lib/ns3-dce' failed with exit status 1 (run with -v to display more information)

>> Building dce-linux-dev - Problem
> Subprocess failed with error 1: ['/usr/bin/python3', '/home/user/bake/source/ns-3-dce/waf']
> Error: Critical dependency, module "dce-linux-dev" failed
For more information call Bake with --debug and/or -v, -vvv, for full verbose mode (bake --help)


Can someone please point out if i am going wrong and how can i fix this issue

The system specs are ubuntu 20.04

I have also tried this on ubuntu 16.04
and i am getting this error during build....

>> Building dce-linux-dev -
/usr/bin/python /home/nik/dce/source/ns-3-dce/waf configure --prefix=/home/nik/dce/build --with-ns3=/home/nik/dce/build --with-elf-loader=/home/nik/dce/build/lib --with-libaspect=/home/nik/dce/build --enable-kernel-stack=/home/nik/dce/source/ns-3-dce/../net-next-nuse-4.4.0/arch dir=/home/nik/dce/source/ns-3-dce
Waf: The wscript in '/home/nik/dce/source/ns-3-dce' is unreadable
Traceback (most recent call last):
File "/home/nik/dce/source/ns-3-dce/.waf-2.0.21-c6c9a875365426e5928462b9b74d40b5/waflib/Scripting.py", line 102, in waf_entry_point
set_main_module(wscript)
File "/home/nik/dce/source/ns-3-dce/.waf-2.0.21-c6c9a875365426e5928462b9b74d40b5/waflib/Scripting.py", line 142, in set_main_module
Context.g_module=Context.load_module(file_path)
File "/home/nik/dce/source/ns-3-dce/.waf-2.0.21-c6c9a875365426e5928462b9b74d40b5/waflib/Context.py", line 362, in load_module
exec(compile(code,path,'exec'),module._dict_)
File "/home/nik/dce/source/ns-3-dce/wscript", line 5, in <module>
import ns3waf
File "/home/nik/dce/source/ns-3-dce/ns3waf/_init_.py", line 361
print(guard, file=outfile)
^
SyntaxError: invalid syntax
()
>> Building dce-linux-dev - Problem
> Subprocess failed with error 2: ['/usr/bin/python', '/home/nik/dce/source/ns-3-dce/waf', 'configure', '--prefix=/home/nik/dce/build', '--with-ns3=/home/nik/dce/build', '--with-elf-loader=/home/nik/dce/build/lib', '--with-libaspect=/home/nik/dce/build', '--enable-kernel-stack=/home/nik/dce/source/ns-3-dce/../net-next-nuse-4.4.0/arch']
> Error: Critical dependency, module "dce-linux-dev" failed
For more information call Bake with --debug and/or -v, -vvv, for full verbose mode (bake --help)


Please help me resolve this issue
any help would be appreciated

Tom Henderson

unread,
Jun 21, 2023, 10:12:38 AM6/21/23
to ns-3-...@googlegroups.com, tesla pop
DCE is not yet aligned with ns-3-dev. Since ns-3 changed to the CMake
build system in ns-3.36, the names of the installed ns-3 libraries have
changed, and DCE's waf will not pick them up, leading to the errors that
you are seeing. I hope to fix this sometime soon.
> https://github.com/libos-nuse/net-next-nuse/commit/dba16ad4d1a316ef4865c1b4e1030df8a9cda504 <https://github.com/libos-nuse/net-next-nuse/commit/dba16ad4d1a316ef4865c1b4e1030df8a9cda504>
>
> - Tom
>
> --
> Posting to this group should follow these guidelines
> https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
> <https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting>
> ---
> You received this message because you are subscribed to the Google
> Groups "ns-3-users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to ns-3-users+...@googlegroups.com
> <mailto:ns-3-users+...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ns-3-users/1a7089f8-4a5b-4435-84d2-ef0f2b164543n%40googlegroups.com <https://groups.google.com/d/msgid/ns-3-users/1a7089f8-4a5b-4435-84d2-ef0f2b164543n%40googlegroups.com?utm_medium=email&utm_source=footer>.

tesla pop

unread,
Jun 26, 2023, 11:54:20 AM6/26/23
to ns-3-users
Hello Tom,
Thanks for replying

I followed the steps mentioned in this issue in order to build ns3-dce and was successful in doing so in Ubuntu 20.04 .
while configuring i have used the
./bake.py configure -e dce-linux-1.12
as i wanted linux kernel support

However my main goal is to run the 'dce-example-mptcp-mmwave'
I found out that in order to integrate ns3-mmwave and dce-ns3 one needs to follow the given steps

1- Install ns3-DCE1.11

2- Apply patch file to kernel-socket-fd-factory.cc and kernel-socket-fd-factory.h

3- Modify wscript file in ns-3-dce folder. In configure function add ns3waf.check_modules(conf, ['mmwave'], mandatory = False) code.

4- Replace whole ns-3.35 folder to ns3-mmwave folder

5- And build again.

However I am not understanding where will i get the patch files also after modifying the wscript in ns-3-dce folder and replacing the ns-3.35
folder to the ns3-mmwave folder and building it gives this error

>> Building ns-3.35 - Problem
   >> Unavailable building tool for module ns-3.35, install waf
 > Error:  Critical dependency, module "ns-3.35" failed

Since I could not find any other source to understand how the integration of ns3-mmwave and dce-ns3 works Please can you guide me or give me links to resources that will
help me resolve this issue.
Thanks in advance.




tesla pop

unread,
Jun 27, 2023, 3:37:47 PM6/27/23
to ns-3-users
small update
I found the patch file for kernel-socket-fd-factory.cc and kernel-socket-fd-factory.h
I have tried to replace the whole ns3 folder with older versions of ns3-mmwave(including v4.0)
However the build fails with errors
Reply all
Reply to author
Forward
0 new messages