I get the following error when running "pip2 install -U cuckoo". I've read through the previous issues and it isn't a problem with the i386 (I'm using Mojave on Mac) because version 4.0.1 of Capstone has already removed the i386 problem. May I know how to solve this?
Building wheel for capstone (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/opt/python@2/bin/python2.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/hr/g124gyf13yq8gmy8454zrvjh0000gn/T/pip-install-QSCEoH/capstone/setup.py'"'"'; file='"'"'/private/var/folders/hr/g124gyf13yq8gmy8454zrvjh0000gn/T/pip-install-QSCEoH/capstone/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/hr/g124gyf13yq8gmy8454zrvjh0000gn/T/pip-wheel-lYS7OX --python-tag cp27
cwd: /private/var/folders/hr/g124gyf13yq8gmy8454zrvjh0000gn/T/pip-install-QSCEoH/capstone/
Complete output (203 lines):
/usr/local/lib/python2.7/site-packages/setuptools/dist.py:475: UserWarning: Normalizing '3.0.5.rc2' to '3.0.5rc2'
normalized_version,
running bdist_wheel
running build
Building C extensions
CC cs.o
CC utils.o
CC SStream.o
CC MCInstrDesc.o
CC MCRegisterInfo.o
CC arch/ARM/ARMDisassembler.o
CC arch/ARM/ARMInstPrinter.o
CC arch/ARM/ARMMapping.o
CC arch/ARM/ARMModule.o
CC arch/AArch64/AArch64BaseInfo.o
CC arch/AArch64/AArch64Disassembler.o
CC arch/AArch64/AArch64InstPrinter.o
CC arch/AArch64/AArch64Mapping.o
CC arch/AArch64/AArch64Module.o
CC arch/Mips/MipsDisassembler.o
CC arch/Mips/MipsInstPrinter.o
CC arch/Mips/MipsMapping.o
CC arch/Mips/MipsModule.o
CC arch/PowerPC/PPCDisassembler.o
CC arch/PowerPC/PPCInstPrinter.o
CC arch/PowerPC/PPCMapping.o
CC arch/PowerPC/PPCModule.o
CC arch/Sparc/SparcDisassembler.o
CC arch/Sparc/SparcInstPrinter.o
CC arch/Sparc/SparcMapping.o
CC arch/Sparc/SparcModule.o
CC arch/SystemZ/SystemZDisassembler.o
CC arch/SystemZ/SystemZInstPrinter.o
CC arch/SystemZ/SystemZMapping.o
CC arch/SystemZ/SystemZModule.o
CC arch/SystemZ/SystemZMCTargetDesc.o
CC arch/X86/X86DisassemblerDecoder.o
CC arch/X86/X86Disassembler.o
CC arch/X86/X86IntelInstPrinter.o
CC arch/X86/X86ATTInstPrinter.o
CC arch/X86/X86Mapping.o
CC arch/X86/X86Module.o
CC arch/XCore/XCoreDisassembler.o
CC arch/XCore/XCoreInstPrinter.o
CC arch/XCore/XCoreMapping.o
CC arch/XCore/XCoreModule.o
CC MCInst.o
LINK libcapstone.dylib
ld: warning: The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS)
ld: warning: ignoring file /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd, missing required architecture i386 in file /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd
Undefined symbols for architecture i386:
"_bzero", referenced from:
_Thumb_getInstruction in ARMDisassembler.o
_ARM_getInstruction in ARMDisassembler.o
_AArch64_getInstruction in AArch64Disassembler.o
_Mips_getInstruction in MipsDisassembler.o
_Mips64_getInstruction in MipsDisassembler.o
_PPC_getInstruction in PPCDisassembler.o
_SparcgetInstruction in SparcDisassembler.o
...
"memcpy_chk", referenced from:
_SystemZ_getInstruction in SystemZDisassembler.o
"_stack_chk_fail", referenced from:
_cs_disasm in cs.o
_cs_disasm_iter in cs.o
_ARM_get_insn_id in ARMMapping.o
_A64SysRegMapper_toString in AArch64BaseInfo.o
_decodeToMCInst in AArch64Disassembler.o
_printInstruction in AArch64InstPrinter.o
printTypedVectorList in AArch64InstPrinter.o
...
"stack_chk_guard", referenced from:
_cs_disasm in cs.o
_cs_disasm_iter in cs.o
_ARM_get_insn_id in ARMMapping.o
_A64SysRegMapper_toString in AArch64BaseInfo.o
_decodeToMCInst in AArch64Disassembler.o
_printInstruction in AArch64InstPrinter.o
_printTypedVectorList in AArch64InstPrinter.o
...
_cs_disasm in cs.o
_cs_disasm_iter in cs.o
_ARM_get_insn_id in ARMMapping.o
_A64SysRegMapper_toString in AArch64BaseInfo.o
_decodeToMCInst in AArch64Disassembler.o
_printInstruction in AArch64InstPrinter.o
_printTypedVectorList in AArch64InstPrinter.o
...
_cs_disasm in cs.o
_cs_disasm_iter in cs.o
_ARM_get_insn_id in ARMMapping.o
_A64SysRegMapper_toString in AArch64BaseInfo.o
_decodeToMCInst in AArch64Disassembler.o
_printInstruction in AArch64InstPrinter.o
_printTypedVectorList in AArch64InstPrinter.o
...
_cs_disasm in cs.o
_cs_disasm_iter in cs.o
_ARM_get_insn_id in ARMMapping.o
_A64SysRegMapper_toString in AArch64BaseInfo.o
_decodeToMCInst in AArch64Disassembler.o
_printInstruction in AArch64InstPrinter.o
_printTypedVectorList in AArch64InstPrinter.o
...
_cs_disasm in cs.o
_cs_disasm_iter in cs.o
_ARM_get_insn_id in ARMMapping.o
_A64SysRegMapper_toString in AArch64BaseInfo.o
_decodeToMCInst in AArch64Disassembler.o
_printInstruction in AArch64InstPrinter.o
_printTypedVectorList in AArch64InstPrinter.o
...
_cs_disasm in cs.o
_cs_disasm_iter in cs.o
_ARM_get_insn_id in ARMMapping.o
_A64SysRegMapper_toString in AArch64BaseInfo.o
_decodeToMCInst in AArch64Disassembler.o
_printInstruction in AArch64InstPrinter.o
_printTypedVectorList in AArch64InstPrinter.o
...
_cs_disasm in cs.o
_cs_disasm_iter in cs.o
_ARM_get_insn_id in ARMMapping.o
_A64SysRegMapper_toString in AArch64BaseInfo.o
_decodeToMCInst in AArch64Disassembler.o
_printInstruction in AArch64InstPrinter.o
_printTypedVectorList in AArch64InstPrinter.o
...
...
"_strcpy_chk", referenced from:
_XCore_insnextract in XCoreInstPrinter.o
"strncpy_chk", referenced from:
_Sparc_printInst in SparcInstPrinter.o
"_tolower", referenced from:
_A64NamedImmMapperfromString in AArch64BaseInfo.o
"udivdi3", referenced from:
_A64SysRegMapper_toString in AArch64BaseInfo.o
"_atoi", referenced from:
_XCore_insn_extract in XCoreInstPrinter.o
"_calloc", referenced from:
_cs_mem_calloc in cs.o
(maybe you meant: _cs_mem_calloc)
"_free", referenced from:
_cs_mem_free in cs.o
(maybe you meant: _cs_free, _cs_mem_free )
"_malloc", referenced from:
_cs_mem_malloc in cs.o
(maybe you meant: _cs_mem_malloc, _cs_malloc )
"_memcpy", referenced from:
_cs_disasm in cs.o
_fill_insn in cs.o
_cs_disasm_iter in cs.o
_SStream_concat0 in SStream.o
"_memmove", referenced from:
_cs_strdup in utils.o
_X86_Intel_printInst in X86IntelInstPrinter.o
_X86_ATT_printInst in X86ATTInstPrinter.o
"_realloc", referenced from:
_cs_mem_realloc in cs.o
(maybe you meant: _cs_mem_realloc)
"_strchr", referenced from:
_Sparc_printInst in SparcInstPrinter.o
_XCore_insn_extract in XCoreInstPrinter.o
_XCore_printInst in XCoreInstPrinter.o
"_strcmp", referenced from:
_name2id in utils.o
_A64NamedImmMapper_fromString in AArch64BaseInfo.o
_printPredicateOperand in PPCInstPrinter.o
_PPC_alias_insn in PPCMapping.o
_printMemOperand in SparcInstPrinter.o
_Sparc_map_hint in SparcMapping.o
_XCore_reg_id in XCoreMapping.o
...
"_strcpy", referenced from:
_A64SysRegMapper_toString in AArch64BaseInfo.o
"_strlen", referenced from:
_cs_strdup in utils.o
_SStream_concat0 in SStream.o
_ARM_post_printer in ARMInstPrinter.o
_PPC_printInst in PPCInstPrinter.o
_Sparc_printInst in SparcInstPrinter.o
_Sparc_map_hint in SparcMapping.o
"_strncmp", referenced from:
_ARM_post_printer in ARMInstPrinter.o
"_strncpy", referenced from:
_cs_disasm in cs.o
_fill_insn in cs.o
_cs_disasm_iter in cs.o
"_strrchr", referenced from:
_ARM_post_printer in ARMInstPrinter.o
_AArch64_post_printer in AArch64InstPrinter.o
_PPC_post_printer in PPCInstPrinter.o
"_strstr", referenced from:
_AArch64_printInst in AArch64InstPrinter.o
_PPC_post_printer in PPCInstPrinter.o
_printAliasInstr in SparcInstPrinter.o
"_vsnprintf", referenced from:
_cs_vsnprintf in cs.o
(maybe you meant: _cs_vsnprintf)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [libcapstone.dylib] Error 1
error: [Errno 2] No such file or directory: 'libcapstone.dylib'
I get the following error when running "pip2 install -U cuckoo". I've read through the previous issues and it isn't a problem with the i386 (I'm using Mojave on Mac) because version 4.0.1 of Capstone has already removed the i386 problem. May I know how to solve this?
Building wheel for capstone (setup.py) ... error ERROR: Command errored out with exit status 1: command: /usr/local/opt/python@2/bin/python2.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/hr/g124gyf13yq8gmy8454zrvjh0000gn/T/pip-install-QSCEoH/capstone/setup.py'"'"'; file='"'"'/private/var/folders/hr/g124gyf13yq8gmy8454zrvjh0000gn/T/pip-install-QSCEoH/capstone/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/hr/g124gyf13yq8gmy8454zrvjh0000gn/T/pip-wheel-lYS7OX --python-tag cp27 cwd: /private/var/folders/hr/g124gyf13yq8gmy8454zrvjh0000gn/T/pip-install-QSCEoH/capstone/ Complete output (203 lines): /usr/local/lib/python2.7/site-packages/setuptools/dist.py:475: UserWarning: Normalizing '3.0.5.rc2' to '3.0.5rc2' normalized_version, running bdist_wheel running build Building C extensions CC cs.o CC utils.o CC SStream.o CC MCInstrDesc.o CC MCRegisterInfo.o CC arch/ARM/ARMDisassembler.o CC arch/ARM/ARMInstPrinter.o CC arch/ARM/ARMMapping.o CC arch/ARM/ARMModule.o CC arch/AArch64/AArch64BaseInfo.o CC arch/AArch64/AArch64Disassembler.o CC arch/AArch64/AArch64InstPrinter.o CC arch/AArch64/AArch64Mapping.o CC arch/AArch64/AArch64Module.o CC arch/Mips/MipsDisassembler.o CC arch/Mips/MipsInstPrinter.o CC arch/Mips/MipsMapping.o CC arch/Mips/MipsModule.o CC arch/PowerPC/PPCDisassembler.o CC arch/PowerPC/PPCInstPrinter.o CC arch/PowerPC/PPCMapping.o CC arch/PowerPC/PPCModule.o CC arch/Sparc/SparcDisassembler.o CC arch/Sparc/SparcInstPrinter.o CC arch/Sparc/SparcMapping.o CC arch/Sparc/SparcModule.o CC arch/SystemZ/SystemZDisassembler.o CC arch/SystemZ/SystemZInstPrinter.o CC arch/SystemZ/SystemZMapping.o CC arch/SystemZ/SystemZModule.o CC arch/SystemZ/SystemZMCTargetDesc.o CC arch/X86/X86DisassemblerDecoder.o CC arch/X86/X86Disassembler.o CC arch/X86/X86IntelInstPrinter.o CC arch/X86/X86ATTInstPrinter.o CC arch/X86/X86Mapping.o CC arch/X86/X86Module.o CC arch/XCore/XCoreDisassembler.o CC arch/XCore/XCoreInstPrinter.o CC arch/XCore/XCoreMapping.o CC arch/XCore/XCoreModule.o CC MCInst.o LINK libcapstone.dylib ld: warning: The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS) ld: warning: ignoring file /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd, missing required architecture i386 in file /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd Undefined symbols for architecture i386: "_bzero", referenced from: _Thumb_getInstruction in ARMDisassembler.o _ARM_getInstruction in ARMDisassembler.o _AArch64_getInstruction in AArch64Disassembler.o _Mips_getInstruction in MipsDisassembler.o _Mips64_getInstruction in MipsDisassembler.o _PPC_getInstruction in PPCDisassembler.o _SparcgetInstruction in SparcDisassembler.o ... "memcpy_chk", referenced from: _SystemZ_getInstruction in SystemZDisassembler.o "_stack_chk_fail", referenced from: _cs_disasm in cs.o _cs_disasm_iter in cs.o _ARM_get_insn_id in ARMMapping.o _A64SysRegMapper_toString in AArch64BaseInfo.o _decodeToMCInst in AArch64Disassembler.o _printInstruction in AArch64InstPrinter.o printTypedVectorList in AArch64InstPrinter.o ... "stack_chk_guard", referenced from: _cs_disasm in cs.o _cs_disasm_iter in cs.o _ARM_get_insn_id in ARMMapping.o _A64SysRegMapper_toString in AArch64BaseInfo.o _decodeToMCInst in AArch64Disassembler.o _printInstruction in AArch64InstPrinter.o _printTypedVectorList in AArch64InstPrinter.o ... _cs_disasm in cs.o _cs_disasm_iter in cs.o _ARM_get_insn_id in ARMMapping.o _A64SysRegMapper_toString in AArch64BaseInfo.o _decodeToMCInst in AArch64Disassembler.o _printInstruction in AArch64InstPrinter.o _printTypedVectorList in AArch64InstPrinter.o ... _cs_disasm in cs.o _cs_disasm_iter in cs.o _ARM_get_insn_id in ARMMapping.o _A64SysRegMapper_toString in AArch64BaseInfo.o _decodeToMCInst in AArch64Disassembler.o _printInstruction in AArch64InstPrinter.o _printTypedVectorList in AArch64InstPrinter.o ... _cs_disasm in cs.o _cs_disasm_iter in cs.o _ARM_get_insn_id in ARMMapping.o _A64SysRegMapper_toString in AArch64BaseInfo.o _decodeToMCInst in AArch64Disassembler.o _printInstruction in AArch64InstPrinter.o _printTypedVectorList in AArch64InstPrinter.o ... _cs_disasm in cs.o _cs_disasm_iter in cs.o _ARM_get_insn_id in ARMMapping.o _A64SysRegMapper_toString in AArch64BaseInfo.o _decodeToMCInst in AArch64Disassembler.o _printInstruction in AArch64InstPrinter.o _printTypedVectorList in AArch64InstPrinter.o ... _cs_disasm in cs.o _cs_disasm_iter in cs.o _ARM_get_insn_id in ARMMapping.o _A64SysRegMapper_toString in AArch64BaseInfo.o _decodeToMCInst in AArch64Disassembler.o _printInstruction in AArch64InstPrinter.o _printTypedVectorList in AArch64InstPrinter.o ... _cs_disasm in cs.o _cs_disasm_iter in cs.o _ARM_get_insn_id in ARMMapping.o _A64SysRegMapper_toString in AArch64BaseInfo.o _decodeToMCInst in AArch64Disassembler.o _printInstruction in AArch64InstPrinter.o _printTypedVectorList in AArch64InstPrinter.o ... ... "_strcpy_chk", referenced from: _XCore_insnextract in XCoreInstPrinter.o "strncpy_chk", referenced from: _Sparc_printInst in SparcInstPrinter.o "_tolower", referenced from: _A64NamedImmMapperfromString in AArch64BaseInfo.o "udivdi3", referenced from: _A64SysRegMapper_toString in AArch64BaseInfo.o "_atoi", referenced from: _XCore_insn_extract in XCoreInstPrinter.o "_calloc", referenced from: _cs_mem_calloc in cs.o (maybe you meant: _cs_mem_calloc) "_free", referenced from: _cs_mem_free in cs.o (maybe you meant: _cs_free, _cs_mem_free ) "_malloc", referenced from: _cs_mem_malloc in cs.o (maybe you meant: _cs_mem_malloc, _cs_malloc ) "_memcpy", referenced from: _cs_disasm in cs.o _fill_insn in cs.o _cs_disasm_iter in cs.o _SStream_concat0 in SStream.o "_memmove", referenced from: _cs_strdup in utils.o _X86_Intel_printInst in X86IntelInstPrinter.o _X86_ATT_printInst in X86ATTInstPrinter.o "_realloc", referenced from: _cs_mem_realloc in cs.o (maybe you meant: _cs_mem_realloc) "_strchr", referenced from: _Sparc_printInst in SparcInstPrinter.o _XCore_insn_extract in XCoreInstPrinter.o _XCore_printInst in XCoreInstPrinter.o "_strcmp", referenced from: _name2id in utils.o _A64NamedImmMapper_fromString in AArch64BaseInfo.o _printPredicateOperand in PPCInstPrinter.o _PPC_alias_insn in PPCMapping.o _printMemOperand in SparcInstPrinter.o _Sparc_map_hint in SparcMapping.o _XCore_reg_id in XCoreMapping.o ... "_strcpy", referenced from: _A64SysRegMapper_toString in AArch64BaseInfo.o "_strlen", referenced from: _cs_strdup in utils.o _SStream_concat0 in SStream.o _ARM_post_printer in ARMInstPrinter.o _PPC_printInst in PPCInstPrinter.o _Sparc_printInst in SparcInstPrinter.o _Sparc_map_hint in SparcMapping.o "_strncmp", referenced from: _ARM_post_printer in ARMInstPrinter.o "_strncpy", referenced from: _cs_disasm in cs.o _fill_insn in cs.o _cs_disasm_iter in cs.o "_strrchr", referenced from: _ARM_post_printer in ARMInstPrinter.o _AArch64_post_printer in AArch64InstPrinter.o _PPC_post_printer in PPCInstPrinter.o "_strstr", referenced from: _AArch64_printInst in AArch64InstPrinter.o _PPC_post_printer in PPCInstPrinter.o _printAliasInstr in SparcInstPrinter.o "_vsnprintf", referenced from: _cs_vsnprintf in cs.o (maybe you meant: _cs_vsnprintf) ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [libcapstone.dylib] Error 1 error: [Errno 2] No such file or directory: 'libcapstone.dylib'
ERROR: Failed building wheel for capstone