Summary: | dev-lisp/clozurecl-1.11.5: fails to build on ~x86 in 17.0 profile | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Andrey Grozin <grozin> |
Component: | Current packages | Assignee: | Common Lisp Bugs <common-lisp> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | slyfox |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 642232 | ||
Attachments: | clozurecl-1.11.5-no-pie-32.patch |
Description
Andrey Grozin
2018-12-03 14:40:30 UTC
In the 13.0 profile, clozurecl-1.11.5 compiled fine on the same computer, and could successfully compile maxima and fricas. On a ~amd64 computer with 13.0 profile, clozurecl-1.11.5 compiles fine and can successfully compile maxima and fricas. I have no ~amd64 computer with 17.0 profile, and cannot test what happens. But from bug #665364 I see that clozurecl-1.11.5 can be emerged, but the resulting lisp cannot compile maxima. This is the reply I got from the upstream: Date: Sat, 7 Jul 2018 11:14:10 +0200 From: R. Matthew Emerson <rme@acm.org> To: Andrey G. Grozin <A.G.Grozin@inp.nsk.su> Cc: openmcl-devel Devel <openmcl-devel@clozure.com> Subject: Re: [Openmcl-devel] cannot build ccl-1.11.5 from sources on a 32-bit Gentoo linux box https://github.com/Clozure/ccl/issues/126 is an issue about Gentoo (apparently a Gentoo project that seeks to improve security has a rule that programs mustn’t use absolute addressing). I don’t know if that issue is related, but when I saw the linker warning about the text relocation, I thought of that issue. There’s another 32-bit-only Linux problem that I ran into also, but in this case, the lisp crashes. That’s issue https://github.com/Clozure/ccl/issues/85. Created attachment 557034 [details, diff]
clozurecl-1.11.5-no-pie-32.patch
I suggest fixing CFLAGS/LDFLAGS passing in this package to allow for easier playing with parameters. Attached tapch is enough to make interpreter not spin on ~x86. I think it means that clozurecl has a bug where it does not account for unexpected load address caused by PIE binary. Perhaps it's image embeds absolute addresses? The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01277b43fb99ba50bf59849c19305ba94783cfe2 commit 01277b43fb99ba50bf59849c19305ba94783cfe2 Author: Andrey Grozin <grozin@gentoo.org> AuthorDate: 2018-12-09 13:35:59 +0000 Commit: Andrey Grozin <grozin@gentoo.org> CommitDate: 2018-12-09 13:35:59 +0000 dev-lisp/clozurecl: fix compilation on x86 with 17.0 profile Suggested-by: Sergei Trofimovich <slyfox@gentoo.org> Closes: https://bugs.gentoo.org/672454 Signed-off-by: Andrey Grozin <grozin@gentoo.org> Package-Manager: Portage-2.3.41, Repoman-2.3.9 dev-lisp/clozurecl/clozurecl-1.11.5.ebuild | 2 ++ dev-lisp/clozurecl/files/clozurecl-1.11.5-no-pie-32.patch | 7 +++++++ 2 files changed, 9 insertions(+) |