Modules that cannot be built

71 views
Skip to first unread message

MD SHAKIRUL ISLAM

unread,
Apr 15, 2025, 3:39:43 AMApr 15
to ns-3-users
Modules that cannot be built: 
CMakeFiles 
 brite 
 click 
 mpi 
 openflow 
 sim-e2-interface 
 sim-ns3-o-ran-e2 
 visualizer                 

these are the module ns-3 is showing can't be build but i need the these two module for my project : 
 sim-e2-interface 
 sim-ns3-o-ran-e2 

is there any configuration i need to make the in code so that ns-3 can find or can install, other wise i will not be able to use onnos e2t to make connection NS-SD-RAN for my simulstion testbed. 

MD SHAKIRUL ISLAM

unread,
Apr 15, 2025, 3:56:53 AMApr 15
to ns-3-users
Project GOAL: This project is proposed to scale O-RAN UE's simulation facility and eradicate RANSIM limitations. Aim of the project is to integrate SD-RAN with ns-3 simulation modules instead of RANSIM. NS-3 provides variety of easy customizations and scaling. NS-SD-RAN is more computation friendly as compared to RANSIM.

I am trying to run this test bed for my research. And I installed the NS-3.41 version, then from this github repo 
https://github.com/hassamtahir/NS-SD-RAN/tree/main  there i have found i need to install two module to run the project into ns-3, because when i go to change the ip of scenario.zero ""Open scenario-zero-50ues.cc and replace e2t pod ip to attach with sd-ran:"" this part. I can't find the ip address and then realize i need to install onos e2t module. then i install them in Ns-3 and built seperately (first installed ns-3, then  sim-ns3-o-ran-e2 and then sim-e2-interface ) but after installing when i goes to integrate or configure with those new module the configure command shows this output: 

shakirul@shakirul-B80LV-AD47B6E:~/ns3/ns-3-allinone/ns-3.41$ ./ns3 configure --enable-examples --enable-tests
Warn about uninitialized values.
-- The CXX compiler identification is GNU 11.4.0
-- The C compiler identification is GNU 11.4.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Using default output directory /home/shakirul/ns3/ns-3-allinone/ns-3.41/build
-- Proceeding without cmake-format
-- Performing Test FILESYSTEM_LIBRARY_IS_LINKED
-- Performing Test FILESYSTEM_LIBRARY_IS_LINKED - Success
-- Found Git: /usr/bin/git (found version "2.34.1")
-- find_external_library: SQLite3 was found.
-- Found GTK3_GTK: /usr/lib/x86_64-linux-gnu/libgtk-3.so  
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake (found version "1.74.0")  
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2")
-- GSL was found.
-- Found Sphinx: /usr/bin/sphinx-build  
-- Performing Test HAVE_UINT128_T
-- Performing Test HAVE_UINT128_T - Failed
-- Performing Test HAVE___UINT128_T
-- Performing Test HAVE___UINT128_T - Success
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for inttypes.h
-- Looking for inttypes.h - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for sys/stat.h
-- Looking for sys/stat.h - found
-- Looking for dirent.h
-- Looking for dirent.h - found
-- Looking for stdlib.h
-- Looking for stdlib.h - found
-- Looking for signal.h
-- Looking for signal.h - found
-- Looking for netpacket/packet.h
-- Looking for netpacket/packet.h - found
-- Looking for getenv
-- Looking for getenv - found
-- Precompiled headers were enabled
-- Skipping contrib/sim-e2-interface : it does not contain a CMakeLists.txt file
-- Processing contrib/sim-ns3-o-ran-e2
-- find_external_library: e2sim was not found. Missing headers: "e2sim.hpp" and missing libraries: "e2sim".
-- dirs found:  
-- libraries found:  
-- Skipping src/CMakeFiles: it does not contain a CMakeLists.txt file
-- Processing src/antenna
-- Processing src/aodv
-- Processing src/applications
-- Processing src/bridge
-- Processing src/brite
-- Skipping src/brite
-- Processing src/buildings
-- Processing src/click
-- Skipping src/click
-- Processing src/config-store
-- Processing src/core
-- Looking for include files boost/units/quantity.hpp, boost/units/systems/si.hpp
-- Looking for include files boost/units/quantity.hpp, boost/units/systems/si.hpp - found
-- Boost Units have been found.
-- Processing src/csma
-- Processing src/csma-layout
-- Processing src/dsdv
-- Processing src/dsr
-- Processing src/energy
-- Processing src/fd-net-device
-- Looking for net/ethernet.h
-- Looking for net/ethernet.h - found
-- Looking for netpacket/packet.h
-- Looking for netpacket/packet.h - found
-- Looking for net/if.h
-- Looking for net/if.h - found
-- Looking for linux/if_tun.h
-- Looking for linux/if_tun.h - found
-- Looking for net/netmap_user.h
-- Looking for net/netmap_user.h - not found
-- Looking for sys/ioctl.h
-- Looking for sys/ioctl.h - found
-- Checking for module 'libdpdk'
--   No package 'libdpdk' found
-- Processing src/flow-monitor
-- Processing src/internet
-- Processing src/internet-apps
-- Processing src/lr-wpan
-- Processing src/lte
-- Processing src/mesh
-- Processing src/mobility
-- Processing src/netanim
-- Processing src/network
-- Processing src/nix-vector-routing
-- Processing src/olsr
-- Processing src/openflow
-- Skipping src/openflow
-- Skipping src/oran-interface: it does not contain a CMakeLists.txt file
-- Processing src/point-to-point
-- Processing src/point-to-point-layout
-- Processing src/propagation
-- Processing src/sixlowpan
-- Processing src/spectrum
-- Processing src/stats
-- Processing src/tap-bridge
-- Processing src/test
-- Processing src/topology-read
-- Processing src/traffic-control
-- Processing src/uan
-- Processing src/virtual-net-device
-- Processing src/wifi
-- Processing src/wimax
-- ---- Summary of ns-3 settings:
Build profile                 : default
Build directory               : /home/shakirul/ns3/ns-3-allinone/ns-3.41/build
Build with runtime asserts    : ON
Build with runtime logging    : ON
Build version embedding       : OFF (not requested)
BRITE Integration             : OFF (Missing headers: "Brite.h" and missing libraries: "brite")
DES Metrics event collection  : OFF (not requested)
DPDK NetDevice                : OFF (not requested)
Emulation FdNetDevice         : ON
Examples                      : ON
File descriptor NetDevice     : ON
GNU Scientific Library (GSL)  : ON
GtkConfigStore                : ON
LibXml2 support               : ON
MPI Support                   : OFF (not requested)
ns-3 Click Integration        : OFF (Missing headers: "simclick.h" and missing libraries: "nsclick click")
ns-3 OpenFlow Integration     : OFF (Missing headers: "openflow.h" and missing libraries: "openflow")
Netmap emulation FdNetDevice  : OFF (missing dependency)
PyViz visualizer              : OFF (Python Bindings are disabled)
Python Bindings               : OFF (not requested)
SQLite support                : ON
Eigen3 support                : ON
Tap Bridge                    : ON
Tap FdNetDevice               : ON
Tests                         : ON


Modules configured to be built:
antenna                   aodv                      applications              
bridge                    buildings                 config-store              
core                      csma                      csma-layout              
dsdv                      dsr                       energy                    
fd-net-device             flow-monitor              internet                  
internet-apps             lr-wpan                   lte                      
mesh                      mobility                  netanim                  
network                   nix-vector-routing        olsr                      
oran-interface            point-to-point            point-to-point-layout    
propagation               sixlowpan                 spectrum                  
stats                     tap-bridge                test                      
topology-read             traffic-control           uan                      
virtual-net-device        wifi                      wimax                    


Modules that cannot be built:
CMakeFiles                brite                     click                    
mpi                       openflow                  sim-e2-interface          
sim-ns3-o-ran-e2          visualizer                


-- Configuring done
-- Generating done
-- Build files have been written to: /home/shakirul/ns3/ns-3-allinone/ns-3.41/cmake-cache
Finished executing the following commands:
mkdir cmake-cache
/usr/bin/cmake -S /home/shakirul/ns3/ns-3-allinone/ns-3.41 -B /home/shakirul/ns3/ns-3-allinone/ns-3.41/cmake-cache -DCMAKE_BUILD_TYPE=default -DNS3_ASSERT=ON -DNS3_LOG=ON -DNS3_WARNINGS_AS_ERRORS=OFF -DNS3_NATIVE_OPTIMIZATIONS=OFF -DNS3_EXAMPLES=ON -DNS3_TESTS=ON -G Ninja --warn-uninitialized

Gabriel Ferreira

unread,
Apr 15, 2025, 4:03:14 AMApr 15
to ns-3-users
-- Skipping contrib/sim-e2-interface : it does not contain a CMakeLists.txt file
-- Processing contrib/sim-ns3-o-ran-e2
-- find_external_library: e2sim was not found. Missing headers: "e2sim.hpp" and missing libraries: "e2sim".

a.k.a. sim-e2-interface is not a ns-3 module, but the project that builds e2sim library, consumed by sim-ns3-o-ran-e2, which is not enabled because e2sim is missing.

MD SHAKIRUL ISLAM

unread,
Apr 15, 2025, 4:20:46 AMApr 15
to ns-3-users
e2sim was in other folder, now i make the directory like this 
Screenshot from 2025-04-15 17-20-15.png

MD SHAKIRUL ISLAM

unread,
Apr 15, 2025, 5:03:49 AMApr 15
to ns-3-users
shakirul@shakirul-B80LV-AD47B6E:~/ns3/ns-3-allinone/ns-3.41$ ls /usr/local/include/e2sim/e2sim.hpp
ls /usr/local/lib/libe2sim.so
/usr/local/include/e2sim/e2sim.hpp
/usr/local/lib/libe2sim.so
shakirul@shakirul-B80LV-AD47B6E:~/ns3/ns-3-allinone/ns-3.41$ cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DNS3_ASSERT=ON -DNS3_LOG=ON

-- Using default output directory /home/shakirul/ns3/ns-3-allinone/ns-3.41/build
-- Proceeding without cmake-format
-- find_external_library: SQLite3 was found.
-- GSL was found.

-- Precompiled headers were enabled
-- Processing contrib/e2sim
-- LOG_LEVEL:
-- Gonna set default log level
+++ pkg name: e2sim_1.0.0_amd64.deb
### make package will generate only deb package; cannot find support to generate rpm packages
+++ profiling is off
-- Processing contrib/sim-ns3-o-ran-e2
-- find_external_library: e2sim was found.
-- dirs found:  /usr/local/include/e2sim;/usr/local/include
-- libraries found:  /usr/local/lib/libe2sim.so

-- Skipping src/CMakeFiles: it does not contain a CMakeLists.txt file
-- Processing src/antenna
-- Processing src/aodv
-- Processing src/applications
-- Processing src/bridge
-- Processing src/brite
-- Skipping src/brite
-- Processing src/buildings
-- Processing src/click
-- Skipping src/click
-- Processing src/config-store
-- Processing src/core
-- Boost Units have been found.
-- Processing src/csma
-- Processing src/csma-layout
-- Processing src/dsdv
-- Processing src/dsr
-- Processing src/energy
-- Processing src/fd-net-device
-- Checking for module 'libdpdk'
--   No package 'libdpdk' found
-- Processing src/flow-monitor
-- Processing src/internet
-- Processing src/internet-apps
-- Processing src/lr-wpan
-- Processing src/lte
-- Processing src/mesh
-- Processing src/mobility
-- Processing src/netanim
-- Processing src/network
-- Processing src/nix-vector-routing
-- Processing src/olsr
-- Processing src/openflow
-- Skipping src/openflow
-- Skipping src/oran-interface: it does not contain a CMakeLists.txt file
-- Processing src/point-to-point
-- Processing src/point-to-point-layout
-- Processing src/propagation
-- Processing src/sixlowpan
-- Processing src/spectrum
-- Processing src/stats
-- Processing src/tap-bridge
-- Processing src/topology-read
-- Processing src/traffic-control
-- Processing src/uan
-- Processing src/virtual-net-device
-- Processing src/wifi
-- Processing src/wimax
-- ---- Summary of ns-3 settings:
Build profile                 : release

Build directory               : /home/shakirul/ns3/ns-3-allinone/ns-3.41/build
Build with runtime asserts    : ON
Build with runtime logging    : ON
Build version embedding       : OFF (not requested)
BRITE Integration             : OFF (Missing headers: "Brite.h" and missing libraries: "brite")
DES Metrics event collection  : OFF (not requested)
DPDK NetDevice                : OFF (not requested)
Emulation FdNetDevice         : ON
Examples                      : OFF (not requested)

File descriptor NetDevice     : ON
GNU Scientific Library (GSL)  : ON
GtkConfigStore                : ON
LibXml2 support               : ON
MPI Support                   : OFF (not requested)
ns-3 Click Integration        : OFF (Missing headers: "simclick.h" and missing libraries: "nsclickclick")

ns-3 OpenFlow Integration     : OFF (Missing headers: "openflow.h" and missing libraries: "openflow")
Netmap emulation FdNetDevice  : OFF (missing dependency)
PyViz visualizer              : OFF (Python Bindings are disabled)
Python Bindings               : OFF (not requested)
SQLite support                : ON
Eigen3 support                : ON
Tap Bridge                    : ON
Tap FdNetDevice               : ON
Tests                         : OFF (not requested)



Modules configured to be built:
antenna                   aodv                      applications              
bridge                    buildings                 config-store              
core                      csma                      csma-layout              
dsdv                      dsr                       energy                    
fd-net-device             flow-monitor              internet                  
internet-apps             lr-wpan                   lte                      
mesh                      mobility                  netanim                  
network                   nix-vector-routing        olsr                      
oran-interface            point-to-point            point-to-point-layout    
propagation               sixlowpan                 spectrum                  
stats                     tap-bridge                topology-read            
traffic-control           uan                       virtual-net-device        
wifi                      wimax                    

Modules that cannot be built:
CMakeFiles                brite                     click                    
e2sim                     mpi                       openflow                  
sim-ns3-o-ran-e2          test                      visualizer                




-- Configuring done
-- Generating done
-- Build files have been written to: /home/shakirul/ns3/ns-3-allinone/ns-3.41/build
shakirul@shakirul-B80LV-AD47B6E:~/ns3/ns-3-allinone/ns-3.41$ cmake --build build
[  0%] Building CXX object CMakeFiles/stdlib_pch.dir/cmake_pch.hxx.gch
[  0%] Building CXX object CMakeFiles/stdlib_pch.dir/build-support/empty.cc.o
[  0%] Building CXX object CMakeFiles/stdlib_pch_exec.dir/cmake_pch.hxx.gch
[  0%] Building CXX object CMakeFiles/stdlib_pch_exec.dir/build-support/empty-main.cc.o
[  0%] Linking CXX executable ns3.41-stdlib_pch_exec
[  0%] Building CXX object contrib/e2sim/src/encoding/CMakeFiles/encoding_objects.dir/encode_e2apv1.cpp.o
/home/shakirul/ns3/ns-3-allinone/ns-3.41/contrib/e2sim/src/encoding/encode_e2apv1.cpp: In function ‘void encoding::generate_e2apv1_service_update(E2AP_PDU_t*, std::vector<encoding::ran_func_info>)’:
/home/shakirul/ns3/ns-3-allinone/ns-3.41/contrib/e2sim/src/encoding/encode_e2apv1.cpp:130:23: error: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<encoding::ran_func_info>::size_type’ {aka ‘long unsigned int’} [-Werror=sign-compare]
  130 |     for (int i = 0; i < all_funcs.size(); i++) {
      |                     ~~^~~~~~~~~~~~~~~~~~
/home/shakirul/ns3/ns-3-allinone/ns-3.41/contrib/e2sim/src/encoding/encode_e2apv1.cpp:133:14: error: unused variable ‘nextRanFuncId’ [-Werror=unused-variable]
  133 |         long nextRanFuncId = nextRanFunc.ranFunctionId;
      |              ^~~~~~~~~~~~~
/home/shakirul/ns3/ns-3-allinone/ns-3.41/contrib/e2sim/src/encoding/encode_e2apv1.cpp: In function ‘void encoding::generate_e2apv1_subscription_response(E2AP_PDU*, E2AP_PDU*)’:
/home/shakirul/ns3/ns-3-allinone/ns-3.41/contrib/e2sim/src/encoding/encode_e2apv1.cpp:553:45: error: variable ‘triggerDef’ set but not used [-Werror=unused-but-set-variable]
  553 |                 RICeventTriggerDefinition_t triggerDef = subDetails.ricEventTriggerDefinition;
      |                                             ^~~~~~~~~~
/home/shakirul/ns3/ns-3-allinone/ns-3.41/contrib/e2sim/src/encoding/encode_e2apv1.cpp:599:23: error: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<long int>::size_type’ {aka ‘long unsigned int’} [-Werror=sign-compare]
  599 |     for (int i = 0; i < actionIds.size(); i++) {
      |                     ~~^~~~~~~~~~~~~~~~~~
/home/shakirul/ns3/ns-3-allinone/ns-3.41/contrib/e2sim/src/encoding/encode_e2apv1.cpp:527:42: error: unused variable ‘pres’ [-Werror=unused-variable]
  527 |     RICsubscriptionRequest_IEs__value_PR pres;
      |                                          ^~~~
/home/shakirul/ns3/ns-3-allinone/ns-3.41/contrib/e2sim/src/encoding/encode_e2apv1.cpp: In function ‘void encoding::generate_e2apv1_indication_request_parameterized(E2AP_PDU*, long int, long int, long int, long int, long int, uint8_t*, int, uint8_t*, int)’:
/home/shakirul/ns3/ns-3-allinone/ns-3.41/contrib/e2sim/src/encoding/encode_e2apv1.cpp:709:20: error: unused variable ‘cpid_str’ [-Werror=unused-variable]
  709 |     OCTET_STRING_t cpid_str;
      |                    ^~~~~~~~
/home/shakirul/ns3/ns-3-allinone/ns-3.41/contrib/e2sim/src/encoding/encode_e2apv1.cpp: In function ‘long int encoding::get_function_id_from_subscription(E2AP_PDU_t*)’:
/home/shakirul/ns3/ns-3-allinone/ns-3.41/contrib/e2sim/src/encoding/encode_e2apv1.cpp:93:12: error: ‘func_id’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
   93 |     return func_id;
      |            ^~~~~~~
/home/shakirul/ns3/ns-3-allinone/ns-3.41/contrib/e2sim/src/encoding/encode_e2apv1.cpp: In function ‘void encoding::generate_e2apv1_service_update(E2AP_PDU_t*, std::vector<encoding::ran_func_info>)’:
/home/shakirul/ns3/ns-3-allinone/ns-3.41/contrib/e2sim/src/encoding/encode_e2apv1.cpp:125:29: error: ‘prID’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
  125 |     e2serviceUpdateList->id = prID;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
/home/shakirul/ns3/ns-3-allinone/ns-3.41/contrib/e2sim/src/encoding/encode_e2apv1.cpp: In function ‘void encoding::generate_e2apv1_subscription_response(E2AP_PDU*, E2AP_PDU*)’:
/home/shakirul/ns3/ns-3-allinone/ns-3.41/contrib/e2sim/src/encoding/encode_e2apv1.cpp:529:10: error: ‘responseRequestorId’ is used uninitialized [-Werror=uninitialized]
  529 |     long responseRequestorId;
      |          ^~~~~~~~~~~~~~~~~~~
/home/shakirul/ns3/ns-3-allinone/ns-3.41/contrib/e2sim/src/encoding/encode_e2apv1.cpp:530:10: error: ‘responseInstanceId’ is used uninitialized [-Werror=uninitialized]
  530 |     long responseInstanceId;
      |          ^~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
gmake[2]: *** [contrib/e2sim/src/encoding/CMakeFiles/encoding_objects.dir/build.make:76: contrib/e2sim/src/encoding/CMakeFiles/encoding_objects.dir/encode_e2apv1.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:2676: contrib/e2sim/src/encoding/CMakeFiles/encoding_objects.dir/all] Error 2
gmake: *** [Makefile:156: all] Error 2


not solved i guess

Gabriel Ferreira

unread,
Apr 15, 2025, 5:14:50 AMApr 15
to ns-3-users
These compilation errors are warnings. You can disable them. ./ns3 configure --disable-warnings-as-errors or --disable-werror. Something like this.
E2sim needs to be built separately, as far as I know. Follow the instructions from whoever you got this code. Building it randomly won't work.

MD SHAKIRUL ISLAM

unread,
Apr 15, 2025, 5:42:31 AMApr 15
to ns-3-users
Thanks for your help, i will try to contact with him.
Reply all
Reply to author
Forward
0 new messages