GNOME Bugzilla – Bug 649842
[regression] build failure in 3.1.1: no matching function for call to 'max(guint64&, long unsigned int)'
Last modified: 2011-11-11 10:03:55 UTC
I tried upgrading to 3.1.1. The build dies with: CXX load-graph.o load-graph.cpp: In function 'void net_scale(LoadGraph*, guint64, guint64)': load-graph.cpp:402:37: error: no matching function for call to 'max(guint64&, long unsigned int)' load-graph.cpp:402:37: note: candidates are: /usr/lib/gcc/i686-pc-linux-gnu/4.6.0/../../../../include/c++/4.6.0/bits/stl_algobase.h:210:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&) /usr/lib/gcc/i686-pc-linux-gnu/4.6.0/../../../../include/c++/4.6.0/bits/stl_algobase.h:254:56: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare) load-graph.cpp:410:38: error: no matching function for call to 'max(guint64&, long unsigned int)' load-graph.cpp:410:38: note: candidates are: /usr/lib/gcc/i686-pc-linux-gnu/4.6.0/../../../../include/c++/4.6.0/bits/stl_algobase.h:210:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&) /usr/lib/gcc/i686-pc-linux-gnu/4.6.0/../../../../include/c++/4.6.0/bits/stl_algobase.h:254:56: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare) load-graph.cpp:436:4: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'guint64' [-Wformat] load-graph.cpp:436:4: warning: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type 'guint64' [-Wformat] load-graph.cpp:436:4: warning: format '%lu' expects argument of type 'long unsigned int', but argument 7 has type 'guint64' [-Wformat] load-graph.cpp:436:4: warning: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'guint64' [-Wformat] load-graph.cpp:440:4: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'guint64' [-Wformat] load-graph.cpp:440:4: warning: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type 'guint64' [-Wformat] load-graph.cpp:458:2: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'guint64' [-Wformat] load-graph.cpp:458:2: warning: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type 'guint64' [-Wformat] load-graph.cpp:458:2: warning: format '%lu' expects argument of type 'long unsigned int', but argument 7 has type 'guint64' [-Wformat] make[3]: *** [load-graph.o] Error 1 m
Ok, I'll have this fixed tomorrow. Should have known not to have done this blindly without access to an ix86 machine.
The following fix has been pushed: 843cc40 Fix for issues on 32-bit machines.
Created attachment 187748 [details] [review] Fix for issues on 32-bit machines.