bug#81031: Installing Guile 3.0.11 on Ubuntu 22.04

Zyle Moore <[email protected]> Wed, 13 May 2026 12:05:01 -0700
Newsgroups gmane.lisp.guile.bugs
Message-ID <CAN4i4nNt7r9xKKG4T00irSvJZFuG0t1534K3h_Ks3XaGXZpC4w@mail.gmail.com>
--0000000000004e926d0651b7aa8e
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

No, guile didn't install unistring, I had to build that as well.

On Wed, May 13, 2026 at 11:54=E2=80=AFAM Greg Troxel <[email protected]> wrote=
:

> Zyle Moore <[email protected]> writes:
>
> That's great you got it working.
>
> > 1. Add "/usr/local/lib" to a new file in
> /etc/ld.so.conf.d/usr-local.conf.
>
> This is in my view an Ubuntu bug for not allowing the normal RPATH
> mechanism, and given that they don't, that it wasn't documented well
> enough that you noticed :-) But apparently adding /usr/local/lib to the
> ld.so.conf is the plan.  I wonder what the docs said about how files in
> /etc/ld.so.conf.d are ordered, both among themselves, and relative to
> the built-in search path, but that's not about guile.
>
> > After doing this, running `ldconfig` resulted in this error
> > /sbin/ldconfig.real: /usr/local/lib/libguile-3.0.so.1.7.1-gdb.scm is no=
t
> an
> > ELF file - it has the wrong magic bytes at the start.
> >
> > 2. Remove libguile-3.0.so.1.7.1-gdb.scm from /usr/local/lib
> >
> > I'm not sure if this is Ubuntu special sauce, or if this file is ending
> up
> > there incorrectly, but it really wants everything in all ld folders to =
be
> > only ELF files. After doing these two steps after `sudo make install`,
> > guile seems to be working now.
>
> guile script that is helpful for running guile under gdb.  Read it!
>
> I don't think there are any rules in the larger POSIX ecosystem about
> not having files that aren't ELF libs in $prefix/lib.    I see this as a
> self-inflicted wound by Ubuntu's ld.so.conf decision;  normally a file
> in $prefix/lib is only even opened if there is a NEEDED/RPATH
> combination that references it.
>
> It may be that having .so in it somwehere is the issue.  There are
> non-ELF files in lib mnormally.  FWIW on my system:
>
>   $ ls -l /usr/pkg/guile/3.0/lib/
>   total 4120
>   drwxr-xr-x  3 root  wheel      512 Dec  6  2022 guile
>   -rw-r--r--  1 root  wheel  2657138 Apr 26 05:46 libguile-3.0.a
>   -rwxr-xr-x  1 root  wheel     1063 Apr 26 05:46 libguile-3.0.la
>   lrwxr-xr-x  1 root  wheel       21 Apr 26 05:46 libguile-3.0.so ->
> libguile-3.0.so.1.7.1
>   lrwxr-xr-x  1 root  wheel       21 Apr 26 05:46 libguile-3.0.so.1 ->
> libguile-3.0.so.1.7.1
>   -rwxr-xr-x  1 root  wheel  1486880 Apr 26 05:46 libguile-3.0.so.1.7.1
>   -rw-r--r--  1 root  wheel    17469 Apr 26 05:46
> libguile-3.0.so.1.7.1-gdb.scm
>   drwxr-xr-x  2 root  wheel      512 Apr 26 05:47 pkgconfig
>
>
> > Below is the output of ldd and objdump for context
> > ldd:
> > zymus@abyss:~/src/guile-3.0.11$ ldd /usr/local/bin/guile
> > linux-vdso.so.1 (0x00007ffc61064000)
> > libguile-3.0.so.1 =3D> /usr/local/lib/libguile-3.0.so.1
> (0x00007aecfc4e7000)
> > libc.so.6 =3D> /lib/x86_64-linux-gnu/libc.so.6 (0x00007aecfc200000)
> > libgc.so.1 =3D> /lib/x86_64-linux-gnu/libgc.so.1 (0x00007aecfc472000)
> > libffi.so.8 =3D> /lib/x86_64-linux-gnu/libffi.so.8 (0x00007aecfc465000)
> > libunistring.so.5 =3D> /usr/local/lib/libunistring.so.5
> (0x00007aecfc017000)
> > libgmp.so.10 =3D> /lib/x86_64-linux-gnu/libgmp.so.10 (0x00007aecfbf9500=
0)
> > libcrypt.so.1 =3D> /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007aecfc429=
000)
> > libm.so.6 =3D> /lib/x86_64-linux-gnu/libm.so.6 (0x00007aecfbeae000)
> > /lib64/ld-linux-x86-64.so.2 (0x00007aecfc64a000)
> >
> > objdump:
> > zymus@abyss:~/src/guile-3.0.11$ objdump -x /usr/local/bin/guile | egrep
> > NEEDED\|RPATH
> >   NEEDED               libguile-3.0.so.1
> >   NEEDED               libc.so.6
>
> So missing RPATH as you already determined, but otherwise looks fine to
> me.
>
> Did guile insttall unistring, or did you have to build that too?
>

--0000000000004e926d0651b7aa8e
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">No, guile didn&#39;t install unistring, I had to build tha=
t as well.</div><br><div class=3D"gmail_quote gmail_quote_container"><div d=
ir=3D"ltr" class=3D"gmail_attr">On Wed, May 13, 2026 at 11:54=E2=80=AFAM Gr=
eg Troxel &lt;<a href=3D"mailto:[email protected]">[email protected]</a>&gt; wrot=
e:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0=
.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Zyle Moore &l=
t;<a href=3D"mailto:[email protected]" target=3D"_blank">moore.zyle@gmai=
l.com</a>&gt; writes:<br>
<br>
That&#39;s great you got it working.<br>
<br>
&gt; 1. Add &quot;/usr/local/lib&quot; to a new file in /etc/ld.so.conf.d/u=
sr-local.conf.<br>
<br>
This is in my view an Ubuntu bug for not allowing the normal RPATH<br>
mechanism, and given that they don&#39;t, that it wasn&#39;t documented wel=
l<br>
enough that you noticed :-) But apparently adding /usr/local/lib to the<br>
ld.so.conf is the plan.=C2=A0 I wonder what the docs said about how files i=
n<br>
/etc/ld.so.conf.d are ordered, both among themselves, and relative to<br>
the built-in search path, but that&#39;s not about guile.<br>
<br>
&gt; After doing this, running `ldconfig` resulted in this error<br>
&gt; /sbin/ldconfig.real: /usr/local/lib/libguile-3.0.so.1.7.1-gdb.scm is n=
ot an<br>
&gt; ELF file - it has the wrong magic bytes at the start.<br>
&gt;<br>
&gt; 2. Remove libguile-3.0.so.1.7.1-gdb.scm from /usr/local/lib<br>
&gt;<br>
&gt; I&#39;m not sure if this is Ubuntu special sauce, or if this file is e=
nding up<br>
&gt; there incorrectly, but it really wants everything in all ld folders to=
 be<br>
&gt; only ELF files. After doing these two steps after `sudo make install`,=
<br>
&gt; guile seems to be working now.<br>
<br>
guile script that is helpful for running guile under gdb.=C2=A0 Read it!<br=
>
<br>
I don&#39;t think there are any rules in the larger POSIX ecosystem about<b=
r>
not having files that aren&#39;t ELF libs in $prefix/lib.=C2=A0 =C2=A0 I se=
e this as a<br>
self-inflicted wound by Ubuntu&#39;s ld.so.conf decision;=C2=A0 normally a =
file<br>
in $prefix/lib is only even opened if there is a NEEDED/RPATH<br>
combination that references it.<br>
<br>
It may be that having .so in it somwehere is the issue.=C2=A0 There are<br>
non-ELF files in lib mnormally.=C2=A0 FWIW on my system:<br>
<br>
=C2=A0 $ ls -l /usr/pkg/guile/3.0/lib/<br>
=C2=A0 total 4120<br>
=C2=A0 drwxr-xr-x=C2=A0 3 root=C2=A0 wheel=C2=A0 =C2=A0 =C2=A0 512 Dec=C2=
=A0 6=C2=A0 2022 guile<br>
=C2=A0 -rw-r--r--=C2=A0 1 root=C2=A0 wheel=C2=A0 2657138 Apr 26 05:46 libgu=
ile-3.0.a<br>
=C2=A0 -rwxr-xr-x=C2=A0 1 root=C2=A0 wheel=C2=A0 =C2=A0 =C2=A01063 Apr 26 0=
5:46 <a href=3D"http://libguile-3.0.la" rel=3D"noreferrer" target=3D"_blank=
">libguile-3.0.la</a><br>
=C2=A0 lrwxr-xr-x=C2=A0 1 root=C2=A0 wheel=C2=A0 =C2=A0 =C2=A0 =C2=A021 Apr=
 26 05:46 <a href=3D"http://libguile-3.0.so" rel=3D"noreferrer" target=3D"_=
blank">libguile-3.0.so</a> -&gt; libguile-3.0.so.1.7.1<br>
=C2=A0 lrwxr-xr-x=C2=A0 1 root=C2=A0 wheel=C2=A0 =C2=A0 =C2=A0 =C2=A021 Apr=
 26 05:46 libguile-3.0.so.1 -&gt; libguile-3.0.so.1.7.1<br>
=C2=A0 -rwxr-xr-x=C2=A0 1 root=C2=A0 wheel=C2=A0 1486880 Apr 26 05:46 libgu=
ile-3.0.so.1.7.1<br>
=C2=A0 -rw-r--r--=C2=A0 1 root=C2=A0 wheel=C2=A0 =C2=A0 17469 Apr 26 05:46 =
libguile-3.0.so.1.7.1-gdb.scm<br>
=C2=A0 drwxr-xr-x=C2=A0 2 root=C2=A0 wheel=C2=A0 =C2=A0 =C2=A0 512 Apr 26 0=
5:47 pkgconfig<br>
<br>
<br>
&gt; Below is the output of ldd and objdump for context<br>
&gt; ldd:<br>
&gt; zymus@abyss:~/src/guile-3.0.11$ ldd /usr/local/bin/guile<br>
&gt; linux-vdso.so.1 (0x00007ffc61064000)<br>
&gt; libguile-3.0.so.1 =3D&gt; /usr/local/lib/libguile-3.0.so.1 (0x00007aec=
fc4e7000)<br>
&gt; libc.so.6 =3D&gt; /lib/x86_64-linux-gnu/libc.so.6 (0x00007aecfc200000)=
<br>
&gt; libgc.so.1 =3D&gt; /lib/x86_64-linux-gnu/libgc.so.1 (0x00007aecfc47200=
0)<br>
&gt; libffi.so.8 =3D&gt; /lib/x86_64-linux-gnu/libffi.so.8 (0x00007aecfc465=
000)<br>
&gt; libunistring.so.5 =3D&gt; /usr/local/lib/libunistring.so.5 (0x00007aec=
fc017000)<br>
&gt; libgmp.so.10 =3D&gt; /lib/x86_64-linux-gnu/libgmp.so.10 (0x00007aecfbf=
95000)<br>
&gt; libcrypt.so.1 =3D&gt; /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007aecf=
c429000)<br>
&gt; libm.so.6 =3D&gt; /lib/x86_64-linux-gnu/libm.so.6 (0x00007aecfbeae000)=
<br>
&gt; /lib64/ld-linux-x86-64.so.2 (0x00007aecfc64a000)<br>
&gt;<br>
&gt; objdump:<br>
&gt; zymus@abyss:~/src/guile-3.0.11$ objdump -x /usr/local/bin/guile | egre=
p<br>
&gt; NEEDED\|RPATH<br>
&gt;=C2=A0 =C2=A0NEEDED=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0libguile-3.0.so.1<br>
&gt;=C2=A0 =C2=A0NEEDED=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0libc.so.6<br>
<br>
So missing RPATH as you already determined, but otherwise looks fine to<br>
me.<br>
<br>
Did guile insttall unistring, or did you have to build that too?<br>
</blockquote></div>

--0000000000004e926d0651b7aa8e--