After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 649842 - [regression] build failure in 3.1.1: no matching function for call to 'max(guint64&, long unsigned int)'
[regression] build failure in 3.1.1: no matching function for call to 'max(gu...
Status: RESOLVED FIXED
Product: system-monitor
Classification: Core
Component: general
3.1.x
Other Linux
: Normal critical
: ---
Assigned To: System-monitor maintainers
System-monitor maintainers
Depends on:
Blocks:
 
 
Reported: 2011-05-10 02:12 UTC by David Ronis
Modified: 2011-11-11 10:03 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix for issues on 32-bit machines. (4.31 KB, patch)
2011-05-12 22:26 UTC, Chris Kühl
committed Details | Review

Description David Ronis 2011-05-10 02:12:33 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
Comment 1 Chris Kühl 2011-05-10 22:57:01 UTC
Ok, I'll have this fixed tomorrow. Should have known not to have done this blindly without access to an ix86 machine.
Comment 2 Chris Kühl 2011-05-12 22:25:59 UTC
The following fix has been pushed:
843cc40 Fix for issues on 32-bit machines.
Comment 3 Chris Kühl 2011-05-12 22:26:02 UTC
Created attachment 187748 [details] [review]
Fix for issues on 32-bit machines.