The following script:
#!/bin/sh
git clean -xdff --exclude='/depends/SDKs/*'
make -C depends fontconfig_configured HOST=x86_64-pc-linux-gnu
make -C depends qt_configured HOST=x86_64-pc-linux-gnu
looks legitimate, but it fails:
...
Building fontconfig...
make[1]: Entering directory '/home/hebasto/GitHub/bitcoin/depends/work/build/x86_64-pc-linux-gnu/fontconfig/2.12.1-f36da5bd73d'
make all-recursive
make[2]: Entering directory '/home/hebasto/GitHub/bitcoin/depends/work/build/x86_64-pc-linux-gnu/fontconfig/2.12.1-f36da5bd73d'
Making all in fontconfig
make[3]: Entering directory '/home/hebasto/GitHub/bitcoin/depends/work/build/x86_64-pc-linux-gnu/fontconfig/2.12.1-f36da5bd73d/fontconfig'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/hebasto/GitHub/bitcoin/depends/work/build/x86_64-pc-linux-gnu/fontconfig/2.12.1-f36da5bd73d/fontconfig'
Making all in fc-blanks
make[3]: Entering directory '/home/hebasto/GitHub/bitcoin/depends/work/build/x86_64-pc-linux-gnu/fontconfig/2.12.1-f36da5bd73d/fc-blanks'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/hebasto/GitHub/bitcoin/depends/work/build/x86_64-pc-linux-gnu/fontconfig/2.12.1-f36da5bd73d/fc-blanks'
Making all in fc-case
make[3]: Entering directory '/home/hebasto/GitHub/bitcoin/depends/work/build/x86_64-pc-linux-gnu/fontconfig/2.12.1-f36da5bd73d/fc-case'
GEN fcalias.h
GEN fcaliastail.h
make all-am
make[4]: Entering directory '/home/hebasto/GitHub/bitcoin/depends/work/build/x86_64-pc-linux-gnu/fontconfig/2.12.1-f36da5bd73d/fc-case'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/home/hebasto/GitHub/bitcoin/depends/work/build/x86_64-pc-linux-gnu/fontconfig/2.12.1-f36da5bd73d/fc-case'
make[3]: Leaving directory '/home/hebasto/GitHub/bitcoin/depends/work/build/x86_64-pc-linux-gnu/fontconfig/2.12.1-f36da5bd73d/fc-case'
Making all in fc-lang
make[3]: Entering directory '/home/hebasto/GitHub/bitcoin/depends/work/build/x86_64-pc-linux-gnu/fontconfig/2.12.1-f36da5bd73d/fc-lang'
GEN fcalias.h
GEN fcaliastail.h
make all-am
make[4]: Entering directory '/home/hebasto/GitHub/bitcoin/depends/work/build/x86_64-pc-linux-gnu/fontconfig/2.12.1-f36da5bd73d/fc-lang'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/home/hebasto/GitHub/bitcoin/depends/work/build/x86_64-pc-linux-gnu/fontconfig/2.12.1-f36da5bd73d/fc-lang'
make[3]: Leaving directory '/home/hebasto/GitHub/bitcoin/depends/work/build/x86_64-pc-linux-gnu/fontconfig/2.12.1-f36da5bd73d/fc-lang'
Making all in fc-glyphname
make[3]: Entering directory '/home/hebasto/GitHub/bitcoin/depends/work/build/x86_64-pc-linux-gnu/fontconfig/2.12.1-f36da5bd73d/fc-glyphname'
GEN fcalias.h
GEN fcaliastail.h
make all-am
make[4]: Entering directory '/home/hebasto/GitHub/bitcoin/depends/work/build/x86_64-pc-linux-gnu/fontconfig/2.12.1-f36da5bd73d/fc-glyphname'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/home/hebasto/GitHub/bitcoin/depends/work/build/x86_64-pc-linux-gnu/fontconfig/2.12.1-f36da5bd73d/fc-glyphname'
make[3]: Leaving directory '/home/hebasto/GitHub/bitcoin/depends/work/build/x86_64-pc-linux-gnu/fontconfig/2.12.1-f36da5bd73d/fc-glyphname'
Making all in src
make[3]: Entering directory '/home/hebasto/GitHub/bitcoin/depends/work/build/x86_64-pc-linux-gnu/fontconfig/2.12.1-f36da5bd73d/src'
GEN fcalias.h
GEN fcftalias.h
GEN stamp-fcstdint
config.status: executing src/fcstdint.h commands
config.status: creating src/fcstdint.h : _FONTCONFIG_SRC_FCSTDINT_H
config.status: src/fcstdint.h is unchanged
make all-am
make[4]: Entering directory '/home/hebasto/GitHub/bitcoin/depends/work/build/x86_64-pc-linux-gnu/fontconfig/2.12.1-f36da5bd73d/src'
CC fcatomic.lo
CC fcblanks.lo
CC fccache.lo
CC fccfg.lo
CC fccharset.lo
CC fccompat.lo
CC fcdbg.lo
CC fcdefault.lo
CC fcdir.lo
In file included from fcftint.h:26,
from fcdir.c:26:
../fontconfig/fcfreetype.h:27:10: fatal error: ft2build.h: No such file or directory
27 | #include <ft2build.h>
| ^~~~~~~~~~~~
compilation terminated.
make[4]: *** [Makefile:637: fcdir.lo] Error 1
make[4]: Leaving directory '/home/hebasto/GitHub/bitcoin/depends/work/build/x86_64-pc-linux-gnu/fontconfig/2.12.1-f36da5bd73d/src'
make[3]: *** [Makefile:498: all] Error 2
make[3]: Leaving directory '/home/hebasto/GitHub/bitcoin/depends/work/build/x86_64-pc-linux-gnu/fontconfig/2.12.1-f36da5bd73d/src'
make[2]: *** [Makefile:581: all-recursive] Error 1
make[2]: Leaving directory '/home/hebasto/GitHub/bitcoin/depends/work/build/x86_64-pc-linux-gnu/fontconfig/2.12.1-f36da5bd73d'
make[1]: *** [Makefile:465: all] Error 2
make[1]: Leaving directory '/home/hebasto/GitHub/bitcoin/depends/work/build/x86_64-pc-linux-gnu/fontconfig/2.12.1-f36da5bd73d'
make: *** [funcs.mk:275: /home/hebasto/GitHub/bitcoin/depends/work/build/x86_64-pc-linux-gnu/fontconfig/2.12.1-f36da5bd73d/./.stamp_built] Error 2
make: Leaving directory '/home/hebasto/GitHub/bitcoin/depends'
Test system:
$ uname -srm
Linux 5.4.0-66-generic x86_64