Open realanda opened 4 years ago
you should enable MPI in your ns3-installation most likely (e.g., add it to the list of modules to compile, see ns-3 doc).
Are you saying to build dce using waf? I tried to modify bakeconf.xml to add the --enable-mpi
flag at appropriate places, but it still doesn't enable mpi.
Note that my use case doesn't require mpi.
@realanda I have the same problem.
I am saying you should build ns3 with mpi support since DCE cna't find the library (or build DCE without the library). Double check that the library is present and that it''s not a PKG_CONFIG issue. I don't use bake (and can't use it on my distrib either) and I am not sure how up to date it is. btw I can't find the dce commit 40c877996e416e271251061d881113a80548b04e
Hi, I'm still struggling with this issue. I was unable to set up MPI via bake, but then I tried manually with the -enable-mpi
flag and I still got the same error. I am currently trying to dig into bake and see why libns3-dev-mpi-debug
is not being generated.
Hi. This is probably not the best way to do it (i.e. disable MPI in DCE), but it is easy to do it. Just remove the directory myscripts/dce-mpi-udp from the DCE distribution. Or rename it to mysqcripts/.dce-mpi-udp - it works just the same. And then I was able to build the DCE using waf (although initially I used "bake" for downloading everything and building everything, but it got stuck in building DCE because of the MPI error you mention above). The waf configure command I used is the one used by bake, namely: ./waf configure --prefix=/home/forest/Projects/ns-3-dce/python3-virtualenv-ns-3-dce/bake/build --with-ns3=/home/forest/Projects/ns-3-dce/python3-virtualenv-ns-3-dce/bake/build --enable-kernel-stack=/home/forest/Projects/ns-3-dce/python3-virtualenv-ns-3-dce/bake/source/ns-3-dce/../net-next-nuse-4.4.0/arch
After fixing the MPI error, I still had to add this where "cmpfunc" is defined in bindings/python/ns3_module_dce.cpp in order to avoid the compilation error "error: invalid conversion from ‘cmpfunc {aka void}’ to ‘PyAsyncMethods’ [-fpermissive]":
typedef PyAsyncMethods* cmpfunc;
typedef void* cmpfunc;
I have approximately the same OS/library configuration as yours: Ubuntu 16.04.2 LTS, python3.5, gcc/g++ 5.4.0, used ns-3-dev, ns-3-dce.
ns3 version (cat $NS3FOLDER/VERSION or the commit hash):
DCE version (git log|head -n1):
commit 40c877996e416e271251061d881113a80548b04e
Operating system/version (lsb_release -a):
Libc version (ldd -v):
ldd (Ubuntu GLIBC 2.23-0ubuntu11) 2.23
compiler version (gcc -v/g++ -v/clang -v/clang++ -v):
git clone https://gitlab.com/nsnam/bake.git cd bake export PATH=$PATH:
pwd
/build/bin:pwd
/build/bin_dce export PYTHONPATH=$PYTHONPATH:pwd
/build/lib export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:pwd
/build/lib python3 bake.py configure -e dce-linux-dev python3 bake.py check python3 bake.py show python3 bake.py download python3 bake.py build -vvvroot@potato:/home/realanda/dcei/bake# grep -nr libns3-dev-mpi-debug . ./build_log.txt:7443:Checking for libns3-dev-mpi-debug (optional) : not found ./build_log.txt:7464:Checking for libns3-dev-mpi-debug (mandatory) : not found ./source/ns-3-dce/build/config.log:607:Checking for libns3-dev-mpi-debug (optional) ./source/ns-3-dce/build/config.log:608:['/usr/bin/pkg-config', '--cflags', '--libs', 'libns3-dev-mpi-debug'] ./source/ns-3-dce/build/config.log:609:err: Package libns3-dev-mpi-debug was not found in the pkg-config search path. ./source/ns-3-dce/build/config.log:610:Perhaps you should add the directory containing
libns3-dev-mpi-debug.pc' ./source/ns-3-dce/build/config.log:612:No package 'libns3-dev-mpi-debug' found ./source/ns-3-dce/build/config.log:1416:Checking for libns3-dev-mpi-debug (mandatory) ./source/ns-3-dce/build/config.log:1417:['/usr/bin/pkg-config', '--cflags', '--libs', 'libns3-dev-mpi-debug'] ./source/ns-3-dce/build/config.log:1418:err: Package libns3-dev-mpi-debug was not found in the pkg-config search path. ./source/ns-3-dce/build/config.log:1419:Perhaps you should add the directory containing
libns3-dev-mpi-debug.pc' ./source/ns-3-dce/build/config.log:1421:No package 'libns3-dev-mpi-debug' found