graphics/blender: isnan(cineon->element[i].refLowData)) - error: controlling expression type 'unsigned int' not compatible with any generic association type

O. Hartmann ohartman at zedat.fu-berlin.de
Sun Aug 4 08:28:37 UTC 2013


Compiling port graphics/blender ends up in the follwoig error due to an
compiler error on FreeBSD 10.0-CURRENT ( FreeBSD 10.0-CURRENT #0
r253917: Sat Aug  3 20:33:55 CEST 2013). 

Prior to build (or try to build/upgrade) I had to apply the patches
(last in row) suggested in PR ports/180650
(graphics/openshadinglaguage), since graphics/blender relies on
graphics/openshadinglanguage, openshadinglanguage doesn't compile with
port devel/llvm which is stuck at LLVM 3.2 (CLANG on CURRENT and
9.2-PRE is in the meanwhile CLANG 3.3!) and needs to use devel/llvm33.

I think the problem occuring during compilation is due to some strange
implementation issues in math.h / cmath discussed earlier in the list.

Port graphics/blender doesn't compile on both, CURRENT (as reposted
above) and most recent and up to date FreeBSD 9.2-BETA (FreeBSD
9.2-BETA2 #0 r253884: Fri Aug  2 14:52:14 CEST 2013), dropping the same
error.

[...]
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),
\ ^
2 errors generated.
*** Error code 1

Stop.

[...]



Regards,

Oliver
-------------- 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/20130804/e51aaeed/attachment.sig>


More information about the freebsd-ports mailing list