Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Aug 2013 10:28:33 +0200
From:      "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To:        FreeBSD Ports <freebsd-ports@freebsd.org>
Subject:   graphics/blender: isnan(cineon->element[i].refLowData)) - error: controlling expression type 'unsigned int'      not compatible with any generic association type
Message-ID:  <20130804102833.436a3eca@thor.walstatt.dyndns.org>

next in thread | raw e-mail | index | archive | help
--Sig_/_Cd9pE74zBbo=G5EJDH3yYF
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

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).=20

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_dp=
x.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/int=
ern/cineon/cineonlib.c:280:70:
error: controlling expression type 'unsigned int' not compatible with
any generic association type if (cineon->element[i].refLowData =3D=3D
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/c=
ineon/cineonlib.c:283:71:
error: controlling expression type 'unsigned int' not compatible with
any generic association type if (cineon->element[i].refHighData =3D=3D
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

--Sig_/_Cd9pE74zBbo=G5EJDH3yYF
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (FreeBSD)

iQEcBAEBAgAGBQJR/hCxAAoJEOgBcD7A/5N8VaoH/RzrJLlcDD0r7PbqmBa5iuta
zGgVrxr+NR9yXPhTaLmxW+k0PKj1KyT2OIR50RlAvqrA7GVAdDhZDOwkdpElCtjs
tOk5xPlNM95yfaKJ5I58/qCuxie0s+DFqI6lbml9DnEfOTU3RQpVPJDGX+DDLnbQ
/hFZGbbIYIxWB3yvqIwHtn+9qRWnJaBDii9Ngie7wu1r2PHGC8Oypq7Xzm9vFJQ7
qAycgLjlBLWYs+DHPdUYl48mPYkY86DZ4nszqsnEl6fsiDnuAOu1FZQrmtFCDjJ1
mryF+Md6bvoUMEax5kGN/38EBwCoYg5vOtT4YmKgIclBRR0gG+ELZ0JOlB7Sxak=
=kjae
-----END PGP SIGNATURE-----

--Sig_/_Cd9pE74zBbo=G5EJDH3yYF--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130804102833.436a3eca>