Subject: Re: bug#22571: Guix on Debian Testing sbcl package needs warning to set SBCL_HOME

From: [email-masked] (Ludovic Courtès)
Date: Sat, 06 Feb 2016 14:06:57 +0100

Christopher W Carpenter <[email-masked]> 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’.