<div dir="ltr">Hi,<div><br></div><div>Compilation error when CYCLES_LOGGING=OFF is now fixed in both Blender and Cycles. The issue was happening with any GCC version when C++11 was not enabled.</div><div><br></div><div>If you build Cycles with CYCLES_LOGGING=ON, then the only thing you need to do is to use --debug command line argument. The logging is happening to the stderr.</div><div><br></div><div>For example: ./bin/cycles --debug --verbose 1 ../examples/scene_monkey.xml</div><div><br></div><div>This shows quite a lot of logging for me here, If that doesn&#39;t work for you, please try with latest sources, and if that doesn&#39;t work please show your CMakeCache.txt to see the configuration.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 29, 2017 at 4:52 PM, Paul Melis <span dir="ltr">&lt;<a href="mailto:paul.melis@surfsara.nl" target="_blank">paul.melis@surfsara.nl</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Sergey,<br>
<br>
A follow-up question related to VLOG (slight off-topic). I&#39;m trying to<br>
debug the reason I only a single thread to do CPU , even when using<br>
--threads. I compiled with CYCLES_LOGGING=ON, linking against glog 0.3.4<br>
and gflags 2.2.0. What is the way to get the logging output to show? I<br>
tried things like --verbose 1, --debug, setting GLOG_logtostderr=1, etc,<br>
but get no logging output on stdout/stderr or in some log file.<br>
<br>
Thanks,<br>
Paul<br>
<div class="HOEnZb"><div class="h5"><br>
On 28-06-17 16:59, Paul Melis wrote:<br>
&gt; Patch solves the error (when compiling without -std=c++11)!<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Paul<br>
&gt;<br>
&gt; On 28-06-17 16:25, Sergey Sharybin wrote:<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; This is interesting. Please try whether this patch makes it to work for<br>
&gt;&gt; you: <a href="http://pasteall.org/450760/diff" rel="noreferrer" target="_blank">http://pasteall.org/450760/<wbr>diff</a><br>
&gt;&gt;<br>
&gt;&gt; On Wed, Jun 28, 2017 at 4:00 PM, Paul Melis &lt;<a href="mailto:paul.melis@surfsara.nl">paul.melis@surfsara.nl</a><br>
&gt;&gt; &lt;mailto:<a href="mailto:paul.melis@surfsara.nl">paul.melis@surfsara.nl</a><wbr>&gt;&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;      Hi,<br>
&gt;&gt;<br>
&gt;&gt;      I&#39;ve been trying to build cycles (standalone version) on one of our<br>
&gt;&gt;      systems and I keep running into an error that I don&#39;t see when compiling<br>
&gt;&gt;      on my normal workstation:<br>
&gt;&gt;<br>
&gt;&gt;      [ 27%] Built target cycles_render<br>
&gt;&gt;      [ 29%] Built target extern_cuew<br>
&gt;&gt;      [ 30%] Built target extern_clew<br>
&gt;&gt;      [ 33%] Built target cycles_graph<br>
&gt;&gt;      [ 34%] Building CXX object<br>
&gt;&gt;      src/device/CMakeFiles/cycles_<wbr>device.dir/opencl/opencl_util.<wbr>cpp.o<br>
&gt;&gt;      cd /home/paulm/c/cycles-release/<wbr>src/device &amp;&amp;<br>
&gt;&gt;      /hpc/sw/clang-3.6.2/bin/clang+<wbr>+   -DBOOST_ALL_NO_LIB<br>
&gt;&gt;      -DCCL_NAMESPACE_BEGIN=&quot;<wbr>namespace ccl {&quot; -DCCL_NAMESPACE_END=}<br>
&gt;&gt;      -DCYCLES_TR1_UNORDERED_MAP -DNDEBUG -DWITH_CUDA -DWITH_CUDA_DYNLOAD<br>
&gt;&gt;      -DWITH_CYCLES_STANDALONE_GUI -DWITH_KERNEL_AVX -DWITH_KERNEL_AVX2<br>
&gt;&gt;      -DWITH_KERNEL_SSE2 -DWITH_KERNEL_SSE3 -DWITH_KERNEL_SSE41 -DWITH_MULTI<br>
&gt;&gt;      -DWITH_OPENCL -Wall -Wno-sign-compare -fno-strict-aliasing -ffast-math<br>
&gt;&gt;      -fno-finite-math-only<br>
&gt;&gt;      -I/home/paulm/c/cycles-git/<wbr>third_party/cuew/include<br>
&gt;&gt;      -I/home/paulm/c/cycles-git/<wbr>third_party/clew/include -isystem<br>
&gt;&gt;      /hpc/sw/boost-1.59.0-gnu/<wbr>include -isystem<br>
&gt;&gt;      /home/paulm/software/<wbr>openimageio-20160310/include -isystem<br>
&gt;&gt;      /home/paulm/software/<wbr>openimageio-20160310/include/<wbr>OpenImageIO -isystem<br>
&gt;&gt;      /home/paulm/software/openexr-<wbr>2.2.0/include<br>
&gt;&gt;      -I/home/paulm/c/cycles-git/<wbr>src/../third_party/atomic<br>
&gt;&gt;      -I/home/paulm/c/cycles-git/<wbr>src/device/..<br>
&gt;&gt;      -I/home/paulm/c/cycles-git/<wbr>src/device/../../glew-mx<br>
&gt;&gt;      -I/home/paulm/c/cycles-git/<wbr>src/device/../../../extern/<wbr>cuew/include<br>
&gt;&gt;      -isystem<br>
&gt;&gt;      /home/paulm/c/cycles-git/src/<wbr>device/../../../extern/clew/<wbr>include    -o<br>
&gt;&gt;      CMakeFiles/cycles_device.dir/<wbr>opencl/opencl_util.cpp.o -c<br>
&gt;&gt;      /home/paulm/c/cycles-git/src/<wbr>device/opencl/opencl_util.cpp<br>
&gt;&gt;      /home/paulm/c/cycles-git/src/<wbr>device/opencl/opencl_util.cpp:<wbr>287:11:<br>
&gt;&gt;      error: invalid operands to binary expression (&#39;ccl::StubStream&#39; and<br>
&gt;&gt;      &#39;string&#39; (aka &#39;basic_string&lt;char&gt;&#39;))<br>
&gt;&gt;                        VLOG(2) &lt;&lt; msg;<br>
&gt;&gt;                        ~~~~~~~ ^  ~~~<br>
&gt;&gt;<br>
&gt;&gt;      The compiler suite used here is a bit old, the above error is with clang<br>
&gt;&gt;      3.6.2, but I also get it with Intel ICC 15 and GCC 5.2.0. It seems the<br>
&gt;&gt;      error goes away when using -std=c++11 for this file, but this introduces<br>
&gt;&gt;      issues for other files, e.g.<br>
&gt;&gt;<br>
&gt;&gt;      [paulm@int2 cycles-release]$ make VERBOSE=1<br>
&gt;&gt;      ...<br>
&gt;&gt;      [  1%] Building C object<br>
&gt;&gt;      third_party/clew/CMakeFiles/<wbr>extern_clew.dir/src/clew.c.o<br>
&gt;&gt;      cd /home/paulm/c/cycles-release/<wbr>third_party/clew &amp;&amp;<br>
&gt;&gt;      /hpc/sw/clang-3.6.2/bin/clang  -DCL_USE_DEPRECATED_OPENCL_1_<wbr>1_APIS<br>
&gt;&gt;      -DNDEBUG -std=c++11 -Wall -Wno-sign-compare -fno-strict-aliasing<br>
&gt;&gt;      -I/home/paulm/c/cycles-git/<wbr>third_party/cuew/include<br>
&gt;&gt;      -I/home/paulm/c/cycles-git/<wbr>third_party/clew/include<br>
&gt;&gt;      -I/home/paulm/c/cycles-git/<wbr>third_party/clew/.    -o<br>
&gt;&gt;      CMakeFiles/extern_clew.dir/<wbr>src/clew.c.o   -c<br>
&gt;&gt;      /home/paulm/c/cycles-git/<wbr>third_party/clew/src/clew.c<br>
&gt;&gt;      error: invalid argument &#39;-std=c++11&#39; not allowed with &#39;C/ObjC&#39;<br>
&gt;&gt;<br>
&gt;&gt;      Apparently, CMAKE_CXX_FLAGS is used for C files as well, which clang<br>
&gt;&gt;      doesn&#39;t like for -std=c++11.<br>
&gt;&gt;<br>
&gt;&gt;      On my workstation I have GCC 7.1, which seems to have C++11 enabled by<br>
&gt;&gt;      default (without a switch). So before I dig in any further, should the<br>
&gt;&gt;      cycles code compile without C++11 mode or is it mandatory?<br>
&gt;&gt;<br>
&gt;&gt;      Regards,<br>
&gt;&gt;      Paul<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;      --<br>
&gt;&gt;<br>
&gt;&gt;      Paul Melis<br>
&gt;&gt;      | Visualization group leader &amp; developer | SURFsara |<br>
&gt;&gt;      | Science Park 140 | 1098 XG Amsterdam |<br>
&gt;&gt;      | T 020 800 1312 &lt;tel:020%20800%201312&gt; | <a href="mailto:paul.melis@surfsara.nl">paul.melis@surfsara.nl</a><br>
&gt;&gt;      &lt;mailto:<a href="mailto:paul.melis@surfsara.nl">paul.melis@surfsara.nl</a><wbr>&gt; | <a href="http://www.surfsara.nl" rel="noreferrer" target="_blank">www.surfsara.nl</a><br>
&gt;&gt;      &lt;<a href="http://www.surfsara.nl" rel="noreferrer" target="_blank">http://www.surfsara.nl</a>&gt; |<br>
&gt;&gt;      ______________________________<wbr>_________________<br>
&gt;&gt;      Bf-cycles mailing list<br>
&gt;&gt;      <a href="mailto:Bf-cycles@blender.org">Bf-cycles@blender.org</a> &lt;mailto:<a href="mailto:Bf-cycles@blender.org">Bf-cycles@blender.org</a>&gt;<br>
&gt;&gt;      <a href="https://lists.blender.org/mailman/listinfo/bf-cycles" rel="noreferrer" target="_blank">https://lists.blender.org/<wbr>mailman/listinfo/bf-cycles</a><br>
&gt;&gt;      &lt;<a href="https://lists.blender.org/mailman/listinfo/bf-cycles" rel="noreferrer" target="_blank">https://lists.blender.org/<wbr>mailman/listinfo/bf-cycles</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; With best regards, Sergey Sharybin<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; ______________________________<wbr>_________________<br>
&gt;&gt; Bf-cycles mailing list<br>
&gt;&gt; <a href="mailto:Bf-cycles@blender.org">Bf-cycles@blender.org</a><br>
&gt;&gt; <a href="https://lists.blender.org/mailman/listinfo/bf-cycles" rel="noreferrer" target="_blank">https://lists.blender.org/<wbr>mailman/listinfo/bf-cycles</a><br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
<br>
<br>
--<br>
<br>
Paul Melis<br>
| Visualization group leader &amp; developer | SURFsara |<br>
| Science Park 140 | 1098 XG Amsterdam |<br>
| T <a href="tel:020%20800%201312" value="+31208001312">020 800 1312</a> | <a href="mailto:paul.melis@surfsara.nl">paul.melis@surfsara.nl</a> | <a href="http://www.surfsara.nl" rel="noreferrer" target="_blank">www.surfsara.nl</a> |<br>
______________________________<wbr>_________________<br>
Bf-cycles mailing list<br>
<a href="mailto:Bf-cycles@blender.org">Bf-cycles@blender.org</a><br>
<a href="https://lists.blender.org/mailman/listinfo/bf-cycles" rel="noreferrer" target="_blank">https://lists.blender.org/<wbr>mailman/listinfo/bf-cycles</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div><span style="color:rgb(102,102,102)">With best regards, Sergey Sharybin</span></div></div>
</div>