unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Greg Hogan <code@greghogan.com>
To: help-guix@gnu.org
Subject: Unicode error for gcc-11 commencement
Date: Wed, 25 May 2022 15:04:07 -0400	[thread overview]
Message-ID: <CA+3U0ZnZSzoro+pO0UWH73bHbaRmt02_jhNH4gOMqom6KpLvpw@mail.gmail.com> (raw)

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---


                 reply	other threads:[~2022-05-25 19:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CA+3U0ZnZSzoro+pO0UWH73bHbaRmt02_jhNH4gOMqom6KpLvpw@mail.gmail.com \
    --to=code@greghogan.com \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).