Building Blender - Linking fails with OIDN enabled on Linux Mint 18.3 #69253

Closed
opened 2019-08-28 17:11:56 +02:00 by Samir Osman · 4 comments

System Information
Operating system: Linux Mint 18.3
Graphics card: GTX 780m

Blender Version
Broken: 2.81 master d5192d6fd6 28/08/2019 17:44 +3GMT

Short description of error
Blender fails to link when OIDN is enabled producing the following error messages:

lang=bash
[100%] Building C object source/creator/CMakeFiles/blender.dir/buildinfo.c.o
[100%] Linking CXX executable ../../bin/blender
/opt/lib/oidn/lib/libOpenImageDenoise.a(device.cpp.o):device.cpp:function oidn::Device::commit(): error: undefined reference to 'tbb::interface7::internal::task_arena_base::internal_max_concurrency(tbb::interface7::task_arena const*)'
/opt/lib/oidn/lib/libmkldnn.a(cpu_engine.cpp.o):cpu_engine.cpp:function mkldnn_status_t mkldnn_primitive_desc::create<mkldnn::impl::cpu::jit_avx512_common_convolution_fwd_t<(mkldnn_data_type_t)1, (mkldnn_data_type_t)1, (mkldnn_data_type_t)1>::pd_t>(mkldnn_primitive_desc**, mkldnn::impl::op_desc_t const*, mkldnn_primitive_attr const*, mkldnn_engine*, mkldnn_primitive_desc const*): error: undefined reference to 'tbb::interface7::internal::task_arena_base::internal_max_concurrency(tbb::interface7::task_arena const*)'
/opt/lib/oidn/lib/libmkldnn.a(cpu_engine.cpp.o):cpu_engine.cpp:function mkldnn_status_t mkldnn_primitive_desc::create<mkldnn::impl::cpu::jit_avx512_common_convolution_winograd_fwd_t::pd_t>(mkldnn_primitive_desc**, mkldnn::impl::op_desc_t const*, mkldnn_primitive_attr const*, mkldnn_engine*, mkldnn_primitive_desc const*): error: undefined reference to 'tbb::interface7::internal::task_arena_base::internal_max_concurrency(tbb::interface7::task_arena const*)'
/opt/lib/oidn/lib/libmkldnn.a(cpu_reorder.cpp.o):cpu_reorder.cpp:function mkldnn::impl::cpu::simple_reorder_impl<(mkldnn_data_type_t)1, (mkldnn_format_tag_t)1, (mkldnn_data_type_t)1, (mkldnn_format_tag_t)1, true, mkldnn::impl::cpu::spec::direct_copy_except_dim_0>::execute(mkldnn::impl::cpu::cpu_reorder_pd_t const*, float const*, float*): error: undefined reference to 'tbb::interface7::internal::task_arena_base::internal_max_concurrency(tbb::interface7::task_arena const*)'
collect2: error: ld returned 1 exit status
source/creator/CMakeFiles/blender.dir/build.make:425: recipe for target 'bin/blender' failed
make[3]: *** [bin/blender] Error 1
CMakeFiles/Makefile2:6578: recipe for target 'source/creator/CMakeFiles/blender.dir/all' failed
make[2]: *** [source/creator/CMakeFiles/blender.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make[1]: *** [all] Error 2
GNUmakefile:292: recipe for target 'all' failed
make: *** [all] Error 2

Full log is linked here: https://pastebin.com/JwtNPvBe

install_deps.sh completes successfully.

TBB (tbb2019_20190605oss_lin from github) is installed in /opt/tbb2019
Environment variables:

lang=bash
$PATH=/opt/tbb2019/include:/home/user/bin:/home/user/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
$LD_LIBRARY_PATH=/opt/tbb2019/lib/intel64/gcc4.7
$TBB_ROOT=/opt/tbb2019/

Exact steps for others to reproduce the error

  • Run install_deps.sh --with-oidn
  • Compile blender using the command provided in the BUILD_NOTES.txt

Build process stops at linking stage.

Building without OIDN works normally

**System Information** Operating system: Linux Mint 18.3 Graphics card: GTX 780m **Blender Version** Broken: 2.81 master d5192d6fd64959ccede2b9a0014f8b411dec225c 28/08/2019 17:44 +3GMT **Short description of error** Blender fails to link when OIDN is enabled producing the following error messages: ``` lang=bash [100%] Building C object source/creator/CMakeFiles/blender.dir/buildinfo.c.o [100%] Linking CXX executable ../../bin/blender /opt/lib/oidn/lib/libOpenImageDenoise.a(device.cpp.o):device.cpp:function oidn::Device::commit(): error: undefined reference to 'tbb::interface7::internal::task_arena_base::internal_max_concurrency(tbb::interface7::task_arena const*)' /opt/lib/oidn/lib/libmkldnn.a(cpu_engine.cpp.o):cpu_engine.cpp:function mkldnn_status_t mkldnn_primitive_desc::create<mkldnn::impl::cpu::jit_avx512_common_convolution_fwd_t<(mkldnn_data_type_t)1, (mkldnn_data_type_t)1, (mkldnn_data_type_t)1>::pd_t>(mkldnn_primitive_desc**, mkldnn::impl::op_desc_t const*, mkldnn_primitive_attr const*, mkldnn_engine*, mkldnn_primitive_desc const*): error: undefined reference to 'tbb::interface7::internal::task_arena_base::internal_max_concurrency(tbb::interface7::task_arena const*)' /opt/lib/oidn/lib/libmkldnn.a(cpu_engine.cpp.o):cpu_engine.cpp:function mkldnn_status_t mkldnn_primitive_desc::create<mkldnn::impl::cpu::jit_avx512_common_convolution_winograd_fwd_t::pd_t>(mkldnn_primitive_desc**, mkldnn::impl::op_desc_t const*, mkldnn_primitive_attr const*, mkldnn_engine*, mkldnn_primitive_desc const*): error: undefined reference to 'tbb::interface7::internal::task_arena_base::internal_max_concurrency(tbb::interface7::task_arena const*)' /opt/lib/oidn/lib/libmkldnn.a(cpu_reorder.cpp.o):cpu_reorder.cpp:function mkldnn::impl::cpu::simple_reorder_impl<(mkldnn_data_type_t)1, (mkldnn_format_tag_t)1, (mkldnn_data_type_t)1, (mkldnn_format_tag_t)1, true, mkldnn::impl::cpu::spec::direct_copy_except_dim_0>::execute(mkldnn::impl::cpu::cpu_reorder_pd_t const*, float const*, float*): error: undefined reference to 'tbb::interface7::internal::task_arena_base::internal_max_concurrency(tbb::interface7::task_arena const*)' collect2: error: ld returned 1 exit status source/creator/CMakeFiles/blender.dir/build.make:425: recipe for target 'bin/blender' failed make[3]: *** [bin/blender] Error 1 CMakeFiles/Makefile2:6578: recipe for target 'source/creator/CMakeFiles/blender.dir/all' failed make[2]: *** [source/creator/CMakeFiles/blender.dir/all] Error 2 Makefile:162: recipe for target 'all' failed make[1]: *** [all] Error 2 GNUmakefile:292: recipe for target 'all' failed make: *** [all] Error 2 ``` Full log is linked here: https://pastebin.com/JwtNPvBe install_deps.sh completes successfully. TBB (tbb2019_20190605oss_lin from github) is installed in /opt/tbb2019 Environment variables: ``` lang=bash $PATH=/opt/tbb2019/include:/home/user/bin:/home/user/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin $LD_LIBRARY_PATH=/opt/tbb2019/lib/intel64/gcc4.7 $TBB_ROOT=/opt/tbb2019/ ``` **Exact steps for others to reproduce the error** - Run install_deps.sh --with-oidn - Compile blender using the command provided in the BUILD_NOTES.txt # Build process stops at linking stage. Building without OIDN works normally
Author

Added subscriber: @Samir-Osman

Added subscriber: @Samir-Osman

Added subscriber: @brecht

Added subscriber: @brecht

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Brecht Van Lommel self-assigned this 2019-08-28 18:08:23 +02:00

For help building Blender, please use:
https://devtalk.blender.org/c/blender/building-blender

Manually installing another TBB version is likely to give issue like this, normally TBB should be installed through install_deps already.

If you want to build with another TBB version, you need to edit CMakeCache.txt rather than setting environment variables. Setting an include directory in PATH also makes no sense.

For help building Blender, please use: https://devtalk.blender.org/c/blender/building-blender Manually installing another TBB version is likely to give issue like this, normally TBB should be installed through install_deps already. If you want to build with another TBB version, you need to edit CMakeCache.txt rather than setting environment variables. Setting an include directory in PATH also makes no sense.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#69253
No description provided.