[ndnSIM] Error in compilation ndn-cxx in ndnSIM 2.0

Alex Afanasyev alexander.afanasyev at UCLA.EDU
Mon Feb 9 17:03:13 PST 2015


Hi Anil,

Thanks for the report.  This is something I haven’t yet seen.  I have created a bug report and we’ll try to fix this in the library.  In the meantime, you can just use the cited workaround:

CXXFLAGS="-pedantic -Wall -O2 -g -D_GLIBCXX_USE_NANOSLEEP” ./waf configure

—
Alex

> On Feb 9, 2015, at 4:52 PM, Anil Jangam <anilj.mailing at gmail.com> wrote:
> 
> Hi,
> 
> With new version of ndnSIM (2.0), I am consistently getting the below compilation error while building ndn-cxx code base.
> 
> I am using g++ version - gcc version 4.6.4 (Ubuntu/Linaro 4.6.4-6ubuntu2). I am not sure if this is something to do with compiler version. I found a suggestion to a workaround here: https://bugs.archlinux.org/task/27751 <https://bugs.archlinux.org/task/27751>
> 
> [105/114] Compiling src/util/in-memory-storage-lfu.cpp
> [106/114] Compiling src/security/sec-rule-relative.cpp
> [107/114] Compiling src/util/time-unit-test-clock.cpp
> [108/114] Compiling src/name.cpp
> ../src/util/time-unit-test-clock.cpp: In member function ‘void ndn::time::UnitTestClock<BaseClock>::advance(const nanoseconds&)’:
> ../src/util/time-unit-test-clock.cpp:83:3: error: ‘sleep_for’ is not a member of ‘std::this_thread’
> ../src/util/time-unit-test-clock.cpp: In member function ‘void ndn::time::UnitTestClock<BaseClock>::setNow(const nanoseconds&)’:
> ../src/util/time-unit-test-clock.cpp:94:3: error: ‘sleep_for’ is not a member of ‘std::this_thread’
> 
> Waf: Leaving directory `/home/anilj1/sandbox/nlsrPorting/ndnSIM20/ndn-cxx/build'
> Build failed
>  -> task in 'ndn-cxx' failed (exit status 1):
> 	{task 139666346622352: cxx time-unit-test-clock.cpp -> time-unit-test-clock.cpp.2.o}
> ['/usr/bin/g++', '-pedantic', '-Wall', '-O2', '-g', '-std=c++0x', '-fPIC', '-include', '/home/anilj1/sandbox/nlsrPorting/ndnSIM20/ndn-cxx/build/ndn-cxx.2', '-I/home/anilj1/sandbox/nlsrPorting/ndnSIM20/ndn-cxx/build', '-I/home/anilj1/sandbox/nlsrPorting/ndnSIM20/ndn-cxx', '-I/home/anilj1/sandbox/nlsrPorting/ndnSIM20/ndn-cxx/build/src', '-I/home/anilj1/sandbox/nlsrPorting/ndnSIM20/ndn-cxx/src', '-I/usr/include', '-DNDEBUG', '../src/util/time-unit-test-clock.cpp', '-c', '-o', '/home/anilj1/sandbox/nlsrPorting/ndnSIM20/ndn-cxx/build/src/util/time-unit-test-clock.cpp.2.o']
> 
> Has anyone encountered this error before?
> 
> /anil.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20150209/3d8d4226/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20150209/3d8d4226/attachment.bin>


More information about the ndnSIM mailing list