Subject: Re: bug#36238: Problems cross-compiling on core-updates
From: Marius Bakke <[email-masked]>
To: Carl Dong <[email-masked]>, [email-masked]
Date: Sun, 16 Jun 2019 09:45:00 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Carl Dong <[email-masked]> writes:

> Hi all,
>
> I noticed that cross-compiling isn't working on the core-updates branch. I'm on
> commit cfd4e4d06e3cda0f3eed8d6b9277ce53e55404b8 and all you need to reproduce is
> to invoke:
>
> ./pre-inst-env guix build --target=aarch64-linux-gnu coreutils
>
> Attached is the build log.

Including the plain text for posterity:

--8<---------------cut here---------------start------------->8---
starting phase `build'
  LEX      examples/c/reccalc/scan.stamp
  GEN      lib/alloca.h
  GEN      lib/fcntl.h
  GEN      lib/configmake.h
  GEN      lib/limits.h
  GEN      lib/inttypes.h
  GEN      lib/textstyle.h
  GEN      lib/math.h
  GEN      lib/signal.h
  GEN      lib/spawn.h
  GEN      lib/stdio.h
  GEN      lib/stdlib.h
  GEN      lib/string.h
  GEN      lib/sys/resource.h
  GEN      lib/time.h
  GEN      lib/unitypes.h
  GEN      lib/sys/time.h
  GEN      lib/unistd.h
  GEN      lib/sys/times.h
  GEN      lib/sys/types.h
  GEN      lib/sys/wait.h
  GEN      lib/uniwidth.h
  GEN      lib/wchar.h
  GEN      lib/wctype.h
make[1]: Entering directory '/tmp/guix-build-bison-3.4.1.drv-0/bison-3.4.1'
make[1]: Entering directory '/tmp/guix-build-bison-3.4.1.drv-0/bison-3.4.1'
  LEX      examples/c/reccalc/scan.stamp
  LEX      examples/c/reccalc/scan.stamp
make[1]: Leaving directory '/tmp/guix-build-bison-3.4.1.drv-0/bison-3.4.1'
mv: cannot stat 'examples/c/reccalc/scan.stamp.tmp': No such file or directory
make[1]: *** [Makefile:6855: examples/c/reccalc/scan.stamp] Error 1
make[1]: Leaving directory '/tmp/guix-build-bison-3.4.1.drv-0/bison-3.4.1'
make: *** [Makefile:6847: examples/c/reccalc/scan.c] Error 2
command "make" "-j" "48" failed with status 2
--8<---------------cut here---------------end--------------->8---

This looks like a parallelism issue, and should be fixed in
b1593c1c4fd8f4fc6df4c43cab51334426e3aa76.  Thanks!