Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in ./waf build command in install procedure #report #9

Open
Ali78k opened this issue Nov 17, 2024 · 0 comments
Open

Error in ./waf build command in install procedure #report #9

Ali78k opened this issue Nov 17, 2024 · 0 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@Ali78k
Copy link

Ali78k commented Nov 17, 2024

Environment

  • ns-3 version: Based on the new Readme.md, actually origin/main
  • DPDK version:
dpkg -l | grep dpdk
ii  libdpdk-dev:amd64                      21.11.6-0ubuntu0.22.04.1                amd64        Data Plane Development Kit (basic development files)
  • OS:
$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.2 LTS
Release:	22.04
Codename:	jammy

Error Description

I've followed the instruction and encountered an error in ./waf build command:

[1618/2111] Compiling contrib/oran-interface/model/oran-interface.cc
[1619/2111] Compiling contrib/oran-interface/model/kpm-indication.cc
[1620/2111] Compiling contrib/oran-interface/helper/oran-interface-helper.cc
[1621/2111] Compiling contrib/oran-interface/helper/mmwave-indication-message-helper.cc
../src/fd-net-device/model/dpdk-net-device.cc: In member function ‘void ns3::DpdkNetDevice::InitDpdk(int, char**, std::string)’:
../src/fd-net-device/model/dpdk-net-device.cc:415:47: error: ‘CALL_MASTER’ was not declared in this scope; did you mean ‘CALL_MAIN’?
  415 |   rte_eal_mp_remote_launch (LaunchCore, this, CALL_MASTER);
      |                                               ^~~~~~~~~~~
      |                                               CALL_MAIN

Waf: Leaving directory `/home/ubuntu/FlexRIC/ns-O-RAN-flexric/ns-3-mmwave-oran/build'
Build failed
 -> task in 'ns3-fd-net-device' failed with exit status 1 (run with -v to display more information)

Solution

I simply substituted CALL_MASTER by CALL_MAIN in dpdk-net-device.cc and error was solved!

~/FlexRIC/ns-O-RAN-flexric/ns-3-mmwave-oran$ git diff
diff --git a/src/fd-net-device/model/dpdk-net-device.cc b/src/fd-net-device/model/dpdk-net-device.cc
index b00dab84..9ab7daaf 100644
--- a/src/fd-net-device/model/dpdk-net-device.cc
+++ b/src/fd-net-device/model/dpdk-net-device.cc
@@ -412,7 +412,7 @@ DpdkNetDevice::InitDpdk (int argc, char** argv, std::string dpdkDriver)
   CheckAllPortsLinkStatus ();
 
   NS_LOG_INFO ("Launching core threads");
-  rte_eal_mp_remote_launch (LaunchCore, this, CALL_MASTER);
+  rte_eal_mp_remote_launch (LaunchCore, this, CALL_MAIN);
 }
 
 uint8_t*

Steps to Reproduce

cd ns-3-mmwave-oran/ 
./waf configure
./waf build
@mostafa-ashraf1709 mostafa-ashraf1709 added the help wanted Extra attention is needed label Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants