Project

General

Profile

Actions

Bug #2651

closed

Build error in core/logger.cpp: PRIdLEAST64 is incompatible with microseconds::rep

Added by Junxiao Shi about 9 years ago. Updated about 9 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Core
Target version:
Start date:
03/16/2015
Due date:
% Done:

0%

Estimated time:

Description

Environment:

  • Ubuntu 14.04.2 LTS
  • Linux kernel 3.13.0-46-generic x86_64
  • Boost 1.54
  • gcc 4.8.2

Build error:

../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
   static_assert(std::is_same<microseconds::rep, int_least64_t>::value,
   ^
../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=]
            microsecondsSinceEpoch % ONE_SECOND);
                                               ^
../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=]
../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=]

This Bug is originally reported on ndn-interest by Anil Jangam.


Files

waf_configure.txt (1.52 KB) waf_configure.txt Anil Jangam, 03/17/2015 01:48 PM
config.log (23.9 KB) config.log Anil Jangam, 03/17/2015 01:48 PM
waf_v.txt (6.41 KB) waf_v.txt Anil Jangam, 03/17/2015 01:48 PM
boost_package.txt (3.09 KB) boost_package.txt Anil Jangam, 03/17/2015 05:58 PM
Actions

Also available in: Atom PDF