Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 512734 - dev-libs/libsodium-0.5.0-r1: checking if i686-pc-linux-gnu-gcc -std=gnu99 static flag -static works... *** Error in `/usr/lib/gcc/i686-pc-linux-gnu/4.8.2/../../../../i686-pc-linux-gnu/bin/ld': corrupted double-linked list: 0x08756e80 ***
Summary: dev-libs/libsodium-0.5.0-r1: checking if i686-pc-linux-gnu-gcc -std=gnu99 sta...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: NeedPatch
Depends on:
Blocks:
 
Reported: 2014-06-08 12:27 UTC by Andrey Grozin
Modified: 2019-01-27 12:01 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Grozin gentoo-dev 2014-06-08 12:27:05 UTC
>>> Configuring source in /var/tmp/portage/dev-libs/libsodium-0.5.0-r1/work/libsodium-0.5.0 ...
 * econf: updating libsodium-0.5.0/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating libsodium-0.5.0/config.guess with /usr/share/gnuconfig/config.guess
./configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-silent-rules --disable-dependency-tracking --enable-asm --disable-blocking-random --disable-static
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
<skipped>
checking if i686-pc-linux-gnu-gcc -std=gnu99 PIC flag -fPIC -DPIC works... yes
checking if i686-pc-linux-gnu-gcc -std=gnu99 static flag -static works... *** Error in `/usr/lib/gcc/i686-pc-linux-gnu/4.8.2/../../../../i686-pc-linux-gnu/bin/ld': corrupted double-linked list: 0x08756e80 ***

Here emerge hangs, and I have to press ctrl-c:

^C

Exiting on signal 2
sandbox:stop  caught signal 2 in pid 17118
sandbox:stop  signal already caught and busy still cleaning up!

/usr/portage/dev-libs/libsodium/libsodium-0.5.0-r1.ebuild: src_configure aborted; exiting.
Comment 1 Manuel Rüger (RETIRED) gentoo-dev 2014-06-08 12:33:02 UTC
Can you please test again with gcc-4.7?
Comment 2 Andrey Grozin gentoo-dev 2014-06-09 11:42:20 UTC
An additional data point: it emerges fine on an ~amd64 computer (with gcc-4.8.2) but fails as described above on 2 ~x86 computers, a desktop and a netbook, with the same gcc version. I have not seen such failures while emerging other packages. Does libsodium configure use something unusual?
I'll try with gcc-4.7 tomorrow.
Comment 3 Andrey Grozin gentoo-dev 2014-06-11 13:28:47 UTC
(In reply to Manuel Rüger from comment #1)
> Can you please test again with gcc-4.7?

checking if i686-pc-linux-gnu-gcc -std=gnu99 static flag -static works... *** Error in `/usr/lib/gcc/i686-pc-linux-gnu/4.7.3/../../../../i686-pc-linux-gnu/bin/ld': corrupted double-linked list: 0x08755a80 ***
Comment 4 Andrey Grozin gentoo-dev 2014-06-16 15:49:55 UTC
The same ~x86 computer, after upgrading gcc to 4.8.3:

checking if i686-pc-linux-gnu-gcc -std=gnu99 static flag -static works... *** Error in `/usr/lib/gcc/i686-pc-linux-gnu/4.8.3/../../../../i686-pc-linux-gnu/bin/ld': corrupted double-linked list: 0x087562f8 ***
Comment 5 Alexander 'E-Razor' Krause 2014-06-20 13:04:20 UTC
You can merge it with this:
EXTRA_ECONF="--disable-pie" emerge --oneshot libsodium
Comment 6 Andrey Grozin gentoo-dev 2014-06-25 04:31:18 UTC
(In reply to Alexander 'E-Razor' Krause from comment #5)
> EXTRA_ECONF="--disable-pie" emerge --oneshot libsodium
Thanks, this works
Comment 7 Manuel Rüger (RETIRED) gentoo-dev 2014-07-04 23:57:06 UTC
Feel free to test again with 0.6.0 :)
Comment 9 Keith Amidon 2014-07-07 14:20:51 UTC
Can can confirm that this issue still exists on 0.6.0-r1 for x86 and not x86_64 and that the suggested workaround is effective.  I'm using gcc 4.8.3.
Comment 10 Andreas Proteus 2014-07-21 13:36:26 UTC
Workaround is needed for 0.6.1 too.
Comment 11 Alexander 'E-Razor' Krause 2014-07-25 20:13:18 UTC
I can confirm it's still buggy in 0.6.1
Comment 12 Andreas Proteus 2014-08-28 14:34:39 UTC
Same bug in version 0.7.0
Comment 13 Yury Katuar 2014-08-29 09:07:26 UTC
Confirm the same error in 0.7.0.
Comment 14 Andreas Proteus 2014-09-25 19:13:58 UTC
Version 1.0.0 suffers from the same bug.
Workaround works.
Comment 15 Andrey Grozin gentoo-dev 2014-11-24 10:27:27 UTC
Same for 1.0.1
Comment 16 Jean-Francois Ostiguy 2015-01-25 23:01:03 UTC
Same for 1.0.2
Comment 17 Pacho Ramos gentoo-dev 2015-02-18 15:57:07 UTC
(In reply to Alexander 'E-Razor' Krause from comment #5)
> You can merge it with this:
> EXTRA_ECONF="--disable-pie" emerge --oneshot libsodium

Why is this workaround not used until https://sourceware.org/bugzilla/show_bug.cgi?id=16428 is solved?
Comment 18 Pacho Ramos gentoo-dev 2015-02-18 21:13:20 UTC
+  18 Feb 2015; Pacho Ramos <pacho@gentoo.org> libsodium-1.0.2.ebuild:
+  --disable-pie needed on x86 (#512734)
+
Comment 19 Magnus Granberg gentoo-dev 2015-02-18 22:32:32 UTC
LT_INIT
AC_SUBST(LIBTOOL_DEPS)
AC_ARG_VAR([AR], [path to the ar utility])
AC_CHECK_TOOL([AR], [ar], [ar])
in configure.ac should be moved before the hardened checks.
This should be fixed upstream.