msys2 / MSYS2-packages

Package scripts for MSYS2.
https://packages.msys2.org
BSD 3-Clause "New" or "Revised" License
1.3k stars 489 forks source link

autogen: guile fails to compile (in procedure load-thunk-from-memory: Invalid argument) #1087

Open elieux opened 6 years ago

elieux commented 6 years ago

Originally reported by @LigH-de on https://github.com/msys2/msys2/issues/124.

Last week I set up a completely new instance of MABS, which downloads an up-to-date MSYS2 environment for building various audio and video tools. Among those, sndlib requires autogen, which requires guile. Issue #116 was just closed, but it seems to work only in MSYS2 environments which were installed a lot earlier.

In this new MSYS2 installation, autogen does not work because it seems to require a lot of guile modules which cannot be loaded from a cache, but cannot be compiled either. Attached is the stderr output of autogen --version just as it is used to check for the availability of autogen in configure scripts. Head snippet:

;;; WARNING: loading compiled file /usr/lib/guile/2.2/ccache/ice-9/eval.go failed:
;;; Throw to key system-error with args ("load-thunk-from-memory" "~A" ("Invalid argument") (22))
;;; WARNING: loading compiled file /home/LigH/.cache/guile/ccache/2.2-LE-4-3.A/usr/share/guile/2.2/ice-9/common-list.scm.go failed:
;;; In procedure load-thunk-from-memory: Invalid argument
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;;       or pass the --no-auto-compile argument to disable.
;;; compiling /usr/share/guile/2.2/ice-9/common-list.scm
;;; compiling /usr/share/guile/2.2/system/base/compile.scm
;;; it seems /usr/share/guile/2.2/system/base/compile.scm
;;; is part of the compiler; skipping auto-compilation
;;; compiling /usr/share/guile/2.2/system/base/syntax.scm
;;; WARNING: compilation of /usr/share/guile/2.2/system/base/syntax.scm failed:
;;; In procedure variable-ref: variable is unbound: #<variable 204a9688 value: #<undefined>>
;;; compiling /usr/share/guile/2.2/system/base/language.scm
;;; WARNING: compilation of /usr/share/guile/2.2/system/base/language.scm failed:
;;; In procedure variable-ref: variable is unbound: #<variable 204a9688 value: #<undefined>>
...

autogen-version.txt

LigH-de commented 6 years ago

This issue appears to be specific for Win32 MSYS2 installations. In a Win64 installation it works well.

LigH-de commented 6 years ago

Issue persists. Are there still Scheme components missing?

Steakache commented 6 years ago

Did you solve the problem ?