Version bump for s390x
While running ./hadrian/build.sh -c -j
on GHC master f97a7aacb5 for the s390x architecture, the following error comes up:
| Run Make "_build/stage1/libffi/build": none => none
Makefile:3407: warning: overriding recipe for target 'libffi.map'
Makefile:732: warning: ignoring old recipe for target 'libffi.map'
Makefile:1804: warning: overriding recipe for target 'libffi.map'
Makefile:672: warning: ignoring old recipe for target 'libffi.map'
Makefile:1804: warning: overriding recipe for target 'libffi.map'
Makefile:672: warning: ignoring old recipe for target 'libffi.map'
../src/s390/ffi.c:34:10: fatal error: internal.h: No such file or directory
34 | #include "internal.h"
| ^~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [Makefile:1238: src/s390/ffi.lo] Error 1
gmake[2]: *** Waiting for unfinished jobs....
gmake[1]: *** [Makefile:1311: install-recursive] Error 1
gmake: *** [Makefile:2871: install] Error 2
Error when running Shake build system:
at action, called at src/Rules.hs:71:19 in main:Rules
at need, called at src/Rules.hs:93:5 in main:Rules
* Depends on: _build/stage1/bin/hp2ps
at need, called at src/Rules/Libffi.hs:72:5 in main:Rules.Libffi
* Depends on: _build/stage1/libffi/.dynamiclibs
at &%>, called at src/Rules/Libffi.hs:161:18 in main:Rules.Libffi
* Depends on: _build/stage1/libffi/build/inst/lib/libffi.a _build/stage1/libffi/.dynamiclibs
* Raised the exception:
user error (Development.Shake.cmd, system command failed
Command line: /usr/bin/gmake -C _build/stage1/libffi/build MAKEFLAGS=-j6 install
Exit code: 2
Stderr:
Makefile:3407: warning: overriding recipe for target 'libffi.map'
Makefile:732: warning: ignoring old recipe for target 'libffi.map'
Makefile:1804: warning: overriding recipe for target 'libffi.map'
Makefile:672: warning: ignoring old recipe for target 'libffi.map'
Makefile:1804: warning: overriding recipe for target 'libffi.map'
Makefile:672: warning: ignoring old recipe for target 'libffi.map'
../src/s390/ffi.c:34:10: fatal error: internal.h: No such file or directory
34 | #include "internal.h"
| ^~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [Makefile:1238: src/s390/ffi.lo] Error 1
gmake[2]: *** Waiting for unfinished jobs....
gmake[1]: *** [Makefile:1311: install-recursive] Error 1
gmake: *** [Makefile:2871: install] Error 2
)
The libffi tarball seems to be out of date, i.e., file internal.h
is not included. I manually created a new tarball based on upstream commit c2a6859
which works for me.
See also https://github.com/libffi/libffi/blob/master/src/s390/internal.h
Can we bump the version of libffi tarball?