Hi Benjamin,

On 3/03/25 4:45, Benjamin Slade wrote:
Hi Guix,

I'm getting a build error for the `sdcv' package when trying to update packages 
today:

,----
| 
/gnu/store/x54lfn35qnn66hrrqfnwkii905kiws7b-glib-2.82.1/include/glib-2.0/glib/gunicode.h:809:34:
 error: invalid conversion from ‘const gchar*’ {aka ‘const char*’} to ‘gchar*’ 
{aka ‘char*’} [-fpermissive]
|   809 | #define g_utf8_next_char(p) ((p) + g_utf8_skip[*(const guchar *)(p)])
|       |                             ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|       |                                  |
|       |                                  const gchar* {aka const char*}
| /tmp/guix-build-sdcv-0.5.5.drv-0/source/src/stardict_lib.cpp:1050:31: note: 
in expansion of macro ‘g_utf8_next_char’
|  1050 |             gchar *nextchar = g_utf8_next_char(sWord);
|       |                               ^~~~~~~~~~~~~~~~
`----

I see that  sdcv is failing to build for arch64-linux systems according to Guix CI (https://ci.guix.gnu.org/search?query=spec%3Amaster+sdcv). A recent build for x86_64-linux systems is in progress.

In the meantime, maybe you could exclude sdcv from upgrading, and instead use the Guix time-machine to get it from a past revision of Guix where it is know to build. For example, running the following command:

  guix time-machine -C good-sdcv-channel.scm -- shell sdcv -- sdcv

Where «good-sdcv-channel.scm» contains the following channels specification:

(list
 (channel
  (name 'guix)
  (url "https://git.savannah.gnu.org/git/guix.git";)
  (branch #f)
  (commit
   "f1810c84f72090b02544ac41d0582c4785728ec4")
  (introduction
   (make-channel-introduction
    "9edb3f66fd807b096b48283debdcddccfea34bad"
    (openpgp-fingerprint
     "BBB0 2DDF 2CEA F6A8 0D1D  E643 A2A0 6DF2 A33A 54FA")))))

I tried the above, and it seems to work alright. That revision of Guix happens to be the current revision I'm using. I wanted to get a revision of Guix used for a known successful build of sdcv from the Guix CI service but couldn't find that information.

Anyways, hope that helps,


Attachment: OpenPGP_0x0AB0D067012F08C3.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to