Ludovic Courtès writes: Hello! > Ludovic Courtès skribis: > >> + ;; Install the C.UTF-8 locale so there's always a UTF-8 >> + ;; locale around. >> + (let* ((out (assoc-ref outputs "out")) >> + (bin (string-append out "/bin")) >> + (locale (string-append out "/lib/locale/" >> + ,(package-version >> + this-package)))) >> + (mkdir-p locale) >> + (invoke (string-append bin "/localedef") >> + "--no-archive" "--prefix" locale >> + "-i" "C" "-f" "UTF-8" >> + (string-append locale "/C.UTF-8"))))) > > I realize now that this cannot work when cross-compiling, because the > this ‘localedef’ binary is not executable on the build machine. > > I suspect libc builds an additional ‘localedef’ for the build machine > but I’m not sure where it is, hmm… So far, I haven't encountered this problem yet. Trying to create a hurd image with this patch set, but mpfr fails for me. --8<---------------cut here---------------start------------->8--- ====================================== MPFR 4.2.0: tests/test-suite.log ====================================== # TOTAL: 197 # PASS: 196 # SKIP: 0 # XFAIL: 0 # FAIL: 1 # XPASS: 0 # ERROR: 0 .. contents:: :depth: 2 FAIL: tsprintf ============== Error in mpfr_vsprintf (s, "%0+ -'13.10Pd:", ...); expected: "+01,234,567 :" got: "+0001,234,567:" FAIL tsprintf (exit status: 1) --8<---------------cut here---------------end--------------->8--- Updating to 4.2.1 (see attached patch) seems to fix it for me. Greetings, Janneke