Summary: | dev-java/jffi-1.3.6: fails to compile on ppc64 (error: "FFI_TYPE_LAST" is not defined, evaluates to 0), possible bug in dev-libs/libffi? | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Sam James <sam> |
Component: | Current packages | Assignee: | Java team <java> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | matoro_bugzilla_gentoo, njsg, pkubaj, toolchain |
Priority: | Normal | Keywords: | PullRequest, UPSTREAM |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://github.com/jnr/jffi/issues/107 | ||
See Also: | https://github.com/gentoo/gentoo/pull/26529 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 243502, 825494 | ||
Attachments: | build.log |
Description
Sam James
2021-11-25 02:14:38 UTC
Keeping toolchain@ CCed as it may be a bug in libffi as per linked bug report. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=705038948d6655a23cfc0ea7ec0abc57dad1a850 commit 705038948d6655a23cfc0ea7ec0abc57dad1a850 Author: Sam James <sam@gentoo.org> AuthorDate: 2021-11-28 19:00:26 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-11-28 19:02:06 +0000 dev-java/jnr-ffi: keep 2.0.2-r1 only for ppc64 Bug: https://bugs.gentoo.org/827215 Signed-off-by: Sam James <sam@gentoo.org> dev-java/jnr-ffi/jnr-ffi-2.0.2-r1.ebuild | 2 +- dev-java/jnr-ffi/jnr-ffi-2.0.2.ebuild | 60 -------------------------------- 2 files changed, 1 insertion(+), 61 deletions(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a5725d2a8405427ede129c720ac18bf3cb1f0fb commit 2a5725d2a8405427ede129c720ac18bf3cb1f0fb Author: Volkmar W. Pogatzki <gentoo@pogatzki.net> AuthorDate: 2021-11-28 10:03:19 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-11-28 19:02:05 +0000 dev-java/jnr-ffi: restrict 2.0.2-r1 to jffi-1.2.9 Bug: https://bugs.gentoo.org/827215 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/23097 Signed-off-by: Sam James <sam@gentoo.org> dev-java/jnr-ffi/jnr-ffi-2.0.2-r1.ebuild | 61 ++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10579138b9895a51dfaad4d6b6bccb5908045ee0 commit 10579138b9895a51dfaad4d6b6bccb5908045ee0 Author: Volkmar W. Pogatzki <gentoo@pogatzki.net> AuthorDate: 2021-11-28 09:45:00 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-11-28 19:02:04 +0000 dev-java/jnr-ffi: undo 2.0.2 removal Bug: https://bugs.gentoo.org/827215 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Sam James <sam@gentoo.org> dev-java/jnr-ffi/Manifest | 1 + dev-java/jnr-ffi/files/jnr-ffi-2.0.2-junit48.patch | 11 + dev-java/jnr-ffi/files/jnr-ffi_maven-build.xml | 250 +++++++++++++++++++++ dev-java/jnr-ffi/jnr-ffi-2.0.2.ebuild | 60 +++++ 4 files changed, 322 insertions(+) At least by my testing, simply moving the definitions fixes it. libffi test suite passes, jffi test suite passes. Submitted to libffi in https://github.com/libffi/libffi/pull/722, I'll wait and see what they have to say about it. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5cf34d9161de963a4cb6db7501799490c7cf5d31 commit 5cf34d9161de963a4cb6db7501799490c7cf5d31 Author: matoro <matoro@users.noreply.github.com> AuthorDate: 2022-07-22 23:13:26 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-07-23 19:43:13 +0000 dev-libs/libffi: revbump 3.4.2-r2, fix ppc64 header defs (backport) Backports https://github.com/libffi/libffi/pull/722. Bug: https://github.com/jnr/jffi/issues/107 Closes: https://bugs.gentoo.org/827215 Closes: https://github.com/gentoo/gentoo/pull/26529 Signed-off-by: Sam James <sam@gentoo.org> .../files/libffi-3.4.2-backport-pr-722.patch | 88 ++++++++++++++++++++++ dev-libs/libffi/libffi-3.4.2-r2.ebuild | 80 ++++++++++++++++++++ 2 files changed, 168 insertions(+) The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32a4721f0f3891663540ad831c3c6923cafed8c4 commit 32a4721f0f3891663540ad831c3c6923cafed8c4 Author: Volkmar W. Pogatzki <gentoo@pogatzki.net> AuthorDate: 2022-07-24 15:46:36 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-07-25 00:27:51 +0000 dev-java/jffi: depend on >=dev-libs/libffi-3.4.2-r2 3.4.2-r1 was causing issues on PPC64. Bug: https://bugs.gentoo.org/827215 Bug: https://github.com/jnr/jffi/issues/107 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/26568 Signed-off-by: Sam James <sam@gentoo.org> dev-java/jffi/jffi-1.3.9-r1.ebuild | 99 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) |