GNOME Bugzilla – Bug 769104
Build failure when using _GLIB_CHECKED_ADD_U32 with the Intel compiler
Last modified: 2016-08-06 10:52:11 UTC
The Intel compiler pretends to be GCC on Linux, but it doesn't have __builtin_uadd_overflow. Instead, one has to use _addcarry_u32 (see https://software.intel.com/en-us/node/523867). Error: /usr/include/glib-2.0/glib/gtypes.h(418): error: identifier "__builtin_uadd_overflow" is undefined return !__builtin_uadd_overflow(a, b, dest); } ^
Created attachment 332020 [details] [review] Workaround patch This just fixes the build error without implementing the ICC equivalent code.
I pushed a slightly tweaked version of this with an added comment, to save someone an annotate later. I also changed the subject to be a bit more descriptive. Thanks for the patch! https://git.gnome.org/browse/glib/commit/?id=a5f209bc656177a25586c461631fc5ea5459449f
Thanks Colin.
Thread in Intel forum for some workarounds by nemegu. https://software.intel.com/en-us/node/672348