ns3.38 building error (-- Configuring incomplete, errors occurred!)

783 views
Skip to first unread message

Chikh Mouici

unread,
Apr 27, 2023, 8:21:26 AM4/27/23
to ns-3-...@googlegroups.com
Hello,

Please need help on how to solve this problem on ns3.38 getting errors like this after executing any script (~/ns-allinone-3.38/ns-3.38$ ./ns3 run first)  ;
-- Configuring incomplete, errors occurred!
See also "ns-allinone-3.38/ns-3.38/cmake-cache/CMakeFiles/CMakeOutput.log".
See also "ns-allinone-3.38/ns-3.38/cmake-cache/CMakeFiles/CMakeError.log".

My OS is ubuntu 22.04

CMakeFiles on attachment.

Best regards
Mouici

~/ns-allinone-3.38/ns-3.38$ ./ns3 run first
-- CCache is enabled.
-- Using default output directory /home/mouici/ns-allinone-3.38/ns-3.38/build
-- Proceeding without cmake-format
-- find_external_library: SQLite3 was found.
-- GTK3 was found.
-- LibXML2 was found.
-- Python: an incompatible version of Python was found, python bindings will be disabled
-- Visualizer requires Python bindings
-- GSL was found.
-- Precompiled headers were enabled.
-- Processing src/antenna
-- Processing src/aodv
-- Processing src/applications
-- Processing src/bridge
-- Processing src/brite
-- find_external_library: brite was not found. Missing headers: "Brite.h" and missing libraries: "brite".
-- Skipping src/brite
-- Processing src/buildings
-- Processing src/click
-- find_external_library: click was not found. Missing headers: "simclick.h" and missing libraries: "nsclick 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
-- find_external_library: openflow was not found. Missing headers: "openflow.h" and missing libraries: "openflow".
-- Skipping src/openflow
-- 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/wave
-- Processing src/wifi
-- Processing src/wimax
CMake Error at build-support/macros-and-definitions.cmake:1586 (add_executable):
  The target name "scratch_v2v-1 (copy)_v2v-clustering-example" is reserved
  or not valid for certain CMake features, such as generator expressions, and
  may result in undefined behavior.
Call Stack (most recent call first):
  scratch/CMakeLists.txt:47 (build_exec)
  scratch/CMakeLists.txt:89 (create_scratch)


-- ---- Summary of ns-3 settings:
Build profile                 : default
Build directory               : /home/mouici/ns-allinone-3.38/ns-3.38/build
Build with runtime asserts    : ON
Build with runtime logging    : ON
Build version embedding       : OFF (not requested)
BRITE Integration             : OFF (missing dependency)
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 dependency)
ns-3 OpenFlow Integration     : OFF (missing dependency)
Netmap emulation FdNetDevice  : OFF (missing dependency)
PyViz visualizer              : OFF (missing dependency)
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                      
point-to-point            point-to-point-layout     propagation              
sixlowpan                 spectrum                  stats                    
tap-bridge                test                      topology-read            
traffic-control           uan                       virtual-net-device        
wave                      wifi                      wimax                    


Modules that cannot be built:
brite                     click                     mpi                      
openflow                  visualizer                


-- Configuring incomplete, errors occurred!
See also "/home/mouici/ns-allinone-3.38/ns-3.38/cmake-cache/CMakeFiles/CMakeOutput.log".
See also "/home/mouici/ns-allinone-3.38/ns-3.38/cmake-cache/CMakeFiles/CMakeError.log".



CMakeError.log
CMakeOutput.log

Chikh Mouici

unread,
Apr 27, 2023, 11:15:07 AM4/27/23
to ns-3-...@googlegroups.com
I did find my error, I created the folder v2v-1 (copy) under the scratch folder, so I deleted it and the error disappeared.

CMake Error at build-support/macros-and-definitions.cmake:1586 (add_executable):
  The target name "scratch_v2v-1 (copy)_v2v-clustering-example" is reserved
  or not valid for certain CMake features, such as generator expressions, and
  may result in undefined behavior.
Call Stack (most recent call first):
  scratch/CMakeLists.txt:47 (build_exec)
  scratch/CMakeLists.txt:89 (create_scratch)


Tommaso Pecorella

unread,
Apr 27, 2023, 11:34:48 AM4/27/23
to ns-3-users
Good, I guess that either the spaces or the parenthesis aren't a good idea (they're never a good idea anyway).
Reply all
Reply to author
Forward
0 new messages