bitcoin: ./contrib/guix/guix-build does not work on riscv64

Steps to reproduce:

# dpkg --print-architecture && HOSTS="arm64-apple-darwin" V=1 VERBOSE=1 MAX_JOBS=$(nproc) ./contrib/guix/guix-build 
riscv64
Found macOS SDK at '/bitcoin-core/depends/SDKs/Xcode-12.2-12B45b-extracted-SDK-with-libcxx-headers', using...
Checking that we can connect to the guix-daemon...

Hint: If this hangs, you may want to try turning your guix-daemon off and on
      again.

accepted connection from pid 2870003, user root
make: Entering directory '/bitcoin-core/depends'
make[1]: Entering directory '/bitcoin-core/depends'
make[1]: Leaving directory '/bitcoin-core/depends'
make: Leaving directory '/bitcoin-core/depends'
INFO: Building 92d12f1c8903 for platform triple arm64-apple-darwin:
      ...using reference timestamp: 1696409041
      ...running at most 4 jobs
      ...from worktree directory: '/bitcoin-core'
          ...bind-mounted in container to: '/bitcoin'
      ...in build directory: '/bitcoin-core/guix-build-92d12f1c8903/distsrc-92d12f1c8903-arm64-apple-darwin'
          ...bind-mounted in container to: '/distsrc-base/distsrc-92d12f1c8903-arm64-apple-darwin'
      ...outputting in: '/bitcoin-core/guix-build-92d12f1c8903/output/arm64-apple-darwin'
          ...bind-mounted in container to: '/outdir-base/arm64-apple-darwin'
accepted connection from pid 2872281, user root
accepted connection from pid 2872281, user root
Backtrace:
          18 (primitive-load "/root/.cache/guix/inferiors/4wrulds2lx?")
In guix/ui.scm:
   2324:7 17 (run-guix . _)
  2287:10 16 (run-guix-command _ . _)
In ice-9/boot-9.scm:
  1752:10 15 (with-exception-handler _ _ #:unwind? _ # _)
In guix/store.scm:
    672:3 14 (guix-environment* _)
In ice-9/boot-9.scm:
  1752:10 13 (with-exception-handler _ _ #:unwind? _ # _)
In guix/store.scm:
   659:37 12 (thunk)
   1298:8 11 (call-with-build-handler _ _)
   1298:8 10 (call-with-build-handler #<procedure 3f812c0ea0 at gui?> ?)
In guix/status.scm:
    839:4  9 (call-with-status-report _ _)
In guix/scripts/environment.scm:
  1158:11  8 (_)
In guix/store.scm:
  2168:25  7 (run-with-store #<store-connection 256.99 3f851f2af0> _ ?)
In guix/scripts/environment.scm:
    869:8  6 (_ _)
In gnu/build/linux-container.scm:
   397:16  5 (call-with-container (#<<file-system> device: "none?> ?) ?)
   239:15  4 (run-container "/tmp/guix-directory.GcTuOV" (#<<fil?> ?) ?)
In guix/build/syscalls.scm:
  1114:21  3 (_ 2114060305)
In unknown file:
Exception thrown while printing backtrace:
In procedure primitive-call-ip: Wrong type argument in position 1 (expecting PRIMITIVE_P): #<procedure 3f82490420 (_ _ _ _ _ _)>

ice-9/boot-9.scm:1685:16: In procedure raise-exception:
Wrong type (expecting exact integer): #f

About this issue

  • Original URL
  • State: closed
  • Created 7 months ago
  • Comments: 18 (18 by maintainers)

Commits related to this issue

Most upvoted comments

Guess it’s time to guix pull and find the next bug.

Ok. So the issue is a bug in Guix. How many weeks will it take to run a guix pull?