unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Unicode error for gcc-11 commencement
@ 2022-05-25 19:04 Greg Hogan
  0 siblings, 0 replies; only message in thread
From: Greg Hogan @ 2022-05-25 19:04 UTC (permalink / raw)
  To: help-guix

Hi,

I would like to use both gcc-toolchain (for compiling) and
clang-toolchain (for the tools) in the same profile, which as
previously discussed requires the gcc version to match that used to
build clang, llvm, etc. So to use a newer gcc-toolchain I need to
upgrade the default gcc version.

When I attempt to upgrade the default gcc version from gcc-10 to
gcc-11 (or gcc-12) I see what looks to be an issue handling the
unicode filename of test files first added to gcc-11. The default gcc
is compiled as part of the bootstrap process which for x86-64 is guile
2.0.

In the guile 2.0 release notes [1] I see a familiar name as well as a
reference to Unicode support, so I am puzzled why this build is
failing. Any help is appreciated. Thanks!

The following is my patch, followed by the error message.

Greg

[1] https://www.gnu.org/software/guile/news/gnu-guile-200-released.html


--8<---------------cut here---------------start------------->8---
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 89fc325208..a43231962c 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -3866,10 +3866,10 @@ (define-public gcc-toolchain-9
   (make-gcc-toolchain gcc-9))

 (define-public gcc-toolchain-10
-  gcc-toolchain)
+  (make-gcc-toolchain gcc-10))

 (define-public gcc-toolchain-11
-  (make-gcc-toolchain gcc-11))
+  gcc-toolchain)

 (define-public gcc-toolchain-12
   (make-gcc-toolchain gcc-12))
diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm
index 6823b41ee0..d26fa37741 100644
--- a/gnu/packages/gcc.scm
+++ b/gnu/packages/gcc.scm
@@ -718,7 +718,7 @@ (define-public gcc-12

 ;; Note: When changing the default gcc version, update
 ;;       the gcc-toolchain-* definitions.
-(define-public gcc gcc-10)
+(define-public gcc gcc-11)



 ;;;
--8<---------------cut here---------------end--------------->8---



--8<---------------cut here---------------start------------->8---
find-files: gcc-11.3.0/gcc/testsuite/go.test/test/fixedbugs/issue27836.dir/Äfoo.go:
No such file or directory
Backtrace:
In srfi/srfi-1.scm:
 465: 19 [fold #<procedure 143aa20 at ice-9/ftw.scm:451:38 (subdir
result+visited)> ...]
In ice-9/ftw.scm:
 452: 18 [#<procedure 143aa20 at ice-9/ftw.scm:451:38 (subdir
result+visited)> # #]
 450: 17 [loop "gcc" "gcc-11.3.0" ...]
In srfi/srfi-1.scm:
 465: 16 [fold #<procedure 23782d0 at ice-9/ftw.scm:451:38 (subdir
result+visited)> ...]
In ice-9/ftw.scm:
 452: 15 [#<procedure 23782d0 at ice-9/ftw.scm:451:38 (subdir
result+visited)> # #]
 450: 14 [loop "testsuite" "gcc-11.3.0/gcc" ...]
In srfi/srfi-1.scm:
 465: 13 [fold #<procedure 138e630 at ice-9/ftw.scm:451:38 (subdir
result+visited)> ...]
In ice-9/ftw.scm:
 452: 12 [#<procedure 138e630 at ice-9/ftw.scm:451:38 (subdir
result+visited)> # #]
 450: 11 [loop "go.test" "gcc-11.3.0/gcc/testsuite" ...]
In srfi/srfi-1.scm:
 465: 10 [fold #<procedure 21df870 at ice-9/ftw.scm:451:38 (subdir
result+visited)> ...]
In ice-9/ftw.scm:
 452: 9 [#<procedure 21df870 at ice-9/ftw.scm:451:38 (subdir
result+visited)> # #]
 450: 8 [loop "test" "gcc-11.3.0/gcc/testsuite/go.test" ...]
In srfi/srfi-1.scm:
 465: 4 [fold #<procedure 139cf30 at ice-9/ftw.scm:451:38 (subdir
result+visited)> ...]
In ice-9/ftw.scm:
 452: 3 [#<procedure 139cf30 at ice-9/ftw.scm:451:38 (subdir
result+visited)> # #]
 474: 2 [loop "issue27836.dir" ...]
In guix/build/utils.scm:
 509: 1 [#<procedure 15de720 at guix/build/utils.scm:505:28 (file stat
errno result)> "gcc-11.3.0/gcc/testsuite/go.test/test/fixedbugs/issue27836.dir/Äfoo.go"
...]
In unknown file:
   ?: 0 [scm-error misc-error #f "~A" ("find-files failed") #f]

ERROR: In procedure scm-error:
ERROR: find-files failed
builder for `/gnu/store/8idcavxxcz1819ax3x9mnvp2s1laa6xc-gcc-11.3.0.tar.xz.drv'
failed with exit code 1
@ build-failed /gnu/store/8idcavxxcz1819ax3x9mnvp2s1laa6xc-gcc-11.3.0.tar.xz.drv
- 1 builder for
`/gnu/store/8idcavxxcz1819ax3x9mnvp2s1laa6xc-gcc-11.3.0.tar.xz.drv'
failed with exit code 1
--8<---------------cut here---------------end--------------->8---


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-25 19:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-25 19:04 Unicode error for gcc-11 commencement Greg Hogan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).