GNOME Bugzilla – Bug 779551
Build failure in Continuous
Last modified: 2017-03-03 21:14:43 UTC
gexiv2 fails to build in GNOME Continuous with this error: ../gexiv2/gexiv2-metadata-gps.cpp: In function 'double convert_rational(const Rational&)': ../gexiv2/gexiv2-metadata-gps.cpp:32:5: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat] auto num = static_cast<double>(r.first); ^ ../gexiv2/gexiv2-metadata-gps.cpp:32:10: error: 'num' does not name a type auto num = static_cast<double>(r.first); ^ ../gexiv2/gexiv2-metadata-gps.cpp:33:5: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat] auto den = static_cast<double>(r.second); ^ ../gexiv2/gexiv2-metadata-gps.cpp:33:10: error: 'den' does not name a type auto den = static_cast<double>(r.second); ^ ../gexiv2/gexiv2-metadata-gps.cpp:35:12: error: 'num' was not declared in this scope return num / den; ^ ../gexiv2/gexiv2-metadata-gps.cpp:35:18: error: 'den' was not declared in this scope return num / den; ^
See full build log at: http://build.gnome.org/continuous/buildmaster/builds/2017/03/03/53/build/log-gexiv2.txt
which ancient compiler is continous running?
Created attachment 347167 [details] [review] Fix accidental c++11ism Signed-off-by: Jens Georg <mail@jensge.org>
Attachment 347167 [details] pushed as 325ec93 - Fix accidental c++11ism
Continuous is running with GCC 4.9; we can probably bump it up to 5.something, but it'll take a little while.
Actually, no: we're already running with GCC 5.3. Can't update to anything newer without a larger rebase of the whole base OS.
That's fine, when using C++11 the configure script should probably check whether the compiler supports it OOTB or needs some flags.