Skip to content

[BUILD] OpenVDB fails to build with LLVM 18 #1804

Open
@onitake

Description

@onitake

Environment

Operating System: Debian Linux sid
Version / Commit SHA: 11.0.0
Other: (e.g compiler, C++ standard etc.)

Describe the bug

OpenVDB fails to compile with any recent LLVM releases.

To Reproduce

Steps to reproduce the behavior:

  1. Build with LLVM 18.x
  2. See error:
CMake Error at openvdb_ax/openvdb_ax/CMakeLists.txt:118 (message):
  OpenVDB AX does not currently support LLVM versions >= 16 due to opaque
  pointer changes in LLVM.  Found unsuitable LLVM version "18.1.5"

Expected behavior

OpenVDB should be compatible with recent stable LLVM releases.
LLVM 16 was released two years ago, and the current version is 18.

Additional context

This incompatibility is currently causing problems on Debian, because LLVM 15 is planned for removal from the next stable release, and it's blocking a number of packages that depend on OpenVDB (Blender, for example).

See this bug report for more information: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1061216

What exactly is the problem with opaque pointers in OpenVDB / LLVM 16+ ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions