Public bug reported:

The package libopenmpi-dev alternatively depends on gfortran-16 or gfortran-15.
Thus, by default, it pulls in gfortran-16, which in turn pulls in libgcc-16-dev.
However, the default version for gcc and gfortran is 15 instead of 16 in Ubuntu 
26.04.1.

Due to this inconsistency, if one also installs clang, one cannot
compile any C++ program with it, because clang attempts to use the
latest gcc headers found (16), but is missing libstdc++-16-dev.

I suggest to change the dependency of libopenmpi-dev to gfortran | gfortran-16 
- in that order,
such that gfortran-15 version is pulled in by default.

ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: libopenmpi-dev 5.0.10-1
ProcVersionSignature: Ubuntu 7.0.0-30.30-generic 7.0.12
Uname: Linux 7.0.0-30-generic x86_64
ApportVersion: 2.34.1-0ubuntu0.1
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Tue Sep  1 13:50:39 2026
InstallationDate: Installed on 2026-08-12 (20 days ago)
InstallationMedia: Ubuntu 26.04 "Resolute Raccoon" - Release amd64 (20260423.1)
SourcePackage: openmpi
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: openmpi (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug resolute wayland-session

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2166011

Title:
  inconsistent fortran dependency

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openmpi/+bug/2166011/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to