[ndnSIM] Error compiling ndnSIM

Elídio Tomás da Silva elidio.silva at unilurio.ac.mz
Sat Mar 20 18:57:08 PDT 2021


Dear ndnSIM team,

I've been working with ndnSIM without major problems, but yesterday I
updated GCC from "9.3.0" to version "10.2.0", on Gentoo Linux, and now I
get the following error message:

---cut----------------------------------------------------------------------
../src/ndnSIM/ndn-cxx/ndn-cxx/util/scheduler.cpp: In member function
‘ndn::scheduler::EventId
ndn::scheduler::Scheduler::schedule(boost::chrono::nanoseconds,
ndn::scheduler::EventCallback)’:
../src/ndnSIM/ndn-cxx/ndn-cxx/util/scheduler.cpp:100:106: error: call of
overloaded
‘make_shared<ndn::scheduler::EventInfo>(boost::chrono::nanoseconds&,
std::remove _reference<std::function<void()>&>::type, uint32_t)’ is
ambiguous

100 | auto i = m_queue.insert(make_shared<EventInfo>(after,
std::move(callback), *ns3::Simulator::GetContext()*));
---cut-----------------------------------------------------------------------

On another compilation tentative, I got a similar a error on "std::tie(group,
std::ignore) =
m_groups.insert(make_shared<StaticTrustAnchorGroup>(m_anchors, groupId));",
from function "TrustAnchorContainer::insert(const std::string& groupId,
Certificate&& cert)"

Well, I can downgrade the GCC but maybe it is better to present this
error here, and ask for guidance on correcting the issue, given that it
should be a general issue with this GCC version.

PS: ns3 without ndnSIM compiles without errors.

Best regards.




-- 
Elídio Tomás da Silva
Faculdade de Engenharia - Universidade Lúrio
Contactos: +351 91 4823487 / +258 84 4845016
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20210321/dc37fd8f/attachment.html>


More information about the ndnSIM mailing list