build: Weird fontconfig package issue #21381

issue hebasto opened this issue on March 7, 2021
  1. hebasto commented at 1:46 PM on March 7, 2021: member

    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
    
  2. hebasto added the label Bug on Mar 7, 2021
  3. hebasto added the label Build system on Mar 7, 2021
  4. hebasto commented at 1:46 PM on March 7, 2021: member
  5. dongcarl commented at 11:00 PM on March 10, 2021: member

    What if you just do:

    #!/bin/sh
    git clean -xdff --exclude='/depends/SDKs/*'
    make -C depends qt_configured HOST=x86_64-pc-linux-gnu
    
  6. hebasto commented at 11:17 PM on March 10, 2021: member

    What if you just do:

    #!/bin/sh
    git clean -xdff --exclude='/depends/SDKs/*'
    make -C depends qt_configured HOST=x86_64-pc-linux-gnu
    

    just works :)

  7. fanquake commented at 2:44 AM on March 30, 2021: member

    I'm not sure what issue you're seeing, but these steps:

    make -C depends fontconfig_configured HOST=x86_64-pc-linux-gnu
    make -C depends qt_configured HOST=x86_64-pc-linux-gnu
    

    work fine for me. Output here: https://gist.github.com/fanquake/d59a7251e89ab043d65fc0646eb43e41.

  8. hebasto commented at 2:54 AM on March 30, 2021: member

    @fanquake

    Thanks for testing!

    I verified again, and found out that #21376 fixes this issue.

  9. hebasto closed this on Mar 30, 2021

  10. DrahtBot locked this on Aug 18, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-24 21:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me