Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 928377 - media-gfx/blender-4.0.2: image_vdb.cpp:58:33: error: ‘openToNanoVDB’ is not a member of ‘nanovdb’
Summary: media-gfx/blender-4.0.2: image_vdb.cpp:58:33: error: ‘openToNanoVDB’ is not a...
Status: RESOLVED DUPLICATE of bug 925534
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Paul Zander
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-01 09:34 UTC by Jyrki Launonen
Modified: 2024-04-01 10:31 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log without patch using openvdb-11.0.0, USE=nanovdb (build.log,656.99 KB, text/plain)
2024-04-01 09:36 UTC, Jyrki Launonen
Details
Patch from upstream for openvdb-11 with nanovdb (blender-4.0.2-openvdb-11-bbb7e7a6d5.patch,3.52 KB, patch)
2024-04-01 09:38 UTC, Jyrki Launonen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jyrki Launonen 2024-04-01 09:34:45 UTC
OpenVDB-11 uses slightly different API for nanovdb which is not taken into account in blender-4.0.2. This was patched in 4.0.1, but the patch has not been included in 4.0.2. The patch in upstream differs from what was in 4.0.1 and it is probably only targeted for 4.1, but it applies cleanly to 4.0.2 too.

Upstream patch https://projects.blender.org/blender/blender/commit/bbb7e7a6d57f0b24d3b7374fb3747baf0d128d24 fixes the issue.

Reproducible: Always

Steps to Reproduce:
1. USE="nanovdb openvdb tbb openexr" emerge =blender-4.0.2
(only nanovdb is relevant here, rest included for verbosity from REQUIRED_USE)

Actual Results:  
Build errors to

/var/tmp/portage/media-gfx/blender-4.0.2/work/blender-4.0.2/intern/cycles/scene/image_vdb.cpp: In member function ‘bool ccl::ToNanoOp::operator()(const openvdb::v11_0::GridBase::ConstPtr&)’:
/var/tmp/portage/media-gfx/blender-4.0.2/work/blender-4.0.2/intern/cycles/scene/image_vdb.cpp:58:33: error: ‘openToNanoVDB’ is not a member of ‘nanovdb’

Expected Results:  
Successful build.

USE=-nanovdb is a workaround without other modifications.
Adding the patch to /etc/portage/patches/media-gfx/blender-4.0.2/ is a temporary solution for nanovdb.
Comment 1 Jyrki Launonen 2024-04-01 09:36:37 UTC
Created attachment 889206 [details]
build.log without patch using openvdb-11.0.0, USE=nanovdb
Comment 2 Jyrki Launonen 2024-04-01 09:38:12 UTC
Created attachment 889207 [details, diff]
Patch from upstream for openvdb-11 with nanovdb

( https://projects.blender.org/blender/blender/commit/bbb7e7a6d57f0b24d3b7374fb3747baf0d128d24 )
Comment 3 Paul Zander 2024-04-01 10:31:56 UTC

*** This bug has been marked as a duplicate of bug 925534 ***