<h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV =&gt; Git Master</li>
<li>Operating System / Platform =&gt; Raspbain Buster - 32 Bit</li>
<li>Compiler =&gt; gcc 8.3.0</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">Cmake is running fine, but make fails with internal compiler error: Segmentation fault</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[  1%] Linking C static library ../lib/libquirc.a
during GIMPLE pass: slp
/home/pi/opencv/3rdparty/protobuf/src/google/protobuf/arena.cc: In member function 'google::protobuf::internal::ArenaImpl::Block* google::protobuf::internal::ArenaImpl::GetBlockSlow(void*, google::protobuf::internal::ArenaImpl::Block*, size_t)':
/home/pi/opencv/3rdparty/protobuf/src/google/protobuf/arena.cc:230:19: internal compiler error: Segmentation fault
 ArenaImpl::Block* ArenaImpl::GetBlockSlow(void* me, Block* my_full_block,
                   ^~~~~~~~~
[  1%] Built target quir"><pre class="notranslate"><code class="notranslate">[  1%] Linking C static library ../lib/libquirc.a
during GIMPLE pass: slp
/home/pi/opencv/3rdparty/protobuf/src/google/protobuf/arena.cc: In member function 'google::protobuf::internal::ArenaImpl::Block* google::protobuf::internal::ArenaImpl::GetBlockSlow(void*, google::protobuf::internal::ArenaImpl::Block*, size_t)':
/home/pi/opencv/3rdparty/protobuf/src/google/protobuf/arena.cc:230:19: internal compiler error: Segmentation fault
 ArenaImpl::Block* ArenaImpl::GetBlockSlow(void* me, Block* my_full_block,
                   ^~~~~~~~~
[  1%] Built target quir
</code></pre></div>
<h5 dir="auto">Steps to reproduce</h5>
<ul dir="auto">
<li><code class="notranslate">cd ~</code></li>
<li><code class="notranslate">git clone https://github.com/opencv/opencv</code></li>
<li><code class="notranslate">git clone https://github.com/opencv/opencv_contrib</code></li>
<li><code class="notranslate">cd opencv</code></li>
<li><code class="notranslate">mkdir build &amp;&amp; cd build</code></li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="cmake -D CMAKE_BUILD_TYPE=RELEASE \
 -D CMAKE_INSTALL_PREFIX=/usr/local \
 -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules \
 -D ENABLE_NEON=ON \
 -D ENABLE_VFPV3=ON \
 -D BUILD_TESTS=OFF \
 -D OPENCV_ENABLE_NONFREE=ON \
 -D INSTALL_PYTHON_EXAMPLES=OFF \
 -D CMAKE_CXX_FLAGS=-latomic \
 -D OPENCV_EXTRA_EXE_LINKER_FLAGS=-latomic \
 -D BUILD_EXAMPLES=OFF .."><pre class="notranslate"><code class="notranslate">cmake -D CMAKE_BUILD_TYPE=RELEASE \
 -D CMAKE_INSTALL_PREFIX=/usr/local \
 -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules \
 -D ENABLE_NEON=ON \
 -D ENABLE_VFPV3=ON \
 -D BUILD_TESTS=OFF \
 -D OPENCV_ENABLE_NONFREE=ON \
 -D INSTALL_PYTHON_EXAMPLES=OFF \
 -D CMAKE_CXX_FLAGS=-latomic \
 -D OPENCV_EXTRA_EXE_LINKER_FLAGS=-latomic \
 -D BUILD_EXAMPLES=OFF ..
</code></pre></div>
<ul dir="auto">
<li><code class="notranslate">make -j4</code></li>
</ul>
<p dir="auto">Can anyone help me with this compilation error? Thanks</p>
<p dir="auto">Raspberry Pi 3 B+<br>
OpenCV 4.1.0</p>
<p dir="auto"><code class="notranslate">cmake -D CMAKE_BUILD_TYPE=RELEASE \ -D CMAKE_INSTALL_PREFIX=/usr/local \ -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules \ -D ENABLE_NEON=ON \ -D ENABLE_VFPV3=ON \ -D BUILD_TESTS=OFF \ -D INSTALL_PYTHON_EXAMPLES=OFF \ -D CMAKE_SIZEOF_VOID_P=4 \ -D BUILD_opencv_python3=TRUE \ -D PYTHON3_LIBRARY=/usr/lib/arm-linux-gnueabihf/libpython3.7m.so \ -D BUILD_EXAMPLES=OFF ..</code></p>
<p dir="auto">Error during compilation:</p>
<p dir="auto"><code class="notranslate">[ 98%] Built target gen_opencv_python_source [ 98%] Building CXX object modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.o during RTL pass: expand In file included from /home/pi/opencv/modules/python/src2/cv2.cpp:1722: /home/pi/opencv/build/modules/python_bindings_generator/pyopencv_generated_types.h: In function ‘PyObject* pyopencv_cv_detail_detail_BlocksGainCompensator_apply(PyObject*, PyObject*, PyObject*)’: /home/pi/opencv/build/modules/python_bindings_generator/pyopencv_generated_types.h:79645:17: internal compiler error: Segmentation fault const char* keywords[] = { "index", "corner", "image", "mask", NULL }; ^~~~~~~~ 0x76a7311f ??? ../sysdeps/unix/sysv/linux/arm/sigrestorer.S:64 0x76a5d717 __libc_start_main /build/glibc-FUvrFr/glibc-2.28/csu/libc-start.c:308 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See &lt;file:///usr/share/doc/gcc-8/README.Bugs&gt; for instructions. make[2]: *** [modules/python3/CMakeFiles/opencv_python3.dir/build.make:63: modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:11793: modules/python3/CMakeFiles/opencv_python3.dir/all] Error 2 make: *** [Makefile:163: all] Error 2 </code></p>
<p dir="auto"><a href="https://pastebin.com/5FnMjAQe" rel="nofollow">https://pastebin.com/5FnMjAQe</a><br>
Complete compilation: <a href="https://pastebin.com/ujKu1mRT" rel="nofollow">https://pastebin.com/ujKu1mRT</a></p>