Building Blender on Kubuntu 19.10

Greets everyone.
After install the latest Kubuntu (19.10) on Friday, I haven’t been able to compile Blender from source :frowning:

Here’s the error I get:


(base) ilias@isonlap-SVE1712V1EB:~/blender-git/build$ make -j8 BUILD_CMAKE_ARGS="-U SNDFILE -U PYTHON -U BOOST -U Boost -U OPENCOLORIO -U OPENEXR -U OPENIMAGEIO -U LLVM -U CYCLES -U OPENSUBDIV -U OPENVDB -U COLLADA -U FFMPEG -D WITH_CODEC_SNDFILE=ON -D PYTHON_VERSION=3.7 -D WITH_OPENCOLORIO=ON -D OPENCOLORIO_ROOT_DIR=/opt/lib/ocio -D WITH_OPENIMAGEIO=ON -D OPENIMAGEIO_ROOT_DIR=/opt/lib/oiio -D WITH_CYCLES_OSL=ON -D WITH_LLVM=ON -D LLVM_VERSION=6.0 -D OSL_ROOT_DIR=/opt/lib/osl -D WITH_OPENSUBDIV=ON -D OPENSUBDIV_ROOT_DIR=/opt/lib/osd -D WITH_OPENVDB=ON -D WITH_OPENVDB_BLOSC=ON -D WITH_OPENIMAGEDENOISE=ON -D OPENIMAGEDENOISE_ROOT_DIR=/opt/lib/oidn -D WITH_JACK=ON -D WITH_JACK_DYNLOAD=ON -D WITH_CODEC_FFMPEG=ON -D FFMPEG_LIBRARIES=‘avformat;avcodec;avutil;avdevice;swscale;swresample;lzma;rt;theora;theoradec;theoraenc;vorbis;vorbisenc;vorbisfile;ogg;xvidcore;vpx;opus;mp3lame;x264;openjp2’"
[ 0%] Built target datatoc
[ 0%] Built target bf_intern_guardedalloc
[ 0%] Built target bf_intern_string
[ 0%] Built target bf_intern_memutil
[ 0%] Built target bf_intern_numaapi
[ 0%] Built target bf_intern_clog
[ 1%] Built target bf_intern_ghost
[ 1%] Built target bf_intern_mikktspace
[ 1%] Built target bf_intern_glew_mx
[ 1%] Built target bf_intern_audaspace
[ 1%] Built target bf_intern_dualcon
[ 2%] Built target bf_intern_elbeem
[ 2%] Built target bf_intern_smoke
[ 2%] Built target bf_intern_eigen
[ 2%] Built target bf_dna_blenlib
[ 2%] Built target bf_intern_iksolver
[ 2%] Built target extern_cuew
[ 2%] Built target makesdna
[ 2%] Built target extern_clew
[ 3%] Built target bf_intern_itasc
[ 3%] Built target bf_intern_locale
[ 3%] Built target cycles_graph
[ 4%] Built target bf_intern_libmv
[ 4%] Built target cycles_subd
[ 5%] Built target cycles_util
[ 6%] Built target bf_intern_rigidbody
[ 7%] Built target cycles_render
[ 7%] Built target extern_curve_fit_nd
[ 7%] Built target cycles_kernel
[ 7%] Built target bf_intern_quadriflow
[ 7%] Built target extern_rangetree
[ 7%] Built target bf_intern_openvdb
[ 7%] Built target extern_wcwidth
[ 7%] Built target extern_binreloc
[ 7%] Built target extern_glew
[ 7%] Built target extern_xdnd
[ 7%] Built target extern_lzma
[ 7%] Built target extern_minilzo
[ 8%] Built target dracoenc
[ 9%] Built target extern_gflags
[ 9%] Built target datatoc_icon
[ 9%] Built target extern_glog
[ 13%] Built target extern_bullet
[ 15%] Built target audaspace
[ 16%] Built target bf_editor_animation
[ 16%] Built target bf_editor_armature
[ 17%] Built target bf_editor_curve
[ 17%] Built target extern_quadriflow
[ 17%] Built target bf_editor_gpencil
[ 17%] Built target bf_editor_lattice
[ 18%] Built target bf_editor_io
[ 18%] Built target bf_editor_mask
[ 19%] Built target bf_editor_interface
[ 19%] Built target bf_editor_metaball
[ 20%] Built target bf_editor_gizmo_library
[ 20%] Built target bf_editor_scene
[ 21%] Built target bf_editor_physics
[ 21%] Built target bf_editor_render
[ 22%] Built target bf_editor_mesh
[ 22%] Built target bf_editor_object
[ 22%] Built target bf_editor_sound
[ 22%] Built target bf_editor_space_api
[ 22%] Built target bf_editor_space_action
[ 22%] Built target bf_editor_space_buttons
[ 23%] Built target bf_editor_sculpt_paint
[ 24%] Built target bf_editor_space_clip
[ 24%] Built target bf_editor_space_console
[ 24%] Built target bf_editor_space_file
[ 24%] Built target bf_editor_space_info
[ 27%] Built target extern_ceres
[ 27%] Built target bf_editor_space_graph
[ 28%] Built target bf_editor_space_image
[ 28%] Built target bf_editor_space_nla
[ 28%] Built target bf_editor_space_node
[ 29%] Built target bf_editor_space_outliner
[ 29%] Built target bf_editor_space_script
[ 29%] Built target bf_editor_space_statusbar
[ 29%] Built target bf_editor_space_topbar
[ 29%] Built target bf_editor_space_sequencer
[ 29%] Built target bf_editor_space_text
[ 30%] Built target bf_editor_space_userpref
[ 30%] Built target bf_editor_undo
[ 30%] Built target bf_editor_util
[ 30%] Built target bf_editor_uvedit
Scanning dependencies of target bf_blenlib
[ 30%] Built target bf_editor_screen
[ 31%] Built target bf_editor_transform
[ 31%] Built target bf_render
[ 32%] Built target bf_windowmanager
[ 32%] Building C object source/blender/blenlib/CMakeFiles/bf_blenlib.dir/intern/math_matrix.c.o
[ 32%] Built target bf_blenfont
[ 32%] Built target bf_blentranslation
[ 35%] Built target bf_editor_datafiles
[ 35%] Built target bf_ikplugin
[ 37%] Built target bf_bmesh
Scanning dependencies of target bf_imbuf
[ 38%] Built target bf_physics
[ 39%] Built target bf_depsgraph
[ 49%] Built target bf_gpu
[ 49%] Building C object source/blender/imbuf/CMakeFiles/bf_imbuf.dir/intern/jp2.c.o
[ 49%] Built target bf_gpencil_modifiers
[ 49%] Built target bf_shader_fx
[ 61%] Built target bf_draw
[ 62%] Built target bf_modifiers
[ 62%] Built target bf_imbuf_openexr
[ 63%] Built target bf_imbuf_dds
[ 63%] Built target bf_imbuf_openimageio
[ 63%] Built target bf_imbuf_cineon
Scanning dependencies of target bf_python_ext
[ 63%] Built target bf_avi
Scanning dependencies of target bf_python_gpu
Scanning dependencies of target bf_python
Scanning dependencies of target bf_python_mathutils
[ 63%] Building C object source/blender/python/generic/CMakeFiles/bf_python_ext.dir/bgl.c.o
[ 68%] Built target bf_nodes
[ 68%] Building C object source/blender/python/gpu/CMakeFiles/bf_python_gpu.dir/gpu_py_batch.c.o
[ 68%] Building C object source/blender/python/generic/CMakeFiles/bf_python_ext.dir/idprop_py_api.c.o
[ 68%] Building C object source/blender/python/mathutils/CMakeFiles/bf_python_mathutils.dir/mathutils.c.o
[ 74%] Built target bf_compositor
[ 74%] Building C object source/blender/python/gpu/CMakeFiles/bf_python_gpu.dir/gpu_py_element.c.o
[ 74%] Building C object source/blender/python/intern/CMakeFiles/bf_python.dir/bpy.c.o
[ 74%] Building C object source/blender/python/intern/CMakeFiles/bf_python.dir/bpy_app.c.o
[ 74%] Building C object source/blender/python/intern/CMakeFiles/bf_python.dir/bpy_app_alembic.c.o
[ 74%] Building C object source/blender/python/gpu/CMakeFiles/bf_python_gpu.dir/gpu_py_matrix.c.o
[ 74%] Building C object source/blender/python/mathutils/CMakeFiles/bf_python_mathutils.dir/mathutils_Color.c.o
[ 74%] Building C object source/blender/python/generic/CMakeFiles/bf_python_ext.dir/imbuf_py_api.c.o
[ 74%] Building C object source/blender/python/mathutils/CMakeFiles/bf_python_mathutils.dir/mathutils_Euler.c.o
[ 74%] Building C object source/blender/python/intern/CMakeFiles/bf_python.dir/bpy_app_ffmpeg.c.o
[ 74%] Building C object source/blender/python/gpu/CMakeFiles/bf_python_gpu.dir/gpu_py_offscreen.c.o
[ 74%] Linking C static library …/…/…/lib/libbf_imbuf.a
[ 75%] Built target bf_imbuf
[ 75%] Building C object source/blender/python/intern/CMakeFiles/bf_python.dir/bpy_app_icons.c.o
[ 75%] Building C object source/blender/python/intern/CMakeFiles/bf_python.dir/bpy_app_ocio.c.o
[ 75%] Building C object source/blender/python/gpu/CMakeFiles/bf_python_gpu.dir/gpu_py_select.c.o
[ 75%] Building C object source/blender/python/mathutils/CMakeFiles/bf_python_mathutils.dir/mathutils_Matrix.c.o
Scanning dependencies of target bf_python_bmesh
[ 75%] Building C object source/blender/python/mathutils/CMakeFiles/bf_python_mathutils.dir/mathutils_Quaternion.c.o
[ 75%] Building C object source/blender/python/bmesh/CMakeFiles/bf_python_bmesh.dir/bmesh_py_api.c.o
[ 75%] Building C object source/blender/python/gpu/CMakeFiles/bf_python_gpu.dir/gpu_py_shader.c.o
[ 75%] Building C object source/blender/python/gpu/CMakeFiles/bf_python_gpu.dir/gpu_py_types.c.o
[ 75%] Building C object source/blender/python/intern/CMakeFiles/bf_python.dir/bpy_app_oiio.c.o
[ 75%] Building C object source/blender/python/bmesh/CMakeFiles/bf_python_bmesh.dir/bmesh_py_ops_call.c.o
[ 75%] Building C object source/blender/python/gpu/CMakeFiles/bf_python_gpu.dir/gpu_py_vertex_buffer.c.o
[ 75%] Building C object source/blender/python/intern/CMakeFiles/bf_python.dir/bpy_app_opensubdiv.c.o
[ 75%] Building C object source/blender/python/gpu/CMakeFiles/bf_python_gpu.dir/gpu_py_vertex_format.c.o
[ 75%] Linking CXX static library …/…/…/lib/libbf_blenlib.a
[ 75%] Building C object source/blender/python/intern/CMakeFiles/bf_python.dir/bpy_app_openvdb.c.o
[ 75%] Building C object source/blender/python/bmesh/CMakeFiles/bf_python_bmesh.dir/bmesh_py_types.c.o
[ 78%] Built target bf_blenlib
[ 78%] Building C object source/blender/python/bmesh/CMakeFiles/bf_python_bmesh.dir/bmesh_py_types_customdata.c.o
[ 78%] Building C object source/blender/python/intern/CMakeFiles/bf_python.dir/bpy_app_sdl.c.o
[ 78%] Generating buildinfo.h_fake, buildinfo.h
[ 78%] Linking C static library …/…/…/…/lib/libbf_python_gpu.a
Scanning dependencies of target bf_freestyle
[ 78%] Building C object source/blender/python/intern/CMakeFiles/bf_python.dir/bpy_app_timers.c.o
[ 78%] Built target bf_python_gpu
[ 79%] Built target bf_intern_opencolorio
[ 79%] Built target buildinfo
[ 79%] Building C object source/blender/python/generic/CMakeFiles/bf_python_ext.dir/py_capi_utils.c.o
[ 79%] Built target bf_dna
[ 79%] Built target bf_intern_opensubdiv
[ 79%] Building C object source/blender/python/intern/CMakeFiles/bf_python.dir/bpy_capi_utils.c.o
[ 79%] Building C object source/blender/python/intern/CMakeFiles/bf_python.dir/bpy_interface.c.o
[ 79%] Building C object source/blender/python/mathutils/CMakeFiles/bf_python_mathutils.dir/mathutils_Vector.c.o
[ 79%] Building C object source/blender/python/mathutils/CMakeFiles/bf_python_mathutils.dir/mathutils_bvhtree.c.o
[ 79%] Building CXX object source/blender/freestyle/CMakeFiles/bf_freestyle.dir/intern/python/StrokeShader/BPy_BlenderTextureShader.cpp.o
[ 79%] Building C object source/blender/python/mathutils/CMakeFiles/bf_python_mathutils.dir/mathutils_geometry.c.o
[ 79%] Building C object source/blender/python/bmesh/CMakeFiles/bf_python_bmesh.dir/bmesh_py_types_meshdata.c.o
[ 79%] Building C object source/blender/python/intern/CMakeFiles/bf_python.dir/bpy_library_load.c.o
[ 79%] Linking C static library …/…/…/…/lib/libbf_python_ext.a
[ 79%] Building C object source/blender/python/intern/CMakeFiles/bf_python.dir/bpy_library_write.c.o
[ 79%] Building C object source/blender/python/intern/CMakeFiles/bf_python.dir/bpy_msgbus.c.o
[ 79%] Built target bf_python_ext
[ 79%] Building C object source/blender/python/bmesh/CMakeFiles/bf_python_bmesh.dir/bmesh_py_types_select.c.o
[ 80%] Built target cycles_device
[ 80%] Built target cycles_bvh
[ 80%] Built target extern_draco
[ 81%] Built target audaspace-py
[ 81%] Building C object source/blender/python/intern/CMakeFiles/bf_python.dir/bpy_operator.c.o
[ 81%] Building C object source/blender/python/mathutils/CMakeFiles/bf_python_mathutils.dir/mathutils_kdtree.c.o
[ 81%] Built target bf_editor_space_view3d
[ 81%] Building C object source/blender/python/bmesh/CMakeFiles/bf_python_bmesh.dir/bmesh_py_utils.c.o
[ 81%] Linking CXX executable …/…/…/…/bin/msgfmt
[ 81%] Building C object source/blender/python/intern/CMakeFiles/bf_python.dir/bpy_path.c.o
[ 81%] Building C object source/blender/python/intern/CMakeFiles/bf_python.dir/bpy_props.c.o
[ 81%] Built target msgfmt
[ 85%] Built target bf_blenkernel
[ 85%] Building C object source/blender/python/mathutils/CMakeFiles/bf_python_mathutils.dir/mathutils_noise.c.o
Scanning dependencies of target buildinfoobj
[ 85%] Building C object source/creator/CMakeFiles/buildinfoobj.dir/buildinfo.c.o
[ 85%] Generating ab.mo
[ 85%] Built target bf_blenloader
[ 85%] Built target buildinfoobj
[ 85%] Generating ar.mo
[ 85%] Building C object source/blender/python/intern/CMakeFiles/bf_python.dir/bpy_rna.c.o
[ 85%] Building C object source/blender/python/intern/CMakeFiles/bf_python.dir/bpy_rna_array.c.o
[ 85%] Linking C static library …/…/…/…/lib/libbf_python_bmesh.a
[ 85%] Generating ca.mo
[ 85%] Built target bf_python_bmesh
[ 87%] Built target makesrna
[ 87%] Generating cs.mo
[ 87%] Generating de.mo
[ 87%] Building C object source/blender/python/intern/CMakeFiles/bf_python.dir/bpy_rna_gizmo.c.o
[ 87%] Generating eo.mo
[ 89%] Built target bf_rna
[ 89%] Linking C static library …/…/…/…/lib/libbf_python_mathutils.a
[ 89%] Generating es.mo
[ 89%] Building C object source/blender/python/intern/CMakeFiles/bf_python.dir/bpy_rna_id_collection.c.o
[ 90%] Built target bf_python_mathutils
[ 90%] Built target bf_intern_cycles
[ 90%] Building C object source/blender/python/intern/CMakeFiles/bf_python.dir/bpy_utils_units.c.o
[ 90%] Generating es_ES.mo
[ 90%] Generating eu.mo
[ 90%] Generating fa.mo
[ 90%] Linking CXX static library …/…/…/lib/libbf_freestyle.a
[ 90%] Generating fr.mo
[ 90%] Generating ha.mo
[ 90%] Generating he.mo
[ 90%] Generating hi.mo
[ 90%] Generating hr.mo
[ 90%] Generating hu.mo
[ 90%] Generating id.mo
[ 90%] Generating it.mo
[ 90%] Generating ja.mo
[ 90%] Generating ko.mo
[ 90%] Generating ky.mo
[ 90%] Generating nl.mo
[ 90%] Generating pl.mo
[ 90%] Generating pt.mo
[ 90%] Generating pt_BR.mo
[ 90%] Generating ru.mo
[ 90%] Generating sk.mo
[ 90%] Generating sr.mo
[ 90%] Generating sr@latin.mo
[ 90%] Generating sv.mo
[ 90%] Generating tr.mo
[ 90%] Generating th.mo
[ 90%] Generating uk.mo
[ 91%] Generating vi.mo
[ 91%] Generating zh_CN.mo
[ 91%] Generating zh_TW.mo
[ 98%] Built target bf_freestyle
[ 98%] Built target locales
[ 98%] Linking C static library …/…/…/…/lib/libbf_python.a
[100%] Built target bf_python
Scanning dependencies of target blender
[100%] Building C object source/creator/CMakeFiles/blender.dir/buildinfo.c.o
[100%] Linking CXX executable …/…/bin/blender
…/…/lib/libbf_intern_libmv.a(camera_intrinsics.cc.o):camera_intrinsics.cc:function void libmv::internal::LookupWarpGrid::Compute<libmv::(anonymous namespace)::ApplyIntrinsicsFunction>(libmv::CameraIntrinsics const&, int, int, double) [clone ._omp_fn.0]: error: undefined reference to ‘GOMP_loop_nonmonotonic_dynamic_start’
…/…/lib/libbf_intern_libmv.a(camera_intrinsics.cc.o):camera_intrinsics.cc:function void libmv::internal::LookupWarpGrid::Compute<libmv::(anonymous namespace)::ApplyIntrinsicsFunction>(libmv::CameraIntrinsics const&, int, int, double) [clone ._omp_fn.0]: error: undefined reference to ‘GOMP_loop_nonmonotonic_dynamic_next’
…/…/lib/libbf_intern_libmv.a(camera_intrinsics.cc.o):camera_intrinsics.cc:function void libmv::internal::LookupWarpGrid::Compute<libmv::(anonymous namespace)::InvertIntrinsicsFunction>(libmv::CameraIntrinsics const&, int, int, double) [clone ._omp_fn.0]: error: undefined reference to ‘GOMP_loop_nonmonotonic_dynamic_start’
…/…/lib/libbf_intern_libmv.a(camera_intrinsics.cc.o):camera_intrinsics.cc:function void libmv::internal::LookupWarpGrid::Compute<libmv::(anonymous namespace)::InvertIntrinsicsFunction>(libmv::CameraIntrinsics const&, int, int, double) [clone ._omp_fn.0]: error: undefined reference to ‘GOMP_loop_nonmonotonic_dynamic_next’
…/…/lib/libbf_intern_libmv.a(camera_intrinsics.cc.o):camera_intrinsics.cc:function void libmv::internal::LookupWarpGrid::Apply(unsigned char const*, int, int, int, unsigned char*) [clone ._omp_fn.0]: error: undefined reference to ‘GOMP_loop_nonmonotonic_dynamic_start’
…/…/lib/libbf_intern_libmv.a(camera_intrinsics.cc.o):camera_intrinsics.cc:function void libmv::internal::LookupWarpGrid::Apply(unsigned char const*, int, int, int, unsigned char*) [clone ._omp_fn.0]: error: undefined reference to ‘GOMP_loop_nonmonotonic_dynamic_next’
…/…/lib/libbf_intern_libmv.a(camera_intrinsics.cc.o):camera_intrinsics.cc:function void libmv::internal::LookupWarpGrid::Apply(float const*, int, int, int, float*) [clone ._omp_fn.0]: error: undefined reference to ‘GOMP_loop_nonmonotonic_dynamic_start’
…/…/lib/libbf_intern_libmv.a(camera_intrinsics.cc.o):camera_intrinsics.cc:function void libmv::internal::LookupWarpGrid::Apply(float const*, int, int, int, float*) [clone ._omp_fn.0]: error: undefined reference to ‘GOMP_loop_nonmonotonic_dynamic_next’
collect2: error: ld returned 1 exit status
make[2]: *** [source/creator/CMakeFiles/blender.dir/build.make:414: bin/blender] Error 1
make[1]: *** [CMakeFiles/Makefile2:7834: source/creator/CMakeFiles/blender.dir/all] Error 2
make: *** [Makefile:163: all] Error 2


What am I missing?

Thanx in advance! :slight_smile:

What command are you running and from what directory? How did you install the dependencies?

The command is the following:

make -j8 BUILD_CMAKE_ARGS="-U SNDFILE -U PYTHON -U BOOST -U Boost -U OPENCOLORIO -U OPENEXR -U OPENIMAGEIO -U LLVM -U CYCLES -U OPENSUBDIV -U OPENVDB -U COLLADA -U FFMPEG -D WITH_CODEC_SNDFILE=ON -D PYTHON_VERSION=3.7 -D WITH_OPENCOLORIO=ON -D OPENCOLORIO_ROOT_DIR=/opt/lib/ocio -D WITH_OPENIMAGEIO=ON -D OPENIMAGEIO_ROOT_DIR=/opt/lib/oiio -D WITH_CYCLES_OSL=ON -D WITH_LLVM=ON -D LLVM_VERSION=6.0 -D OSL_ROOT_DIR=/opt/lib/osl -D WITH_OPENSUBDIV=ON -D OPENSUBDIV_ROOT_DIR=/opt/lib/osd -D WITH_OPENVDB=ON -D WITH_OPENVDB_BLOSC=ON -D WITH_OPENIMAGEDENOISE=ON -D OPENIMAGEDENOISE_ROOT_DIR=/opt/lib/oidn -D WITH_JACK=ON -D WITH_JACK_DYNLOAD=ON -D WITH_CODEC_FFMPEG=ON -D FFMPEG_LIBRARIES=‘avformat;avcodec;avutil;avdevice;swscale;swresample;lzma;rt;theora;theoradec;theoraenc;vorbis;vorbisenc;vorbisfile;ogg;xvidcore;vpx;opus;mp3lame;x264;openjp2’"

which I run from the build directory (as instructed by the wiki).

Dependencies were installed using the install_deps script.
Everything is done by the book! :slight_smile:

I’d appreciate any feedback and/or suggestions as to how to resolve this.

OpenMP is giving linking errors, you could track down which library contains GOMP_loop_nonmonotonic_dynamic_start and adjust values with the OpenMP_ prefix, such as OpenMP_gomp_LIBRARY in your CMakeCache.txt.
You could try toggling WITH_OPENMP_STATIC too.

Or if you’re starting out and not wanting to troubleshoot linking errors, disable WITH_OPENMP.