Skip to content

Conversation

@slacrherbst
Copy link
Contributor

Update conda build meta to use older system libraries and C++.

From searching:

The correct fix is to rebuild your Anaconda package while telling the compiler to target an older version of glibc (specifically, the version on Rocky 8 or older). Rocky 8 uses glibc 2.28.

You do not need to install an older Linux distro to do this. You can use Conda's sysroot features during the build.

If you are building a custom recipe: Add the sysroot dependency to your meta.yaml file in the build section. This forces the compiler to use an older set of headers and libraries, ensuring compatibility with Rocky 8.

requirements:
build:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
# Target CentOS 7 glibc (2.17) for maximum compatibility
# OR target Rocky 8 glibc (2.28) specifically
- sysroot_linux-64 2.17

@slacrherbst slacrherbst changed the base branch from main to pre-release December 9, 2025 20:26
@ruck314 ruck314 mentioned this pull request Dec 9, 2025
@slacrherbst slacrherbst merged commit 51b22ec into pre-release Dec 9, 2025
5 checks passed
@slacrherbst slacrherbst deleted the rocky8 branch December 9, 2025 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants