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

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

    This will fail with

     0Staging xproto...
     1make[1]: Entering directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec'
     2Making install in specs
     3make[2]: Entering directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/specs'
     4Making install in SIAddresses
     5make[3]: Entering directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/specs/SIAddresses'
     6make[4]: Entering directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/specs/SIAddresses'
     7make[4]: Nothing to be done for 'install-exec-am'.
     8make[4]: Nothing to be done for 'install-data-am'.
     9make[4]: Leaving directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/specs/SIAddresses'
    10make[3]: Leaving directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/specs/SIAddresses'
    11make[3]: Entering directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/specs'
    12make[4]: Entering directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/specs'
    13make[4]: Nothing to be done for 'install-exec-am'.
    14make[4]: Leaving directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/specs'
    15make[3]: Leaving directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/specs'
    16make[2]: Leaving directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/specs'
    17make[2]: Entering directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec'
    18make[3]: Entering directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec'
    19make[3]: Nothing to be done for 'install-exec-am'.
    20 ./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'
    21 ./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'
    22 ./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'
    23mkdir: 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
    24make[3]: *** [Makefile:508: install-xprotoHEADERS] Error 1
    25make[3]: *** Waiting for unfinished jobs....
    26 /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'
    27 /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'
    28make[3]: Leaving directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec'
    29make[2]: *** [Makefile:838: install-am] Error 2
    30make[2]: Leaving directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec'
    31make[1]: *** [Makefile:535: install-recursive] Error 1
    32make[1]: Leaving directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec'
    33make: *** [funcs.mk:342: /bitcoin/depends/work/staging/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/.stamp_staged] Error 2
    34make: Leaving directory '/bitcoin/depends'
    

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

     0make -C depends/ qt
     1make: Entering directory '/bitcoin/depends'
     2Staging xproto...
     3make[1]: Entering directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec'
     4Making install in specs
     5make[2]: Entering directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/specs'
     6Making install in SIAddresses
     7make[3]: Entering directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/specs/SIAddresses'
     8make[4]: Entering directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/specs/SIAddresses'
     9make[4]: Nothing to be done for 'install-exec-am'.
    10make[4]: Nothing to be done for 'install-data-am'.
    11make[4]: Leaving directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/specs/SIAddresses'
    12make[3]: Leaving directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/specs/SIAddresses'
    13make[3]: Entering directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/specs'
    14make[4]: Entering directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/specs'
    15make[4]: Nothing to be done for 'install-exec-am'.
    16make[4]: Leaving directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/specs'
    17make[3]: Leaving directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/specs'
    18make[2]: Leaving directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec/specs'
    19make[2]: Entering directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec'
    20make[3]: Entering directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec'
    21make[3]: Nothing to be done for 'install-exec-am'.
    22 ./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'
    23 /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'
    24 ./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'
    25 /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'
    26 ./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'
    27 /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'
    28make[3]: Leaving directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec'
    29make[2]: Leaving directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec'
    30make[1]: Leaving directory '/bitcoin/depends/work/build/aarch64-unknown-linux-musl/xproto/7.0.31-7e4871430ec'
    31Postprocessing xproto...
    32Caching 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

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: 2025-06-29 18:13 UTC

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