[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#650145: marked as done (dpkg-shlibdeps warning about gcc-added library (LTO))



Your message dated Sat, 05 Jan 2013 13:33:02 +0000
with message-id <E1TrTry-0006vs-BZ@franck.debian.org>
and subject line Bug#650145: fixed in binutils 2.23.1-1~exp4
has caused the Debian Bug report #650145,
regarding dpkg-shlibdeps warning about gcc-added library (LTO)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
650145: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=650145
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: gcc-4.6
Severity: minor

(@Bernhard: /dpkg-shlibdeps: warning: dependency on.*could be avoided.*uselessly linked/)

I’ve just spotted this in the build logs:

dpkg-shlibdeps: warning: dependency on libgcc_s.so.1 could be avoided if "debian/mksh/bin/mksh" were not uselessly linked against it (they use none of its symbols).

This could, by the way, be used in the new checker. Anyway,
thing is, mksh doesn’t use libgcc_s or request any function
from it specifically; the dependency is added by gcc itself
and this should be fixed there.

The link command used is:

gcc -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat
    -Wformat-security -Werror=format-security -Wall -Wextra
    -fno-strict-aliasing -fstack-protector-all -fwrapv -flto=jobserver
    -std=gnu99 -fPIE -pie -Wl,-z,relro -Wl,-z,now -fuse-linker-plugin
    -o mksh  lalloc.o edit.o eval.o exec.o expr.o funcs.o histrap.o jobs.o
    lex.o main.o misc.o shf.o syn.o tree.o var.o strlcpy.o printf.o

Looking at “gcc -dumpspecs”, I see this though:

*libgcc:
%{static|static-libgcc:-lgcc -lgcc_eh}%{!static:%{!static-libgcc:%{!shared-libgcc:-lgcc --as-needed -lgcc_s --no-as-needed}%{shared-libgcc:-lgcc_s%{!shared: -lgcc}}}}

No explicit -shared-libgcc here (from me, at least.) This would have
been the logic place to fix this.

Running this (in a sid/i386 chroot) on a Hello World programme I get
the same result. Adding -v shows the possible culprit to be:
    -plugin-opt=-pass-through=-lgcc_s
Actually, -Wl,-v is more legible and shows:
/usr/bin/ld -plugin /usr/lib/gcc/i486-linux-gnu/4.6/liblto_plugin.so -plugin-opt=/usr/lib/gcc/i486-linux-gnu/4.6/lto-wrapper -plugin-opt=-fresolution=/tmp/ccflfrHu.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --no-add-needed --eh-frame-hdr -m elf_i386 --hash-style=both -dynamic-linker /lib/ld-linux.so.2 -pie -o t /usr/lib/gcc/i486-linux-gnu/4.6/../../../i386-linux-gnu/Scrt1.o /usr/lib/gcc/i486-linux-gnu/4.6/../../../i386-linux-gnu/crti.o /usr/lib/gcc/i486-linux-gnu/4.6/crtbeginS.o -L/usr/lib/gcc/i486-linux-gnu/4.6 -L/usr/lib/gcc/i486-linux-gnu/4.6/../../../i386-linux-gnu -L/usr/lib/gcc/i486-linux-gnu/4.6/../../../../lib -L/lib/i386-linux-gnu -L/lib/../lib -L/usr/lib/i386-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/i486-linux-gnu/4.6/../../.. -z relro -z now t.o -v -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/i486-linux-gnu/4.6/crtendS.o /usr/lib/gcc/i486-linux-gnu/4.6/../../../i386-linux-gnu/crtn.o

bye,
//mirabilos
-- 
  “Having a smoking section in a restaurant is like having
          a peeing section in a swimming pool.”
						-- Edward Burr



--- End Message ---
--- Begin Message ---
Source: binutils
Source-Version: 2.23.1-1~exp4

We believe that the bug you reported is fixed in the latest version of
binutils, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 650145@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Matthias Klose <doko@debian.org> (supplier of updated binutils package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sat, 05 Jan 2013 14:06:23 +0100
Source: binutils
Binary: binutils binutils-dev binutils-multiarch binutils-gold binutils-hppa64 binutils-spu binutils-doc binutils-source
Architecture: source all amd64
Version: 2.23.1-1~exp4
Distribution: experimental
Urgency: low
Maintainer: Matthias Klose <doko@debian.org>
Changed-By: Matthias Klose <doko@debian.org>
Description: 
 binutils   - GNU assembler, linker and binary utilities
 binutils-dev - GNU binary utilities (BFD development files)
 binutils-doc - Documentation for the GNU assembler, linker and binary utilities
 binutils-gold - GNU gold linker utility
 binutils-hppa64 - GNU assembler, linker and binary utilities targeted for hppa64-li
 binutils-multiarch - Binary utilities that support multi-arch targets
 binutils-source - GNU assembler, linker and binary utilities (source)
 binutils-spu - GNU assembler, linker and binary utilities targeted for spu-elf
Closes: 650145 697353
Changes: 
 binutils (2.23.1-1~exp4) experimental; urgency=low
 .
   * Fix PR ld/14918: linking with -flto always links in libgcc_s.so.
     Closes: #650145.
   * Fix build failure with texinfo 4.14. Closes: #697353.
Checksums-Sha1: 
 985a90aa68e9d4a13c799fea47860918a352757c 1721 binutils_2.23.1-1~exp4.dsc
 4b2503b0cc5f7ea71a947a84d62529b5eaa41e9e 95441 binutils_2.23.1-1~exp4.diff.gz
 a80baacefa93eecec79008a40344a842f8fe7886 477558 binutils-doc_2.23.1-1~exp4_all.deb
 f398d112ead0cb3736ae148d8d3ea5c52889fd73 15503996 binutils-source_2.23.1-1~exp4_all.deb
 c9a936a28e06a4abfebe17dec147216625f06257 4972072 binutils_2.23.1-1~exp4_amd64.deb
 42baf02d0f33aca4bd1bf28ddc95c9bbe09f8960 4787328 binutils-dev_2.23.1-1~exp4_amd64.deb
 530240d29782ef9ff9c1d020b0e862b99b52f25a 2390390 binutils-multiarch_2.23.1-1~exp4_amd64.deb
 f2fc9b61b8fecca30e0da7bbc4f49efedc106717 1460 binutils-gold_2.23.1-1~exp4_amd64.deb
Checksums-Sha256: 
 47546e7a5faf4352271f7de458ed6df4c75b1fd96dc8f1d968b2c6b2de18bacb 1721 binutils_2.23.1-1~exp4.dsc
 1f2fe9ed676d10ee3cc33f381b4a3a8199b5d56118d3e812e4f2dbc47b880446 95441 binutils_2.23.1-1~exp4.diff.gz
 db40074b2419b82f23ca39b76ce10b3bbc86399db603de88d1544c3cfa3cc752 477558 binutils-doc_2.23.1-1~exp4_all.deb
 6f46b6be534f31ec1bd0bd172ebb5134257190fd8f326f526ce0592806a1f4b2 15503996 binutils-source_2.23.1-1~exp4_all.deb
 37b28bd37bc83f12f9295ad05dbe898a7b8f162a7c551e67594b1412339f82a2 4972072 binutils_2.23.1-1~exp4_amd64.deb
 6d522405a258d9e9ca72be8adc63c2a1e405c58639e1d41e151d86cd6d54dbfe 4787328 binutils-dev_2.23.1-1~exp4_amd64.deb
 6fd0f92b4cbae2105df54f7175638cc79b1ab6f274c6faab0efcd1939868574d 2390390 binutils-multiarch_2.23.1-1~exp4_amd64.deb
 d52cb1b97b30d3e5ba6e8a20d915bd7e3dd50c1f707a42df1f78ddad8f63a495 1460 binutils-gold_2.23.1-1~exp4_amd64.deb
Files: 
 eb1c206abf0c42cb5b558e6b14de3a50 1721 devel optional binutils_2.23.1-1~exp4.dsc
 aafd6e2b57ddb05fa04f48e034b2ae01 95441 devel optional binutils_2.23.1-1~exp4.diff.gz
 2090179a316c6fd140a99979d0441b94 477558 doc optional binutils-doc_2.23.1-1~exp4_all.deb
 be09b17448913fe86a450ae8d827fb70 15503996 devel optional binutils-source_2.23.1-1~exp4_all.deb
 c97a85081154ae3765a58ae9489338c4 4972072 devel optional binutils_2.23.1-1~exp4_amd64.deb
 8f4de4112a5bbc63cba9c15e85ed6eae 4787328 devel extra binutils-dev_2.23.1-1~exp4_amd64.deb
 055c8eaf26673dba3384dea2cc21943b 2390390 devel extra binutils-multiarch_2.23.1-1~exp4_amd64.deb
 c747a05ea7b2801f2b9504a541e60b0e 1460 devel extra binutils-gold_2.23.1-1~exp4_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAlDoKWwACgkQStlRaw+TLJxYnQCeOJYktxGyyZ7HEBrZ78GZ84Nl
piYAnjGp3hHh8OlG1zFMPEQ4JjZO1DT/
=7Yuf
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: