build: (initial?) failure to build xproto on Alpine #32494

issue fanquake opened this issue on May 14, 2025
  1. fanquake commented at 10:54 AM on May 14, 2025: member
    # podman run -it alpine
    apk update && apk add pkgconf patch python3 cmake g++ bash curl gcc git make && \
    	git clone https://github.com/bitcoin/bitcoin && \
    	cd bitcoin && \
    	make -C depends qt -j13
    

    This will fail with

    Staging xproto...
    make[1]: Entering directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec'
    Making install in specs
    make[2]: Entering directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/specs'
    Making install in SIAddresses
    make[3]: Entering directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/specs/SIAddresses'
    make[4]: Entering directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/specs/SIAddresses'
    make[4]: Nothing to be done for 'install-exec-am'.
    make[4]: Nothing to be done for 'install-data-am'.
    make[4]: Leaving directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/specs/SIAddresses'
    make[3]: Leaving directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/specs/SIAddresses'
    make[3]: Entering directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/specs'
    make[4]: Entering directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/specs'
    make[4]: Nothing to be done for 'install-exec-am'.
    make[4]: Leaving directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/specs'
    make[3]: Leaving directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/specs'
    make[2]: Leaving directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/specs'
    make[2]: Entering directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec'
    make[3]: Entering directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec'
    make[3]: Nothing to be done for 'install-exec-am'.
     ./install-sh -c -d '/bitcoin/depends/work/staging/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/bitcoin/depends/aarch64-unknown-linux-musl/lib/pkgconfig'
     ./install-sh -c -d '/bitcoin/depends/work/staging/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/bitcoin/depends/aarch64-unknown-linux-musl/include/X11'
     ./install-sh -c -d '/bitcoin/depends/work/staging/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/bitcoin/depends/aarch64-unknown-linux-musl/include/X11'
    mkdir: can't create directory '/bitcoin/depends/work/staging/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/bitcoin/depends/aarch64-unknown-linux-musl/include/X11': File exists
    make[3]: *** [Makefile:508: install-xprotoHEADERS] Error 1
    make[3]: *** Waiting for unfinished jobs....
     /usr/bin/install -c -m 644 xproto.pc '/bitcoin/depends/work/staging/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/bitcoin/depends/aarch64-unknown-linux-musl/lib/pkgconfig'
     /usr/bin/install -c -m 644 Xfuncproto.h Xpoll.h '/bitcoin/depends/work/staging/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/bitcoin/depends/aarch64-unknown-linux-musl/include/X11'
    make[3]: Leaving directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec'
    make[2]: *** [Makefile:838: install-am] Error 2
    make[2]: Leaving directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec'
    make[1]: *** [Makefile:535: install-recursive] Error 1
    make[1]: Leaving directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec'
    make: *** [funcs.mk:342: /bitcoin/depends/work/staging/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/.stamp_staged] Error 2
    make: Leaving directory '/bitcoin/depends'
    

    If you restart the build it then picks up and continues:

    make -C depends/ qt
    make: Entering directory '/bitcoin/depends'
    Staging xproto...
    make[1]: Entering directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec'
    Making install in specs
    make[2]: Entering directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/specs'
    Making install in SIAddresses
    make[3]: Entering directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/specs/SIAddresses'
    make[4]: Entering directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/specs/SIAddresses'
    make[4]: Nothing to be done for 'install-exec-am'.
    make[4]: Nothing to be done for 'install-data-am'.
    make[4]: Leaving directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/specs/SIAddresses'
    make[3]: Leaving directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/specs/SIAddresses'
    make[3]: Entering directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/specs'
    make[4]: Entering directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/specs'
    make[4]: Nothing to be done for 'install-exec-am'.
    make[4]: Leaving directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/specs'
    make[3]: Leaving directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/specs'
    make[2]: Leaving directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/specs'
    make[2]: Entering directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec'
    make[3]: Entering directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec'
    make[3]: Nothing to be done for 'install-exec-am'.
     ./install-sh -c -d '/bitcoin/depends/work/staging/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/bitcoin/depends/aarch64-unknown-linux-musl/include/X11'
     /usr/bin/install -c -m 644 Xfuncproto.h Xpoll.h '/bitcoin/depends/work/staging/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/bitcoin/depends/aarch64-unknown-linux-musl/include/X11'
     ./install-sh -c -d '/bitcoin/depends/work/staging/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/bitcoin/depends/aarch64-unknown-linux-musl/lib/pkgconfig'
     /usr/bin/install -c -m 644 xproto.pc '/bitcoin/depends/work/staging/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/bitcoin/depends/aarch64-unknown-linux-musl/lib/pkgconfig'
     ./install-sh -c -d '/bitcoin/depends/work/staging/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/bitcoin/depends/aarch64-unknown-linux-musl/include/X11'
     /usr/bin/install -c -m 644 ap_keysym.h DECkeysym.h HPkeysym.h keysymdef.h keysym.h Sunkeysym.h Xalloca.h Xarch.h Xatom.h Xdefs.h XF86keysym.h Xfuncs.h X.h Xmd.h Xosdefs.h Xos.h Xos_r.h Xproto.h Xprotostr.h Xthreads.h Xw32defs.h XWDFile.h Xwindows.h Xwinsock.h '/bitcoin/depends/work/staging/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/bitcoin/depends/aarch64-unknown-linux-musl/include/X11'
    make[3]: Leaving directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec'
    make[2]: Leaving directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec'
    make[1]: Leaving directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec'
    Postprocessing xproto...
    Caching xproto...
    
  2. fanquake added the label GUI on May 15, 2025
  3. fanquake added the label Build system on May 15, 2025
  4. willcl-ark commented at 5:12 PM on May 19, 2025: member

    This appears to be related to make parallelism. It can be circumvented by using make -j1.

    Another approach might be to patch the (failing) mkdir call with mkdir -p, although this might possibly also just mask underlying issue...

  5. fanquake referenced this in commit 420f67ea16 on May 20, 2025
  6. fanquake referenced this in commit 14df7507fb on May 20, 2025
  7. fanquake referenced this in commit d7302498b1 on May 20, 2025
  8. fanquake referenced this in commit df9ebbf659 on May 20, 2025
  9. fanquake closed this on Jun 3, 2025

  10. fanquake referenced this in commit a980918f51 on Jun 3, 2025
  11. fanquake referenced this in commit 4a1143b083 on Jun 3, 2025
  12. fanquake referenced this in commit aef658601d on Jun 4, 2025
  13. fanquake referenced this in commit a6cbd33d1a on Jun 5, 2025
  14. saikiran57 referenced this in commit 6a8edb91fd on Jul 28, 2025
  15. morozow referenced this in commit 2d58e3fed6 on May 8, 2026
  16. morozow referenced this in commit 94a871444a on May 8, 2026
  17. morozow referenced this in commit 0266bb1264 on May 8, 2026
  18. bitcoin locked this on Jul 30, 2026

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-08-11 12:51 UTC

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