Summary: | dev-util/edb-debugger-1.3.0: fails to compile with dev-libs/capstone:0/5 - /.../Instruction.cpp: error: X86_INS_VCVTPD2DQX was not declared in this scope | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | mario.haustein, meklu, pageexec, proxy-maint, sam, zerochaos |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://github.com/eteran/edb-debugger/issues/823 https://github.com/eteran/edb-debugger/pull/824 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge-info.txt
dev-util:edb-debugger-1.3.0:20220511-060109.log emerge-history.txt.bz2 environment etc.portage.tar.bz2 logs.tar.bz2 temp.tar.bz2 edb-debugger-1.3.0-drop-unsupported-instructions.patch |
Description
Toralf Förster
![]() Created attachment 778094 [details]
emerge-info.txt
Created attachment 778097 [details]
dev-util:edb-debugger-1.3.0:20220511-060109.log
Created attachment 778100 [details]
emerge-history.txt.bz2
Created attachment 778103 [details]
environment
Created attachment 778106 [details]
etc.portage.tar.bz2
Created attachment 778109 [details]
logs.tar.bz2
Created attachment 778112 [details]
temp.tar.bz2
Created attachment 800377 [details, diff]
edb-debugger-1.3.0-drop-unsupported-instructions.patch
This seems to be caused by >=dev-libs/capstone-5.0* no longer defining
X86_INS_VCVTPD2DQX and X86_INS_VCVTPD2PSX in /usr/include/capstone/x86.h.
Instead, the non-suffixed versions are still left in the header file. They also
happen to be in the same case group in the switch statement in the now failing
code. Attached is a simple patch to get it building again.
(In reply to Melker Narikka from comment #8) > Created attachment 800377 [details, diff] [details, diff] > edb-debugger-1.3.0-drop-unsupported-instructions.patch > > This seems to be caused by >=dev-libs/capstone-5.0* no longer defining > X86_INS_VCVTPD2DQX and X86_INS_VCVTPD2PSX in /usr/include/capstone/x86.h. > Instead, the non-suffixed versions are still left in the header file. They > also > happen to be in the same case group in the switch statement in the now > failing > code. Attached is a simple patch to get it building again. Yeah, it got dropped in https://github.com/capstone-engine/capstone/commit/dd91f03fef5102492352756e2adb5972dd79a70f but there's no explanation in the commit message. I see some other capstone consumers like triton had to just drop the use too (used a macro based on capstone version): https://github.com/JonathanSalwan/Triton/pull/1118. Given all that, it seems harmless to just apply the patch here but slightly modified, which I'll do now. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b044751f25eeeeabe1e9c636b2c071855cbf1dad commit b044751f25eeeeabe1e9c636b2c071855cbf1dad Author: Sam James <sam@gentoo.org> AuthorDate: 2022-09-13 16:55:58 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-09-13 16:56:04 +0000 dev-util/edb-debugger: fix build with Capstone 5 .. and add missing double-conversion slot dep Closes: https://bugs.gentoo.org/843755 Signed-off-by: Sam James <sam@gentoo.org> dev-util/edb-debugger/edb-debugger-1.3.0.ebuild | 3 ++- .../files/edb-debugger-1.3.0-capstone-5.patch | 29 ++++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64a7e6368a18ce304f1dfa8a5862f577bd8927cf commit 64a7e6368a18ce304f1dfa8a5862f577bd8927cf Author: Sam James <sam@gentoo.org> AuthorDate: 2022-09-13 17:01:59 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-09-13 17:02:42 +0000 dev-util/edb-debugger: sync live Bug: https://bugs.gentoo.org/843755 Signed-off-by: Sam James <sam@gentoo.org> ...r-1.3.0.ebuild => edb-debugger-1.3.0-r1.ebuild} | 13 ++++-- dev-util/edb-debugger/edb-debugger-9999.ebuild | 47 +++++++++++----------- dev-util/edb-debugger/metadata.xml | 3 -- 3 files changed, 34 insertions(+), 29 deletions(-) |