Guix build w/o substitutes failing at libgit2 check #25082

issue luke-jr openend this issue on May 7, 2022
  1. luke-jr commented at 9:38 pm on May 7, 2022: member

    This is an upstream Guix issue (55273), but they seem to be planning to resolve it with a version bump, and either way we have versions pinned I think.

     0building /gnu/store/myai2xf4f0z2nr331mx2y4xr4jv1lwid-libgit2-1.3.0.drv...
     1| 'unpack' phaseild-log 356 178
     2`/gnu/store/xa8yg9nvawhfvk6hv8lhif9z5pybzan5-libgit2-1.3.0-checkout/tests/resources/status/staged_delete_modified_file' -> `./tests/resources/status/staged_delete_modified_file'
     3 17% [########################                                                                                                                           ]ild-log 356 189
     4/tmp/guix-build-libgit2-1.3.0.drv-0/source/src/regexp.c:148:5: warning: ?error? may be used uninitialized in this function [-Wmaybe-uninitialized]
     5  148 |  if (error < 0)
     6      |     ^
     7 17% [########################                                                                                                                           ]ild-log 356 72
     8[ 18%] Building C object src/CMakeFiles/git2internal.dir/repository.c.o
     9| 'check' phasenote: keeping build directory `/tmp/guix-build-libgit2-1.3.0.drv-0'
    10builder for `/gnu/store/myai2xf4f0z2nr331mx2y4xr4jv1lwid-libgit2-1.3.0.drv' failed with exit code 1
    11build of /gnu/store/myai2xf4f0z2nr331mx2y4xr4jv1lwid-libgit2-1.3.0.drv failed
    
    0refs::revparse.................F
    1
    2  1) Failure:
    3refs::revparse::date [/tmp/guix-build-libgit2-1.3.0.drv-0/source/tests/refs/revparse.c:31]
    4  Function call succeeded: error
    5  no error, expected non-zero return
    
  2. luke-jr added the label Bug on May 7, 2022
  3. laanwj added the label Build system on May 9, 2022
  4. laanwj added the label Upstream on May 9, 2022
  5. dongcarl commented at 4:11 pm on May 9, 2022: contributor

    Found and solved the problem: https://github.com/libgit2/libgit2/pull/6299

    Will think about the right solution for us…

  6. dongcarl commented at 7:35 pm on May 9, 2022: contributor

    Looks like the Guix devs got to it first… https://issues.guix.gnu.org/55326

    Curious why that was allowed in master since I’d assume it’ll cause a mass rebuild…

  7. dongcarl commented at 7:36 pm on May 9, 2022: contributor
    Urgh I shoulda checked guix refresh --list-dependent libgit2, bumping libgit2 would only cause 70 packages to be rebuilt, so it’s allowed on master.
  8. fanquake referenced this in commit 298389e3b5 on May 9, 2022
  9. luke-jr commented at 7:20 pm on May 11, 2022: member

    Workaround: Setting the system clock back to 2021-05-11, touching all files under the bitcoin source dir, and running guix-build until libgit2 completes. (Afterward, for sanity, I Ctrl-C’d it, set a correct clock back, re-touched all the files, and ran guix-build again to complete)

    Hopefully we can figure out a real fix eventually.

  10. fanquake closed this on May 12, 2022

  11. fanquake referenced this in commit e3bab43329 on May 12, 2022
  12. luke-jr commented at 7:56 am on May 12, 2022: member
    This should probably remain open until there’s a clean way to build existing tags
  13. sidhujag referenced this in commit c2552695a0 on May 13, 2022
  14. dekm referenced this in commit 9ec46940a4 on Oct 27, 2022
  15. dekm referenced this in commit 7be91387dd on Nov 7, 2022
  16. dekm referenced this in commit 70b22f0f88 on Nov 12, 2022
  17. Sjors commented at 1:09 pm on November 29, 2022: member

    Ran into this when trying to build v23.1rc2 (on a machine that so far only has the Guix version used by v24.0).

    As mentioned above, it can be worked around by messing with the system clock:

    0sudo timedatectl set-ntp no
    1sudo date --set "21 may 2021 00:00:00"
    2# as your guix user
    3guix build --cores=1 /gnu/store/myai2xf4f0z2nr331mx2y4xr4jv1lwid-libgit2-1.3.0.drv
    4
    5sudo timedatectl set-ntp yes
    

    (ditto for openssl 1.1.1m)

  18. dekm referenced this in commit 563e5c6d31 on Apr 6, 2023
  19. dekm referenced this in commit 4eef3195af on Jun 26, 2023
  20. dekm referenced this in commit 1cc903a5e5 on Jun 26, 2023
  21. bitcoin locked this on Nov 29, 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: 2024-12-22 15:12 UTC

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