Bug 1218627 - Prettyprinter for gcc11 not installable
Summary: Prettyprinter for gcc11 not installable
Status: RESOLVED INVALID
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: Development (show other bugs)
Version: Leap 15.5
Hardware: x86-64 Linux
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Richard Biener
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-08 23:07 UTC by Jan Engelhardt
Modified: 2024-01-09 09:16 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Engelhardt 2024-01-08 23:07:49 UTC
```
# zypper in libstdc++6-pp-gcc11
Loading repository data...
Reading installed packages...
Resolving package dependencies...

Problem: nothing provides 'libstdc++6 = 11.3.0+git1637-150000.1.11.2' needed by the to be installed libstdc++6-pp-gcc11-11.3.0+git1637-150000.1.11.2.x86_64
 Solution 1: do not install libstdc++6-pp-gcc11-11.3.0+git1637-150000.1.11.2.x86_64
 Solution 2: break libstdc++6-pp-gcc11-11.3.0+git1637-150000.1.11.2.x86_64 by ignoring some of its dependencies

```

As a result, it is impossible to get pretty-printing for binaries that were created using /usr/bin/g++-11.
Comment 1 Marcus Meissner 2024-01-09 07:31:35 UTC
on 15.5 while we ship pp-gcc11, thedefault libstdc++6 even in GA was from GCC12, there never was a libstdc++6 11 version on 15.5.

So libstdc++6 is 12 or higher.

its sadly unfixable currently in my eyes, or can the gcc12 pretty print work too?
Comment 2 Marcus Meissner 2024-01-09 07:32:11 UTC
is this a SUSE/openSUSE binary, we could rebuild it with gcc12 or 13
Comment 3 Richard Biener 2024-01-09 09:06:07 UTC
It works as designed - the pretty-printers are tied to a specific shared library version, you are supposed to use libstdc++6-pp-gccN from the compiler that
provides the shared library - likely lihbstdc++6-pp-gcc13 by now.

This should also magically be installed via

Supplements: (gdb and libstdc++%{libstdcxx_sover}@variant@ = %{version}-%{release})

it's correct that libstdc++6-pp-gcc11 is not installable.
Comment 4 Jan Engelhardt 2024-01-09 09:13:57 UTC
Could we add something like

libstdc++6-pp(13): Obsoletes: libstdc++6-pp-gcc11?
Comment 5 Richard Biener 2024-01-09 09:15:21 UTC
Or rather, you are supposed to install simply libstdc++6-pp[-32bit]
Comment 6 Richard Biener 2024-01-09 09:16:43 UTC
(In reply to Jan Engelhardt from comment #4)
> Could we add something like
> 
> libstdc++6-pp(13): Obsoletes: libstdc++6-pp-gcc11?

No, the -gccN packages should never appear in any repository nor should they be ever installed (they shouldn't ever be installable).