[Nfd-dev] NFD Compilation error(?)

Junxiao Shi shijunxiao at email.arizona.edu
Sun Apr 26 13:27:52 PDT 2015


Hi antil

This looks similar to Bug 2651 http://redmine.named-data.net/issues/2651
Please delete all versions of Boost libraries, and reinstall only one
version of Boost libraries.

Yours, Junxiao
On Apr 26, 2015 1:07 PM, "antil janu" <antil.janu at gmail.com> wrote:

> I am hitting this compilation error after upgrading the NFD source.
>
> [ 40/121] Compiling daemon/mgmt/face-query-status-publisher.cpp
> [ 44/121] Compiling daemon/fw/retx-suppression-fixed.cpp
> [109/121] Compiling core/logger.cpp
> [110/121] Compiling daemon/mgmt/channel-status-publisher.cpp
> ../core/logger.cpp: In static member function ‘static const char*
> nfd::Logger::now()’:
> ../core/logger.cpp:61:3: error: static assertion failed: "PRIdLEAST64 is
> incompatible with microseconds::rep"
> ../core/logger.cpp:67:47: warning: format ‘%ld’ expects argument of type
> ‘long int’, but argument 4 has type ‘boost::chrono::duration<long long int,
> boost::ratio<1ll, 1000000ll> >::rep {aka long long int}’ [-Wformat]
> ../core/logger.cpp:67:47: warning: format ‘%ld’ expects argument of type
> ‘long int’, but argument 5 has type ‘boost::chrono::duration<long long int,
> boost::ratio<1ll, 1000000ll> >::rep {aka long long int}’ [-Wformat]
>
>
> I am using below g++ compiler.
>
> /usr/bin/g++ -v
> Using built-in specs.
> COLLECT_GCC=/usr/bin/g++
> COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6/lto-wrapper
> Target: x86_64-linux-gnu
> Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro
> 4.6.4-6ubuntu2' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs
> --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
> --program-suffix=-4.6 --enable-shared --enable-linker-build-id
> --with-system-zlib --libexecdir=/usr/lib --without-included-gettext
> --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6
> --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
> --enable-libstdcxx-debug --enable-gnu-unique-object --disable-libmudflap
> --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686
> --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu
> --host=x86_64-linux-gnu --target=x86_64-linux-gnu
> Thread model: posix
> gcc version 4.6.4 (Ubuntu/Linaro 4.6.4-6ubuntu2)
>
>
> configure log contained this three 'no' instances.
>
> Checking for program 'tar'               : /bin/tar
> Checking for program 'sphinx-build'      : /usr/bin/sphinx-build
> Checking for std::is_default_constructible : no
> Checking for std::is_move_constructible    : no
> Checking for override specifier            : no
> Checking for std::to_string                : yes
> Checking for program 'bash'                : /bin/bash
>
>
>
> _______________________________________________
> Nfd-dev mailing list
> Nfd-dev at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20150426/f3ed36b1/attachment.html>


More information about the Nfd-dev mailing list