Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyvex build fails - "No such file or directory: 'pyvex_c'" #18

Closed
kickingbull opened this issue Oct 15, 2015 · 4 comments
Closed

pyvex build fails - "No such file or directory: 'pyvex_c'" #18

kickingbull opened this issue Oct 15, 2015 · 4 comments

Comments

@kickingbull
Copy link

I was installing angr via "pip install angr". During the process of building pyvex I encountered the following error:

Running setup.py install for pyvex
  Running command ~/.virtualenvs/angr/bin/python2.7 -c "import setuptools;__file__='~/.virtualenvs/angr/build/pyvex/setup.py';execfile(__file__)" install --single-version-externally-managed --record /tmp/pip-3igx0L-record/install-record.txt --install-headers ~/.virtualenvs/angr/include/site/python2.7
  running install
  running build
  Building libVEX
  EXTRA_CFLAGS="-fPIC -w" make -f Makefile-gcc
  make[1]: Entering directory `~/.virtualenvs/angr/build/pyvex/vex-dev'
  cc -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 -Ipub -Ipriv -o priv/ir_defs.o \
                       -c priv/ir_defs.c

  . . . <snip> . . .

  cc -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 -Ipub -Ipriv -o priv/e4c_lite.o \
                     -c 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/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_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_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_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/e4c_lite.o

  make[1]: Leaving directory `~/.virtualenvs/angr/build/pyvex/vex-dev'

  Building pyvex-static

  error: [Errno 2] No such file or directory: 'pyvex_c'
@zardus
Copy link
Member

zardus commented Oct 15, 2015

Hello,

Are you running Ubuntu 12.04, by any chance? What version of pip do you
have?
On Oct 15, 2015 2:25 PM, "kickingbull" notifications@github.com wrote:

I was installing angr via "pip install angr". During the process of
building pyvex I encountered the following error:

Running setup.py install for pyvex
Running command /.virtualenvs/angr/bin/python2.7 -c "import setuptools;file='/.virtualenvs/angr/build/pyvex/setup.py';execfile(file)" install --single-version-externally-managed --record /tmp/pip-3igx0L-record/install-record.txt --install-headers /.virtualenvs/angr/include/site/python2.7
running install
running build
Building libVEX
EXTRA_CFLAGS="-fPIC -w" make -f Makefile-gcc
make[1]: Entering directory `
/.virtualenvs/angr/build/pyvex/vex-dev'
cc -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 -Ipub -Ipriv -o priv/ir_defs.o
-c priv/ir_defs.c

. . . . . .

cc -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 -Ipub -Ipriv -o priv/e4c_lite.o
-c 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/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_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_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_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/e4c_lite.o

make[1]: Leaving directory `~/.virtualenvs/angr/build/pyvex/vex-dev'

Building pyvex-static

error: [Errno 2] No such file or directory: 'pyvex_c'


Reply to this email directly or view it on GitHub
#18.

@kickingbull
Copy link
Author

Hi Zardus,

I'm using RHEL 6 (Linux 2.6.32-504.12.2.el6.x86_64) and pip version 0.8.3 and python version 2.7.10.

@zardus
Copy link
Member

zardus commented Oct 20, 2015

So at the very least, you'll definitely need up upgrade pip. In your
virtualenv, do pip install -I pip. The rest of the install might work
then, but my guess is that RHEL6 is still way too old. We've never tried
angr on redhat, in general...

I would suggest a docker install, but it looks like docker is only
supported by RHEL7 :-(

On Fri, Oct 16, 2015 at 5:50 AM, kickingbull notifications@github.com
wrote:

Hi Zardus,

I'm using RHEL 6 (Linux 2.6.32-504.12.2.el6.x86_64) and pip version 0.8.3
and python version 2.7.10.


Reply to this email directly or view it on GitHub
#18 (comment).

@zardus
Copy link
Member

zardus commented Dec 16, 2015

Timing this one out.

@zardus zardus closed this as completed Dec 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants