FS#64907 - [openimagedenoise] PLEASE ENTER SUMMARY

Attached to Project: Community Packages
Opened by Luke Frisken (kellpossible) - Friday, 20 December 2019, 10:25 GMT
Last edited by Antonio Rojas (arojas) - Saturday, 21 December 2019, 09:42 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

When launching blender, and when building it from source using the blender-git aur package I get the following error:

symbol lookup error: /usr/lib/libOpenImageDenoise.so.0: undefined symbol: _ZN3tbb10interface78internal15task_arena_base24internal_max_concurrencyEPKNS0_10task_arenaE

Additional info:
* package version: 1.1.0-1

Steps to reproduce:

install the blender package (which includes this library), run /usr/bin/blender
I could be wrong, but my gut feeling is that this is a problem with this library? perhaps the version of the library binary doesn't match what is available in the header for this library?
This task depends upon

Closed by  Antonio Rojas (arojas)
Saturday, 21 December 2019, 09:42 GMT
Reason for closing:  Not a bug
Additional comments about closing:  Caused by unsupported libraries
Comment by Filipe Laíns (FFY00) - Friday, 20 December 2019, 13:14 GMT
The normal blender package works fine on my up-to-date installation.

Can you pacman -Syu and rebuild blender-git?
Comment by Antonio Rojas (arojas) - Friday, 20 December 2019, 13:57 GMT
intel-tbb version?
Comment by Luke Frisken (kellpossible) - Saturday, 21 December 2019, 07:58 GMT
I'll try again, with a pacman -Syu

intel-tbb version 2020.0-1
Comment by Antonio Rojas (arojas) - Saturday, 21 December 2019, 08:59 GMT
intel-tbb 2020.0-1 does certainly contain that symbol, so you must have some unsupported version installed somewhere else. Attach the output of 'LD_DEBUG=libs blender'
Comment by Luke Frisken (kellpossible) - Saturday, 21 December 2019, 09:35 GMT
It looks like I'm not the first person with a similar problem https://blenderartists.org/t/luxcorerender-v2-2/1148794/58
I tried again with pacman -Syu, and also tried with oidn-git package. Building blender takes forever on my laptop :'(

$ nm -D /usr/lib/libOpenImageDenoise.so.0 | grep _ZN3tbb10interface78internal15task_arena_base24internal_max_concurrencyEPKNS0_10task_arenaE

U _ZN3tbb10interface78internal15task_arena_base18internal_terminateEv
U _ZN3tbb10interface78internal15task_arena_base19internal_initializeEv
U _ZN3tbb10interface78internal15task_arena_base21internal_current_slotEv
U _ZN3tbb10interface78internal15task_arena_base24internal_max_concurrencyEPKNS0_10task_arenaE
U _ZNK3tbb10interface78internal15task_arena_base16internal_executeERNS1_13delegate_baseE
000000000033b7f8 V _ZTIN3tbb10interface78internal13delegate_baseE
00000000002d73c0 V _ZTSN3tbb10interface78internal13delegate_baseE

So I guess that means the symbol I'm looking at is undefined? Something that should be present?


$ lddtree /usr/lib/libOpenImageDenoise.so.0

/usr/lib/libOpenImageDenoise.so.0 (interpreter => None)
libtbb.so.2 => /usr/lib/libtbb.so.2
libdl.so.2 => /usr/lib/libdl.so.2
librt.so.1 => /usr/lib/librt.so.1
libpthread.so.0 => /usr/lib/libpthread.so.0
libstdc++.so.6 => /usr/lib/libstdc++.so.6
libm.so.6 => /usr/lib/libm.so.6
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1
libc.so.6 => /usr/lib/libc.so.6
ld-linux-x86-64.so.2 => /usr/lib/ld-linux-x86-64.so.2

$ nm -D /usr/lib/libtbb.so.2 | grep _ZN3tbb10interface78internal15task_arena_base24internal_max_concurrencyEPKNS0_10task_arenaE

0000000000021e40 T _ZN3tbb10interface78internal15task_arena_base24internal_max_concurrencyEPKNS0_10task_arenaE

So the symbol is present in libtbb, but somehow libOpenImageDenoise.so.0 isn't linking to it? I don't entirely understand how dynamic linking works.
Comment by Luke Frisken (kellpossible) - Saturday, 21 December 2019, 09:39 GMT
attached file which is the output of

$ LD_DEBUG=libs blender
Comment by Antonio Rojas (arojas) - Saturday, 21 December 2019, 09:41 GMT
50364: find library=libtbb.so.2 [0]; searching
50364: search cache=/etc/ld.so.cache
50364: trying file=/opt/intel/opencl/libtbb.so.2
50364: find library=libtbb.so.2 [0]; searching
50364: search cache=/etc/ld.so.cache
50364: trying file=/opt/intel/opencl/libtbb.so.2

So, as I suspected, you have an unsupported version of intel-tbb installed.

Loading...