Guix builds failing after #23778 #24010

issue psgreco opened this issue on January 8, 2022
  1. psgreco commented at 1:34 AM on January 8, 2022: contributor

    Doing a guix build after #23778 (commit https://github.com/bitcoin/bitcoin/commit/711ce2e5333bd6717f9b114abe7ec1d1994afbc4) fails with the following error

    substitute: updating substitutes from 'https://guix.carldong.io'... 100.0%
     linux-libre-headers-5.10.35  1.1MiB                                                                                                                                                               105.7MiB/s 00:00 [##################] 100.0%
     libgit2-1.3.0-checkout  3.1MiB                                                                                                                                                                      823KiB/s 00:03 [###############   ]  87.9%Backtrace:
    In ice-9/boot-9.scm:
      1736:10 19 (with-exception-handler _ _ #:unwind? _ # _)
      1736:10 18 (with-exception-handler _ _ #:unwind? _ # _)
      1731:15 17 (with-exception-handler #<procedure 7f146e169ba0 at ic?> ?)
    In guix/scripts/substitute.scm:
       765:15 16 (_)
        538:9 15 (process-substitution #<output: file 4> _ _ #:cache-urls ?)
    In guix/serialization.scm:
        424:4 14 (fold-archive _ _ _ _)
       468:33 13 (read "/gnu/store/l3nzsf04lai8kis5g75rfrmvb7c78gig-lib?" ?)
       468:33 12 (read "/gnu/store/l3nzsf04lai8kis5g75rfrmvb7c78gig-lib?" ?)
       468:33 11 (read "/gnu/store/l3nzsf04lai8kis5g75rfrmvb7c78gig-lib?" ?)
       468:33 10 (read "/gnu/store/l3nzsf04lai8kis5g75rfrmvb7c78gig-lib?" ?)
       442:24  9 (read "/gnu/store/l3nzsf04lai8kis5g75rfrmvb7c78gig-lib?" ?)
       525:24  8 (_ "/gnu/store/l3nzsf04lai8kis5g75rfrmvb7c78gig-libgit?" ?)
    In guix/store/deduplication.scm:
        227:2  7 (dump-file/deduplicate "/gnu/store/l3nzsf04lai8kis5g75?" ?)
    In ice-9/ports.scm:
       461:11  6 (call-with-output-file "/gnu/store/l3nzsf04lai8kis5g75?" ?)
    In unknown file:
               5 (open-file "/gnu/store/l3nzsf04lai8kis5g75rfrmvb7c78gi?" ?)
    In ice-9/boot-9.scm:
      1669:16  4 (raise-exception _ #:continuable? _)
      1669:16  3 (raise-exception _ #:continuable? _)
      1764:13  2 (_ #<&compound-exception components: (#<&error> #<&orig?>)
      1669:16  1 (raise-exception _ #:continuable? _)
      1669:16  0 (raise-exception _ #:continuable? _)
    
    ice-9/boot-9.scm:1669:16: In procedure raise-exception:
    Throw to key `encoding-error' with args `("scm_to_stringn" "cannot convert wide string to output locale" 84 #f #f)'.
    substitution of /gnu/store/l3nzsf04lai8kis5g75rfrmvb7c78gig-libgit2-1.3.0-checkout failed
    guix time-machine: error: corrupt input while restoring archive from #<closed: file 7fb8786b4700>
    

    Tried building several times, same result.

    Reverting to #23974 (commit https://github.com/bitcoin/bitcoin/commit/4ada74206a533e14312477f36d5443da5caebba0) builds without issues

  2. psgreco added the label Bug on Jan 8, 2022
  3. fanquake removed the label Bug on Jan 8, 2022
  4. fanquake added the label Build system on Jan 8, 2022
  5. fanquake commented at 1:44 AM on January 8, 2022: member

    "cannot convert wide string to output locale" 84 #f #f)'.

    Looking at an upstream bug report containing the exact same issue, https://issues.guix.gnu.org/issue/37662:

    This package contains non-ASCII UTF-8-encoded file names.

    I suppose the error here is because you’re daemon is missing its UTF-8 locales.

    This could be because you upgraded the daemon but did not upgrade the ‘glibc-utf8-locales’ or ‘glibc-locales’ you installed as root, no?

    What version of Guix are you using, and how was it installed? Does installing / upgrading your locale packages solve the problem?

  6. fanquake renamed this:
    Guix builds failing after https://github.com/bitcoin/bitcoin/pull/23778
    Guix builds failing after #23778
    on Jan 8, 2022
  7. psgreco commented at 11:24 AM on January 8, 2022: contributor

    I'm using guix 1.3.0, in a freshly built image/container using the steps in https://github.com/fanquake/core-review/tree/master/guix

  8. fanquake commented at 3:42 AM on January 10, 2022: member

    I'm using guix 1.3.0, in a freshly built image/container using the steps in

    Thanks. To clarify, this is the Alpine container, not the Debian one? I'll take a look today.

  9. MarcoFalke commented at 8:54 AM on January 10, 2022: member

    I can reproduce in the Alpine container:

    ...
     libdrm-2.4.107.tar.xz  416KiB                                                                                                                                                                      527KiB/s 00:01 [##################] 100.0%
     libelf-0.8.13.tar.gz  145KiB                                                                                                                                                                       736KiB/s 00:00 [##################] 100.0%
     libev-4.33.tar.gz  556KiB                                                                                                                                                                          627KiB/s 00:01 [##################] 100.0%
     libevent-2.1.12-stable.tar.gz  1.0MiB                                                                                                                                                              568KiB/s 00:02 [##################] 100.0%
     libffi-3.3.tar.gz  1.2MiB                                                                                                                                                                          584KiB/s 00:02 [##################] 100.0%
     libffi-3.3.tar.xz  921KiB                                                                                                                                                                          645KiB/s 00:01 [##################] 100.0%
     libfontenc-1.1.4  14KiB                                                                                                                                                                            1.9MiB/s 00:00 [##################] 100.0%
     libgcrypt-1.8.8.tar.bz2  2.8MiB                                                                                                                                                                    520KiB/s 00:06 [##################] 100.0%
     libgd-2.3.2.tar.xz  2.7MiB                                                                                                                                                                         454KiB/s 00:06 [##################] 100.0%
     libgit2-1.3.0-checkout  3.1MiB                                                                                                                                                                     420KiB/s 00:07 [################# ]  96.1%Backtrace:
    In ice-9/boot-9.scm:
      1736:10 19 (with-exception-handler _ _ #:unwind? _ # _)
      1736:10 18 (with-exception-handler _ _ #:unwind? _ # _)
      1731:15 17 (with-exception-handler #<procedure 7ff67784bf60 at ic?> ?)
    In guix/scripts/substitute.scm:
       765:15 16 (_)
        538:9 15 (process-substitution #<output: file 4> _ _ #:cache-urls ?)
    In guix/serialization.scm:
        424:4 14 (fold-archive _ _ _ _)
       468:33 13 (read "/gnu/store/l3nzsf04lai8kis5g75rfrmvb7c78gig-lib?" ?)
       468:33 12 (read "/gnu/store/l3nzsf04lai8kis5g75rfrmvb7c78gig-lib?" ?)
       468:33 11 (read "/gnu/store/l3nzsf04lai8kis5g75rfrmvb7c78gig-lib?" ?)
       468:33 10 (read "/gnu/store/l3nzsf04lai8kis5g75rfrmvb7c78gig-lib?" ?)
       442:24  9 (read "/gnu/store/l3nzsf04lai8kis5g75rfrmvb7c78gig-lib?" ?)
       525:24  8 (_ "/gnu/store/l3nzsf04lai8kis5g75rfrmvb7c78gig-libgit?" ?)
    In guix/store/deduplication.scm:
        227:2  7 (dump-file/deduplicate "/gnu/store/l3nzsf04lai8kis5g75?" ?)
    In ice-9/ports.scm:
       461:11  6 (call-with-output-file "/gnu/store/l3nzsf04lai8kis5g75?" ?)
    In unknown file:
               5 (open-file "/gnu/store/l3nzsf04lai8kis5g75rfrmvb7c78gi?" ?)
    In ice-9/boot-9.scm:
      1669:16  4 (raise-exception _ #:continuable? _)
      1669:16  3 (raise-exception _ #:continuable? _)
      1764:13  2 (_ #<&compound-exception components: (#<&error> #<&orig?>)
      1669:16  1 (raise-exception _ #:continuable? _)
      1669:16  0 (raise-exception _ #:continuable? _)
    
    ice-9/boot-9.scm:1669:16: In procedure raise-exception:
    Throw to key `encoding-error' with args `("scm_to_stringn" "cannot convert wide string to output locale" 84 #f #f)'.
    substitution of /gnu/store/l3nzsf04lai8kis5g75rfrmvb7c78gig-libgit2-1.3.0-checkout failed
    guix time-machine: error: corrupt input while restoring archive from #<closed: file 7f20ad1b8770>
    bash-5.1#  history 
        1  HOSTS="x86_64-w64-mingw32" ./contrib/guix/guix-build
        2  ls
        3  git status
        4  git log
        5  HOSTS="x86_64-w64-mingw32" ./contrib/guix/guix-build
        6   history 
    bash-5.1# 
    
  10. psgreco commented at 12:07 PM on January 10, 2022: contributor

    Yes, sorry for not being clear, alpine container

  11. fanquake added this to the milestone 23.0 on Jan 14, 2022
  12. fanquake closed this on Jan 18, 2022

  13. fanquake commented at 2:50 AM on January 18, 2022: member

    @psgreco Sorry for the slow follow up. I've made a number of changes to the alpine-guix container that have improved the installation process, and fixed this issue. Note that if you try and build master inside the container at the moment, builds will fail, although is due to a different issue, see #24055. If you test builds with the branch in #24057, they will work for all HOSTs apart from Windows.

  14. psgreco commented at 12:07 PM on January 18, 2022: contributor

    yeah, builds are back using #24057 , thanks for fixing this!!

    34450003092d37fa08e3ab749b457b989930b4866fbf550dce118f452c46c2e7  guix-build-85d2da92e6ae/output/dist-archive/bitcoin-85d2da92e6ae.tar.gz
    603620fcf5a4477b0bf66bbd6838111afd4d9c241a10d4ab6f959bba86916f8e  guix-build-85d2da92e6ae/output/x86_64-linux-gnu/SHA256SUMS.part
    da8d5a1f3d79a9b6fc96cff1f8e1b5b39e04e787c7da6806bdc88709cfb694ad  guix-build-85d2da92e6ae/output/x86_64-linux-gnu/bitcoin-85d2da92e6ae-x86_64-linux-gnu-debug.tar.gz
    bb79636cb7e768d22b1a41e72e78c043749b09284fe826f07ef39b1d75e4b64b  guix-build-85d2da92e6ae/output/x86_64-linux-gnu/bitcoin-85d2da92e6ae-x86_64-linux-gnu.tar.gz
    
  15. DrahtBot locked this on Jan 18, 2023

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-25 18:13 UTC

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