unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* haunt
@ 2020-05-17  7:44 Catonano
  2020-05-17 12:08 ` haunt Ricardo Wurmus
  0 siblings, 1 reply; 7+ messages in thread
From: Catonano @ 2020-05-17  7:44 UTC (permalink / raw)
  To: Guile User

I'm building Haunt on Ubuntu 20.04 and Guile 3.0.1 (comes with Ubuntu)

and I'm running into some issues

I don't want to ask directly to David Thompson because recently he wrote on
the fediverse about some tragic and emotionally draining events that hit
him and his family

I'd like to work around these issues for the time being and revive my blog,
possibly

with some help

When David will be back we'll see.

Hi David ! Hugs !

So, here's the issues:

Some uses of "load" made the build process to emit some warnings about the
modules not being immutable and a suggestion to add :#declarative? #t to
the modules declaration

I did so and those warning disappeared

But some others remained and they could relates, as far as I know

./configure
...
make
...


;;; WARNING: loading compiled file
/home/adriano/opt/lib/guile/3.0/site-ccache/haunt/serve/web-server.go
failed:
;;; In procedure load-thunk-from-memory: incompatible bytecode kind
;;; WARNING: loading compiled file
/home/adriano/opt/lib/guile/3.0/site-ccache/haunt/serve/mime-types.go
failed:
;;; In procedure load-thunk-from-memory: incompatible bytecode kind



this warning is repeated over and over again

This is the complete run

$ make
Making all in example
make[1]: ingresso nella directory
"/home/adriano/progetti/guile-related/haunt/example"
make[1]: Nessuna operazione da eseguire per "all".
make[1]: uscita dalla directory
"/home/adriano/progetti/guile-related/haunt/example"
Making all in website
make[1]: ingresso nella directory
"/home/adriano/progetti/guile-related/haunt/website"
make[1]: Nessuna operazione da eseguire per "all".
make[1]: uscita dalla directory
"/home/adriano/progetti/guile-related/haunt/website"
make[1]: ingresso nella directory
"/home/adriano/progetti/guile-related/haunt"
  GEN      haunt/config.go
wrote `haunt/config.go'
  GEN      haunt/utils.go
wrote `haunt/utils.go'
  GEN      haunt/post.go
wrote `haunt/post.go'
  GEN      haunt/page.go
wrote `haunt/page.go'
  GEN      haunt/asset.go
wrote `haunt/asset.go'
  GEN      haunt/site.go
;;; note: source file
/home/adriano/progetti/guile-related/haunt/haunt/reader.scm
;;;       newer than compiled
/home/adriano/opt/lib/guile/3.0/site-ccache/haunt/reader.go
wrote `haunt/site.go'
  GEN      haunt/html.go
wrote `haunt/html.go'
  GEN      haunt/builder/assets.go
;;; note: source file
/home/adriano/progetti/guile-related/haunt/haunt/reader.scm
;;;       newer than compiled
/home/adriano/opt/lib/guile/3.0/site-ccache/haunt/reader.go
wrote `haunt/builder/assets.go'
  GEN      haunt/builder/atom.go
;;; note: source file
/home/adriano/progetti/guile-related/haunt/haunt/reader.scm
;;;       newer than compiled
/home/adriano/opt/lib/guile/3.0/site-ccache/haunt/reader.go
;;; WARNING: loading compiled file
/home/adriano/opt/lib/guile/3.0/site-ccache/haunt/serve/mime-types.go
failed:
;;; In procedure load-thunk-from-memory: incompatible bytecode kind
wrote `haunt/builder/atom.go'
  GEN      haunt/builder/blog.go
;;; note: source file
/home/adriano/progetti/guile-related/haunt/haunt/reader.scm
;;;       newer than compiled
/home/adriano/opt/lib/guile/3.0/site-ccache/haunt/reader.go
wrote `haunt/builder/blog.go'
  GEN      haunt/builder/rss.go
;;; note: source file
/home/adriano/progetti/guile-related/haunt/haunt/reader.scm
;;;       newer than compiled
/home/adriano/opt/lib/guile/3.0/site-ccache/haunt/reader.go
;;; WARNING: loading compiled file
/home/adriano/opt/lib/guile/3.0/site-ccache/haunt/serve/mime-types.go
failed:
;;; In procedure load-thunk-from-memory: incompatible bytecode kind
wrote `haunt/builder/rss.go'
  GEN      haunt/reader.go
wrote `haunt/reader.go'
  GEN      haunt/reader/texinfo.go
wrote `haunt/reader/texinfo.go'
  GEN      haunt/ui.go
wrote `haunt/ui.go'
  GEN      haunt/ui/build.go
wrote `haunt/ui/build.go'
  GEN      haunt/ui/serve.go
;;; WARNING: loading compiled file
/home/adriano/opt/lib/guile/3.0/site-ccache/haunt/serve/web-server.go
failed:
;;; In procedure load-thunk-from-memory: incompatible bytecode kind
;;; WARNING: loading compiled file
/home/adriano/opt/lib/guile/3.0/site-ccache/haunt/serve/mime-types.go
failed:
;;; In procedure load-thunk-from-memory: incompatible bytecode kind
wrote `haunt/ui/serve.go'
  GEN      haunt/serve/mime-types.go
wrote `haunt/serve/mime-types.go'
  GEN      haunt/serve/web-server.go
wrote `haunt/serve/web-server.go'
  GEN      haunt/reader/commonmark.go
wrote `haunt/reader/commonmark.go'
make[1]: uscita dalla directory "/home/adriano/progetti/guile-related/haunt"

What is this all about ?
Why are any modules not compatible ?

How do I solve this ?

Should I resort to guile 2.x in order to keep using Haunt for the time
being ?

Thanks


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: haunt
  2020-05-17  7:44 haunt Catonano
@ 2020-05-17 12:08 ` Ricardo Wurmus
  2020-05-17 12:16   ` haunt Catonano
  0 siblings, 1 reply; 7+ messages in thread
From: Ricardo Wurmus @ 2020-05-17 12:08 UTC (permalink / raw)
  To: Catonano; +Cc: guile-user


Catonano <catonano@gmail.com> writes:

> ;;; WARNING: loading compiled file
> /home/adriano/opt/lib/guile/3.0/site-ccache/haunt/serve/web-server.go
> failed:
> ;;; In procedure load-thunk-from-memory: incompatible bytecode kind
> ;;; WARNING: loading compiled file
> /home/adriano/opt/lib/guile/3.0/site-ccache/haunt/serve/mime-types.go
> failed:
> ;;; In procedure load-thunk-from-memory: incompatible bytecode kind

This means you are either using Guile 2 and make it load bytecode for
3.0 or the other way around.

-- 
Ricardo



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: haunt
  2020-05-17 12:08 ` haunt Ricardo Wurmus
@ 2020-05-17 12:16   ` Catonano
  2020-05-17 12:28     ` haunt Catonano
  2020-05-17 15:47     ` haunt Ricardo Wurmus
  0 siblings, 2 replies; 7+ messages in thread
From: Catonano @ 2020-05-17 12:16 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: Guile User

Il giorno dom 17 mag 2020 alle ore 14:08 Ricardo Wurmus <rekado@elephly.net>
ha scritto:

>
> Catonano <catonano@gmail.com> writes:
>
> > ;;; WARNING: loading compiled file
> > /home/adriano/opt/lib/guile/3.0/site-ccache/haunt/serve/web-server.go
> > failed:
> > ;;; In procedure load-thunk-from-memory: incompatible bytecode kind
> > ;;; WARNING: loading compiled file
> > /home/adriano/opt/lib/guile/3.0/site-ccache/haunt/serve/mime-types.go
> > failed:
> > ;;; In procedure load-thunk-from-memory: incompatible bytecode kind
>
> This means you are either using Guile 2 and make it load bytecode for
> 3.0 or the other way around.
>
>
>
Thank you Ricardo

I know what it means

I am puzzled because there is only one version of Guile on this machine,
it's Gule 3.0.1

and then it only happens for some modules, not all of them

But you made me think and I tried

$ which -a guile
/usr/bin/guile
/bin/guile

both these Guiles are 3.0.1, I know because I opened them both

Now look

$ ls -lha /usr/bin/guile
lrwxrwxrwx 1 root root 23 mag 14 10:51 /usr/bin/guile ->
/etc/alternatives/guile

$ ls -lha /bin/guile
lrwxrwxrwx 1 root root 23 mag 14 10:51 /bin/guile -> /etc/alternatives/guile

they are 2 links pointing to the actual executable, it seems

is any of this relevant ?


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: haunt
  2020-05-17 12:16   ` haunt Catonano
@ 2020-05-17 12:28     ` Catonano
  2020-05-17 15:49       ` haunt Alex Sassmannshausen
  2020-05-17 15:47     ` haunt Ricardo Wurmus
  1 sibling, 1 reply; 7+ messages in thread
From: Catonano @ 2020-05-17 12:28 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: Guile User

Il giorno dom 17 mag 2020 alle ore 14:16 Catonano <catonano@gmail.com> ha
scritto:

>
>
> Il giorno dom 17 mag 2020 alle ore 14:08 Ricardo Wurmus <
> rekado@elephly.net> ha scritto:
>
>>
>> Catonano <catonano@gmail.com> writes:
>>
>> > ;;; WARNING: loading compiled file
>> > /home/adriano/opt/lib/guile/3.0/site-ccache/haunt/serve/web-server.go
>> > failed:
>> > ;;; In procedure load-thunk-from-memory: incompatible bytecode kind
>> > ;;; WARNING: loading compiled file
>> > /home/adriano/opt/lib/guile/3.0/site-ccache/haunt/serve/mime-types.go
>> > failed:
>> > ;;; In procedure load-thunk-from-memory: incompatible bytecode kind
>>
>> This means you are either using Guile 2 and make it load bytecode for
>> 3.0 or the other way around.
>>
>>
>>
> Thank you Ricardo
>
> I know what it means
>
> I am puzzled because there is only one version of Guile on this machine,
> it's Gule 3.0.1
>
> and then it only happens for some modules, not all of them
>
> But you made me think and I tried
>
> $ which -a guile
> /usr/bin/guile
> /bin/guile
>
> both these Guiles are 3.0.1, I know because I opened them both
>
> Now look
>
> $ ls -lha /usr/bin/guile
> lrwxrwxrwx 1 root root 23 mag 14 10:51 /usr/bin/guile ->
> /etc/alternatives/guile
>
> $ ls -lha /bin/guile
> lrwxrwxrwx 1 root root 23 mag 14 10:51 /bin/guile ->
> /etc/alternatives/guile
>
> they are 2 links pointing to the actual executable, it seems
>
> is any of this relevant ?
>



just a couple of other passages

$ ls -lha /etc/alternatives/guile
lrwxrwxrwx 1 root root 45 mag 14 10:51 /etc/alternatives/guile ->
/usr/lib/x86_64-linux-gnu/guile/3.0/bin/guile

and

$ ls -lha /usr/lib/x86_64-linux-gnu/guile/
totale 84K
drwxr-xr-x  4 root root 4,0K mag 14 10:50 .
drwxr-xr-x 97 root root  72K mag 15 21:16 ..
drwxr-xr-x  5 root root 4,0K apr 23 09:34 2.2
drwxr-xr-x  5 root root 4,0K mag 14 10:51 3.0

so it seems there are 2 different guiles on ths machine after all

$ ls -lha /usr/lib/x86_64-linux-gnu/guile/3.0/bin/guile
-rwxr-xr-x 1 root root 15K apr 11 19:02
/usr/lib/x86_64-linux-gnu/guile/3.0/bin/guile


Now look


$ sudo apt remove guile-2.2
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze
Lettura informazioni sullo stato... Fatto
Il pacchetto "guile-2.2" non è installato e quindi non è stato rimosso
0 aggiornati, 0 installati, 0 da rimuovere e 24 non aggiornati.


it's in Italian

it says that the package guile-2.2 was not installed so nothing was done

Is anyone else using Ubuntu 20.04 around here ?


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: haunt
  2020-05-17 12:16   ` haunt Catonano
  2020-05-17 12:28     ` haunt Catonano
@ 2020-05-17 15:47     ` Ricardo Wurmus
  2020-05-18  8:11       ` haunt Catonano
  1 sibling, 1 reply; 7+ messages in thread
From: Ricardo Wurmus @ 2020-05-17 15:47 UTC (permalink / raw)
  To: Catonano; +Cc: Guile User


Catonano <catonano@gmail.com> writes:

> Il giorno dom 17 mag 2020 alle ore 14:08 Ricardo Wurmus <rekado@elephly.net>
> ha scritto:
>
>>
>> Catonano <catonano@gmail.com> writes:
>>
>> > ;;; WARNING: loading compiled file
>> > /home/adriano/opt/lib/guile/3.0/site-ccache/haunt/serve/web-server.go
>> > failed:
>> > ;;; In procedure load-thunk-from-memory: incompatible bytecode kind
>> > ;;; WARNING: loading compiled file
>> > /home/adriano/opt/lib/guile/3.0/site-ccache/haunt/serve/mime-types.go
>> > failed:
>> > ;;; In procedure load-thunk-from-memory: incompatible bytecode kind
>>
>> This means you are either using Guile 2 and make it load bytecode for
>> 3.0 or the other way around.
>>
>>
>>
> Thank you Ricardo
>
> I know what it means
>
> I am puzzled because there is only one version of Guile on this machine,
> it's Gule 3.0.1
>
> and then it only happens for some modules, not all of them

Yeah, that’s odd.

I see that haunt also depends on Guile Reader and Guile Commonmark.  Are
these available on your system in Guile 3.0 variants?

Have you tried clearing the cache of compiled .go files?

-- 
Ricardo



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: haunt
  2020-05-17 12:28     ` haunt Catonano
@ 2020-05-17 15:49       ` Alex Sassmannshausen
  0 siblings, 0 replies; 7+ messages in thread
From: Alex Sassmannshausen @ 2020-05-17 15:49 UTC (permalink / raw)
  To: guile-user

Heya,

Catonano <catonano@gmail.com> writes:

> Il giorno dom 17 mag 2020 alle ore 14:16 Catonano <catonano@gmail.com> ha
> scritto:
>
>>
>>
>> Il giorno dom 17 mag 2020 alle ore 14:08 Ricardo Wurmus <
>> rekado@elephly.net> ha scritto:
>>
>>>
>>> Catonano <catonano@gmail.com> writes:
>>>
>>> > ;;; WARNING: loading compiled file
>>> > /home/adriano/opt/lib/guile/3.0/site-ccache/haunt/serve/web-server.go
>>> > failed:
>>> > ;;; In procedure load-thunk-from-memory: incompatible bytecode kind
>>> > ;;; WARNING: loading compiled file
>>> > /home/adriano/opt/lib/guile/3.0/site-ccache/haunt/serve/mime-types.go
>>> > failed:
>>> > ;;; In procedure load-thunk-from-memory: incompatible bytecode kind
>>>
>>> This means you are either using Guile 2 and make it load bytecode for
>>> 3.0 or the other way around.
>
> […]
>
> Now look
>
>
> $ sudo apt remove guile-2.2
> Lettura elenco dei pacchetti... Fatto
> Generazione albero delle dipendenze
> Lettura informazioni sullo stato... Fatto
> Il pacchetto "guile-2.2" non è installato e quindi non è stato rimosso
> 0 aggiornati, 0 installati, 0 da rimuovere e 24 non aggiornati.
>
>
> it's in Italian
>
> it says that the package guile-2.2 was not installed so nothing was done
>
> Is anyone else using Ubuntu 20.04 around here ?

I'm afraid I don't use Ubuntu (I use Debian with Guix on a foreign
distro atm), but perhaps some thoughts:

In recent weeks with the migration in Guix to guile 3 I have also run
into the incompatible bytecode messages.  From my experience, they are
mostly harmless.  It seems to me the code is just re-compiled on the
fly? Dunno.

In any case, generally it does indicate that Guile is loading some
libraries from differnet versions as both you and Ricardo noted.

Maybe you can manually clear your guile compiled caches?  There might be
some leftover files from back when you were on 2.2?

Fwiw, I can confirm that haunt works with Guile 3, as I'm using it from
Guix.

Hope this helps!

Alex



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: haunt
  2020-05-17 15:47     ` haunt Ricardo Wurmus
@ 2020-05-18  8:11       ` Catonano
  0 siblings, 0 replies; 7+ messages in thread
From: Catonano @ 2020-05-18  8:11 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: Guile User

I have an update about this

Il giorno dom 17 mag 2020 alle ore 17:48 Ricardo Wurmus <rekado@elephly.net>
ha scritto:

>
>

> Have you tried clearing the cache of compiled .go files?
>

I eliminated the ccache in my target folder ($HOME/opt) and that solved the
issue ¯\_(ツ)_/¯

So all is well


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-05-18  8:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-17  7:44 haunt Catonano
2020-05-17 12:08 ` haunt Ricardo Wurmus
2020-05-17 12:16   ` haunt Catonano
2020-05-17 12:28     ` haunt Catonano
2020-05-17 15:49       ` haunt Alex Sassmannshausen
2020-05-17 15:47     ` haunt Ricardo Wurmus
2020-05-18  8:11       ` haunt Catonano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).