Skip to content

build(linux): add ubuntu 26.04 support#5051

Open
ReenigneArcher wants to merge 2 commits intomasterfrom
build/linux/add-ubuntu-26.04-support
Open

build(linux): add ubuntu 26.04 support#5051
ReenigneArcher wants to merge 2 commits intomasterfrom
build/linux/add-ubuntu-26.04-support

Conversation

@ReenigneArcher
Copy link
Copy Markdown
Member

@ReenigneArcher ReenigneArcher commented Apr 25, 2026

Description

Add support for Ubuntu 26.04.

Screenshot

Issues Fixed or Closed

Roadmap Issues

Type of Change

  • feat: New feature (non-breaking change which adds functionality)
  • fix: Bug fix (non-breaking change which fixes an issue)
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semicolons, etc.)
  • refactor: Code change that neither fixes a bug nor adds a feature
  • perf: Code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies
  • ci: Changes to CI configuration files and scripts
  • chore: Other changes that don't modify src or test files
  • revert: Reverts a previous commit
  • BREAKING CHANGE: Introduces a breaking change (can be combined with any type above)

Checklist

  • Code follows the style guidelines of this project
  • Code has been self-reviewed
  • Code has been commented, particularly in hard-to-understand areas
  • Code docstring/documentation-blocks for new or existing methods/components have been added or updated
  • Unit tests have been added or updated for any new or modified functionality

AI Usage

  • None: No AI tools were used in creating this PR
  • Light: AI provided minor assistance (formatting, simple suggestions)
  • Moderate: AI helped with code generation or debugging specific parts
  • Heavy: AI generated most or all of the code changes

@ReenigneArcher ReenigneArcher force-pushed the build/linux/add-ubuntu-26.04-support branch from 16c4137 to eb30597 Compare April 25, 2026 22:03
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 18.17%. Comparing base (bdef150) to head (65c8d63).
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5051      +/-   ##
==========================================
- Coverage   18.18%   18.17%   -0.01%     
==========================================
  Files         109      109              
  Lines       23570    23570              
  Branches    10398    10398              
==========================================
- Hits         4287     4285       -2     
+ Misses      17746    14976    -2770     
- Partials     1537     4309    +2772     
Flag Coverage Δ
Archlinux 11.53% <ø> (ø)
FreeBSD-14.3-aarch64 ?
FreeBSD-14.3-amd64 13.76% <ø> (ø)
Homebrew-ubuntu-22.04 13.90% <ø> (ø)
Linux-AppImage 12.49% <ø> (ø)
Windows-AMD64 14.86% <ø> (ø)
Windows-ARM64 13.25% <ø> (ø)
macOS-arm64 19.07% <ø> (ø)
macOS-x86_64 18.41% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
see 51 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bdef150...65c8d63. Read the comment docs.

@ReenigneArcher ReenigneArcher force-pushed the build/linux/add-ubuntu-26.04-support branch from eb30597 to dc5bfd6 Compare April 25, 2026 23:41
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 26, 2026

Bundle Report

Bundle size has no change ✅

@psyke83
Copy link
Copy Markdown
Contributor

psyke83 commented Apr 26, 2026

On a standard desktop install of Ubuntu 26.04, the package built, but refused to install due to libappindicator3-1 already being installed, which would be replaced with the ayatana version. The package also didn't include the systemd service unit due to systemd-dev not being installed (it's installed via add_debian_deps but not the ubuntu equivalent function).

@ReenigneArcher
Copy link
Copy Markdown
Member Author

@psyke83 I didn't look much into it beyond the cuda run install failure.

#17 205.0 ./cuda-installer: error while loading shared libraries: libxml2.so.2: cannot open shared object file: No such file or directory
#17 ERROR: process "/bin/bash -o pipefail -c /dev/pipes/_DEPS" did not complete successfully: exit code: 127

@psyke83
Copy link
Copy Markdown
Contributor

psyke83 commented Apr 27, 2026

I skipped CUDA for another reason (aside from only having Intel graphics on the target machine):

$ df -m /tmp
Filesystem     1M-blocks  Used Available Use% Mounted on
tmpfs               5595     3      5593   1% /tmp
$ free -m
               total        used        free      shared  buff/cache   available
Mem:           11190        3159        1856         572        7064        8030
Swap:           4095        1225        2870

The default allocation given to tmpfs for /tmp is not large enough to extract CUDA on a 12GB box.

As for libxml2:

$ dpkg -L libxml2-16 | grep /usr/lib
/usr/lib
/usr/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu/libxml2.so.16.1.2
/usr/lib/x86_64-linux-gnu/libxml2.so.16

The package libxml2-dev (not installed by the script) provides:

$ dpkg -L libxml2-dev | grep /usr/lib
/usr/lib
/usr/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu/libxml2.a
/usr/lib/x86_64-linux-gnu/pkgconfig
/usr/lib/x86_64-linux-gnu/pkgconfig/libxml-2.0.pc
/usr/lib/x86_64-linux-gnu/libxml2.so

So this version of CUDA won't work unless you want to brute force a symlink to the newer library and risk compatibility issues.

@ReenigneArcher ReenigneArcher mentioned this pull request Apr 27, 2026
2 tasks
@ReenigneArcher ReenigneArcher force-pushed the build/linux/add-ubuntu-26.04-support branch from dc5bfd6 to 5a30f23 Compare April 30, 2026 00:14
Update docs and build scripts to use CUDA 13.1.1 (driver 590.48.01): docs/building.md and docs/getting_started.md now recommend CUDA 13.1.1 and the corresponding driver. scripts/linux_build.sh introduces default_cuda_version/default_cuda_build and initializes cuda_version/cuda_build to those defaults, removes many per-distro CUDA overrides so the default is used, and adds a conditional systemd-dev dependency for Ubuntu 24.04 and newer. These changes unify CUDA defaults and ensure necessary deps on newer Ubuntu releases.
@sonarqubecloud
Copy link
Copy Markdown

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.

Can't use on Ubuntu 26.04

2 participants