<h5 dir="auto">System information (version)</h5>

<ul dir="auto">
<li>OpenCV =&gt; 4.1.2</li>
<li>Operating System / Platform =&gt; Arch Linux</li>
<li>Compiler =&gt; gcc 9.2.0</li>
</ul>
<h5 dir="auto">Detailed description</h5>

<p dir="auto">Compilation of core module fails when specifying WITH_TBB=ON CMake option.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In file included from /usr/include/c++/9.2.0/ext/string_conversions.h:41,
                 from /usr/include/c++/9.2.0/bits/basic_string.h:6493,
                 from /usr/include/c++/9.2.0/string:55,
                 from /usr/include/c++/9.2.0/stdexcept:39,
                 from /usr/include/c++/9.2.0/array:39,
                 from /home/andrew/opencv/modules/core/include/opencv2/core/cvdef.h:700,
                 from /home/andrew/opencv/modules/core/include/opencv2/core.hpp:52,
                 from /home/andrew/opencv/modules/core/include/opencv2/core/utility.hpp:56,
                 from /home/andrew/opencv/modules/core/src/precomp.hpp:49,
                 from /home/andrew/opencv/modules/core/src/algorithm.cpp:43:
/usr/include/c++/9.2.0/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
   75 | #include_next &lt;stdlib.h&gt;
      |               ^~~~~~~~~~
compilation terminated."><pre class="notranslate"><code class="notranslate">In file included from /usr/include/c++/9.2.0/ext/string_conversions.h:41,
                 from /usr/include/c++/9.2.0/bits/basic_string.h:6493,
                 from /usr/include/c++/9.2.0/string:55,
                 from /usr/include/c++/9.2.0/stdexcept:39,
                 from /usr/include/c++/9.2.0/array:39,
                 from /home/andrew/opencv/modules/core/include/opencv2/core/cvdef.h:700,
                 from /home/andrew/opencv/modules/core/include/opencv2/core.hpp:52,
                 from /home/andrew/opencv/modules/core/include/opencv2/core/utility.hpp:56,
                 from /home/andrew/opencv/modules/core/src/precomp.hpp:49,
                 from /home/andrew/opencv/modules/core/src/algorithm.cpp:43:
/usr/include/c++/9.2.0/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
   75 | #include_next &lt;stdlib.h&gt;
      |               ^~~~~~~~~~
compilation terminated.
</code></pre></div>
<p dir="auto">The error seems unrelated to TBB, but it doesn't appear without WITH_TBB=ON. Probably a bug in CMake files?</p>
<h5 dir="auto">Steps to reproduce</h5>

<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="cmake ../opencv \
    -DWITH_TBB=ON \
    -DLAPACK_LIBRARIES=&quot;/usr/lib/liblapack.so;/usr/lib/libblas.so;/usr/lib/libcblas.so&quot; \
    -DLAPACK_CBLAS_H=&quot;/usr/include/cblas.h&quot; \
    -DLAPACK_LAPACKE_H=&quot;/usr/include/lapacke.h&quot;
make -j $(nproc)"><pre class="notranslate">cmake ../opencv \
    -DWITH_TBB=ON \
    -DLAPACK_LIBRARIES=<span class="pl-s"><span class="pl-pds">"</span>/usr/lib/liblapack.so;/usr/lib/libblas.so;/usr/lib/libcblas.so<span class="pl-pds">"</span></span> \
    -DLAPACK_CBLAS_H=<span class="pl-s"><span class="pl-pds">"</span>/usr/include/cblas.h<span class="pl-pds">"</span></span> \
    -DLAPACK_LAPACKE_H=<span class="pl-s"><span class="pl-pds">"</span>/usr/include/lapacke.h<span class="pl-pds">"</span></span>
make -j <span class="pl-s"><span class="pl-pds">$(</span>nproc<span class="pl-pds">)</span></span></pre></div>
<h5 dir="auto">System information (version)</h5>

<ul dir="auto">
<li>OpenCV =&gt; 4.1.0 (Master)</li>
<li>Operating System / Platform =&gt; Windows 10</li>
<li>Compiler =&gt; Visual Studio 2019</li>
</ul>
<h5 dir="auto">Detailed description</h5>

<h5 dir="auto">Steps to reproduce</h5>
<p dir="auto">There is no support for the ONNX <a href="https://github.com/onnx/onnx/blob/master/docs/Operators.md#expand">"Expand"</a> layer inside OpenCV.<br>
I will try to make this work myself, "Expand" basically broadcasts <a href="https://docs.scipy.org/doc/numpy/user/basics.broadcasting.html" rel="nofollow">(Numpy style)</a> a tensor to a specified size.</p>
<p dir="auto"><em>Feel free to find a solution yourself as it might take quite a while for me to figure this out!</em></p>