Re: Build error of gnutls on mips undefined reference to symbol '_gp'
On Sat, May 25, 2013 at 03:24:18PM +0200, Andreas Metzler wrote:
> Hello,
>
> my latest gnutls28 upload to unstable (straight rebuild, no source
> changes) FTBFS (only) on mips(el) with the following error:
>
> -------------
> /bin/bash ../../libtool --tag=CC --mode=link gcc -std=gnu99 -g -O2 -Wformat -Werror=format-security -Wall -Wl,-z,relro -o crywrap crywrap.o ../../lib/libgnutls.la ../../gl/libgnu.la -lidn
> libtool: link: gcc -std=gnu99 -g -O2 -Wformat -Werror=format-security -Wall -Wl,-z -Wl,relro -o .libs/crywrap crywrap.o ../../lib/.libs/libgnutls.so ../../gl/.libs/libgnu.a -lpthread -lrt -lidn
> /usr/bin/ld: /usr/lib/gcc/mips-linux-gnu/4.6/../../../mips-linux-gnu/crt1.o: undefined reference to symbol '_gp'
> /usr/bin/ld: note: '_gp' is defined in DSO /usr/lib/mips-linux-gnu/libnettle.so.4 so try adding it to the linker command line
> /usr/lib/mips-linux-gnu/libnettle.so.4: could not read symbols: Invalid operation
> collect2: ld returned 1 exit status
> -------------
>
> This worked a couple of days ago.
>
> The error message 'is defined in DSO ...' normally should be
> triggered if a program *directly* uses functions from a library
> without linking against it. However this is not the case here, crywrap
> does not use functions from nettle (or gmp which also provise the _gp
> symbol). And if it did, the breakage should be present on all archs.
>
> Sadly I am not complely sure when things broke, I /think/ 2013-05-21
> was ok, but I am not totally sure.
>
> Any ideas?
>
This needs a new binutils to work, basically the one from experimental.
We just need to wait for it to be uploaded to sid.
--
Aurelien Jarno GPG: 1024D/F1BCDB73
aurelien@aurel32.net http://www.aurel32.net
Reply to: