Skip to content
This repository has been archived by the owner on May 18, 2022. It is now read-only.

Unable to build libVEX or Couldn't process pyvex headers - set CPP env var #96

Open
dpnishant opened this issue Feb 28, 2017 · 2 comments

Comments

@dpnishant
Copy link

Similar to #88

with CC env

➜  ~ env CC=/usr/local/bin/gcc-6 pip install angr -I --no-cache-dir --no-binary all

... snipped ...

Collecting simuvex>=6.7.1.31 (from angr)
  Downloading simuvex-6.7.1.31.tar.gz (188kB)
    100% |████████████████████████████████| 194kB 4.6MB/s 
    Complete output from command python setup.py egg_info:
    make -f Makefile-gcc
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/ir_defs.o priv/ir_defs.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/ir_match.o priv/ir_match.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/ir_opt.o priv/ir_opt.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/ir_inject.o priv/ir_inject.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/main_main.o priv/main_main.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/main_globals.o priv/main_globals.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/main_util.o priv/main_util.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/s390_disasm.o priv/s390_disasm.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/tilegx_disasm.o priv/tilegx_disasm.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/host_x86_defs.o priv/host_x86_defs.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/host_amd64_defs.o priv/host_amd64_defs.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/host_arm_defs.o priv/host_arm_defs.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/host_arm64_defs.o priv/host_arm64_defs.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/host_ppc_defs.o priv/host_ppc_defs.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/host_s390_defs.o priv/host_s390_defs.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/host_mips_defs.o priv/host_mips_defs.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/host_tilegx_defs.o priv/host_tilegx_defs.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/host_x86_isel.o priv/host_x86_isel.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/host_amd64_isel.o priv/host_amd64_isel.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/host_arm_isel.o priv/host_arm_isel.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/host_arm64_isel.o priv/host_arm64_isel.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/host_ppc_isel.o priv/host_ppc_isel.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/host_s390_isel.o priv/host_s390_isel.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/host_mips_isel.o priv/host_mips_isel.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/host_tilegx_isel.o priv/host_tilegx_isel.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/host_generic_maddf.o priv/host_generic_maddf.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/host_generic_regs.o priv/host_generic_regs.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/host_generic_simd64.o priv/host_generic_simd64.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/host_generic_simd128.o priv/host_generic_simd128.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/host_generic_simd256.o priv/host_generic_simd256.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/host_generic_reg_alloc2.o priv/host_generic_reg_alloc2.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/guest_generic_x87.o priv/guest_generic_x87.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/guest_generic_bb_to_IR.o priv/guest_generic_bb_to_IR.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/guest_x86_helpers.o priv/guest_x86_helpers.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/guest_amd64_helpers.o priv/guest_amd64_helpers.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/guest_arm_helpers.o priv/guest_arm_helpers.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/guest_arm64_helpers.o priv/guest_arm64_helpers.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/guest_ppc_helpers.o priv/guest_ppc_helpers.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/guest_s390_helpers.o priv/guest_s390_helpers.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/guest_mips_helpers.o priv/guest_mips_helpers.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/guest_tilegx_helpers.o priv/guest_tilegx_helpers.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/guest_x86_toIR.o priv/guest_x86_toIR.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/guest_amd64_toIR.o priv/guest_amd64_toIR.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/guest_arm_toIR.o priv/guest_arm_toIR.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/guest_arm64_toIR.o priv/guest_arm64_toIR.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/guest_ppc_toIR.o priv/guest_ppc_toIR.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/guest_s390_toIR.o priv/guest_s390_toIR.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/guest_mips_toIR.o priv/guest_mips_toIR.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/guest_tilegx_toIR.o priv/guest_tilegx_toIR.c
    /usr/local/bin/gcc-6 -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/e4c_lite.o priv/e4c_lite.c
    rm -f libvex.a
    ar crus libvex.a priv/ir_defs.o priv/ir_match.o priv/ir_opt.o priv/ir_inject.o priv/main_main.o priv/main_globals.o priv/main_util.o priv/s390_disasm.o priv/tilegx_disasm.o priv/host_x86_defs.o priv/host_amd64_defs.o priv/host_arm_defs.o priv/host_arm64_defs.o priv/host_ppc_defs.o priv/host_s390_defs.o priv/host_mips_defs.o priv/host_tilegx_defs.o priv/host_x86_isel.o priv/host_amd64_isel.o priv/host_arm_isel.o priv/host_arm64_isel.o priv/host_ppc_isel.o priv/host_s390_isel.o priv/host_mips_isel.o priv/host_tilegx_isel.o priv/host_generic_maddf.o priv/host_generic_regs.o priv/host_generic_simd64.o priv/host_generic_simd128.o priv/host_generic_simd256.o priv/host_generic_reg_alloc2.o priv/guest_generic_x87.o priv/guest_generic_bb_to_IR.o priv/guest_x86_helpers.o priv/guest_amd64_helpers.o priv/guest_arm_helpers.o priv/guest_arm64_helpers.o priv/guest_ppc_helpers.o priv/guest_s390_helpers.o priv/guest_mips_helpers.o priv/guest_tilegx_helpers.o priv/guest_x86_toIR.o priv/guest_amd64_toIR.o priv/guest_arm_toIR.o priv/guest_arm64_toIR.o priv/guest_ppc_toIR.o priv/guest_s390_toIR.o priv/guest_mips_toIR.o priv/guest_tilegx_toIR.o priv/e4c_lite.o
    gcc -c -O2 -shared -fPIC --std=c99 -I ../vex-master/pub pyvex.c
    gcc -c -O2 -shared -fPIC --std=c99 -I ../vex-master/pub logging.c
    clang: warning: argument unused during compilation: '-shared'clang:
    warning: argument unused during compilation: '-shared'
    pyvex.c:142:14: warning: incompatible pointer types passing 'void (*)(void)' to parameter of type 'void (*)(void) __attribute__((noreturn))' [-Wincompatible-pointer-types]
            LibVEX_Init(&failure_exit,
                        ^~~~~~~~~~~~~
    ../vex-master/pub/libvex.h:565:11: note: passing argument to parameter 'failure_exit' here
       void (*failure_exit) ( void ),
              ^
    pyvex.c:435:2: warning: add explicit braces to avoid dangling else [-Wdangling-else]
            catch (VEXError)
            ^
    ../vex-master/pub/e4c_lite.h:27:22: note: expanded from macro 'catch'
    # define catch(type) E4C_CATCH(type)
                         ^
    ../vex-master/pub/e4c_lite.h:63:25: note: expanded from macro 'E4C_CATCH'
    #define E4C_CATCH(type) else if(e4c.frame[e4c.frames].stage == e4c_catching && E4C_IS_INSTANCE_OF(type) && e4c_hook(1))
                            ^
    pyvex.c:465:2: warning: add explicit braces to avoid dangling else [-Wdangling-else]
            catch (VEXError)
            ^
    ../vex-master/pub/e4c_lite.h:27:22: note: expanded from macro 'catch'
    # define catch(type) E4C_CATCH(type)
                         ^
    ../vex-master/pub/e4c_lite.h:63:25: note: expanded from macro 'E4C_CATCH'
    #define E4C_CATCH(type) else if(e4c.frame[e4c.frames].stage == e4c_catching && E4C_IS_INSTANCE_OF(type) && e4c_hook(1))
                            ^
    3 warnings generated.
    gcc -O2 -shared -fPIC --std=c99 -I ../vex-master/pub -o libpyvex.dylib pyvex.o logging.o ../vex-master/libvex.a -Wl,-install_name,libpyvex.dylib
    ar rcs libpyvex.a pyvex.o logging.o
    No handlers could be found for logger "cffier"
    Exception("Couldn't process pyvex headers - set CPP env var",)
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/f1/1w6x0njj6tnfs68s1mdys9br393wb7/T/pip-build-_ws0vL/simuvex/setup.py", line 117, in <module>
        'simuvex': ['lib/*']
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 111, in setup
        _setup_distribution = dist = klass(attrs)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/dist.py", line 268, in __init__
        self.fetch_build_eggs(attrs['setup_requires'])
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/dist.py", line 313, in fetch_build_eggs
        replace_conflicting=True,
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 843, in resolve
        dist = best[req.key] = env.best_match(req, ws, installer)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 1088, in best_match
        return self.obtain(req, installer)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 1100, in obtain
        return installer(requirement)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/dist.py", line 380, in fetch_build_egg
        return cmd.easy_install(req)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/easy_install.py", line 638, in easy_install
        return self.install_item(spec, dist.location, tmpdir, deps)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/easy_install.py", line 668, in install_item
        dists = self.install_eggs(spec, download, tmpdir)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/easy_install.py", line 851, in install_eggs
        return self.build_and_install(setup_script, setup_base)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/easy_install.py", line 1079, in build_and_install
        self.run_setup(setup_script, setup_base, args)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/easy_install.py", line 1065, in run_setup
        run_setup(setup_script, args)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/sandbox.py", line 240, in run_setup
        raise
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/contextlib.py", line 35, in __exit__
        self.gen.throw(type, value, traceback)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/sandbox.py", line 193, in setup_context
        yield
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/contextlib.py", line 35, in __exit__
        self.gen.throw(type, value, traceback)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/sandbox.py", line 164, in save_modules
        saved_exc.resume()
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/sandbox.py", line 139, in resume
        compat.reraise(type, exc, self._tb)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/sandbox.py", line 152, in save_modules
        yield saved
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/sandbox.py", line 193, in setup_context
        yield
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/sandbox.py", line 237, in run_setup
        DirectorySandbox(setup_dir).run(runner)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/sandbox.py", line 267, in run
        return func()
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/sandbox.py", line 236, in runner
        _execfile(setup_script, ns)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/sandbox.py", line 46, in _execfile
        exec(code, globals, locals)
      File "/var/folders/f1/1w6x0njj6tnfs68s1mdys9br393wb7/T/easy_install-IFlia4/pyvex-6.7.1.31/setup.py", line 143, in <module>
    
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 151, in setup
        dist.run_commands()
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
        self.run_command(cmd)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
        cmd_obj.run()
      File "/var/folders/f1/1w6x0njj6tnfs68s1mdys9br393wb7/T/easy_install-IFlia4/pyvex-6.7.1.31/setup.py", line 118, in run
        }
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 326, in run_command
        self.distribution.run_command(command)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
        cmd_obj.run()
      File "/var/folders/f1/1w6x0njj6tnfs68s1mdys9br393wb7/T/easy_install-IFlia4/pyvex-6.7.1.31/setup.py", line 100, in run
        packages=packages,
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 349, in execute
        util.execute(func, args, msg, dry_run=self.dry_run)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/util.py", line 309, in execute
        func(*args)
      File "/var/folders/f1/1w6x0njj6tnfs68s1mdys9br393wb7/T/easy_install-IFlia4/pyvex-6.7.1.31/setup.py", line 90, in _build_ffi
        sys.argv.append('manylinux1_' + platform.machine())
      File "/var/folders/f1/1w6x0njj6tnfs68s1mdys9br393wb7/T/easy_install-IFlia4/pyvex-6.7.1.31/make_ffi.py", line 83, in doit
    Exception: Couldn't process pyvex headers - set CPP env var
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/f1/1w6x0njj6tnfs68s1mdys9br393wb7/T/pip-build-_ws0vL/simuvex/
➜  ~ 

without CC env

➜  ~ pip install angr -I --no-cache-dir --no-binary all

... snipped ...


Collecting simuvex>=6.7.1.31 (from angr)
  Downloading simuvex-6.7.1.31.tar.gz (188kB)
    100% |████████████████████████████████| 194kB 10.5MB/s 
    Complete output from command python setup.py egg_info:
    make -f Makefile-gcc
    cc -c -Wall -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wmissing-declarations -Wwrite-strings -Wformat -Wformat-security -std=gnu99 -fpic -w  -g -O2 -fstrict-aliasing -malign-double -Ipub -Ipriv -o priv/ir_defs.o priv/ir_defs.c
    clang: error: unknown argument: '-malign-double'
    make[1]: *** [priv/ir_defs.o] Error 1
    make: *** [all] Error 2
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/f1/1w6x0njj6tnfs68s1mdys9br393wb7/T/pip-build-L37HM5/simuvex/setup.py", line 117, in <module>
        'simuvex': ['lib/*']
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 111, in setup
        _setup_distribution = dist = klass(attrs)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/dist.py", line 268, in __init__
        self.fetch_build_eggs(attrs['setup_requires'])
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/dist.py", line 313, in fetch_build_eggs
        replace_conflicting=True,
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 843, in resolve
        dist = best[req.key] = env.best_match(req, ws, installer)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 1088, in best_match
        return self.obtain(req, installer)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 1100, in obtain
        return installer(requirement)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/dist.py", line 380, in fetch_build_egg
        return cmd.easy_install(req)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/easy_install.py", line 638, in easy_install
        return self.install_item(spec, dist.location, tmpdir, deps)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/easy_install.py", line 668, in install_item
        dists = self.install_eggs(spec, download, tmpdir)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/easy_install.py", line 851, in install_eggs
        return self.build_and_install(setup_script, setup_base)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/easy_install.py", line 1079, in build_and_install
        self.run_setup(setup_script, setup_base, args)
      File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/easy_install.py", line 1067, in run_setup
        raise DistutilsError("Setup script exited with %s" % (v.args[0],))
    distutils.errors.DistutilsError: Setup script exited with error: Unable to build libVEX.
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/f1/1w6x0njj6tnfs68s1mdys9br393wb7/T/pip-build-L37HM5/simuvex/
➜  ~ 
@rhelmot
Copy link
Member

rhelmot commented Mar 1, 2017

More closely related to angr/pyvex#56.

@mattrepl @Manouchehri reminder that shit is broken

@drone29a
Copy link
Contributor

drone29a commented Mar 1, 2017 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants