Bug 441 - target's /usr/lib/libstdc++.so.6.0.14-gdb.py causes ldconfig's warning
Summary: target's /usr/lib/libstdc++.so.6.0.14-gdb.py causes ldconfig's warning
Status: VERIFIED WONTFIX
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: 1.0
Hardware: x86 Multiple
: Low minor
Target Milestone: 1.0 M4
Assignee: Nitin Kamble
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2010-10-12 20:17 UTC by Lianhao Lu
Modified: 2011-02-16 21:31 UTC (History)
8 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified: Program Management
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lianhao Lu 2010-10-12 20:17:40 UTC
Using the builds/milestone branch, and target poky-image-sdk, in the built rootfs, a python file libstdc++.so.6.0.14-gdb.py is mistakenly put in the directory "/usr/lib", which would cause the ldconfig command reporting the following error:

ldconfig: /usr/lib/libstdc++.so.6.0.14-gdb.py is not an ELF file - it has the wrong magic bytes at the start.
Comment 1 Dexuan Cui 2010-10-27 00:12:20 UTC
This message is only a warning and is not an error.

Upstream gcc also has the issue: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41816 -- looks peopoe there are not eager to fix it...

There are some discussions:
http://www.mail-archive.com/gcc@gcc.gnu.org/msg46226.html
http://www.mail-archive.com/shr-user@lists.shr-project.org/msg05313.html

Looks the proper fix we can make is "moving them either to the separate debug directory, or underneath gdb's datadir"(per the first one of the above 2 links).
Comment 2 Nitin Kamble 2010-12-15 09:54:45 UTC
does this happen on the master branch ?
Comment 3 Dexuan Cui 2010-12-15 20:08:52 UTC
(In reply to comment #2)
> does this happen on the master branch ?
Yes.
Comment 4 Nitin Kamble 2011-02-14 17:42:48 UTC
That is an expected warning. It is by design that the libstdc++.so.6.0.14-gdb.py file is installed in /usr/lib directory.
Comment 5 Lianhao Lu 2011-02-15 17:23:30 UTC
Verified. This only just prints a warning in ldconfig, it's not an error.