-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Le 24/06/2012 22:42, Eugeniy Meshcheryakov a écrit : > Hi, > > 24 ?????? 2012 ? 22:05 +0200 xavier grave ???????(-??): >> I finally get time to investigate further : it looks like bug #642128. >> But now this is the -Wl,-as-needed option that causes the error message. >> If I compile without this flag, no more missing symbols. I didn't find >> any bug related to this option in binutils. So I will open a new one >> tomorrow as soon as I produce a minimal test case. > > Hi this could be bug in gnat or somewhere else that passes options in > the incorrect order. Compare these two commands: > > eugen@loki:/tmp% gcc -o main main.o -Wl,--as-needed test1.so test2.so > eugen@loki:/tmp% gcc -o main -Wl,--as-needed test1.so test2.so main.o > main.o: In function `main': > main.c:(.text+0xf): undefined reference to `test2' > main.c:(.text+0x1b): undefined reference to `test1' > collect2: error: ld returned 1 exit status > eugen@loki:/tmp% > > The linker looks for symbols needed for objects that come _before_ the > --as-needed option.
Thanks for the diagnostic, so this is a gcc related bug (not gnat specific) ? Can you send me your test case so I can fill a bug report or may be you want to fill it yourself ? I'll be happy to have your test case because I encounter similar problems on armel architecture with polyorb build. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBAgAGBQJP6ZaXAAoJEG3iFwasTcfamIgP/jH65gZGP9lDiUEM6GXVNHw7 ZBQJ50+trwVFpD1aMHB3pm1So4a6JM0tLnnBmacZu7I3a5I6wJGofeN+w/fqfzDV mRROQsJ019T3Rh96VEk/aO+7Yr+PtSbH9FJMzcYTW+g8wWFy92g9QnRijEUph9Z7 D/XnrG+hd/i4oZ2xcPgDoCdMF2Kf6q1qtLb8K/R6UYZ+6uMPlVblYriB9vcw3ANi /U9vNvWhOTDDr6c8awTAjIeVtAI8toComkzB4qDHTDtPyyAv8EIjyPXBqmDx+lUr Gqbs9GuuhKMetqL/2w6YDEb0b4WlM+dns1DUnf0mubRaI+vnJJ5YP8ZnC1ciKwQY hOpvrIZMFzmQtvS4zCP6kug7mij3YWt4ZbNaEnVuLfBndQ2uY82lqOGlqWR13DbU aDT81KcnfmvpmUQlZ5YlSEoJmbLu/j8xTb+JO1vVP+TBRtokUtuCjxR/bYh1q01s pgYDgSOq7bLKBw1PpSfUassyvReW+M1ZU5IhmanYvhLYmvWalNiAni6n0RW1ngii i0HO9Sr6SVNNYS7yy0O00Ov0/UW889JHT1syHFkpUjngk9AyecnAInDCpu9iwCTd xvWs0m6ZhOorMKzHNioG69S4OGjcKfku41/7SPQvoalh2JcDTxJOi6gbBgnu16hL yI8jmhXHkMouqmZ/vMqk =Kgzz -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: http://lists.debian.org/[email protected]
