From mboxrd@z Thu Jan  1 00:00:00 1970
From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=)
Subject: bug#24841: Status: Cross-building bootstrap binaries fail in current
	master
Date: Wed, 28 Feb 2018 00:36:23 +0100
Message-ID: <87k1uyuhs8.fsf@gnu.org>
References: <87k2conpsp.fsf@gnu.org>
	<87a7w18ifv.fsf@garuda.local.i-did-not-set--mail-host-address--so-tickle-me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Return-path: <bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org>
Received: from eggs.gnu.org ([2001:4830:134:3::10]:35715)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1eqonz-0000ZI-Tc
	for bug-guix@gnu.org; Tue, 27 Feb 2018 18:37:09 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1eqonv-0001WI-0X
	for bug-guix@gnu.org; Tue, 27 Feb 2018 18:37:07 -0500
Received: from debbugs.gnu.org ([208.118.235.43]:56482)
	by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
	(Exim 4.71) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
	id 1eqonu-0001WB-SQ
	for bug-guix@gnu.org; Tue, 27 Feb 2018 18:37:02 -0500
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
	(envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1eqonu-0005tj-FF
	for bug-guix@gnu.org; Tue, 27 Feb 2018 18:37:02 -0500
Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-Message-ID: <handler.24841.B24841.151977458922629@debbugs.gnu.org>
In-Reply-To: <87a7w18ifv.fsf@garuda.local.i-did-not-set--mail-host-address--so-tickle-me>
	(Chris Marusich's message of "Thu, 22 Feb 2018 10:47:16 +0100")
List-Id: Bug reports for GNU Guix <bug-guix.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-guix>,
	<mailto:bug-guix-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/bug-guix/>
List-Post: <mailto:bug-guix@gnu.org>
List-Help: <mailto:bug-guix-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-guix>,
	<mailto:bug-guix-request@gnu.org?subject=subscribe>
Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org
Sender: "bug-Guix" <bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org>
To: Chris Marusich <cmmarusich@gmail.com>
Cc: bug#24841 <24841@debbugs.gnu.org>

Hello,

Thanks for testing and providing a clear summary!

Chris Marusich <cmmarusich@gmail.com> skribis:

> * aarch64, arm, i686: For all of these targets, bootstrap-tarballs fails
>   because grep@3.1 fails.  grep@3.1 fails because of errors like the
>   following:
>
> make[2]: Entering directory '/tmp/guix-build-grep-3.1.drv-0/grep-3.1/src'
>   CC       dfasearch.o
>   CC       grep.o
>   CC       kwsearch.o
>   CC       kwset.o
>   CC       pcresearch.o
>   CC       searchutils.o
>   GEN      egrep
>   GEN      fgrep
>   CCLD     grep
> /gnu/store/p2b76bgsx5pkpc59fvxmkfz47502awg5-pcre-8.41/lib/libpcre.a(libpc=
re_la-pcre_jit_compile.o): In function `sljit_free_exec':
> (.text+0x64d): undefined reference to `pthread_mutex_lock'
> /gnu/store/p2b76bgsx5pkpc59fvxmkfz47502awg5-pcre-8.41/lib/libpcre.a(libpc=
re_la-pcre_jit_compile.o): In function `sljit_free_exec':
> (.text+0x6ac): undefined reference to `pthread_mutex_unlock'
> /gnu/store/p2b76bgsx5pkpc59fvxmkfz47502awg5-pcre-8.41/lib/libpcre.a(libpc=
re_la-pcre_jit_compile.o): In function `sljit_generate_code':
> (.text+0x73e4): undefined reference to `pthread_mutex_lock'
> /gnu/store/p2b76bgsx5pkpc59fvxmkfz47502awg5-pcre-8.41/lib/libpcre.a(libpc=
re_la-pcre_jit_compile.o): In function `sljit_generate_code':
> (.text+0x74b0): undefined reference to `pthread_mutex_unlock'
> /gnu/store/p2b76bgsx5pkpc59fvxmkfz47502awg5-pcre-8.41/lib/libpcre.a(libpc=
re_la-pcre_jit_compile.o): In function `sljit_generate_code':
> (.text+0x7847): undefined reference to `pthread_mutex_unlock'
> /gnu/store/p2b76bgsx5pkpc59fvxmkfz47502awg5-pcre-8.41/lib/libpcre.a(libpc=
re_la-pcre_jit_compile.o): In function `pcre_jit_free_unused_memory':
> (.text+0x2462a): undefined reference to `pthread_mutex_lock'
> /gnu/store/p2b76bgsx5pkpc59fvxmkfz47502awg5-pcre-8.41/lib/libpcre.a(libpc=
re_la-pcre_jit_compile.o): In function `pcre_jit_free_unused_memory':
> (.text+0x24692): undefined reference to `pthread_mutex_unlock'
> /gnu/store/spfsrm8cqxh7qs8j76ml6x989z2hy49y-gcc-cross-i686-unknown-linux-=
gnu-5.5.0/lib/gcc/i686-unknown-linux-gnu/5.5.0/libgcc_eh.a(unwind-dw2-fde-d=
ip.o): In function `__gthread_mutex_lock':
> /tmp/guix-build-gcc-cross-i686-unknown-linux-gnu-5.5.0.drv-0/build/i686-u=
nknown-linux-gnu/libgcc/./gthr-default.h:748: undefined reference to `pthre=
ad_mutex_lock'
> /gnu/store/spfsrm8cqxh7qs8j76ml6x989z2hy49y-gcc-cross-i686-unknown-linux-=
gnu-5.5.0/lib/gcc/i686-unknown-linux-gnu/5.5.0/libgcc_eh.a(unwind-dw2-fde-d=
ip.o): In function `__gthread_mutex_unlock':
> /tmp/guix-build-gcc-cross-i686-unknown-linux-gnu-5.5.0.drv-0/build/i686-u=
nknown-linux-gnu/libgcc/./gthr-default.h:778: undefined reference to `pthre=
ad_mutex_unlock'
> /gnu/store/spfsrm8cqxh7qs8j76ml6x989z2hy49y-gcc-cross-i686-unknown-linux-=
gnu-5.5.0/lib/gcc/i686-unknown-linux-gnu/5.5.0/libgcc_eh.a(unwind-dw2-fde-d=
ip.o): In function `__gthread_mutex_lock':
> /tmp/guix-build-gcc-cross-i686-unknown-linux-gnu-5.5.0.drv-0/build/i686-u=
nknown-linux-gnu/libgcc/./gthr-default.h:748: undefined reference to `pthre=
ad_mutex_lock'
> /gnu/store/spfsrm8cqxh7qs8j76ml6x989z2hy49y-gcc-cross-i686-unknown-linux-=
gnu-5.5.0/lib/gcc/i686-unknown-linux-gnu/5.5.0/libgcc_eh.a(unwind-dw2-fde-d=
ip.o): In function `__gthread_mutex_unlock':
> /tmp/guix-build-gcc-cross-i686-unknown-linux-gnu-5.5.0.drv-0/build/i686-u=
nknown-linux-gnu/libgcc/./gthr-default.h:778: undefined reference to `pthre=
ad_mutex_unlock'
> /gnu/store/spfsrm8cqxh7qs8j76ml6x989z2hy49y-gcc-cross-i686-unknown-linux-=
gnu-5.5.0/lib/gcc/i686-unknown-linux-gnu/5.5.0/libgcc_eh.a(unwind-dw2-fde-d=
ip.o): In function `__gthread_mutex_lock':
> /tmp/guix-build-gcc-cross-i686-unknown-linux-gnu-5.5.0.drv-0/build/i686-u=
nknown-linux-gnu/libgcc/./gthr-default.h:748: undefined reference to `pthre=
ad_mutex_lock'
> /gnu/store/spfsrm8cqxh7qs8j76ml6x989z2hy49y-gcc-cross-i686-unknown-linux-=
gnu-5.5.0/lib/gcc/i686-unknown-linux-gnu/5.5.0/libgcc_eh.a(unwind-dw2-fde-d=
ip.o): In function `__gthread_mutex_unlock':
> /tmp/guix-build-gcc-cross-i686-unknown-linux-gnu-5.5.0.drv-0/build/i686-u=
nknown-linux-gnu/libgcc/./gthr-default.h:778: undefined reference to `pthre=
ad_mutex_unlock'
> /gnu/store/spfsrm8cqxh7qs8j76ml6x989z2hy49y-gcc-cross-i686-unknown-linux-=
gnu-5.5.0/lib/gcc/i686-unknown-linux-gnu/5.5.0/libgcc_eh.a(unwind-dw2-fde-d=
ip.o): In function `__gthread_mutex_lock':
> /tmp/guix-build-gcc-cross-i686-unknown-linux-gnu-5.5.0.drv-0/build/i686-u=
nknown-linux-gnu/libgcc/./gthr-default.h:748: undefined reference to `pthre=
ad_mutex_lock'
> /gnu/store/spfsrm8cqxh7qs8j76ml6x989z2hy49y-gcc-cross-i686-unknown-linux-=
gnu-5.5.0/lib/gcc/i686-unknown-linux-gnu/5.5.0/libgcc_eh.a(unwind-dw2-fde-d=
ip.o): In function `__gthread_mutex_unlock':
> /tmp/guix-build-gcc-cross-i686-unknown-linux-gnu-5.5.0.drv-0/build/i686-u=
nknown-linux-gnu/libgcc/./gthr-default.h:778: undefined reference to `pthre=
ad_mutex_unlock'
> /gnu/store/spfsrm8cqxh7qs8j76ml6x989z2hy49y-gcc-cross-i686-unknown-linux-=
gnu-5.5.0/lib/gcc/i686-unknown-linux-gnu/5.5.0/libgcc_eh.a(unwind-dw2-fde-d=
ip.o): In function `__gthread_mutex_lock':
> /tmp/guix-build-gcc-cross-i686-unknown-linux-gnu-5.5.0.drv-0/build/i686-u=
nknown-linux-gnu/libgcc/./gthr-default.h:748: undefined reference to `pthre=
ad_mutex_lock'
> /gnu/store/spfsrm8cqxh7qs8j76ml6x989z2hy49y-gcc-cross-i686-unknown-linux-=
gnu-5.5.0/lib/gcc/i686-unknown-linux-gnu/5.5.0/libgcc_eh.a(unwind-dw2-fde-d=
ip.o): In function `__gthread_mutex_unlock':
> /tmp/guix-build-gcc-cross-i686-unknown-linux-gnu-5.5.0.drv-0/build/i686-u=
nknown-linux-gnu/libgcc/./gthr-default.h:778: undefined reference to `pthre=
ad_mutex_unlock'
> /tmp/guix-build-gcc-cross-i686-unknown-linux-gnu-5.5.0.drv-0/build/i686-u=
nknown-linux-gnu/libgcc/./gthr-default.h:778: undefined reference to `pthre=
ad_mutex_unlock'
> collect2: error: ld returned 1 exit status
> make[2]: *** [Makefile:1317: grep] Error 1
> make[2]: Leaving directory '/tmp/guix-build-grep-3.1.drv-0/grep-3.1/src'
> make[1]: *** [Makefile:1301: all-recursive] Error 1
> make[1]: Leaving directory '/tmp/guix-build-grep-3.1.drv-0/grep-3.1'
> make: *** [Makefile:1242: all] Error 2
> phase `build' failed after 14.3 seconds
> builder for `/gnu/store/db1xy331abifx0r2jbi6q9zcbcmhf1b1-grep-3.1.drv' fa=
iled with exit code 1

Commit 29d37e999c495431eafde90027d2b97b16d0db4e fixes this one:

--8<---------------cut here---------------start------------->8---
$ ./pre-inst-env guix build --target=3Daarch64-unknown-linux-gnu bootstrap-=
tarballs=20
/gnu/store/yai6wip6qcqgwlxwgvfqwab8gi9yks1s-bootstrap-tarballs-0
$ git describe
v0.14.0-2653-g29d37e999
--8<---------------cut here---------------end--------------->8---

Ludo=E2=80=99.