I'm unable to install debuginfo for gdb. Error reads, "Missing separate debuginfo for ..." Help pls!

Hello everyone. I’m currently installing a cluster of Raspberry Pi 3B+'s. However, I’m running into a brick wall trying to get gdb to run correctly. It appears that I’m missing some debug files or symbols.

I’m running Leap 15.0 on an aarch64 architecture.

When I try to run gdb on a program I see:

(gdb) runStarting program: /tmp/broken
Missing separate debuginfo for /lib/ld-linux-aarch64.so.1
Try: zypper install -C “debuginfo(build-id)=81242f443f4524fb83940907c90a85e88844c9e6”
Missing separate debuginfo for /usr/lib64/libstdc++.so.6
Try: zypper install -C “debuginfo(build-id)=77dde3d5c10ceff359df1ca4f31e262410e3dc7e”
Missing separate debuginfo for /lib64/libm.so.6
Try: zypper install -C “debuginfo(build-id)=3c2c0eb27f64b4da6efef275fe69fd7c7671ba73”
Missing separate debuginfo for /lib64/libgcc_s.so.1
Try: zypper install -C “debuginfo(build-id)=fe33f8633e150e1e0b35f2a9b1d50f77d8a365cd”
Missing separate debuginfo for /lib64/libc.so.6
Try: zypper install -C “debuginfo(build-id)=f43ed3a26a32a53698604a44c915396839c6bf9d”

I try to run zipper install on what it suggests above, but it doesn’t find anything. I’ve tried doing “zypper install glibc-debuginfo”, but again it finds nothing.

I thought the issue was with my repos, so I went into yast and added the debug repos. Here’s what zypper lr looks like:

3 | download.opensuse.org-non-oss | Update Repository (Non-Oss) | Yes | (r ) Yes | Yes 4 | download.opensuse.org-oss | Main Repository (DEBUG) | Yes | (r ) Yes | Yes
5 | download.opensuse.org-oss_1 | Update Repository (DEBUG) | Yes | (r ) Yes | Yes
6 | download.opensuse.org-oss_2 | Main Repository (OSS) | Yes | (r ) Yes | Yes
7 | download.opensuse.org-oss_3 | Main Update Repository | Yes | (r ) Yes | Yes
8 | lol | lol | Yes | (r ) Yes | Yes
9 | openSUSE-Ports-Leap-15.0-Update | openSUSE-Ports-Leap-15.0-Update | Yes | (r ) Yes | Yes
10 | openSUSE-Ports-Leap-15.0-repo-oss | openSUSE-Ports-Leap-15.0-repo-oss | Yes | (r ) Yes | Yes
11 | opensuse-guide.org-repo | Libdvdcss Repository | Yes | (r ) Yes | Yes
12 | test | test | Yes | ( p) Yes | Yes

The debug repos and there and active, but still I cannot find anything I need for this problem.

Also, I went ahead an found a file called glibc-debuginfo-2.28-3.mga7.aarch64.rpm I unpacked and installed it, but still no progress. I’ve seen this issue posted before, and most people were able to resolve it by adding the debug repos.

Any help or suggestions would be greatly appreciated, thanks!

Hi and welcome to the Forum :slight_smile:
Only use the Ports repo, not the distribution repos as build/version numbers will be different hence your issue. Aside from the fact you will get a mixture of packages…

I would rollback and remove the debug packages you have installed from the main distribution repos, then add the Ports debug repo;


zypper ar -f -g -n "openSUSE-Ports-Leap-15.0-debug-repo-oss" http://download.opensuse.org/ports/debug/update/leap/15.0/oss/ openSUSE-Ports-Leap-15.0-debug-repo-oss

Hi
And a further note, I would recommend the following for updates;


zypper -vvv -t patch --no-recommends

If you have pulled packages in from the non Ports repository, then you may need to do a zypper dup from the main oss ports repo to switch back, then run the above to ensure all up to date. Test you issue and it may be resolved… else then add the debug repo.

Hello, thanks for the response. Unfortunately I’ve tried many many things so far to get this working so there’s probably numerous packages I would need to get rid of. What is the best way to “rollback” the packages I’ve installed?

Hi
Remove all the non Port repositories (disable the lol, test and libdvdcss one), then run the following command to switch back;


zypper -vvv dup --from openSUSE-Ports-Leap-15.0-repo-oss --from openSUSE-Ports-Leap-15.0-Update

See how that goes, hopefully it should rollback to the default ones…

Hi malcolm. I executed your suggestions - it made some progress. The gdb errors have decreased from 4 to 2. Zypper was able to locate and install one of the packages from my original gdb error message. This is what it said:

pie02:/tmp # zypper install -C “debuginfo(build-id)=f43ed3a26a32a53698604a44c915396839c6bf9d”
Loading repository data…
Reading installed packages…
Resolving package dependencies…

Problem: cannot install both glibc-debuginfo-6:2.28-3.mga7.aarch64 and glibc-debuginfo-2.26-lp150.11.6.4.aarch64
Solution 1: Following actions will be done:
downgrade of glibc-debuginfo-6:2.28-3.mga7.aarch64 to glibc-debuginfo-2.26-lp150.11.6.4.aarch64
install glibc-debuginfo-2.26-lp150.11.6.4.aarch64 (with vendor change)
Mageia.Org –> openSUSE
Solution 2: do not ask to install a solvable providing debuginfo(build-id) = f43ed3a26a32a53698604a44c915396839c6bf9d

Choose from above solutions by number or cancel [1/2/c] (c): 1
Resolving dependencies…
Resolving package dependencies…

The following NEW package is going to be installed:
glibc-debugsource

The following package is going to be downgraded:
glibc-debuginfo

The following package is going to change vendor:
glibc-debuginfo Mageia.Org -> openSUSE

However, I’m still getting two errors for “Missing seperate debug info”, but when I try the suggested zypper install command it doesn’t find anything. Thanks for your help so far. If you have any more suggestions I’m all ears, thanks!

Hi
Why have you got mga stuff installed?? That will be the root cause, openSUSE == openSUSE not other distributions… :wink:

So did the system switch back to openSUSE ports repos and it’s all up to date?

If you installed a mageia image on your SDcard before,

A general FYI
When i use any medium for one install,
Then decide I want to remove that install and install a different image,

I’ve found that I <must> remove partitions and advisedly re-format to be sure the old image is removed completely before writing a new image.
If I don’t do the re-partition/reformat, I sometimes see remnants from the previous image.
And if I re-partition only, I always offset the partition boundaries by a few bytes, otherwise any old data might still show up.

You’d think old data shouldn’t re-appear, yet I’ve seen it happen…

TSU

Yes I deleted all the non port repos and did the command you gave. Still getting 2 of the “missing seperate debug info for *” error. This cluster is for a professor’s architecture class so I’m hoping these errors aren’t fatal.

Are there any other packages that I should install? I’m sure part of the problem was that my system was a mess of repos and packages, but I have tested the suggestions on recently imaged machines and still receive the same errors.

Again, thanks for your help

Hi
See if there are any mga packages left in the version numbers;


zypper se -si |grep mga