[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Defining a toolchain with musl libc
From: |
David Arroyo |
Subject: |
Re: Defining a toolchain with musl libc |
Date: |
Tue, 12 Apr 2022 14:22:36 -0400 |
User-agent: |
Cyrus-JMAP/3.7.0-alpha0-386-g4174665229-fm-20220406.001-g41746652 |
On Mon, Apr 11, 2022, at 22:34, David Arroyo wrote:
> error: in phase 'patch-source-shebangs': uncaught exception:
> encoding-error "scm_to_stringn" "cannot convert narrow string to
> output locale" 84 #f #f
Looking further into this error, errno 84 is EILSEQ, "illegal byte
sequence". The error is raised during the 'patch-source-shebangs' phase,
while patching ./gcc/testsuite/gdc.test/compilable/test13512.d This
file has the shebang
#!/opt/dmd/ÐÒÏÂÙ/rdmd
This in turn seems to be tripping up this line in guix/build/utils.scm:1094 :
(and=> (and line (regexp-exec shebang-rx line))
I'm not sure why I don't hit this error when building gcc-toolchain.
Perhaps there is different locale information in the build environment
without glibc.
David