Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using CAPSTONE_X86_REDUCE breaks the build #1955

Closed
autoantwort opened this issue Jan 25, 2023 · 1 comment · Fixed by #2256
Closed

Using CAPSTONE_X86_REDUCE breaks the build #1955

autoantwort opened this issue Jan 25, 2023 · 1 comment · Fixed by #2256
Milestone

Comments

@autoantwort
Copy link

I am using the latest commit on the next branch and have enabled CAPSTONE_X86_SUPPORT and CAPSTONE_X86_REDUCE. But now I get the following errors:

[9/29] /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCAPSTONE_BPF_SUPPORT -DCAPSTONE_HAS_BPF -DCAPSTONE_HAS_MOS65XX -DCAPSTONE_HAS_RISCV -DCAPSTONE_HAS_WASM -DCAPSTONE_HAS_X86 -DCAPSTONE_MOS65XX_SUPPORT -DCAPSTONE_RISCV_SUPPORT -DCAPSTONE_USE_SYS_DYN_MEM -DCAPSTONE_WASM_SUPPORT -DCAPSTONE_X86_REDUCE -DCAPSTONE_X86_SUPPORT -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/capstone/src/77d43ad0c6-c7ea840cfd.clean/include -fPIC -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -std=gnu99 -MD -MT CMakeFiles/capstone.dir/arch/X86/X86IntelInstPrinter.c.o -MF CMakeFiles/capstone.dir/arch/X86/X86IntelInstPrinter.c.o.d -o CMakeFiles/capstone.dir/arch/X86/X86IntelInstPrinter.c.o -c /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/capstone/src/77d43ad0c6-c7ea840cfd.clean/arch/X86/X86IntelInstPrinter.c
FAILED: CMakeFiles/capstone.dir/arch/X86/X86IntelInstPrinter.c.o 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DCAPSTONE_BPF_SUPPORT -DCAPSTONE_HAS_BPF -DCAPSTONE_HAS_MOS65XX -DCAPSTONE_HAS_RISCV -DCAPSTONE_HAS_WASM -DCAPSTONE_HAS_X86 -DCAPSTONE_MOS65XX_SUPPORT -DCAPSTONE_RISCV_SUPPORT -DCAPSTONE_USE_SYS_DYN_MEM -DCAPSTONE_WASM_SUPPORT -DCAPSTONE_X86_REDUCE -DCAPSTONE_X86_SUPPORT -I/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/capstone/src/77d43ad0c6-c7ea840cfd.clean/include -fPIC -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -std=gnu99 -MD -MT CMakeFiles/capstone.dir/arch/X86/X86IntelInstPrinter.c.o -MF CMakeFiles/capstone.dir/arch/X86/X86IntelInstPrinter.c.o.d -o CMakeFiles/capstone.dir/arch/X86/X86IntelInstPrinter.c.o -c /Users/leanderSchulten/git_projekte/vcpkg/buildtrees/capstone/src/77d43ad0c6-c7ea840cfd.clean/arch/X86/X86IntelInstPrinter.c
/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/capstone/src/77d43ad0c6-c7ea840cfd.clean/arch/X86/X86IntelInstPrinter.c:1038:8: error: use of undeclared identifier 'X86_BNDCL32rm'
                case X86_BNDCL32rm:
                     ^
/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/capstone/src/77d43ad0c6-c7ea840cfd.clean/arch/X86/X86IntelInstPrinter.c:1039:8: error: use of undeclared identifier 'X86_BNDCN32rm'; did you mean 'X86_ANDN32rm'?
                case X86_BNDCN32rm:
                     ^~~~~~~~~~~~~
                     X86_ANDN32rm
/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/capstone/src/77d43ad0c6-c7ea840cfd.clean/arch/X86/X86GenInstrInfo_reduce.inc:136:2: note: 'X86_ANDN32rm' declared here
        X86_ANDN32rm    = 246,
        ^
/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/capstone/src/77d43ad0c6-c7ea840cfd.clean/arch/X86/X86IntelInstPrinter.c:1040:8: error: use of undeclared identifier 'X86_BNDCU32rm'
                case X86_BNDCU32rm:
                     ^
/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/capstone/src/77d43ad0c6-c7ea840cfd.clean/arch/X86/X86IntelInstPrinter.c:1041:8: error: use of undeclared identifier 'X86_BNDSTXmr'
                case X86_BNDSTXmr:
                     ^
/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/capstone/src/77d43ad0c6-c7ea840cfd.clean/arch/X86/X86IntelInstPrinter.c:1042:8: error: use of undeclared identifier 'X86_BNDLDXrm'
                case X86_BNDLDXrm:
                     ^
/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/capstone/src/77d43ad0c6-c7ea840cfd.clean/arch/X86/X86IntelInstPrinter.c:1043:8: error: use of undeclared identifier 'X86_BNDCL64rm'
                case X86_BNDCL64rm:
                     ^
/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/capstone/src/77d43ad0c6-c7ea840cfd.clean/arch/X86/X86IntelInstPrinter.c:1044:8: error: use of undeclared identifier 'X86_BNDCN64rm'; did you mean 'X86_ANDN64rm'?
                case X86_BNDCN64rm:
                     ^~~~~~~~~~~~~
                     X86_ANDN64rm
/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/capstone/src/77d43ad0c6-c7ea840cfd.clean/arch/X86/X86GenInstrInfo_reduce.inc:138:2: note: 'X86_ANDN64rm' declared here
        X86_ANDN64rm    = 248,
        ^
/Users/leanderSchulten/git_projekte/vcpkg/buildtrees/capstone/src/77d43ad0c6-c7ea840cfd.clean/arch/X86/X86IntelInstPrinter.c:1045:8: error: use of undeclared identifier 'X86_BNDCU64rm'
                case X86_BNDCU64rm:
                     ^
8 errors generated.
@XVilka
Copy link
Contributor

XVilka commented Jan 21, 2024

@oleavr since you recently fixed that part of the code, could you please take a look at this one too?

oleavr added a commit to frida/capstone that referenced this issue Jan 21, 2024
oleavr added a commit to frida/capstone that referenced this issue Jan 21, 2024
kabeor pushed a commit that referenced this issue Jan 24, 2024
@Rot127 Rot127 added this to the v5.0.2 milestone Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants