Subject: bug#43112: hedgewars 1.0.0 fails to build

From: raingloom <[email-masked]>
Date: Wed, 2 Sep 2020 18:44:58 +0200

On Tue, 1 Sep 2020 18:42:39 +0200
Andreas Enge <[email-masked]> wrote:

> Hello,
> 
> On Sun, Aug 30, 2020 at 01:23:37PM +0000, bdju via Bug reports for
> GNU Guix wrote:
> > build log here:
> > http://ix.io/2vGD
> > 
> > running guix (GNU Guix) a6b72a0f2b02f27c44c28d32ec26fc8188ee61b8
> 
> I also gave it a try, seeing that the build log does not show any
> error.

It does, it shows the same error. But make doesn't work like one would
assume.

This is the relevant part:

```
collect2: error: ld returned 1 exit status
`gcc' failed in phase `Linker'. (Exit code: 1)
make[2]: *** [gameServer/CMakeFiles/hedgewars-server.dir/build.make:87:
bin/hedgewars-server] Error 1
make[2]: Leaving directory '/tmp/guix-build-hedgewars-1.0.0.drv-0/build'
make[1]: *** [CMakeFiles/Makefile2:3096:
gameServer/CMakeFiles/hedgewars-server.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
```

It was running 4 independent processes (threads?), one of them failed,
but the others built everything else, since they were not affected by
the failure of the first. That is why you don't see the error if you
only look at the tail of the output. You are seeing the successes of
the other 3 processes.