<p>Hi Lukas,<br>
I'm building with cmake (i.e., no rtti).</p>
<p>The latest test I was reporting was to build llvm, oiio and osl WITH rtti. Though I don't know if Jens remembered to turn it on in cycles as well.</p>
<p>Dalai</p>
<div class="gmail_quote">On Sep 8, 2012 10:18 PM, "Lukas Tönne" <<a href="mailto:lukas.toenne@gmail.com">lukas.toenne@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
@Dalai:<br>
<br>
I don't know about RTTI in osl and llvm, but it has to be *dis*abled<br>
in the Blender submodule for osl kernels. In the cmake file the<br>
following CXX arguments are added (cycles/kernel/osl/CMakeLists.txt,<br>
by RTTI_DISABLE_FLAGS variable defined in the main cycles cmake file):<br>
<br>
"-fno-rtti -DBOOST_NO_RTTI -DBOOST_NO_TYPEID"<br>
<br>
These would have to be added in scons as well i guess.<br>
<br>
On Fri, Sep 7, 2012 at 9:35 AM, Dalai Felinto <<a href="mailto:dfelinto@gmail.com">dfelinto@gmail.com</a>> wrote:<br>
> Hi Brecht,<br>
><br>
> Building llvm and osl with RTTI doesn't change anything (and is a pita ;)<br>
><br>
> The class/struct inconsistency was fixed/committed, but doesn't do much<br>
> other than remove some warnings.<br>
><br>
> Thanks,<br>
> Dalai<br>
><br>
> On Sep 5, 2012 5:39 AM, "Jens Verwiebe" <<a href="mailto:info@jensverwiebe.de">info@jensverwiebe.de</a>> wrote:<br>
>><br>
>> I did some analysing and found ambiguos stuff:<br>
>> <a href="http://www.pasteall.org/34979" target="_blank">http://www.pasteall.org/34979</a><br>
>><br>
>> Jens<br>
>><br>
>> Am 05.09.2012 um 12:26 schrieb Brecht Van Lommel<br>
>> <<a href="mailto:brechtvanlommel@pandora.be">brechtvanlommel@pandora.be</a>>:<br>
>><br>
>> Could this perhaps be related to RTTI? That can influence class size.<br>
>> It seems RTTI was disabled in CMake but not in SCons.<br>
>><br>
>> Brecht.<br>
>><br>
>> On Tue, Sep 4, 2012 at 11:43 PM, Dalai Felinto <<a href="mailto:dfelinto@gmail.com">dfelinto@gmail.com</a>> wrote:<br>
>><br>
>> Hi there,<br>
>><br>
>> I'm helping Jens to get OSL 1.2 to work on OSX as well. OSL is<br>
>> building and Blender builds as well. However we are now stumbling into<br>
>> a strange problem.<br>
>><br>
>> When rendering with OSL we get the errors:<br>
>> <a href="http://www.pasteall.org/34953" target="_blank">http://www.pasteall.org/34953</a><br>
>> * note, Parameter 1 is the first parameter of the array (index 0)<br>
>><br>
>><br>
>> The error comes from the register_closure() function in the OSL source<br>
>> code, see below:<br>
>><br>
>> //OpenShadingLanguage/src/liboslexec/shadingsys.cpp :~507<br>
>> void ShadingSystemImpl::register_closure(...) {<br>
>> for (int i = 0; params && params[i].type != TypeDesc(); ++i) {<br>
>> if (params[i].key == NULL && params[i].type.size() !=<br>
>> (size_t)params[i].field_size) {<br>
>> error ("Parameter %d of '%s' closure is assigned to a<br>
>> field of incompatible size", i + 1, name);<br>
>><br>
>><br>
>> This function is called from<br>
>> //intern/cycles/kernel/osl/osl_closures.cpp:62<br>
>> ss->register_closure(name, id, params, prepare,<br>
>> generic_closure_setup, generic_closure_compare);<br>
>><br>
>> A breakpoint to this line and found out that the value of params[0] is<br>
>> indeed problematic:<br>
>> Basically params[0].type.size() is zero, while params[0].field_size is 12:<br>
>> <a href="http://www.pasteall.org/34955" target="_blank">http://www.pasteall.org/34955</a><br>
>><br>
>><br>
>> In Linux this is working though. Does anyone has any clues on what is<br>
>> going wrong here?<br>
>> If someone has a Linux debug of Blender with OSL could you please:<br>
>><br>
>> b osl_closures.cpp:62<br>
>> r<br>
>> [in blender, render something ... it will get back to the debugger]<br>
>> p params[0]<br>
>> p params[0].type.size()<br>
>> p params[0].field_size<br>
>><br>
>> Thanks,<br>
>> Dalai<br>
>> _______________________________________________<br>
>> Bf-cycles mailing list<br>
>> <a href="mailto:Bf-cycles@blender.org">Bf-cycles@blender.org</a><br>
>> <a href="http://lists.blender.org/mailman/listinfo/bf-cycles" target="_blank">http://lists.blender.org/mailman/listinfo/bf-cycles</a><br>
>><br>
>> _______________________________________________<br>
>> Bf-cycles mailing list<br>
>> <a href="mailto:Bf-cycles@blender.org">Bf-cycles@blender.org</a><br>
>> <a href="http://lists.blender.org/mailman/listinfo/bf-cycles" target="_blank">http://lists.blender.org/mailman/listinfo/bf-cycles</a><br>
>><br>
>><br>
>> _____________________________________<br>
>><br>
>> Jens Verwiebe<br>
>> Allerskehre 44 - 22309 Hamburg<br>
>><br>
>> Tel.: <a href="tel:%2B49%2040%2068%2078%2050" value="+4940687850">+49 40 68 78 50</a><br>
>> mobil: <a href="tel:%2B49%20172%20400%2049%2007" value="+491724004907">+49 172 400 49 07</a><br>
>> mailto: <a href="mailto:info@jensverwiebe.de">info@jensverwiebe.de</a><br>
>> web: <a href="http://www.jensverwiebe.de" target="_blank">http://www.jensverwiebe.de</a><br>
>> _____________________________________<br>
>><br>
>><br>
>> _______________________________________________<br>
>> Bf-cycles mailing list<br>
>> <a href="mailto:Bf-cycles@blender.org">Bf-cycles@blender.org</a><br>
>> <a href="http://lists.blender.org/mailman/listinfo/bf-cycles" target="_blank">http://lists.blender.org/mailman/listinfo/bf-cycles</a><br>
>><br>
><br>
> _______________________________________________<br>
> Bf-cycles mailing list<br>
> <a href="mailto:Bf-cycles@blender.org">Bf-cycles@blender.org</a><br>
> <a href="http://lists.blender.org/mailman/listinfo/bf-cycles" target="_blank">http://lists.blender.org/mailman/listinfo/bf-cycles</a><br>
><br>
_______________________________________________<br>
Bf-cycles mailing list<br>
<a href="mailto:Bf-cycles@blender.org">Bf-cycles@blender.org</a><br>
<a href="http://lists.blender.org/mailman/listinfo/bf-cycles" target="_blank">http://lists.blender.org/mailman/listinfo/bf-cycles</a><br>
</blockquote></div>