maflcko / bitcoin-core

MIT License
26 stars 12 forks source link

nss-certs: Throw to key `encoding-error' with args `("scm_to_stringn" "cannot convert wide string to output locale" 84 #f #f)'. #89

Closed maflcko closed 1 year ago

maflcko commented 1 year ago

          ...bind-mounted in container to: '/outdir-base/x86_64-w64-mingw32'
accepted connection from pid 2764553, user root
accepted connection from pid 2764553, user root
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://bordeaux.guix.gnu.org'... 100.0%
The following derivations will be built:
  /gnu/store/flf27irr6v8jdahrvwc1pv363gv5463l-osslsigncode-2.5.drv
  /gnu/store/4dfi5qn032pfm4zq4sbylf25ym3i2674-git-checkout.drv
  /gnu/store/113k8isy3f4qdi6121w2h93zc68sh849-gcc-cross-x86_64-w64-mingw32-10.5.0.drv
  /gnu/store/gbqisbgmgghcqq99zfxix1fd43201nck-gcc-10.5.0.tar.xz.drv
  /gnu/store/vkn33s1vwc6hf7wwvrk24wfn2fs3jg9b-x86_64-w64-mingw32-posix-toolchain-10.5.0.drv

99.4 MB will be downloaded
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
 nss-certs-3.88.1  135KiB                                                                                                                                                                           221KiB/s 00:00 [########          ]  47.3%Backtrace:
In guix/scripts/substitute.scm:
   856:15 19 (_)
    650:2 18 (process-substitution _ _ _ #:cache-urls _ #:acl _ # _ # ?)
In ice-9/boot-9.scm:
  1752:10 17 (with-exception-handler _ _ #:unwind? _ # _)
In guix/scripts/substitute.scm:
    525:9 16 (download-nar #<<narinfo> path: "/gnu/store/5y39gqnvlf?> ?)
In guix/serialization.scm:
    424:4 15 (fold-archive _ _ _ _)
   468:33 14 (read "/gnu/store/5y39gqnvlfrw9gxyxbqqkdr8cxgp1fa1-nss?" ?)
   468:33 13 (read "/gnu/store/5y39gqnvlfrw9gxyxbqqkdr8cxgp1fa1-nss?" ?)
   468:33 12 (read "/gnu/store/5y39gqnvlfrw9gxyxbqqkdr8cxgp1fa1-nss?" ?)
   468:33 11 (read "/gnu/store/5y39gqnvlfrw9gxyxbqqkdr8cxgp1fa1-nss?" ?)
   451:26 10 (read "/gnu/store/5y39gqnvlfrw9gxyxbqqkdr8cxgp1fa1-nss?" ?)
   520:22  9 (_ "/gnu/store/5y39gqnvlfrw9gxyxbqqkdr8cxgp1fa1-nss-ce?" ?)
In ice-9/boot-9.scm:
  1747:15  8 (with-exception-handler #<procedure 7f4a1419c000 at ic?> ?)
In unknown file:
           7 (symlink "NetLock_Arany_=Class_Gold=_F?tan?s?tv?ny.pem" #)
In ice-9/boot-9.scm:
  1685:16  6 (raise-exception _ #:continuable? _)
  1683:16  5 (raise-exception _ #:continuable? _)
  1685:16  4 (raise-exception _ #:continuable? _)
  1780:13  3 (_ #<&compound-exception components: (#<&error> #<&orig?>)
  1685:16  2 (raise-exception _ #:continuable? _)
  1683:16  1 (raise-exception _ #:continuable? _)
  1685:16  0 (raise-exception _ #:continuable? _)

ice-9/boot-9.scm:1685: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/5y39gqnvlfrw9gxyxbqqkdr8cxgp1fa1-nss-certs-3.88.1 failed
guix environment: error: corrupt input while restoring archive from #<closed: file 7fe06442ce00>
root@788fa310a6da:/bitcoin-core# 
maflcko commented 1 year ago

This still happens on a recent guix:


# guix describe
Generation 1    Nov 15 2023 18:27:08    (current)
  guix d987b75
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: d987b75618a62c95c030e7ca53e0972e700c4f06

# guix install nss-certs 
accepted connection from pid 6894, user root
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
14.4 MB will be downloaded
 guile-3.0.9-debug  6.8MiB                                                                                                                                                                          120KiB/s 00:58 [##################] 100.0%
The following package will be installed:
   nss-certs 3.88.1

substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
0.2 MB will be downloaded
 nss-certs-3.88.1  135KiB                                                                                                                                                                           167KiB/s 00:00 [########          ]  47.3%Backtrace:
In guix/scripts/substitute.scm:
   856:15 19 (_)
    650:2 18 (process-substitution _ _ _ #:cache-urls _ #:acl _ # _ # ?)
In ice-9/boot-9.scm:
  1752:10 17 (with-exception-handler _ _ #:unwind? _ # _)
In guix/scripts/substitute.scm:
    525:9 16 (download-nar #<<narinfo> path: "/gnu/store/5y39gqnvlf?> ?)
In guix/serialization.scm:
    424:4 15 (fold-archive _ _ _ _)
   468:33 14 (read "/gnu/store/5y39gqnvlfrw9gxyxbqqkdr8cxgp1fa1-nss?" ?)
   468:33 13 (read "/gnu/store/5y39gqnvlfrw9gxyxbqqkdr8cxgp1fa1-nss?" ?)
   468:33 12 (read "/gnu/store/5y39gqnvlfrw9gxyxbqqkdr8cxgp1fa1-nss?" ?)
   468:33 11 (read "/gnu/store/5y39gqnvlfrw9gxyxbqqkdr8cxgp1fa1-nss?" ?)
   451:26 10 (read "/gnu/store/5y39gqnvlfrw9gxyxbqqkdr8cxgp1fa1-nss?" ?)
   520:22  9 (_ "/gnu/store/5y39gqnvlfrw9gxyxbqqkdr8cxgp1fa1-nss-ce?" ?)
In ice-9/boot-9.scm:
  1747:15  8 (with-exception-handler #<procedure 7f55c56af4b0 at ic?> ?)
In unknown file:
           7 (symlink "NetLock_Arany_=Class_Gold=_F?tan?s?tv?ny.pem" #)
In ice-9/boot-9.scm:
  1685:16  6 (raise-exception _ #:continuable? _)
  1683:16  5 (raise-exception _ #:continuable? _)
  1685:16  4 (raise-exception _ #:continuable? _)
  1780:13  3 (_ #<&compound-exception components: (#<&error> #<&orig?>)
  1685:16  2 (raise-exception _ #:continuable? _)
  1683:16  1 (raise-exception _ #:continuable? _)
  1685:16  0 (raise-exception _ #:continuable? _)

ice-9/boot-9.scm:1685: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/5y39gqnvlfrw9gxyxbqqkdr8cxgp1fa1-nss-certs-3.88.1 failed
guix install: error: corrupt input while restoring archive from socket
maflcko commented 1 year ago

This can be worked around by compiling it: guix install --no-substitutes --dry-run nss-certs.