Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 538886 - /sbin/ldconfig: .../libstdc++.so.6.0.20-gdb.py is not an ELF file - it has the wrong magic bytes at the start
Summary: /sbin/ldconfig: .../libstdc++.so.6.0.20-gdb.py is not an ELF file - it has th...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: https://gcc.gnu.org/ml/gcc-help/2014-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-05 05:32 UTC by Geoff Madden
Modified: 2015-02-11 07:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
libstdc++.so.6.0.20-gdb.py (libstdc++.so.6.0.20-gdb.py,2.27 KB, text/plain)
2015-02-05 05:32 UTC, Geoff Madden
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Geoff Madden 2015-02-05 05:32:42 UTC
Created attachment 395570 [details]
libstdc++.so.6.0.20-gdb.py

The message is libstdc++.so.6.0.20-gdb.py is not an elf file it has the wrong magic bytes at the start
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2015-02-05 12:37:18 UTC
It isn't entirely clear what you are trying to do, what the attachment is supposed to do and where the attachment comes from.
Comment 2 Geoff Madden 2015-02-06 07:23:52 UTC
(In reply to Jeroen Roovers from comment #1)
> It isn't entirely clear what you are trying to do, what the attachment is
> supposed to do and where the attachment comes from.

the file resides in /usr/lib. and the message received after updating gcc was as stated. It does not appear to be creating any hassles so far,but thought it strange that I would receive the error message.
As an addition I ran python-updater.and the message has not appeared since.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2015-02-06 11:20:19 UTC
Please post the command you used that triggered this bug report, as well as its entire output.
Comment 4 Geoff Madden 2015-02-06 15:41:53 UTC
emerge -uaND @world,this updated gcc-4.8.4 to 4.9.2.
Now when I do an update I get the message as reported initially.
Comment 5 Geoff Madden 2015-02-06 15:42:45 UTC
(In reply to Geoff Madden from comment #0)
> Created attachment 395570 [details]
> libstdc++.so.6.0.20-gdb.py
> 
> The message is "libstdc++.so.6.0.20-gdb.py is not an elf file - it has the
> wrong magic bytes at the start"
Comment 6 Geoff Madden 2015-02-06 15:47:36 UTC
(In reply to Geoff Madden from comment #5)
> (In reply to Geoff Madden from comment #0)
> > Created attachment 395570 [details]
> > libstdc++.so.6.0.20-gdb.py
> > 
> > The message is "libstdc++.so.6.0.20-gdb.py is not an elf file - it has the
> > wrong magic bytes at the start"

This is still the case,.even after python update. when I call the update procedure & the particular file is being configured( any one in this case),the message keeps repeating. throughout this procedure.
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2015-02-06 18:59:50 UTC
Comment on attachment 395570 [details]
libstdc++.so.6.0.20-gdb.py

What reports that? If this happens during an emerge run, then attach the entire build log (and not the file, since everyone who installs sys-devel/gcc-4.9.* gets the file anyway).
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2015-02-06 21:02:18 UTC
> Why ldconfig complains please?

Because it assumes all files in /usr/lib are ELF files, and that file is not.

You can safely ignore it.
Comment 9 Geoff Madden 2015-02-07 00:07:32 UTC
(In reply to Jeroen Roovers from comment #8)
> > Why ldconfig complains please?
> 
> Because it assumes all files in /usr/lib are ELF files, and that file is not.
> 
> You can safely ignore it.

OK thanks for the reply,I half figured that might be the case,but thought to report just in case
Comment 10 SpanKY gentoo-dev 2015-02-10 21:41:24 UTC
what version of gcc is installing that ?  please post the full build log for that version of gcc as well as your emerge info.  gcc should not be installing any of the gdb python helpers into libdir paths (nor is it doing that on my systems).
Comment 11 Geoff Madden 2015-02-11 07:49:59 UTC
(In reply to SpanKY from comment #10)
> what version of gcc is installing that ?  please post the full build log for
> that version of gcc as well as your emerge info.  gcc should not be
> installing any of the gdb python helpers into libdir paths (nor is it doing
> that on my systems).

Not too sure,as to the build log that has been expunged,when the gcc build completed successfully.
I am beginning to think this file may have been deposited from a previous install of gdb,which was subsequently removed,after a time of not needing it.
As to the reported mismatch,gcc-4.8.4 did not report on configuration,it's only since the update to 4.9.2 the report has manifested.
Also I'm not actually using that machine at present,it has been parked till I get the rest of my systems updated.