Opened 5 years ago

Closed 22 months ago

#58624 closed defect (fixed)

Capstone Fails To Install On Mac OSX 10.5 Leopard PPC

Reported by: linuxjunkie999 Owned by: aquynh
Priority: Normal Milestone:
Component: ports Version: 2.5.4
Keywords: leopard powerpc Cc:
Port: capstone

Description

/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

Attachments (1)

capstone.log (36.8 KB) - added by linuxjunkie999 5 years ago.

Download all attachments as: .zip

Change History (5)

Changed 5 years ago by linuxjunkie999

Attachment: capstone.log added

comment:1 Changed 5 years ago by linuxjunkie999

Owner: changed from aquynh@… to aquynh

comment:2 Changed 5 years ago by mf2k (Frank Schima)

Cc: aquynh@… removed
Keywords: leopard powerpc added; capstone Leopard PPC removed

comment:3 Changed 23 months ago by barracuda156

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.

comment:4 Changed 22 months ago by barracuda156

Resolution: fixed
Status: assignedclosed

In 33a7af6a2999e8789124cd60475e076ae3f1e92e/macports-ports (master):

capstone: fix build on <10.7
Fixes: #58624

Note: See TracTickets for help on using tickets.