mkl<=2024.0 CI pin installs a libtorch build that won't import on glibc 2.41+

Open
#2,539 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
54/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
github-actions, python, ubuntu

Research direction

Start with .github/workflows/test.yml and inspect the pytorch link job's package pin and runner configuration; the issue cites conda-forge/pytorch-cpu-feedstock#350 and #355 for the fixed builds. Confirm which mkl constraint allows a fixed libtorch build to install on the target Ubuntu runner, then check that import torch succeeds in the job. #2537 pins the runner to Ubuntu 24.04 as a temporary workaround.

Written by the indexing model from the issue text.

Description

GitHub CI/CD torch

import torch fails in the pytorch link CI job since ubuntu-latest moved to Ubuntu 26.04, with ImportError: libtorch_cpu.so: cannot enable executable stack. The "mkl<=2024.0" pin in .github/workflows/test.yml limits conda-forge's libtorch 2.5.1 to build _107, which predates the executable-stack fix for conda-forge/pytorch-cpu-feedstock#350 (conda-forge/pytorch-cpu-feedstock#355). Every later CPU build of 2.5.1 requires mkl >=2024.2.2, so the job can't get a fixed build while the pin stays.

The last passing run was on ubuntu-24.04 at 2026-10-19 18:15 UTC. Every run since 2026-10-20 01:14 UTC has landed on ubuntu-26.04 and failed, with the same _107 build installed in both. Example: https://github.com/pymc-devs/pytensor/actions/runs/39483309345/job/118837516328. #2537 pins the job to ubuntu-24.04 in the meantime.

Dominant language
Python
Stars
655
Forks
266
Avg merge
3d 23h
Merged PRs (30d)
43

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from pymc-devs/pytensor

All issues in pymc-devs/pytensor

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.