How to build ns3-dce in ubuntu20.04 using Bake?

240 views
Skip to first unread message

Ruihua Chan

unread,
Jul 21, 2022, 11:32:50 AM7/21/22
to ns-3-users
Can I build ns3-dce in Ubuntu with bake now? 
Thank you.

Tom Henderson

unread,
Jul 22, 2022, 9:30:00 PM7/22/22
to ns-3-...@googlegroups.com, Ruihua Chan
On 7/21/22 08:32, Ruihua Chan wrote:
> Can I build ns3-dce in Ubuntu with bake now?
> Thank you.
>

Yes, I have some draft changes to bake on my repository that I am
testing for Ubuntu 20.04 support.

I tested it again today, made some small tweaks, and posted the recipe here:

https://github.com/direct-code-execution/ns-3-dce/issues/110#issuecomment-1193031182

This is for the forthcoming DCE-1.12 release for Ubuntu 20.04,
compatible with ns-3.35 (CMake and ns-3.36 not yet supported).

If you find any new issues, please let me know (either here or by
extending the discussion on the above tracker issue).

- Tom

Ruihua Chan

unread,
Jul 24, 2022, 12:31:35 AM7/24/22
to ns-3-users
Hi, Tom!
When I did  the "./bake.py build" , it comes out  "building dce-linux-1.12 problem " which I suppose is the error of the last step of the building,
so I tried to build it on my own in directory:  bake/source/ns-3-dce with  command :
"./waf configure --prefix= $HOME/dce/bake/build --with-ns3=$HOME/dce/bake/build  --with-glibc=$HOME/dce/bake/build/glibc --enable-kernel-stack=$HOME/dce/bake/source/ns-3-dce/../net-next-nuse-5.10.47/arch"
And it configured succesfully:
微信截图_20220724115253.png 

However, when I tried to do the "./waf build ", I got the following error:

微信截图_20220724115842.png

The some of the  error messages with "./waf build -vvv"  are: 

微信截图_20220724120153.png

And I have tried type in the command in runner to build this file on my own:
I entered the directory /bake/source/ns-3-dce/build, and I input the build command in "runner" shown above to build the dce-tuto1.cc :

微信截图_20220724122355.png

And it build successfully with dce-tuto1.cc.1.o came out in the directory  ns-3-dce/build/myscripts/tuto1 .
So I think my g++ just work fine, but I could not figure out why I got the error "/usr/bin/ld: cannot find libgcc_s.so.1 collect2: ld returned 1 exit status" in "./waf build" . 

Thanks.

- Chan
Message has been deleted

Ruihua Chan

unread,
Jul 24, 2022, 12:37:10 AM7/24/22
to ns-3-users
Also , I changed to use the net-next-nuse-5.10.47 provided by @ ParthPratim.

But I think it has no relation to the problem above.

Thanks.

-Chan

Tom Henderson

unread,
Jul 24, 2022, 11:15:02 AM7/24/22
to ns-3-...@googlegroups.com, Ruihua Chan
On 7/23/22 21:31, Ruihua Chan wrote:
> Hi, Tom!
> When I did  the "./bake.py build" , it comes out  "building
> dce-linux-1.12 problem " which I suppose is the error of the last step
> of the building,
> so I tried to build it on my own in directory:  bake/source/ns-3-dce
> with  command :

If you are missing these libraries:

$ ls /usr/lib*/libgcc_s*
/usr/lib32/libgcc_s.so.1 /usr/libx32/libgcc_s.so.1

Try again after you install the 'libc6-dev-i386' package from apt.

- Tom

Ruihua Chan

unread,
Jul 24, 2022, 11:32:56 AM7/24/22
to ns-3-users
Hi , Tom.
Here 's what I got :
微信截图_20220724233037.png

It seems that I did not miss those libraries.

Thanks.
- Chan

Tom Henderson

unread,
Jul 24, 2022, 12:03:33 PM7/24/22
to ns-3-...@googlegroups.com, Ruihua Chan
On 7/24/22 08:32, Ruihua Chan wrote:
Hi , Tom.
Here 's what I got :
微信截图_20220724233037.png

It seems that I did not miss those libraries.

Please make sure that you have packages 'libc6-dev' and 'libc6-dev-i386' installed, because your previous compilation errors are suggesting that they may not be.

Please make sure you are using my dce-1.12 branch of bake, at commit a4d97944, which I just updated a minute ago to include some things that got left out of the commit yesterday, so you will need to pull it again.

After you configure dce-linux-1.12, please check the output of './bake.py show' and see if there are important things missing.  On my server it reports that pygraphviz and qt are missing, but they are not relevant to DCE.

Please also avoid sending more screenshots and just paste the relevant text into your email or forum post.

- Tom

Reply all
Reply to author
Forward
0 new messages