Created attachment 223080 [details] Patch to remove stripping the precompiled modules. After installing the port (be it from a package or a local build), the "guile" program dumps core on startup: Pre-boot error; key: misc-error, args: ("load-thunk-from-memory" "expected p_filesz == p_memsz" () #f)Abort (core dumped) Since I had previously built guile-3.0.0, which ran without problems, I started looking at the differences. In the post-install phase of the port, the pre-compiled modules (with the "go" extension) are stripped, which is not something that I had done. This also explains the error message. So I removed the post-install target, rebuilt and re-installed the port and it works. I ran "check-guile -i /usr/local/bin/guile" and it passed OK: Totals for this test run: passes: 42787 failures: 46 unexpected passes: 0 expected failures: 10 unresolved test cases: 66 untested test cases: 1 unsupported test cases: 1 errors: 0 This is identical to the result I got for 3.0.0. So I've added a patch to remove the stripping of the precompiled modules.
Not sure if this is platform specific, but I'm on FreeBSD 13.0-STABLE (stable/13-6f6c64800), amd64 platform.
A commit references this bug: Author: bofh Date: Mon Mar 8 10:22:30 UTC 2021 New revision: 567829 URL: https://svnweb.freebsd.org/changeset/ports/567829 Log: lang/guile: Fix core dump on stripped modules PR: 254117 Submitted by: rsmith@xs4all.nl Changes: head/lang/guile/Makefile