This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: /sbin/ldconfig: /usr/lib/libstdc++.so.6.0.20-gdb.py is not an ELF file - it has the wrong magic bytes at the start
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: YuGiOhJCJ Mailing-List <yugiohjcj-mailinglist at laposte dot net>
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Thu, 7 Aug 2014 16:26:04 +0100
- Subject: Re: /sbin/ldconfig: /usr/lib/libstdc++.so.6.0.20-gdb.py is not an ELF file - it has the wrong magic bytes at the start
- Authentication-results: sourceware.org; auth=none
- References: <20140807130224 dot af8e11a7b97cf1056530ffdf at laposte dot net>
On 7 August 2014 12:02, YuGiOhJCJ Mailing-List wrote:
> Hello,
>
> After upgrading the gcc compiler of my system from gcc-4.8.2 to gcc-4.9.1, I got this error while running the "ldconfig" command:
> $ sudo ldconfig
> /sbin/ldconfig: /usr/lib/libstdc++.so.6.0.20-gdb.py is not an ELF file - it has the wrong magic bytes at the start
>
> The /usr/lib/libstdc++.so.6.0.20-gdb.py file is part of my new gcc-4.9.1 package.
>
> 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.