GNU bug report logs - #28168
rofi - Failed to set locale and relink messages

Previous Next

Package: guix;

Reported by: Fredrik Salomonsson <plattfot <at> gmail.com>

Date: Mon, 21 Aug 2017 05:11:01 UTC

Severity: normal

Tags: notabug

Done: ludo <at> gnu.org (Ludovic Courtès)

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 28168 in the body.
You can then email your comments to 28168 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#28168; Package guix. (Mon, 21 Aug 2017 05:11:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Fredrik Salomonsson <plattfot <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Mon, 21 Aug 2017 05:11:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Fredrik Salomonsson <plattfot <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: rofi - Failed to set locale and relink messages
Date: Sun, 20 Aug 2017 20:35:17 -0700
[Message part 1 (text/plain, inline)]
Hi Guix,

Having issues running rofi on my Guix+Arch Linux setup.
Getting this when running it:
# rofi -show run
rofi: Relink
`/gnu/store/88wvqp60hbrdvbp0xsqad5c6njjfshcw-libpng-1.6.28/lib/libpng16.so.16'
with
`/gnu/store/ybpgv1v7606xw7mafda66w10hiynpiw2-glibc-2.25/lib/libpthread.so.0'
for IFUNC symbol `longjmp'
rofi: Relink
`/gnu/store/2sq8w3x8glbjlfn22im6nwwycmbdlzws-freetype-2.7.1/lib/libfreetype.so.6'
with
`/gnu/store/ybpgv1v7606xw7mafda66w10hiynpiw2-glibc-2.25/lib/libpthread.so.0'
for IFUNC symbol `longjmp'
Failed to set locale.

then it exits.

I've set:
GUIX_LOCPATH=$HOME/.guix-profile/lib/locale
LANG=en_US.UTF-8

Using glibc-locales

It seems to only be affecting rofi, I have no issues running emacs.

I might have missed something, guix is still new to me.

thanks

-- 
s/Fred[re]+i[ck]+/Fredrik/g
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#28168; Package guix. (Tue, 22 Aug 2017 09:02:01 GMT) Full text and rfc822 format available.

Message #8 received at 28168 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Fredrik Salomonsson <plattfot <at> gmail.com>
Cc: 28168 <at> debbugs.gnu.org
Subject: Re: bug#28168: rofi - Failed to set locale and relink messages
Date: Tue, 22 Aug 2017 11:01:20 +0200
Hello,

Fredrik Salomonsson <plattfot <at> gmail.com> skribis:

> Having issues running rofi on my Guix+Arch Linux setup.
> Getting this when running it:
> # rofi -show run
> rofi: Relink
> `/gnu/store/88wvqp60hbrdvbp0xsqad5c6njjfshcw-libpng-1.6.28/lib/libpng16.so.16'
> with
> `/gnu/store/ybpgv1v7606xw7mafda66w10hiynpiw2-glibc-2.25/lib/libpthread.so.0'
> for IFUNC symbol `longjmp'
> rofi: Relink
> `/gnu/store/2sq8w3x8glbjlfn22im6nwwycmbdlzws-freetype-2.7.1/lib/libfreetype.so.6'
> with
> `/gnu/store/ybpgv1v7606xw7mafda66w10hiynpiw2-glibc-2.25/lib/libpthread.so.0'
> for IFUNC symbol `longjmp'

Not sure about this one; it seems harmless though.

> Failed to set locale.
>
> then it exits.
>
> I've set:
> GUIX_LOCPATH=$HOME/.guix-profile/lib/locale
> LANG=en_US.UTF-8
>
> Using glibc-locales

Does setting LC_ALL instead of LANG help?  The LC_* variables take
precedence over LANG.

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#28168; Package guix. (Wed, 23 Aug 2017 06:54:02 GMT) Full text and rfc822 format available.

Message #11 received at 28168 <at> debbugs.gnu.org (full text, mbox):

From: Fredrik Salomonsson <plattfot <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 28168 <at> debbugs.gnu.org
Subject: Re: bug#28168: rofi - Failed to set locale and relink messages
Date: Tue, 22 Aug 2017 22:23:11 -0700
[Message part 1 (text/plain, inline)]
>
> > Failed to set locale.
> >
> > then it exits.
> >
> > I've set:
> > GUIX_LOCPATH=$HOME/.guix-profile/lib/locale
> > LANG=en_US.UTF-8
> >
> > Using glibc-locales
>
> Does setting LC_ALL instead of LANG help?  The LC_* variables take
> precedence over LANG.

setting LC_ALL didn't work. Same error.

Did a strace on it just to see what's going on.
Here's the last part just before it exits

> open("/run/current-system/locale/2.25/en_US.UTF-8/LC_IDENTIFICATION",
> O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> open("/run/current-system/locale/2.25/en_US.utf8/LC_IDENTIFICATION",
> O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> open("/run/current-system/locale/2.25/en_US/LC_IDENTIFICATION",
> O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> open("/run/current-system/locale/2.25/en.UTF-8/LC_IDENTIFICATION",
> O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> open("/run/current-system/locale/2.25/en.utf8/LC_IDENTIFICATION",
> O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> open("/run/current-system/locale/2.25/en/LC_IDENTIFICATION",
> O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> write(2, "Failed to set locale.\n", 22) = 22
> exit_group(1)                           = ?
> +++ exited with 1 +++
>

It's looking for locale specific things in /run/current-system. Which Arch
doesn't have. Is that a GuixSD specific thing?  Don't have GuixSD installed
at the moment so cannot check myself.

I've attached the whole strace log incase there's something more.

2017-08-22 2:01 GMT-07:00 Ludovic Courtès <ludo <at> gnu.org>:

> Hello,
>
> Fredrik Salomonsson <plattfot <at> gmail.com> skribis:
>
> > Having issues running rofi on my Guix+Arch Linux setup.
> > Getting this when running it:
> > # rofi -show run
> > rofi: Relink
> > `/gnu/store/88wvqp60hbrdvbp0xsqad5c6njjfshcw-libpng-1.6.28/lib/libpng16.
> so.16'
> > with
> > `/gnu/store/ybpgv1v7606xw7mafda66w10hiynpiw2-glibc-2.25/lib/libpthread.
> so.0'
> > for IFUNC symbol `longjmp'
> > rofi: Relink
> > `/gnu/store/2sq8w3x8glbjlfn22im6nwwycmbdlzws-freetype-2.7.1/lib/
> libfreetype.so.6'
> > with
> > `/gnu/store/ybpgv1v7606xw7mafda66w10hiynpiw2-glibc-2.25/lib/libpthread.
> so.0'
> > for IFUNC symbol `longjmp'
>
> Not sure about this one; it seems harmless though.
>
> > Failed to set locale.
> >
> > then it exits.
> >
> > I've set:
> > GUIX_LOCPATH=$HOME/.guix-profile/lib/locale
> > LANG=en_US.UTF-8
> >
> > Using glibc-locales
>
> Does setting LC_ALL instead of LANG help?  The LC_* variables take
> precedence over LANG.
>
> Ludo’.
>



-- 
s/Fred[re]+i[ck]+/Fredrik/g
[Message part 2 (text/html, inline)]
[rofi_guix.strace (application/octet-stream, attachment)]

Information forwarded to bug-guix <at> gnu.org:
bug#28168; Package guix. (Wed, 23 Aug 2017 07:38:02 GMT) Full text and rfc822 format available.

Message #14 received at 28168 <at> debbugs.gnu.org (full text, mbox):

From: ng0 <ng0 <at> infotropique.org>
To: Fredrik Salomonsson <plattfot <at> gmail.com>
Cc: Ludovic Courtès <ludo <at> gnu.org>, 28168 <at> debbugs.gnu.org
Subject: Re: bug#28168: rofi - Failed to set locale and relink messages
Date: Wed, 23 Aug 2017 07:37:06 +0000
[Message part 1 (text/plain, inline)]
Fredrik Salomonsson transcribed 136K bytes:
> >
> > > Failed to set locale.
> > >
> > > then it exits.
> > >
> > > I've set:
> > > GUIX_LOCPATH=$HOME/.guix-profile/lib/locale
> > > LANG=en_US.UTF-8
> > >
> > > Using glibc-locales
> >
> > Does setting LC_ALL instead of LANG help?  The LC_* variables take
> > precedence over LANG.
> 
> setting LC_ALL didn't work. Same error.

How recent is the guix you have? Did you run guix pull and
guix package -u .* recently?




-- 
ng0
GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588
GnuPG: https://n0is.noblogs.org/my-keys
https://www.infotropique.org https://krosos.org
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#28168; Package guix. (Wed, 23 Aug 2017 21:17:02 GMT) Full text and rfc822 format available.

Message #17 received at 28168 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Fredrik Salomonsson <plattfot <at> gmail.com>
Cc: 28168 <at> debbugs.gnu.org
Subject: Re: bug#28168: rofi - Failed to set locale and relink messages
Date: Wed, 23 Aug 2017 23:16:36 +0200
Hi Fredrik,

Fredrik Salomonsson <plattfot <at> gmail.com> skribis:

>>
>> > Failed to set locale.
>> >
>> > then it exits.
>> >
>> > I've set:
>> > GUIX_LOCPATH=$HOME/.guix-profile/lib/locale
>> > LANG=en_US.UTF-8
>> >
>> > Using glibc-locales
>>
>> Does setting LC_ALL instead of LANG help?  The LC_* variables take
>> precedence over LANG.
>
> setting LC_ALL didn't work. Same error.
>
> Did a strace on it just to see what's going on.
> Here's the last part just before it exits
>
>> open("/run/current-system/locale/2.25/en_US.UTF-8/LC_IDENTIFICATION",
>> O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
>> open("/run/current-system/locale/2.25/en_US.utf8/LC_IDENTIFICATION",
>> O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
>> open("/run/current-system/locale/2.25/en_US/LC_IDENTIFICATION",
>> O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
>> open("/run/current-system/locale/2.25/en.UTF-8/LC_IDENTIFICATION",
>> O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
>> open("/run/current-system/locale/2.25/en.utf8/LC_IDENTIFICATION",
>> O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
>> open("/run/current-system/locale/2.25/en/LC_IDENTIFICATION",
>> O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
>> write(2, "Failed to set locale.\n", 22) = 22
>> exit_group(1)                           = ?
>> +++ exited with 1 +++
>>
>
> It's looking for locale specific things in /run/current-system. Which Arch
> doesn't have. Is that a GuixSD specific thing?  Don't have GuixSD installed
> at the moment so cannot check myself.

Yes, that’s a GuixSD-specific thing, but if you set GUIX_LOCPATH, then
$GUIX_LOCPATH should take precedence.  The strace output you sent
suggests that GUIX_LOCPATH was unset, wasn’t it?

For example, I get:

--8<---------------cut here---------------start------------->8---
$ GUIX_LOCPATH=/foo strace -e open true --help

[...]

open("/foo/2.25/en_US.utf8/LC_IDENTIFICATION", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/run/current-system/locale/2.25/en_US.utf8/LC_IDENTIFICATION", O_RDONLY|O_CLOEXEC) = 3
open("/gnu/store/ybpgv1v7606xw7mafda66w10hiynpiw2-glibc-2.25/lib/gconv/gconv-modules.cache", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/gnu/store/ybpgv1v7606xw7mafda66w10hiynpiw2-glibc-2.25/lib/gconv/gconv-modules", O_RDONLY|O_CLOEXEC) = 3
open("/foo/2.25/en_US.utf8/LC_MEASUREMENT", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)

[...]

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

HTH,
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#28168; Package guix. (Wed, 23 Aug 2017 21:33:02 GMT) Full text and rfc822 format available.

Message #20 received at 28168 <at> debbugs.gnu.org (full text, mbox):

From: Fredrik Salomonsson <plattfot <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 28168 <at> debbugs.gnu.org
Subject: Re: bug#28168: rofi - Failed to set locale and relink messages
Date: Wed, 23 Aug 2017 14:31:47 -0700
[Message part 1 (text/plain, inline)]
Hi


>>
> >> > Failed to set locale.
> >> >
> >> > then it exits.
> >> >
> >> > I've set:
> >> > GUIX_LOCPATH=$HOME/.guix-profile/lib/locale
> >> > LANG=en_US.UTF-8
> >> >
> >> > Using glibc-locales
> >>
> >> Does setting LC_ALL instead of LANG help?  The LC_* variables take
> >> precedence over LANG.
> >
> > setting LC_ALL didn't work. Same error.
> >
> > Did a strace on it just to see what's going on.
> > Here's the last part just before it exits
> >
> >> open("/run/current-system/locale/2.25/en_US.UTF-8/LC_IDENTIFICATION",
> >> O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> >> open("/run/current-system/locale/2.25/en_US.utf8/LC_IDENTIFICATION",
> >> O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> >> open("/run/current-system/locale/2.25/en_US/LC_IDENTIFICATION",
> >> O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> >> open("/run/current-system/locale/2.25/en.UTF-8/LC_IDENTIFICATION",
> >> O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> >> open("/run/current-system/locale/2.25/en.utf8/LC_IDENTIFICATION",
> >> O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> >> open("/run/current-system/locale/2.25/en/LC_IDENTIFICATION",
> >> O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> >> write(2, "Failed to set locale.\n", 22) = 22
> >> exit_group(1)                           = ?
> >> +++ exited with 1 +++
> >>
> >
> > It's looking for locale specific things in /run/current-system. Which
> Arch
> > doesn't have. Is that a GuixSD specific thing?  Don't have GuixSD
> installed
> > at the moment so cannot check myself.
>

>
Yes, that’s a GuixSD-specific thing, but if you set GUIX_LOCPATH, then
> $GUIX_LOCPATH should take precedence.  The strace output you sent
> suggests that GUIX_LOCPATH was unset, wasn’t it?
>

Yeah I think it was unset, looked in my .zshrc and I had just added

GUIX_LOCPATH=$HOME/.guix-profile/lib/locale

forgot to add export. However it still complained when I set it properly.

> >
> > > > Failed to set locale.
> > > >
> > > > then it exits.
> > > >
> > > > I've set:
> > > > GUIX_LOCPATH=$HOME/.guix-profile/lib/locale
> > > > LANG=en_US.UTF-8
> > > >
> > > > Using glibc-locales
> > >
> > > Does setting LC_ALL instead of LANG help?  The LC_* variables take
> > > precedence over LANG.
> >
> > setting LC_ALL didn't work. Same error.
>
> How recent is the guix you have? Did you run guix pull and
> guix package -u .* recently?
>

I installed the one listed in arch AUR, which is 0.13.0 then did a guix
pull a week ago or so.

Did one this morning and that fixed it! Rofi now starts without any issues.

Question though, do I need to add the regex when updating the packages?
It seems it updated all my packages by just doing guix package -u.

Anyway thanks for helping out, sorry to bother you with a non-issue. You
can mark this bug as PEBCAK

2017-08-23 14:16 GMT-07:00 Ludovic Courtès <ludo <at> gnu.org>:

> Hi Fredrik,
>
> Fredrik Salomonsson <plattfot <at> gmail.com> skribis:
>
> >>
> >> > Failed to set locale.
> >> >
> >> > then it exits.
> >> >
> >> > I've set:
> >> > GUIX_LOCPATH=$HOME/.guix-profile/lib/locale
> >> > LANG=en_US.UTF-8
> >> >
> >> > Using glibc-locales
> >>
> >> Does setting LC_ALL instead of LANG help?  The LC_* variables take
> >> precedence over LANG.
> >
> > setting LC_ALL didn't work. Same error.
> >
> > Did a strace on it just to see what's going on.
> > Here's the last part just before it exits
> >
> >> open("/run/current-system/locale/2.25/en_US.UTF-8/LC_IDENTIFICATION",
> >> O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> >> open("/run/current-system/locale/2.25/en_US.utf8/LC_IDENTIFICATION",
> >> O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> >> open("/run/current-system/locale/2.25/en_US/LC_IDENTIFICATION",
> >> O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> >> open("/run/current-system/locale/2.25/en.UTF-8/LC_IDENTIFICATION",
> >> O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> >> open("/run/current-system/locale/2.25/en.utf8/LC_IDENTIFICATION",
> >> O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> >> open("/run/current-system/locale/2.25/en/LC_IDENTIFICATION",
> >> O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
> >> write(2, "Failed to set locale.\n", 22) = 22
> >> exit_group(1)                           = ?
> >> +++ exited with 1 +++
> >>
> >
> > It's looking for locale specific things in /run/current-system. Which
> Arch
> > doesn't have. Is that a GuixSD specific thing?  Don't have GuixSD
> installed
> > at the moment so cannot check myself.
>
> Yes, that’s a GuixSD-specific thing, but if you set GUIX_LOCPATH, then
> $GUIX_LOCPATH should take precedence.  The strace output you sent
> suggests that GUIX_LOCPATH was unset, wasn’t it?
>
> For example, I get:
>
> --8<---------------cut here---------------start------------->8---
> $ GUIX_LOCPATH=/foo strace -e open true --help
>
> [...]
>
> open("/foo/2.25/en_US.utf8/LC_IDENTIFICATION", O_RDONLY|O_CLOEXEC) = -1
> ENOENT (No such file or directory)
> open("/run/current-system/locale/2.25/en_US.utf8/LC_IDENTIFICATION",
> O_RDONLY|O_CLOEXEC) = 3
> open("/gnu/store/ybpgv1v7606xw7mafda66w10hiynpi
> w2-glibc-2.25/lib/gconv/gconv-modules.cache", O_RDONLY) = -1 ENOENT (No
> such file or directory)
> open("/gnu/store/ybpgv1v7606xw7mafda66w10hiynpi
> w2-glibc-2.25/lib/gconv/gconv-modules", O_RDONLY|O_CLOEXEC) = 3
> open("/foo/2.25/en_US.utf8/LC_MEASUREMENT", O_RDONLY|O_CLOEXEC) = -1
> ENOENT (No such file or directory)
>
> [...]
>
> --8<---------------cut here---------------end--------------->8---
>
> HTH,
> Ludo’.
>



-- 
s/Fred[re]+i[ck]+/Fredrik/g
[Message part 2 (text/html, inline)]

Added tag(s) notabug. Request was from ludo <at> gnu.org (Ludovic Courtès) to control <at> debbugs.gnu.org. (Thu, 24 Aug 2017 21:47:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 28168 <at> debbugs.gnu.org and Fredrik Salomonsson <plattfot <at> gmail.com> Request was from ludo <at> gnu.org (Ludovic Courtès) to control <at> debbugs.gnu.org. (Thu, 24 Aug 2017 21:47:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#28168; Package guix. (Fri, 25 Aug 2017 07:51:02 GMT) Full text and rfc822 format available.

Message #27 received at 28168 <at> debbugs.gnu.org (full text, mbox):

From: Ricardo Wurmus <rekado <at> elephly.net>
To: Fredrik Salomonsson <plattfot <at> gmail.com>
Cc: Ludovic Courtès <ludo <at> gnu.org>, 28168 <at> debbugs.gnu.org
Subject: Re: bug#28168: rofi - Failed to set locale and relink messages
Date: Fri, 25 Aug 2017 09:50:20 +0200
Fredrik Salomonsson <plattfot <at> gmail.com> writes:

> Question though, do I need to add the regex when updating the packages?
> It seems it updated all my packages by just doing guix package -u.

That’s right.  When “-u” is the last option on the command line you
don’t need to pass a regular expression.

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 22 Sep 2017 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 7 years and 270 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.