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

Build failed when running "./waf" #106

Open
Zakaria55 opened this issue May 3, 2021 · 9 comments
Open

Build failed when running "./waf" #106

Zakaria55 opened this issue May 3, 2021 · 9 comments

Comments

@Zakaria55
Copy link

Hi every one,

I am installing ndnSIM and I get this message when I run "./waf"

[2236/3107] Compiling src/ndnSIM/helper/lfid/ndn-global-routing-helper-lfid.cpp
[2237/3107] Compiling src/ndnSIM/NFD/daemon/face/lp-reassembler.cpp
[2238/3107] Compiling src/ndnSIM/NFD/daemon/common/privilege-helper.cpp
In file included from ns3/ndnSIM/ndn-cxx/lp/fields.hpp:28:0,
from ns3/ndnSIM/ndn-cxx/lp/packet.hpp:25,
from ../src/ndnSIM/model/ndn-block-header.cpp:29:
ns3/ndnSIM/ndn-cxx/lp/geo-tag.hpp:95:60: error: converting to ‘std::tuple<double, double, double>’ from initializer list would use explicit constructor ‘constexpr std::tuple< >::tuple(_UElements&& ...) [with _UElements = {double, double, double}; = void; _Elements = {double, double, double}]’
std::tuple<double, double, double> m_pos = {0.0, 0.0, 0.0};
^

In file included from ns3/ndnSIM/ndn-cxx/lp/fields.hpp:28:0,
from ns3/ndnSIM/ndn-cxx/lp/packet.hpp:25,
from ../src/ndnSIM/NFD/daemon/face/lp-reassembler.hpp:31,
from ../src/ndnSIM/NFD/daemon/face/lp-reassembler.cpp:26:
ns3/ndnSIM/ndn-cxx/lp/geo-tag.hpp:95:60: error: converting to ‘std::tuple<double, double, double>’ from initializer list would use explicit constructor ‘constexpr std::tuple< >::tuple(_UElements&& ...) [with _UElements = {double, double, double}; = void; _Elements = {double, double, double}]’
std::tuple<double, double, double> m_pos = {0.0, 0.0, 0.0};[2236/3107] Compiling src/ndnSIM/helper/lfid/ndn-global-routing-helper-lfid.cpp
[2237/3107] Compiling src/ndnSIM/NFD/daemon/face/lp-reassembler.cpp
[2238/3107] Compiling src/ndnSIM/NFD/daemon/common/privilege-helper.cpp
In file included from ns3/ndnSIM/ndn-cxx/lp/fields.hpp:28:0,
from ns3/ndnSIM/ndn-cxx/lp/packet.hpp:25,
from ../src/ndnSIM/model/ndn-block-header.cpp:29:
ns3/ndnSIM/ndn-cxx/lp/geo-tag.hpp:95:60: error: converting to ‘std::tuple<double, double, double>’ from initializer list would use explicit constructor ‘constexpr std::tuple< >::tuple(_UElements&& ...) [with _UElements = {double, double, double}; = void; _Elements = {double, double, double}]’
std::tuple<double, double, double> m_pos = {0.0, 0.0, 0.0};
^

In file included from ns3/ndnSIM/ndn-cxx/lp/fields.hpp:28:0,
from ns3/ndnSIM/ndn-cxx/lp/packet.hpp:25,
from ../src/ndnSIM/NFD/daemon/face/lp-reassembler.hpp:31,
from ../src/ndnSIM/NFD/daemon/face/lp-reassembler.cpp:26:
ns3/ndnSIM/ndn-cxx/lp/geo-tag.hpp:95:60: error: converting to ‘std::tuple<double, double, double>’ from initializer list would use explicit constructor ‘constexpr std::tuple< >::tuple(_UElements&& ...) [with _UElements = {double, double, double}; = void; _Elements = {double, double, double}]’
std::tuple<double, double, double> m_pos = {0.0, 0.0, 0.0};

Waf: Leaving directory `/home/zakaria/ndnSIM2/ns-3/build'
Build failed
-> task in 'ns3-ndnSIM' failed with exit status 1 (run with -v to display more information)

-> task in 'ns3-ndnSIM' failed with exit status 1 (run with -v to display more information)

Could you help me, please?
My best regards.

@cawka
Copy link
Member

cawka commented May 3, 2021

Which platform / compiler are you using?

@Zakaria55
Copy link
Author

Thanks for your reply. I am using Ubuntu 16.04 LTS.

@cawka
Copy link
Member

cawka commented May 3, 2021

I suggest you upgrade to at least 18.04. 16.04 has a bit too old compiler (or get a newer compiler, either clang or gcc, if you really don't want the upgrade).

@Zakaria55
Copy link
Author

How to get a newer compiler? I am afraid that upgrading will affect my project.

@cawka
Copy link
Member

cawka commented May 3, 2021

@Zakaria55
Copy link
Author

Ok, I'll try. Thanks a lot.

@Zakaria55
Copy link
Author

Zakaria55 commented May 3, 2021

I have installed the gcc 7 and I now I get this error:

[2400/3107] Compiling src/ndnSIM/ndn-cxx/ndn-cxx/security/transform/buffer-source.cpp
[2401/3107] Compiling src/ndnSIM/model/ndn-common.cpp
[2402/3107] Compiling src/ndnSIM/NFD/daemon/mgmt/manager-base.cpp
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-7/README.Bugs for instructions.

Waf: Leaving directory `/home/zakaria/ndnSIM2/ns-3/build'
Build failed
-> task in 'ns3-ndnSIM' failed with exit status 4 (run with -v to display more information)

@cawka
Copy link
Member

cawka commented May 3, 2021

Cannot say, really. This looks like gcc issue (or you don't have enough memory on your linux box / VM). You could try compiling slower with ./waf -j1

@Zakaria55
Copy link
Author

Thanks, Alex. I have checked the space and I found 9 GB left. I think it is enough, so I tried with ./waf -j1 and it worked.

I have a question, please: does the last release of ndnSIM use the last release of ns-3? If not, how can we update the ns-3 version installed with ndnSIM?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants