radareorg / radare2

UNIX-like reverse engineering framework and command-line toolset
https://www.radare.org/
GNU Lesser General Public License v3.0
20.81k stars 3.02k forks source link

msys2 building - sh.exe segfaults on this line. #6469

Closed XVilka closed 7 years ago

XVilka commented 7 years ago
CreateProcess(c:\git\usr\bin\sh.exe,c:/git/usr/bin/sh.exe -c "for a in C:/tmp/radare2-master/libr/..//libr/anal/p/anal_6502.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_8051.o C:/tmp/radare2-master/libr/..//libr/anal/p/../../asm/arch/8051/8051.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_arc.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_arm_cs.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_arm_gnu.o C:/tmp/radare2-master/libr/..//libr/anal/p/../../asm/arch/arm/winedbg/be_arm.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_avr.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_bf.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_cr16.o C:/tmp/radare2-master/libr/..//libr/anal/p/../../asm/arch/cr16/cr16_disas.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_cris.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_dalvik.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_ebc.o C:/tmp/radare2-master/libr/..//libr/anal/p/../../asm/arch/ebc/ebc_disas.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_gb.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_h8300.o C:/tmp/radare2-master/libr/..//libr/anal/p/../../asm/arch/h8300/h8300_disas.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_i4004.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_i8080.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_java.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_m68k_cs.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_malbolge.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_mips_cs.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_mips_gnu.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_msp430.o C:/tmp/radare2-master/libr/..//libr/anal/p/../../asm/arch/msp430/msp430_disas.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_nios2.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_null.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_pic18c.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_ppc_cs.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_ppc_gnu.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_riscv.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_rsp.o C:/tmp/radare2-master/libr/..//libr/anal/p/../../asm/arch/rsp/rsp_idec.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_sh.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_snes.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_sparc_cs.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_sparc_gnu.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_sysz.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_tms320.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_tms320_c55x_plus.o C:/tmp/radare2-master/libr/..//libr/anal/p/../..//asm/arch/tms320/tms320_dasm.o C:/tmp/radare2-master/libr/..//libr/anal/p/../..//asm/arch/tms320/c55x_plus/ins.o C:/tmp/radare2-master/libr/..//libr/anal/p/../..//asm/arch/tms320/c55x_plus/c55plus.o C:/tmp/radare2-master/libr/..//libr/anal/p/../..//asm/arch/tms320/c55x_plus/c55plus_decode.o C:/tmp/radare2-master/libr/..//libr/anal/p/../..//asm/arch/tms320/c55x_plus/decode_funcs.o C:/tmp/radare2-master/libr/..//libr/anal/p/../..//asm/arch/tms320/c55x_plus/utils.o C:/tmp/radare2-master/libr/..//libr/anal/p/../..//asm/arch/tms320/c55x_plus/hashtable.o C:/tmp/radare2-master/libr/..//libr/anal/p/../..//asm/arch/tms320/c55x_plus/hashvector.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_v810.o C:/tmp/radare2-master/libr/..//libr/anal/p/../../asm/arch/v810/v810_disas.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_v850.o C:/tmp/radare2-master/libr/..//libr/anal/p/../../asm/arch/v850/v850_disas.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_vax.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_ws.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_x86_cs.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_x86_udis.o C:/tmp/radare2-master/libr/..//libr/anal/p/esil_x86_udis.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_xap.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_xcore_cs.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_z80.o meta.o reflines.o ref.o op.o fcn.o bb.o var.o cond.o value.o cc.o diff.o types.o fcnstore.o hint.o anal.o data.o xrefs.o esil.o sign.o anal_ex.o switch.o state.o cycles.o esil_stats.o esil_trace.o flirt.o labels.o esil2reil.o pin.o C:/tmp/radare2-master/libr/..//libr/asm/arch/xtensa/gnu/xtensa-modules.o C:/tmp/radare2-master/libr/..//libr/asm/arch/xtensa/gnu/xtensa-isa.o C:/tmp/radare2-master/libr/..//libr/asm/arch/xtensa/gnu/elf32-xtensa.o ../../shlr/udis86/decode.o ../../shlr/udis86/itab.o ../../shlr/udis86/syn-att.o ../../shlr/udis86/syn-intel.o ../../shlr/udis86/syn.o ../../shlr/udis86/udis86.o ; do \
  do=0 ; [ ! -e libr_anal.dll ] && do=1 ; \
  test $a -nt libr_anal.dll && do=1 ; \
  if [ $do = 1 ]; then \
    [ -n \"\" ] && \
    echo \"LD libr_anal.dll\" || \
    echo \"gcc -static-libgcc   c:/tmp/radare2-master/shlr/capstone/libcapstone.a c:/tmp/radare2-master/shlr/java/libr_java.a -shared -o libr_anal.dll -Wl,-soname=libr_anal.dll C:/tmp/radare2-master/libr/..//libr/anal/p/anal_6502.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_8051.o C:/tmp/radare2-master/libr/..//libr/anal/p/../../asm/arch/8051/8051.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_arc.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_arm_cs.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_arm_gnu.o C:/tmp/radare2-master/libr/..//libr/anal/p/../../asm/arch/arm/winedbg/be_arm.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_avr.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_bf.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_cr16.o C:/tmp/radare2-master/libr/..//libr/anal/p/../../asm/arch/cr16/cr16_disas.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_cris.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_dalvik.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_ebc.o C:/tmp/radare2-master/libr/..//libr/anal/p/../../asm/arch/ebc/ebc_disas.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_gb.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_h8300.o C:/tmp/radare2-master/libr/..//libr/anal/p/../../asm/arch/h8300/h8300_disas.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_i4004.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_i8080.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_java.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_m68k_cs.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_malbolge.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_mips_cs.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_mips_gnu.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_msp430.o C:/tmp/radare2-master/libr/..//libr/anal/p/../../asm/arch/msp430/msp430_disas.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_nios2.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_null.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_pic18c.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_ppc_cs.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_ppc_gnu.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_riscv.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_rsp.o C:/tmp/radare2-master/libr/..//libr/anal/p/../../asm/arch/rsp/rsp_idec.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_sh.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_snes.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_sparc_cs.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_sparc_gnu.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_sysz.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_tms320.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_tms320_c55x_plus.o C:/tmp/radare2-master/libr/..//libr/anal/p/../..//asm/arch/tms320/tms320_dasm.o C:/tmp/radare2-master/libr/..//libr/anal/p/../..//asm/arch/tms320/c55x_plus/ins.o C:/tmp/radare2-master/libr/..//libr/anal/p/../..//asm/arch/tms320/c55x_plus/c55plus.o C:/tmp/radare2-master/libr/..//libr/anal/p/../..//asm/arch/tms320/c55x_plus/c55plus_decode.o C:/tmp/radare2-master/libr/..//libr/anal/p/../..//asm/arch/tms320/c55x_plus/decode_funcs.o C:/tmp/radare2-master/libr/..//libr/anal/p/../..//asm/arch/tms320/c55x_plus/utils.o C:/tmp/radare2-master/libr/..//libr/anal/p/../..//asm/arch/tms320/c55x_plus/hashtable.o C:/tmp/radare2-master/libr/..//libr/anal/p/../..//asm/arch/tms320/c55x_plus/hashvector.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_v810.o C:/tmp/radare2-master/libr/..//libr/anal/p/../../asm/arch/v810/v810_disas.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_v850.o C:/tmp/radare2-master/libr/..//libr/anal/p/../../asm/arch/v850/v850_disas.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_vax.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_ws.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_x86_cs.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_x86_udis.o C:/tmp/radare2-master/libr/..//libr/anal/p/esil_x86_udis.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_xap.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_xcore_cs.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_z80.o meta.o reflines.o ref.o op.o fcn.o bb.o var.o cond.o value.o cc.o diff.o types.o fcnstore.o hint.o anal.o data.o xrefs.o esil.o sign.o anal_ex.o switch.o state.o cycles.o esil_stats.o esil_trace.o flirt.o labels.o esil2reil.o pin.o C:/tmp/radare2-master/libr/..//libr/asm/arch/xtensa/gnu/xtensa-modules.o C:/tmp/radare2-master/libr/..//libr/asm/arch/xtensa/gnu/xtensa-isa.o C:/tmp/radare2-master/libr/..//libr/asm/arch/xtensa/gnu/elf32-xtensa.o ../../shlr/udis86/decode.o ../../shlr/udis86/itab.o ../../shlr/udis86/syn-att.o ../../shlr/udis86/syn-intel.o ../../shlr/udis86/syn.o ../../shlr/udis86/udis86.o  -LC:/tmp/radare2-master/libr/util -LC:/tmp/radare2-master/libr/reg -LC:/tmp/radare2-master/libr/syscall -lr_util -lr_reg -lr_syscall   -fPIC     c:/tmp/radare2-master/shlr/capstone/libcapstone.a c:/tmp/radare2-master/shlr/java/libr_java.a\" ; \
    gcc -static-libgcc   c:/tmp/radare2-master/shlr/capstone/libcapstone.a c:/tmp/radare2-master/shlr/java/libr_java.a -shared -o libr_anal.dll -Wl,-soname=libr_anal.dll  -MD   -fPIC -g -Wall -D__WINDOWS__=1 -DCORELIB -Iarch -IC:/tmp/radare2-master/libr/..//shlr -IC:/tmp/radare2-master/libr/..//libr/asm/arch/include -Ic:/tmp/radare2-master/shlr/capstone/include -I../asm/arch/8051 -I../asm/arch/include -I../asm/arch/cr16/ -I../asm/arch/ebc/ -I arch/gb/ -I../asm/arch/h8300/ -I../asm/arch/msp430/ -I../asm/arch/rsp -I../asm/arch/v810/ -I../asm/arch/v850/ -I../asm/arch/x86/udis86 -I../../asm/arch/x86/udis86 -DHAVE_STRING_H=1 -IC:/tmp/radare2-master/libr/include C:/tmp/radare2-master/libr/..//libr/anal/p/anal_6502.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_8051.o C:/tmp/radare2-master/libr/..//libr/anal/p/../../asm/arch/8051/8051.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_arc.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_arm_cs.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_arm_gnu.o C:/tmp/radare2-master/libr/..//libr/anal/p/../../asm/arch/arm/winedbg/be_arm.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_avr.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_bf.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_cr16.o C:/tmp/radare2-master/libr/..//libr/anal/p/../../asm/arch/cr16/cr16_disas.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_cris.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_dalvik.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_ebc.o C:/tmp/radare2-master/libr/..//libr/anal/p/../../asm/arch/ebc/ebc_disas.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_gb.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_h8300.o C:/tmp/radare2-master/libr/..//libr/anal/p/../../asm/arch/h8300/h8300_disas.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_i4004.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_i8080.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_java.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_m68k_cs.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_malbolge.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_mips_cs.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_mips_gnu.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_msp430.o C:/tmp/radare2-master/libr/..//libr/anal/p/../../asm/arch/msp430/msp430_disas.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_nios2.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_null.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_pic18c.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_ppc_cs.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_ppc_gnu.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_riscv.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_rsp.o C:/tmp/radare2-master/libr/..//libr/anal/p/../../asm/arch/rsp/rsp_idec.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_sh.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_snes.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_sparc_cs.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_sparc_gnu.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_sysz.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_tms320.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_tms320_c55x_plus.o C:/tmp/radare2-master/libr/..//libr/anal/p/../..//asm/arch/tms320/tms320_dasm.o C:/tmp/radare2-master/libr/..//libr/anal/p/../..//asm/arch/tms320/c55x_plus/ins.o C:/tmp/radare2-master/libr/..//libr/anal/p/../..//asm/arch/tms320/c55x_plus/c55plus.o C:/tmp/radare2-master/libr/..//libr/anal/p/../..//asm/arch/tms320/c55x_plus/c55plus_decode.o C:/tmp/radare2-master/libr/..//libr/anal/p/../..//asm/arch/tms320/c55x_plus/decode_funcs.o C:/tmp/radare2-master/libr/..//libr/anal/p/../..//asm/arch/tms320/c55x_plus/utils.o C:/tmp/radare2-master/libr/..//libr/anal/p/../..//asm/arch/tms320/c55x_plus/hashtable.o C:/tmp/radare2-master/libr/..//libr/anal/p/../..//asm/arch/tms320/c55x_plus/hashvector.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_v810.o C:/tmp/radare2-master/libr/..//libr/anal/p/../../asm/arch/v810/v810_disas.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_v850.o C:/tmp/radare2-master/libr/..//libr/anal/p/../../asm/arch/v850/v850_disas.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_vax.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_ws.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_x86_cs.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_x86_udis.o C:/tmp/radare2-master/libr/..//libr/anal/p/esil_x86_udis.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_xap.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_xcore_cs.o C:/tmp/radare2-master/libr/..//libr/anal/p/anal_z80.o meta.o reflines.o ref.o op.o fcn.o bb.o var.o cond.o value.o cc.o diff.o types.o fcnstore.o hint.o anal.o data.o xrefs.o esil.o sign.o anal_ex.o switch.o state.o cycles.o esil_stats.o esil_trace.o flirt.o labels.o esil2reil.o pin.o C:/tmp/radare2-master/libr/..//libr/asm/arch/xtensa/gnu/xtensa-modules.o C:/tmp/radare2-master/libr/..//libr/asm/arch/xtensa/gnu/xtensa-isa.o C:/tmp/radare2-master/libr/..//libr/asm/arch/xtensa/gnu/elf32-xtensa.o ../../shlr/udis86/decode.o ../../shlr/udis86/itab.o ../../shlr/udis86/syn-att.o ../../shlr/udis86/syn-intel.o ../../shlr/udis86/syn.o ../../shlr/udis86/udis86.o  -LC:/tmp/radare2-master/libr/util -LC:/tmp/radare2-master/libr/reg -LC:/tmp/radare2-master/libr/syscall -lr_util -lr_reg -lr_syscall   -fPIC     c:/tmp/radare2-master/shlr/capstone/libcapstone.a c:/tmp/radare2-master/shlr/java/libr_java.a || exit 1; \
    [ -f \"C:/tmp/radare2-master/libr/stripsyms.sh\" ] && sh C:/tmp/radare2-master/libr/stripsyms.sh libr_anal.dll r_anal ; \
  break ; \
fi ; done",...)
radare commented 7 years ago

if it's segfault it's msys fault, not r2

XVilka commented 7 years ago

@radare will ping msys2 devs, please keep it open to track things down. This code seems to work (from IRC):

71a72
> TMPSHFILE:=$(shell mktemp)
73,83c74,86
<       @for a in ${OBJS} ${SHARED_OBJ} ${SRC}; do \
<         do=0 ; [ ! -e ${LIBSO} ] && do=1 ; \
<         test $$a -nt ${LIBSO} && do=1 ; \
<         if [ $$do = 1 ]; then \
<           [ -n "${SILENT}" ] && \
<           echo "LD $(LIBSO)" || \
<           echo "${CC_LIB} ${LIBNAME} ${OBJS} ${SHARED_OBJ} ${LINK} ${LDFLAGS}" ; \
<           ${CC_LIB} ${LIBNAME} ${CFLAGS} ${OBJS} ${SHARED_OBJ} ${LINK} ${LDFLAGS} || exit 1; \
<           [ -f "$(LIBR)/stripsyms.sh" ] && sh $(LIBR)/stripsyms.sh ${LIBSO} ${NAME} ; \
<         break ; \
<       fi ; done
---
>       echo "for a in ${OBJS} ${SHARED_OBJ} ${SRC}; do" >>${TMPSHFILE}
>       echo "  do=0 ; [ ! -e ${LIBSO} ] && do=1 ;" >>${TMPSHFILE}
>       echo "  test \\$$a -nt ${LIBSO} && do=1 ;" >>${TMPSHFILE}
>       echo "  if [ \\$$do = 1 ]; then" >>${TMPSHFILE}
>       echo "    [ -n \"${SILENT}\" ] &&"  >>${TMPSHFILE}
>       echo "    echo \"LD $(LIBSO)\" ||"  >>${TMPSHFILE}
>       echo "    echo \"${CC_LIB} ${LIBNAME} ${OBJS} ${SHARED_OBJ} ${LINK} ${LDFLAGS}\" ;" >>${TMPSHFILE}
>       echo "    ${CC_LIB} ${LIBNAME} ${CFLAGS} ${OBJS} ${SHARED_OBJ} ${LINK} ${LDFLAGS} || exit 1;" >>${TMPSHFILE}
>       echo "    [ -f \"$(LIBR)/stripsyms.sh\" ] && sh $(LIBR)/stripsyms.sh ${LIBSO} ${NAME} ;" >>${TMPSHFILE}
>       echo "  break ;" >>${TMPSHFILE}
>       echo "fi ; done" >>${TMPSHFILE}
>       @sh ${TMPSHFILE}
>       @rm ${TMPSHFILE}
radare commented 7 years ago

Wtf a non unified diff in 2017?

On 11 Jan 2017, at 18:38, Anton Kochkov notifications@github.com wrote:

@radare will ping msys2 devs, please keep it open to track things down. This code seems to work (from IRC):

71a72

TMPSHFILE:=$(shell mktemp) 73,83c74,86 < @for a in ${OBJS} ${SHARED_OBJ} ${SRC}; do \ < do=0 ; [ ! -e ${LIBSO} ] && do=1 ; \ < test $$a -nt ${LIBSO} && do=1 ; \ < if [ $$do = 1 ]; then \ < [ -n "${SILENT}" ] && \ < echo "LD $(LIBSO)" || \ < echo "${CC_LIB} ${LIBNAME} ${OBJS} ${SHARED_OBJ} ${LINK} ${LDFLAGS}" ; \ < ${CC_LIB} ${LIBNAME} ${CFLAGS} ${OBJS} ${SHARED_OBJ} ${LINK} ${LDFLAGS} || exit 1; \ < [ -f "$(LIBR)/stripsyms.sh" ] && sh $(LIBR)/stripsyms.sh ${LIBSO} ${NAME} ; \ < break ; \ < fi ; done

  echo "for a in ${OBJS} ${SHARED_OBJ} ${SRC}; do" >>${TMPSHFILE}
  echo "  do=0 ; [ ! -e ${LIBSO} ] && do=1 ;" >>${TMPSHFILE}
  echo "  test \\$$a -nt ${LIBSO} && do=1 ;" >>${TMPSHFILE}
  echo "  if [ \\$$do = 1 ]; then" >>${TMPSHFILE}
  echo "    [ -n \"${SILENT}\" ] &&"  >>${TMPSHFILE}
  echo "    echo \"LD $(LIBSO)\" ||"  >>${TMPSHFILE}
  echo "    echo \"${CC_LIB} ${LIBNAME} ${OBJS} ${SHARED_OBJ} ${LINK} ${LDFLAGS}\" ;" >>${TMPSHFILE}
  echo "    ${CC_LIB} ${LIBNAME} ${CFLAGS} ${OBJS} ${SHARED_OBJ} ${LINK} ${LDFLAGS} || exit 1;" >>${TMPSHFILE}
  echo "    [ -f \"$(LIBR)/stripsyms.sh\" ] && sh $(LIBR)/stripsyms.sh ${LIBSO} ${NAME} ;" >>${TMPSHFILE}
  echo "  break ;" >>${TMPSHFILE}
  echo "fi ; done" >>${TMPSHFILE}
  @sh ${TMPSHFILE}
  @rm ${TMPSHFILE}

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

wargio commented 7 years ago

on my version of msys2 (latest: 01/28/2017) it doesn't crash. it just builds.