From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:6f8:1178:2:5054:ff:fec0:8e10] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1TxyE6-0006cm-RK for ptxdist@pengutronix.de; Wed, 23 Jan 2013 12:10:42 +0100 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.72) (envelope-from ) id 1TxyE6-00071v-QD for ptxdist@pengutronix.de; Wed, 23 Jan 2013 12:10:42 +0100 Date: Wed, 23 Jan 2013 12:10:42 +0100 From: Michael Olbrich Message-ID: <20130123111042.GC26180@pengutronix.de> References: <5116852.yDijcSoVCo@dabox> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <5116852.yDijcSoVCo@dabox> Subject: Re: [ptxdist] libgcrypt fails with arm-1136jfs-linux-gnueabihf-gcc from OSELAS.Toolchain-2012.12.0 Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Hi, On Wed, Jan 23, 2013 at 10:33:52AM +0100, Tim Sander wrote: > > file: > > > file libgpg-error.so.0.5.0: ELF 32-bit LSB shared object, ARM, version 1 > > > (SYSV), dynamically linked, not stripped > > > > > > The same stuff works with a OSELAS.Toolchain-2011.03.1/arm-1136jfs- > > > linux-gnueabi toolchain. And yes i double > > > checked that i have cleaned the working ptxdist project. > > > > [build output snipped] > > > > "Me, too!" > > > > I had the exact same problem building with a current Xilinx-supplied > > toolchain, > > which is a CodeSourcery Lite 2011.09-50 toolchain for armv7 based on GCC > > 4.6.1, > > with ptxdist-2013.01.0. Since I didn't need that package, I simply made a > > note > > to try the current OSELAS toolchain later to see if it's reproducable. > > > > "Good to hear" that this would likely not have helped, and there's > > possibly an > > issue with the package itself. My best guess right now would be a mixed up > > order > > of (or missing) libraries in the linking stage, but I didn't bother diving > > into > > the Makefile as of yet. > I first thought it would be a hardfloat toolchain problem. But this problem also > occurs with the arm-1136jfs-linux-gnueabi toolchain same version. So yep it > seems to be a problem of the packet. This is a bug in libgcrypt that is exposed by a change in binutils: ac-schemes.o: undefined reference to symbol 'gpg_err_code_from_errno' ac-schemes uses gpg_err_code_from_errno() but only links to libgcrypt.so explicitly. The old bahaviour was like this: libgcrypt.so links to libgpg-error.so.0, so libgpg-error.so.0 is also used if needed. With the new behaviour only explicitly specified libs are used, resulting in this error. The old behaviour can be restored by adding "-WL,--copy-dt-needed-entries" to the ldflags (PTXCONF_TARGET_EXTRA_LDFLAGS in the platformconfig). Michael -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- ptxdist mailing list ptxdist@pengutronix.de