Bug 265414 - lang/guile: guile-config is broken - it prints an error message
Summary: lang/guile: guile-config is broken - it prints an error message
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Muhammad Moinur Rahman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-24 06:18 UTC by Yuri Victorovich
Modified: 2022-12-13 14:04 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (bofh)


Attachments
Do not strip the Guile binaries since that makes them crash (479 bytes, patch)
2022-12-12 02:48 UTC, Tril
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri Victorovich freebsd_committer freebsd_triage 2022-07-24 06:18:18 UTC
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
Comment 1 paul 2022-10-26 14:17:59 UTC
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)
Comment 2 paul 2022-10-26 17:18:41 UTC
It happens running any guile command from the package.
Comment 3 Tril 2022-12-02 23:38:48 UTC
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
Comment 4 Tril 2022-12-02 23:40:10 UTC
adding the word bug to link bug #254117
Comment 5 Tril 2022-12-02 23:46:42 UTC
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.
Comment 6 java4dev 2022-12-11 08:56:46 UTC
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
Comment 7 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2022-12-11 13:52:23 UTC
(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.
Comment 8 Tril 2022-12-12 02:48:21 UTC
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
Comment 9 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2022-12-12 14:38:28 UTC
(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.
Comment 10 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2022-12-12 15:06:13 UTC
I have just checked with HEAD and it works as mentioned. Will commit after the end of build test.
Comment 11 commit-hook freebsd_committer freebsd_triage 2022-12-13 14:01:35 UTC
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(-)
Comment 12 commit-hook freebsd_committer freebsd_triage 2022-12-13 14:03:37 UTC
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(-)