guile-config installed by guile-3.0.8 fails: > $ /usr/local/bin/guile-config > Pre-boot error; key: misc-error, args: ("load-thunk-from-memory" "expected p_filesz == p_memsz" () #f)Abort trap FreeBSD 13.1 amd64
I have this same issue. FreeBSD molly 13.1-RELEASE-p2 FreeBSD 13.1-RELEASE-p2 GENERIC amd64 guile-3.0.8 GNU Ubiquitous Intelligent Language for Extension Pre-boot error; key: misc-error, args: ("load-thunk-from-memory" "expected p_filesz == p_memsz" () #f)Abort trap (core dumped)
It happens running any guile command from the package.
the guile command itself is giving me the error as well so the package is entirely broken again. this is a recurrence of #254117 - looks like it was fixed before by removing the post-inst section that strips executables, but this was re-added for some reason
adding the word bug to link bug #254117
commit a02c296c230a9d86251746aaebd8b1db6c322c06 re-adds postinst lines without comment in the git commit explaining why, so I guess a mistake and they shouldn't be there.
Hello do we have any update on this bug? I currently have > nikolas@vmi385292 ~ $ guile > Pre-boot error; key: misc-error, args: ("load-thunk-from-memory" "expected p_filesz == p_memsz" () #f)Abort trap (core dumped) > nikolas@vmi385292 ~ $ uname -a > FreeBSD vmi385292.contaboserver.net 13.1-RELEASE FreeBSD 13.1-RELEASE releng/13.1-n250148-fc952ac2212 GENERIC amd64 > nikolas@vmi385292 ~ $ pkg info | grep guile > guile-3.0.8 GNU Ubiquitous Intelligent Language for Extension > slib-guile-3b6_1 SLIB installation for Guile Kind Regards Nikolas
(In reply to java4dev from comment #6) Currently no. I am a little bit busy with other port works which needs more urgent attention. So unless someone gives me a pointer to a fix I will not be able to debug at the moment. Otherwise I will look into this in the beginning of January.
Created attachment 238718 [details] Do not strip the Guile binaries since that makes them crash To clarify, this patch fixes Guile on my FreeBSD 13 system. See my previous comments for details. Summary: Stripped Guile binaries crash, and it was fixed before and the fix seems to have been reverted by Muhammad Moinur Rahman by mistake, please re-apply this patch to fix the build. tril@freebsd:/usr/ports $ guile --version guile (GNU Guile) 3.0.8 tril@freebsd:/usr/ports $ uname -a FreeBSD freebsd 13.1-RELEASE FreeBSD 13.1-RELEASE releng/13.1-n250148-fc952ac2212 GENERIC amd64
(In reply to Tril from comment #8) On the previous commit the build used to fail if I did strip so I removed it. But while I upgraded it I just checked if the strip worked. And that's why I have added it again. However based on your report I am removing them and testing again. The test build will go into action at midnight. So if it builds properly I will commit tomorrow.
I have just checked with HEAD and it works as mentioned. Will commit after the end of build test.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=fd16053f4e657f0aabca874ec8316ade045c7b99 commit fd16053f4e657f0aabca874ec8316ade045c7b99 Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2022-12-13 13:36:08 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2022-12-13 14:00:42 +0000 lang/guile: Fix runtime Stripping the libs gives a runtime error. For now disabling the post-install stripping. PR: 265414 Reported by: yuri MFH: 2022Q4 lang/guile/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
A commit in branch 2022Q4 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=10c4044d91318236f432cadbc74c2acf325f93a1 commit 10c4044d91318236f432cadbc74c2acf325f93a1 Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2022-12-13 13:36:08 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2022-12-13 14:03:11 +0000 lang/guile: Fix runtime Stripping the libs gives a runtime error. For now disabling the post-install stripping. PR: 265414 Reported by: yuri MFH: 2022Q4 (cherry picked from commit fd16053f4e657f0aabca874ec8316ade045c7b99) lang/guile/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)