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

Bug#680292: marked as done (gnatmake: linker arguments order incompatible with --as-needed)



Your message dated Wed, 08 May 2013 10:18:53 +0000
with message-id <E1Ua1SX-0006Zv-K6@franck.debian.org>
and subject line Bug#680292: fixed in gcc-4.6 4.6.4-2
has caused the Debian Bug report #680292,
regarding gnatmake: linker arguments order incompatible with --as-needed
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.)


-- 
680292: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=680292
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: gnat-4.6
Version: 4.6.3-4
Severity: minor

Hello. Gnatmake calls gcc -shared in a way incompatible with
--as-needed. Gprbuild uses a better ordering.

-- bug.ads
package Bug is
end Bug;
-- bug.gpr
project Bug is
  for Library_Name use "bug";
  for Library_Version use "libbug.so.1";
  for Library_Kind use "dynamic";
  for Library_Dir use "lib";
  for Library_Options use ("-lncurses");
end Bug;
$ mkdir lib
$ gnatmake -v -Pbug
...
/usr//bin/gcc-4.6 -shared ... -lncurses ... -lgnat-4.6 -Wl,-soname,libbug.so.1 /tmp/bug/bug.o
...
$ gnatclean -Pbug
...
$ gprbuild -v -Pbug
...
/usr/bin/gcc-4.6 -shared ... -lgnat-4.6 ... -Wl,-soname,libbug.so.1 /tmp/bug/bug.o -lncurses
...

When adding -Wl,--as-needed before -lncurses in Library_Options (or
using GNU gold linker with default options), symbols from -lgnat-4.6
are ignored because they are not used by any object *yet*. In this
minimal example, this is not a problem, but any useful library will
use symbols from -lgnat-4.6.

As a more real-life example, read dpkg_shlibdeps warnings when building
libtexttools-2.1.0-1 with

LDFLAGS += -Wl,--as-needed # or remove the lines stripping it
BUILDER_OPTIONS += -v

-- System Information:
ii  gcc-4.6            4.6.3-1



--- End Message ---
--- Begin Message ---
Source: gcc-4.6
Source-Version: 4.6.4-2

We believe that the bug you reported is fixed in the latest version of
gcc-4.6, 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 680292@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 gcc-4.6 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: Wed, 08 May 2013 09:37:40 +0200
Source: gcc-4.6
Binary: gcc-4.6-base gcc-4.6 gcc-4.6-multilib gcc-4.6-plugin-dev gcc-4.6-hppa64 gcc-4.6-spu g++-4.6-spu gfortran-4.6-spu cpp-4.6 gcc-4.6-locales g++-4.6 g++-4.6-multilib libmudflap0-4.6-dev gobjc++-4.6 gobjc++-4.6-multilib gobjc-4.6 gobjc-4.6-multilib libobjc3 libobjc3-dbg lib64objc3 lib64objc3-dbg lib32objc3 lib32objc3-dbg libn32objc3 libn32objc3-dbg gfortran-4.6 gfortran-4.6-multilib libstdc++6-4.6-dev libstdc++6-4.6-pic libstdc++6-4.6-dbg lib32stdc++6-4.6-dbg lib64stdc++6-4.6-dbg libn32stdc++6-4.6-dbg libstdc++6-4.6-doc gcc-4.6-soft-float gcc-4.6-source
Architecture: source all amd64
Version: 4.6.4-2
Distribution: unstable
Urgency: low
Maintainer: Debian GCC Maintainers <debian-gcc@lists.debian.org>
Changed-By: Matthias Klose <doko@debian.org>
Description: 
 cpp-4.6    - GNU C preprocessor
 g++-4.6    - GNU C++ compiler
 g++-4.6-multilib - GNU C++ compiler (multilib files)
 g++-4.6-spu - SPU cross-compiler (C++ compiler)
 gcc-4.6    - GNU C compiler
 gcc-4.6-base - GCC, the GNU Compiler Collection (base package)
 gcc-4.6-hppa64 - GNU C compiler (cross compiler for hppa64)
 gcc-4.6-locales - GCC, the GNU compiler collection (native language support files)
 gcc-4.6-multilib - GNU C compiler (multilib files)
 gcc-4.6-plugin-dev - Files for GNU GCC plugin development.
 gcc-4.6-soft-float - GCC soft-floating-point gcc libraries (ARM)
 gcc-4.6-source - Source of the GNU Compiler Collection
 gcc-4.6-spu - SPU cross-compiler (preprocessor and C compiler)
 gfortran-4.6 - GNU Fortran compiler
 gfortran-4.6-multilib - GNU Fortran compiler (multilib files)
 gfortran-4.6-spu - SPU cross-compiler (Fortran compiler)
 gobjc++-4.6 - GNU Objective-C++ compiler
 gobjc++-4.6-multilib - GNU Objective-C++ compiler (multilib files)
 gobjc-4.6  - GNU Objective-C compiler
 gobjc-4.6-multilib - GNU Objective-C compiler (multilib files)
 lib32objc3 - Runtime library for GNU Objective-C applications (32bit)
 lib32objc3-dbg - Runtime library for GNU Objective-C applications (32 bit debug sy
 lib32stdc++6-4.6-dbg - GNU Standard C++ Library v3 (debugging files)
 lib64objc3 - Runtime library for GNU Objective-C applications (64bit)
 lib64objc3-dbg - Runtime library for GNU Objective-C applications (64 bit debug sy
 lib64stdc++6-4.6-dbg - GNU Standard C++ Library v3 (debugging files)
 libmudflap0-4.6-dev - GCC mudflap support libraries (development files)
 libn32objc3 - Runtime library for GNU Objective-C applications (n32)
 libn32objc3-dbg - Runtime library for GNU Objective-C applications (n32 debug symbo
 libn32stdc++6-4.6-dbg - GNU Standard C++ Library v3 (debugging files)
 libobjc3   - Runtime library for GNU Objective-C applications
 libobjc3-dbg - Runtime library for GNU Objective-C applications (debug symbols)
 libstdc++6-4.6-dbg - GNU Standard C++ Library v3 (debugging files)
 libstdc++6-4.6-dev - GNU Standard C++ Library v3 (development files)
 libstdc++6-4.6-doc - GNU Standard C++ Library v3 (documentation files)
 libstdc++6-4.6-pic - GNU Standard C++ Library v3 (shared library subset kit)
Closes: 680292
Changes: 
 gcc-4.6 (4.6.4-2) unstable; urgency=low
 .
   * Refresh ada-sjlj.diff.
   * In gnatlink, pass the options and libraries after objects to the
     linker to avoid link failures with --as-needed. Closes: #680292.
   * Fix gdc build on architectures not providing libphobos.
   * Allow java class file format version 1.7 (backport from 4.7).
   * Tighten build dependency on libmpc-dev to ensure using libmpc3.
Checksums-Sha1: 
 09f572420441d8a4bf07656305e0a94f6cba98f4 4534 gcc-4.6_4.6.4-2.dsc
 a98de4a197b90252b9748e45be661bac8e4452fe 925210 gcc-4.6_4.6.4-2.diff.gz
 5d110e21eebbe1a5f4fc35fd712328040e9e4dfb 57967358 gcc-4.6-source_4.6.4-2_all.deb
 f817664d8fcdde9c82e0da295cf8d70beaed616f 21679616 libstdc++6-4.6-doc_4.6.4-2_all.deb
 0ec6ea1ca4ef1f0874b9bf7f6b195a6ff19ed8ad 2625296 gcc-4.6-locales_4.6.4-2_all.deb
 c8b66086ef11e6bb17ab3a9ed33e14cb38397374 142852 gcc-4.6-base_4.6.4-2_amd64.deb
 a1e76ca96cd9c564d65a9da8abd7d8ea37753e44 4739132 cpp-4.6_4.6.4-2_amd64.deb
 60744fdb7c778bb803b7aff7162a3521a0400712 126212 libmudflap0-4.6-dev_4.6.4-2_amd64.deb
 c42bbd7ca77ecc599cb027677a43337f56bef52b 872 gobjc++-4.6-multilib_4.6.4-2_amd64.deb
 48c9b9a35526abddc82d884818381627dd7e867a 5087788 gobjc++-4.6_4.6.4-2_amd64.deb
 eabb95cd3c2133fdb6ce03c7d6d005c5d895acbc 199848 gobjc-4.6-multilib_4.6.4-2_amd64.deb
 8f2a74b9effecf6a6d3ec2faeeaca5123eef7be1 4942100 gobjc-4.6_4.6.4-2_amd64.deb
 860f34904dacf9a62e9334c4febdc319d41b23eb 184334 libobjc3_4.6.4-2_amd64.deb
 429ca5e8573f968d8087b96074f895428e5ea214 362128 libobjc3-dbg_4.6.4-2_amd64.deb
 ee253623b1c3eaa82ae7a10b6ed726c9b4461e7a 182974 lib32objc3_4.6.4-2_amd64.deb
 bb8122135c4c1435b7be761f5d211ed137b72557 331628 lib32objc3-dbg_4.6.4-2_amd64.deb
 11ba191edefc268eedbfc4456c2b6394867f7256 1012612 g++-4.6-multilib_4.6.4-2_amd64.deb
 dd316fd92129d1aacc512192df01ddf6e00b23cf 6851718 g++-4.6_4.6.4-2_amd64.deb
 4ad70ad32352a9dc24e1da9b8098035616e673b0 5417072 lib32stdc++6-4.6-dbg_4.6.4-2_amd64.deb
 b2345b9dba2e68fbb9f9bef4983cbf80fd9c9bf7 1659572 libstdc++6-4.6-dev_4.6.4-2_amd64.deb
 68b97a1133db12b6e7749de72efbee9f94f995c3 503178 libstdc++6-4.6-pic_4.6.4-2_amd64.deb
 6ebd4479460bf954170cab246527e8288e1f13bf 5653266 libstdc++6-4.6-dbg_4.6.4-2_amd64.deb
 7d1494fa9d66b4bd0e6913f94db802b7d613e370 405358 gfortran-4.6-multilib_4.6.4-2_amd64.deb
 33de0a1e01537fd71c8522108e3f3ea5eefd9449 5479206 gfortran-4.6_4.6.4-2_amd64.deb
 535d92c6a58785672050783f09a5b99d07044057 2531524 gcc-4.6-multilib_4.6.4-2_amd64.deb
 9942f84d32bac6ed1cccea42b1ad7ede57ca4a18 841712 gcc-4.6-plugin-dev_4.6.4-2_amd64.deb
 e17cba76ece677eca5adfdd09025a0998ea32c9e 7242590 gcc-4.6_4.6.4-2_amd64.deb
Checksums-Sha256: 
 3a249e4dec834f849cca6314829196a8acf2b213d5051c81b1fef825a3c5756c 4534 gcc-4.6_4.6.4-2.dsc
 101b0bfda4f1688c7466da67b9a54b461344174361d142b084b0ecdee82f17af 925210 gcc-4.6_4.6.4-2.diff.gz
 359684e2f38148613b09b4f83d84bb425cf2c3ed8165b3c18920afb6ca52fe30 57967358 gcc-4.6-source_4.6.4-2_all.deb
 a761ef615c65bfd63be0e0b4e13a7eba9ee824565122d1030a4dc1f3612cf302 21679616 libstdc++6-4.6-doc_4.6.4-2_all.deb
 7fedbc7e1c71f03fc25ed610b048793285772921ed09ecf3b557cb166aebd326 2625296 gcc-4.6-locales_4.6.4-2_all.deb
 52a7187a78666f8159a93dd9018662e016f4a56e7ac7c754a428f276ec1c8724 142852 gcc-4.6-base_4.6.4-2_amd64.deb
 4b925a347cf371e55ea46074827671d2a0af8a605c0d9e6cf3b77aa0d86ed8a5 4739132 cpp-4.6_4.6.4-2_amd64.deb
 85a1596ab0fb431c7a80aaf072258f5ea1d653b33784049e303872d280d1fe36 126212 libmudflap0-4.6-dev_4.6.4-2_amd64.deb
 1cba8282ea23329565d2caab43a42ec2ba53cb54e205bd95fbabc5f9df06127c 872 gobjc++-4.6-multilib_4.6.4-2_amd64.deb
 e9d71ec70839f067c76da5bcaacfbbed34020bbf0bbb2ea41eedd32889490ed1 5087788 gobjc++-4.6_4.6.4-2_amd64.deb
 46ba5d4a45edb96388a038190bd03856c361ba1d48e92d932476eca53bdbe776 199848 gobjc-4.6-multilib_4.6.4-2_amd64.deb
 edb22b74a496ca1b736a1534b5c182e3a7c63763093f4265f5dacb65fada2317 4942100 gobjc-4.6_4.6.4-2_amd64.deb
 4c06f1b7f01bdc73ef310796112bebf8bbd4e29a9eb374446fb823400a5d6800 184334 libobjc3_4.6.4-2_amd64.deb
 5f8040fcd178d93c56accd747830b1de5a250b4f7abb888519da1a9651f757bb 362128 libobjc3-dbg_4.6.4-2_amd64.deb
 c38f394d8a7457536ed8ccf1c5ec3c3500ef2cce7903f4c4be80e2f30de72a43 182974 lib32objc3_4.6.4-2_amd64.deb
 1fb6fabd4bceafe522be0718b52fe65f7b9964506414138488b1243427774a1e 331628 lib32objc3-dbg_4.6.4-2_amd64.deb
 cc39ff881518b7776d3c383e387190bdfe91bd2a2b46d60f35c9b636b40451cb 1012612 g++-4.6-multilib_4.6.4-2_amd64.deb
 725af08adb4baea5bf43452ca437eec431e6bc919f7496f58fe4fc069879a11c 6851718 g++-4.6_4.6.4-2_amd64.deb
 b404f255a0b5226238526a838df03a6ccc1b950fd06a5429f1e4f0ce8d44290c 5417072 lib32stdc++6-4.6-dbg_4.6.4-2_amd64.deb
 329e6a2263edbf2186281a9fd357b304682ad4d32402a1eccfcfd21d184ad32e 1659572 libstdc++6-4.6-dev_4.6.4-2_amd64.deb
 3729e472d71dd640355d090125bd8e3e7023b22c6be66c585c22ed4caba64de9 503178 libstdc++6-4.6-pic_4.6.4-2_amd64.deb
 38ad05358dcaa9ecfb7a8932ba055562b1c54f9e64c70f2ecdfd35f13af9371a 5653266 libstdc++6-4.6-dbg_4.6.4-2_amd64.deb
 91aeeae1c8367e78e30a7ba2e1d97b4243d7f36821a59a1e10a91295f5eafbb5 405358 gfortran-4.6-multilib_4.6.4-2_amd64.deb
 de733ee94db4946913f28a89eb7a85422806cd800d9fe458c0d38060305457d1 5479206 gfortran-4.6_4.6.4-2_amd64.deb
 7a08b12bc2dfc59c483014f933da11b2a0289496a69d1cb1ab1041c625541f27 2531524 gcc-4.6-multilib_4.6.4-2_amd64.deb
 f2efe333c7292a1eb9d396cfcefe78eb8016a6592150fa4aaaaea62cab63c2a4 841712 gcc-4.6-plugin-dev_4.6.4-2_amd64.deb
 098a8f262b70e21fb49bb90691acfc07f183793aa7551a148c7801589047829e 7242590 gcc-4.6_4.6.4-2_amd64.deb
Files: 
 d807c5676e6e70126ca46da7aba3c3fb 4534 devel optional gcc-4.6_4.6.4-2.dsc
 ad5e7e9c1be12c795875e9506e314c2d 925210 devel optional gcc-4.6_4.6.4-2.diff.gz
 7feaf55b17cdcab936f6f30de482894b 57967358 devel optional gcc-4.6-source_4.6.4-2_all.deb
 0f3312102052d25a55cb4672355e41ed 21679616 doc optional libstdc++6-4.6-doc_4.6.4-2_all.deb
 e19a81c88b93fc7dbe0ee5ffea874cd8 2625296 devel optional gcc-4.6-locales_4.6.4-2_all.deb
 be92eba9b995e86ed112bf5400736d64 142852 libs required gcc-4.6-base_4.6.4-2_amd64.deb
 59dba517985ee830c42ae2f5855a0bb6 4739132 interpreters optional cpp-4.6_4.6.4-2_amd64.deb
 a6f5dcf7ce83723a2ddc0f00e27e7abb 126212 libdevel optional libmudflap0-4.6-dev_4.6.4-2_amd64.deb
 37e68830230b7d1f443b49753b92d3de 872 devel optional gobjc++-4.6-multilib_4.6.4-2_amd64.deb
 afc015c6a5c7f3d2cd820e23bb699c95 5087788 devel optional gobjc++-4.6_4.6.4-2_amd64.deb
 e70a285d4d1f80001cdd7b6e8ad12972 199848 devel optional gobjc-4.6-multilib_4.6.4-2_amd64.deb
 d2d4b29764a3439e784ee2313d2e1874 4942100 devel optional gobjc-4.6_4.6.4-2_amd64.deb
 611c8f5480b4e86d388b4e92828e4bdf 184334 libs optional libobjc3_4.6.4-2_amd64.deb
 d4efd9ab46fcd9869692b17d8a5cba33 362128 debug extra libobjc3-dbg_4.6.4-2_amd64.deb
 d2d7780b6f35667414fb47d1565d9b08 182974 libs optional lib32objc3_4.6.4-2_amd64.deb
 d7bc22700659e48f62245748cf7772d3 331628 debug extra lib32objc3-dbg_4.6.4-2_amd64.deb
 8b287b36b9222735cd0ac215db4d5389 1012612 devel optional g++-4.6-multilib_4.6.4-2_amd64.deb
 ebe54840af93398f875cc61d187ae88a 6851718 devel optional g++-4.6_4.6.4-2_amd64.deb
 5e3a98f3509d737b613da93b96dfb1bc 5417072 debug extra lib32stdc++6-4.6-dbg_4.6.4-2_amd64.deb
 482e002521a453656813a44f17f305e4 1659572 libdevel optional libstdc++6-4.6-dev_4.6.4-2_amd64.deb
 d33da791855dede3f7cd793071a189fa 503178 libdevel extra libstdc++6-4.6-pic_4.6.4-2_amd64.deb
 2fc2f84cba9d1c923f43ff619d58cf43 5653266 debug extra libstdc++6-4.6-dbg_4.6.4-2_amd64.deb
 afe92b1a410fdff08ae9832fa819a695 405358 devel optional gfortran-4.6-multilib_4.6.4-2_amd64.deb
 d1b265815e04e5195657af27d59a69ac 5479206 devel optional gfortran-4.6_4.6.4-2_amd64.deb
 30a238497bf5e5e16c7fe28e1d58a4d5 2531524 devel optional gcc-4.6-multilib_4.6.4-2_amd64.deb
 5708c0c418d2c706db4b9e3345009fa6 841712 devel optional gcc-4.6-plugin-dev_4.6.4-2_amd64.deb
 15aaf3a5ae4ac7235ca61d6e9fe0af52 7242590 devel optional gcc-4.6_4.6.4-2_amd64.deb

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

iEYEARECAAYFAlGKIuYACgkQStlRaw+TLJwCrACgjjpkdsMEg4Ewhz1/o0UFWXIt
NT4Anj1iIep6D+kPsYUOB4MqDjDcHCJi
=E1KI
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: