Capstone Fails To Install On Mac OSX 10.5 Leopard PPC
/usr/bin/gcc-4.2 -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc -shared -Wl,-soname,libcapstone.so.4 ./cs.o ./utils.o ./SStream.o ./MCInstrDesc.o ./MCRegisterInfo.o ./arch/ARM/ARMDisassembler.o ./arch/ARM/ARMInstPrinter.o ./arch/ARM/ARMMapping.o ./arch/ARM/ARMModule.o ./arch/AArch64/AArch64BaseInfo.o ./arch/AArch64/AArch64Disassembler.o ./arch/AArch64/AArch64InstPrinter.o ./arch/AArch64/AArch64Mapping.o ./arch/AArch64/AArch64Module.o ./arch/M68K/M68KDisassembler.o ./arch/M68K/M68KInstPrinter.o ./arch/M68K/M68KModule.o ./arch/Mips/MipsDisassembler.o ./arch/Mips/MipsInstPrinter.o ./arch/Mips/MipsMapping.o ./arch/Mips/MipsModule.o ./arch/PowerPC/PPCDisassembler.o ./arch/PowerPC/PPCInstPrinter.o ./arch/PowerPC/PPCMapping.o ./arch/PowerPC/PPCModule.o ./arch/Sparc/SparcDisassembler.o ./arch/Sparc/SparcInstPrinter.o ./arch/Sparc/SparcMapping.o ./arch/Sparc/SparcModule.o ./arch/SystemZ/SystemZDisassembler.o ./arch/SystemZ/SystemZInstPrinter.o ./arch/SystemZ/SystemZMCTargetDesc.o ./arch/SystemZ/SystemZMapping.o ./arch/SystemZ/SystemZModule.o ./arch/X86/X86DisassemblerDecoder.o ./arch/X86/X86Disassembler.o ./arch/X86/X86IntelInstPrinter.o ./arch/X86/X86ATTInstPrinter.o ./arch/X86/X86Mapping.o ./arch/X86/X86Module.o ./arch/XCore/XCoreDisassembler.o ./arch/XCore/XCoreInstPrinter.o ./arch/XCore/XCoreMapping.o ./arch/XCore/XCoreModule.o ./arch/TMS320C64x/TMS320C64xDisassembler.o ./arch/TMS320C64x/TMS320C64xInstPrinter.o ./arch/TMS320C64x/TMS320C64xMapping.o ./arch/TMS320C64x/TMS320C64xModule.o ./arch/M680X/M680XDisassembler.o ./arch/M680X/M680XInstPrinter.o ./arch/M680X/M680XModule.o ./arch/EVM/EVMDisassembler.o ./arch/EVM/EVMInstPrinter.o ./arch/EVM/EVMMapping.o ./arch/EVM/EVMModule.o ./MCInst.o -o ./libcapstone.so.4
ar q ./libcapstone.a ./cs.o ./utils.o ./SStream.o ./MCInstrDesc.o ./MCRegisterInfo.o ./arch/ARM/ARMDisassembler.o ./arch/ARM/ARMInstPrinter.o ./arch/ARM/ARMMapping.o ./arch/ARM/ARMModule.o ./arch/AArch64/AArch64BaseInfo.o ./arch/AArch64/AArch64Disassembler.o ./arch/AArch64/AArch64InstPrinter.o ./arch/AArch64/AArch64Mapping.o ./arch/AArch64/AArch64Module.o ./arch/M68K/M68KDisassembler.o ./arch/M68K/M68KInstPrinter.o ./arch/M68K/M68KModule.o ./arch/Mips/MipsDisassembler.o ./arch/Mips/MipsInstPrinter.o ./arch/Mips/MipsMapping.o ./arch/Mips/MipsModule.o ./arch/PowerPC/PPCDisassembler.o ./arch/PowerPC/PPCInstPrinter.o ./arch/PowerPC/PPCMapping.o ./arch/PowerPC/PPCModule.o ./arch/Sparc/SparcDisassembler.o ./arch/Sparc/SparcInstPrinter.o ./arch/Sparc/SparcMapping.o ./arch/Sparc/SparcModule.o ./arch/SystemZ/SystemZDisassembler.o ./arch/SystemZ/SystemZInstPrinter.o ./arch/SystemZ/SystemZMCTargetDesc.o ./arch/SystemZ/SystemZMapping.o ./arch/SystemZ/SystemZModule.o ./arch/X86/X86DisassemblerDecoder.o ./arch/X86/X86Disassembler.o ./arch/X86/X86IntelInstPrinter.o ./arch/X86/X86ATTInstPrinter.o ./arch/X86/X86Mapping.o ./arch/X86/X86Module.o ./arch/XCore/XCoreDisassembler.o ./arch/XCore/XCoreInstPrinter.o ./arch/XCore/XCoreMapping.o ./arch/XCore/XCoreModule.o ./arch/TMS320C64x/TMS320C64xDisassembler.o ./arch/TMS320C64x/TMS320C64xInstPrinter.o ./arch/TMS320C64x/TMS320C64xMapping.o ./arch/TMS320C64x/TMS320C64xModule.o ./arch/M680X/M680XDisassembler.o ./arch/M680X/M680XInstPrinter.o ./arch/M680X/M680XModule.o ./arch/EVM/EVMDisassembler.o ./arch/EVM/EVMInstPrinter.o ./arch/EVM/EVMMapping.o ./arch/EVM/EVMModule.o ./MCInst.o
ar: creating archive ./libcapstone.a
ld: unknown option: -soname
collect2: ld returned 1 exit status
make: *** [libcapstone.so.4] Error 1
make: *** Waiting for unfinished jobs....
ranlib ./libcapstone.a
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_capstone/capstone/work/capstone-4.0.1'
Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_capstone/capstone/work/capstone-4.0.1" && /usr/bin/make -j2 -w all LIBARCHS="ppc"
Exit code: 2
Error: Failed to build capstone: command execution failed
Change History (5)
Owner: |
changed from aquynh@… to aquynh
|
Cc: |
aquynh@… removed
|
Keywords: |
leopard powerpc added; capstone Leopard PPC removed
|
Resolution: |
→ fixed
|
Status: |
assigned →
closed
|
Also fails on x86: https://build.macports.org/builders/ports-10.6_x86_64-builder/builds/134401/steps/install-port/logs/stdio The problem is that Makefile uses wrong code to detect MacOS. It fails, and uses Linux/BSD fallback.