GNU bug report logs - #22571
Guix on Debian Testing sbcl package needs warning to set SBCL_HOME

Previous Next

Package: guix;

Reported by: Christopher W Carpenter <mordocai <at> mordocai.net>

Date: Sat, 6 Feb 2016 05:45:02 UTC

Severity: normal

Tags: fixed

Fixed in version 24.5

Done: Alex Kost <alezost <at> gmail.com>

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 22571 in the body.
You can then email your comments to 22571 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#22571; Package guix. (Sat, 06 Feb 2016 05:45:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Christopher W Carpenter <mordocai <at> mordocai.net>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sat, 06 Feb 2016 05:45:02 GMT) Full text and rfc822 format available.

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

From: Christopher W Carpenter <mordocai <at> mordocai.net>
To: bug-guix <at> gnu.org
Subject: Guix on Debian Testing sbcl package needs warning to set SBCL_HOME
Date: Fri, 05 Feb 2016 23:40:02 -0600
[Message part 1 (text/plain, inline)]
I talked with mark weaver about this on #guix and he asked me to send a
mail.

When doing guix package -i sbcl on my newly setup debian testing + guix
machine and then attempting to run sbcl I got the error:

fatal error encountered in SBCL pid 7492(tid 140737354086144):
can't find core file at /usr/lib64/sbcl/sbcl.core

Exporting SBCL_HOME=$HOME/.guix-profile/lib/sbcl fixes this for me. The
way this seems to be handled other places is by printing a message after
the package install explaining that this may be needed.

This seems like the appropriate thing to do to me. I'd love to submit a
patch if someone can guide me through it, I just started seriously
trying guix out today.

Thanks,
Christopher Carpenter

P.S. Please make sure to CC me in replies, I have not joined the mailing
list (yet).
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#22571; Package guix. (Sat, 06 Feb 2016 08:50:02 GMT) Full text and rfc822 format available.

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

From: Leo Famulari <leo <at> famulari.name>
To: Christopher W Carpenter <mordocai <at> mordocai.net>
Cc: 22571 <at> debbugs.gnu.org
Subject: Re: bug#22571: Guix on Debian Testing sbcl package needs warning to
 set SBCL_HOME
Date: Sat, 6 Feb 2016 03:49:03 -0500
On Fri, Feb 05, 2016 at 11:40:02PM -0600, Christopher W Carpenter wrote:
> 
> I talked with mark weaver about this on #guix and he asked me to send a
> mail.
> 
> When doing guix package -i sbcl on my newly setup debian testing + guix
> machine and then attempting to run sbcl I got the error:
> 
> fatal error encountered in SBCL pid 7492(tid 140737354086144):
> can't find core file at /usr/lib64/sbcl/sbcl.core
> 
> Exporting SBCL_HOME=$HOME/.guix-profile/lib/sbcl fixes this for me. The
> way this seems to be handled other places is by printing a message after
> the package install explaining that this may be needed.

There is a pretty good description of search-paths here:
https://www.gnu.org/software/guix/manual/guix.html#Invoking-guix-package

Basically, you can list the environment variables needed by the package
in the package definition. Then, users can view them or set them
automatically. There are some examples in the package tree.

> 
> This seems like the appropriate thing to do to me. I'd love to submit a
> patch if someone can guide me through it, I just started seriously
> trying guix out today.

I hope this helps. Feel free to ask for more help!

> 
> Thanks,
> Christopher Carpenter
> 
> P.S. Please make sure to CC me in replies, I have not joined the mailing
> list (yet).






Information forwarded to bug-guix <at> gnu.org:
bug#22571; Package guix. (Sat, 06 Feb 2016 13:08:01 GMT) Full text and rfc822 format available.

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

From: ludo <at> gnu.org (Ludovic Courtès)
To: Christopher W Carpenter <mordocai <at> mordocai.net>
Cc: 22571 <at> debbugs.gnu.org
Subject: Re: bug#22571: Guix on Debian Testing sbcl package needs warning to
 set SBCL_HOME
Date: Sat, 06 Feb 2016 14:06:57 +0100
Christopher W Carpenter <mordocai <at> mordocai.net> skribis:

> When doing guix package -i sbcl on my newly setup debian testing + guix
> machine and then attempting to run sbcl I got the error:
>
> fatal error encountered in SBCL pid 7492(tid 140737354086144):
> can't find core file at /usr/lib64/sbcl/sbcl.core

Are you sure you were running ~/.guix-profile/bin/sbcl?

I’ve just tried this on GuixSD, to check whether sbcl systematically
looks for things in /usr:

--8<---------------cut here---------------start------------->8---
$ strace -f -o ,,s $(guix build sbcl | head -1)/bin/sbcl 
This is SBCL 1.2.8, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses.  See the CREDITS and COPYING files in the
distribution for more information.
* (+ 2 3)

5
*
$ grep /usr ,,s
[ nothing ]
--8<---------------cut here---------------end--------------->8---

However, it loads /etc/sbclrc.  Could it be that your host distro
provides such a file, which tweaks sbcl into reading from /usr/lib64?

Thanks for the report,
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#22571; Package guix. (Wed, 10 Feb 2016 01:58:02 GMT) Full text and rfc822 format available.

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

From: Christopher W Carpenter <mordocai <at> mordocai.net>
To: 22571 <at> debbugs.gnu.org
Subject: Re: bug#22571: Acknowledgement (Guix on Debian Testing sbcl package
 needs warning to set SBCL_HOME)
Date: Tue, 09 Feb 2016 19:57:11 -0600
[Message part 1 (text/plain, inline)]
I found the problem, and this can be closed IMHO.

I use StumpWM, which is written in common lisp and I use sbcl to run it.
It appears that when the stumpwm image is created the SBCL_HOME
environment variable's state at that time is stored. In addition, for
whatever reason, any processes started from stumpwm will have a
SBCL_HOME environment variable with that same value.

Therefore, my issue was that my stumpwm that was starting my
processes(and the processess themselves)
had an old, incorrect value for SBCL_HOME which would then cause this
error.

Interesting "bug" to find! Thanks for the help!

Christopher Carpenter
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#22571; Package guix. (Wed, 10 Feb 2016 10:21:01 GMT) Full text and rfc822 format available.

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

From: Alex Kost <alezost <at> gmail.com>
To: Christopher W Carpenter <mordocai <at> mordocai.net>
Cc: 22571 <at> debbugs.gnu.org
Subject: Re: bug#22571: Acknowledgement (Guix on Debian Testing sbcl package
 needs warning to set SBCL_HOME)
Date: Wed, 10 Feb 2016 13:20:16 +0300
Christopher W Carpenter (2016-02-10 04:57 +0300) wrote:

> I found the problem, and this can be closed IMHO.
>
> I use StumpWM, which is written in common lisp and I use sbcl to run it.
> It appears that when the stumpwm image is created the SBCL_HOME
> environment variable's state at that time is stored. In addition, for
> whatever reason, any processes started from stumpwm will have a
> SBCL_HOME environment variable with that same value.
>
> Therefore, my issue was that my stumpwm that was starting my
> processes(and the processess themselves)
> had an old, incorrect value for SBCL_HOME which would then cause this
> error.

Oh, cool, I also use stumpwm but I've never noticed it because I compile
stumpwm using sbcl from Guix, so my value of SBCL_HOME is:

"/gnu/store/qkrqqb81hs6nypvzbgi8ixrrza78gvlb-sbcl-1.2.8/lib/sbcl"

> Interesting "bug" to find! Thanks for the help!

Thanks for discovering it!  It's good to know this thing (just in case).

-- 
Alex




Added tag(s) fixed. Request was from Alex Kost <alezost <at> gmail.com> to control <at> debbugs.gnu.org. (Wed, 10 Feb 2016 10:25:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 24.5, send any further explanations to 22571 <at> debbugs.gnu.org and Christopher W Carpenter <mordocai <at> mordocai.net> Request was from Alex Kost <alezost <at> gmail.com> to control <at> debbugs.gnu.org. (Wed, 10 Feb 2016 10:25:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#22571; Package guix. (Wed, 10 Feb 2016 21:33:01 GMT) Full text and rfc822 format available.

Message #24 received at 22571-done <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Christopher W Carpenter <mordocai <at> mordocai.net>
Cc: 22571-done <at> debbugs.gnu.org
Subject: Re: bug#22571: Acknowledgement (Guix on Debian Testing sbcl package
 needs warning to set SBCL_HOME)
Date: Wed, 10 Feb 2016 22:32:07 +0100
Christopher W Carpenter <mordocai <at> mordocai.net> skribis:

> I found the problem, and this can be closed IMHO.
>
> I use StumpWM, which is written in common lisp and I use sbcl to run it.
> It appears that when the stumpwm image is created the SBCL_HOME
> environment variable's state at that time is stored. In addition, for
> whatever reason, any processes started from stumpwm will have a
> SBCL_HOME environment variable with that same value.
>
> Therefore, my issue was that my stumpwm that was starting my
> processes(and the processess themselves)
> had an old, incorrect value for SBCL_HOME which would then cause this
> error.
>
> Interesting "bug" to find! Thanks for the help!

Indeed, thanks for letting us know!

Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 10 Mar 2016 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 9 years and 106 days ago.

Previous Next


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