Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify ABI compatibility rules in MaterialX #1789

Open
christian-heusel opened this issue Apr 23, 2024 · 5 comments
Open

Clarify ABI compatibility rules in MaterialX #1789

christian-heusel opened this issue Apr 23, 2024 · 5 comments

Comments

@christian-heusel
Copy link

It seems like the recently released version broke some ABI:

blender: symbol lookup error: /usr/lib/libusd_ms.so: undefined symbol: _ZTIN17MaterialX_v1_38_97ElementE

This was first reported on https://gitlab.archlinux.org/archlinux/packaging/packages/blender/-/issues/17
CC @svenstaro

@jstone-lucasfilm
Copy link
Member

@christian-heusel We could use some additional context on this one, as it's not an issue that we've yet heard about from other teams integrating MaterialX and USD!

@christian-heusel
Copy link
Author

@jstone-lucasfilm sure! What information would be of use for you?

@jstone-lucasfilm
Copy link
Member

@christian-heusel Is this an issue that requires the full Blender application for a repro, or are there ways to trigger this using MaterialX or USD/MaterialX alone? And with respect to ABI compatibility, we usually expect only API compatibility between versions of USD and MaterialX, so I could use more context on the situation where ABI compatibility for these two projects is important.

@svenstaro
Copy link

The general way that most software projects handle this is that if either API or ABI become incompatible, there's a soname version bump and at least a minor version increase. This sends a clear signal to distribution maintainers and so we can rebuild accordingly. A patch version increase is a sign of "it's only a fix without any API/ABI changes" so it'd be safe to push without rebuilding dependents.

I'd prefer if you adopted that way of using semver as this would ease our maintenance burden somewhat.

@jstone-lucasfilm
Copy link
Member

Ah, I see what you mean, @svenstaro.

As far as I know, neither the USD nor MaterialX projects provide ABI compatibility between released versions, but we can likely do a better job of signaling this through our VERSION and SOVERSION settings.

Because the major and minor versions of each MaterialX codebase must match those of the associated MaterialX specification, we have slightly less freedom with regard to semver conventions, and we document our current approach here:

https://github.com/AcademySoftwareFoundation/MaterialX/blob/main/documents/DeveloperGuide/MainPage.md#materialx-versioning

We're open to ideas on how to better signal that we don't provide ABI compatibility between MaterialX versions, and here is the current logic that we use to set the VERSION and SOVERSION properties in our CMake process:

VERSION "${MATERIALX_LIBRARY_VERSION}"

@jstone-lucasfilm jstone-lucasfilm changed the title ABI break in Version 1.38.10 ? Clarify ABI compatibility rules in MaterialX Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants