-ninja: error: manifest 'build.ninja' still dirty after 100 tries

32 views
Skip to first unread message

neha katyal

unread,
Jul 8, 2024, 6:47:17 AM7/8/24
to 5G-LENA-users
Hello,
I have checkedout the latest ns3 and 5g code. I ran the ./ns3 configure command, and then while running ./ns3 build command I get this error:
ninja: error: manifest 'build.ninja' still dirty after 100 tries
I am running on an Ubuntu server. And I have tried this on multiple releases now. The release that was previously working fine on the server is also showing the same error, no change on the server though.
I am stuck. Please help on this.
Thanks,
Neha

Gabriel Ferreira

unread,
Jul 8, 2024, 9:25:58 AM7/8/24
to 5G-LENA-users
You probably ran something as sudo.
Use `sudo rm -Rf ./cmake-cache`
Then configure again without sudo.

neha katyal

unread,
Jul 9, 2024, 2:45:09 AM7/9/24
to 5G-LENA-users
Thanks Gabriel.
I was not running with sudo. But, just removing the cmake-cache and configuring again solved the error.
But now I am facing the issue while running ns3. I am running 
./ns3 run  "cttc-nr-multi-flow-qos-sched.cc --gNbNum=1 --ueNumPergNb=100 --centralFrequency=3.75e9 --bandwidth=100e6 --enableOfdma --schedulerType=Qos"

And I see error:
  File "/a/users/katyaln/ns-3-dev/./ns3", line 1588, in main
    raise Exception("Couldn't find the specified program: %s" % target_to_run)
Exception: Couldn't find the specified program: cttc-nr-multi-flow-qos-sched.cc
Following is the output of ./ns3 show targets
Buildable targets:
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            nr
olsr                          point-to-point                point-to-point-layout         propagation
sixlowpan                     spectrum                      stats                         tap-bridge
topology-read                 traffic-control               uan                           virtual-net-device
wifi                          wimax


Runnable/Buildable targets:
bench-packets                 bench-scheduler               perf-io                       print-introspected-doxygen
raw-sock-creator              scratch-simulator             scratch-subdir                tap-creator
tap-device-creator
scratch-nested-subdir-executable

Please guide.
Thanks

satya singh

unread,
Jul 9, 2024, 3:21:54 AM7/9/24
to 5G-LENA-users
I think you should copy example to the scratch directory and then try running -
./ns3 run scratch/"cttc-nr-multi-flow-qos-sched.cc --gNbNum=1 --ueNumPergNb=100 --centralFrequency=3.75e9 --bandwidth=100e6 --enableOfdma --schedulerType=Qos"

satya singh

unread,
Jul 9, 2024, 3:22:46 AM7/9/24
to 5G-LENA-users
example means the file you are trying to run which is "cttc-nr-multi-flow-qos-sched.cc"

Gabriel Ferreira

unread,
Jul 9, 2024, 3:37:11 AM7/9/24
to 5G-LENA-users
Either copy the example to the scratch directory like Satya suggested, or enable examples.

./ns3 configure --enable-examples

If you are configuring ns-3 directly via CMake, or using an IDE, set NS3_EXAMPLES=ON.

neha katyal

unread,
Jul 10, 2024, 2:25:39 AM7/10/24
to 5G-LENA-users
Thanks a lot Gabriel and Satya.
Adding --enable-examples to the configure command worked.
Just wondering what changed, because I had been configuring without  --enable-examples and it used to work every time. Suddenly it stopped working in the same folder.
Reply all
Reply to author
Forward
0 new messages