Skip to content

Fixes missing symbols in featomic when using fetch_metatensor#425

Closed
MilitaoLucas wants to merge 2 commits into
metatensor:mainfrom
MilitaoLucas:fix-fetchmetatensor
Closed

Fixes missing symbols in featomic when using fetch_metatensor#425
MilitaoLucas wants to merge 2 commits into
metatensor:mainfrom
MilitaoLucas:fix-fetchmetatensor

Conversation

@MilitaoLucas

@MilitaoLucas MilitaoLucas commented Mar 3, 2026

Copy link
Copy Markdown
Contributor

This was found and fixed by @RealUranar.

Copilot AI review requested due to automatic review settings March 3, 2026 21:24
@MilitaoLucas MilitaoLucas changed the title Fixes missing symbols in featomic when using older metatensor... Fixes missing symbols in featomic when using fetch_metatensor Mar 3, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the vendored (FetchContent) metatensor-core version used by featomic’s CMake build, aiming to address missing-symbol issues tied to the fetched metatensor version.

Changes:

  • Bump METATENSOR_FETCH_VERSION from 0.1.17 to 0.1.19
  • Update the corresponding FetchContent_Declare(... URL_HASH ...) SHA256

Comment thread featomic/CMakeLists.txt
Comment on lines +249 to 250
set(METATENSOR_FETCH_VERSION "0.1.19")
set(METATENSOR_REQUIRED_VERSION "0.1")

Copilot AI Mar 3, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR title/description suggests fixing missing symbols when using older metatensor versions, but this change only bumps the version used when FEATOMIC_FETCH_METATENSOR=ON. If the missing-symbol issue also affects builds using find_package(metatensor ...) (i.e., system-provided metatensor), this won’t prevent selecting an older incompatible metatensor since METATENSOR_REQUIRED_VERSION is still just "0.1". Please clarify the scope in the PR description, or bump METATENSOR_REQUIRED_VERSION to the first known-good version so incompatible metatensor versions fail at configure time instead of at link/load time.

Copilot uses AI. Check for mistakes.
@Luthaf

Luthaf commented Mar 5, 2026

Copy link
Copy Markdown
Member

Thanks for the PR, this looks good. CI is broken for a different reason, I'm fixing it and then I'll merge this!

@MilitaoLucas

Copy link
Copy Markdown
Contributor Author

Thanks for the PR, this looks good. CI is broken for a different reason, I'm fixing it and then I'll merge this!

I figured. That is fine. Thanks!

@Luthaf

Luthaf commented Mar 9, 2026

Copy link
Copy Markdown
Member

I've included the fix from this PR directly in #426

@Luthaf Luthaf closed this Mar 9, 2026
@MilitaoLucas

Copy link
Copy Markdown
Contributor Author

That is fine. Thanks.

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

Successfully merging this pull request may close these issues.

3 participants