port graphics/blender fails to compile due to issue in math.h: error: controlling expression type 'unsigned int' not compatible with any generic association type [...] isnan' __fp_type_select(x, __inline_isnanf, __inline_isnan, __inline_isnanl)

O. Hartmann ohartman at zedat.fu-berlin.de
Wed Jul 31 15:51:33 UTC 2013


On most recent CUURENT (FreeBSD 10.0-CURRENT #4 r253800: Tue Jul 30
13:41:11 CEST 2013 amd64 ) port garphics/blender fails to compile due
to the following error.

I guess this has to do with the changes necessary to math.h/cmath and
the c++11 standard issue.

[...]
Scanning dependencies of target
bf_imbuf_cineon [ 55%] Building C object
source/blender/imbuf/intern/cineon/CMakeFiles/bf_imbuf_cineon.dir/cineon_dpx.c.o
[ 55%] Building C object
source/blender/imbuf/intern/cineon/CMakeFiles/bf_imbuf_cineon.dir/cineonlib.c.o /usr/ports/graphics/blender/work/blender-2.68/source/blender/imbuf/intern/cineon/cineonlib.c:280:70:
error: controlling expression type 'unsigned int' not compatible with
any generic association type if (cineon->element[i].refLowData ==
CINEON_UNDEFINED_U32 || isnan(cineon->element[i].refLowData))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/math.h:118:19: note:
expanded from macro 'isnan' __fp_type_select(x, __inline_isnanf,
__inline_isnan, __inline_isnanl) ^ /usr/include/math.h:86:49: note:
expanded from macro '__fp_type_select' #define __fp_type_select(x, f,
d, ld) _Generic((x),                     \ ^
/usr/ports/graphics/blender/work/blender-2.68/source/blender/imbuf/intern/cineon/cineonlib.c:283:71:
error: controlling expression type 'unsigned int' not compatible with
any generic association type if (cineon->element[i].refHighData ==
CINEON_UNDEFINED_U32 || isnan(cineon->element[i].refHighData))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/math.h:118:19: note:
expanded from macro 'isnan' __fp_type_select(x, __inline_isnanf,
__inline_isnan, __inline_isnanl) ^
/usr/include/math.h:86:49: note: expanded from macro '__fp_type_select'
#define __fp_type_select(x, f, d, ld) _Generic((x),
\
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20130731/c6162cdb/attachment.sig>


More information about the freebsd-ports mailing list