angr / pyvex

Python bindings for Valgrind's VEX IR.
BSD 2-Clause "Simplified" License
343 stars 116 forks source link

No such file or directory: '/usr/ports/security/py-pyvex/work-py39/pyvex-9.2.39/pyvex_c/libpyvex.so' #302

Closed yurivict closed 11 months ago

yurivict commented 1 year ago

Description

Version 9.2.39 fails to build with both distutils and build:

===>  Building for py39-pyvex-9.2.39
(cd /usr/ports/security/py-pyvex/work-py39/pyvex-9.2.39; /usr/bin/env EXTRA_CFLAGS="-O2 -pipe  -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -std=c99 " XDG_DATA_HOME=/usr/ports/security/py-pyvex/work-py39  XDG_CONFIG_HOME=/usr/ports/security/py-pyvex/work-py39  XDG_CACHE_HOME=/usr/ports/security/py-pyvex/work-py39/.cache  HOME=/usr/ports/security/py-pyvex/work-py39 PATH=/usr/local/libexec/ccache:/usr/ports/security/py-pyvex/work-py39/.bin:/home/yuri/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin PKG_CONFIG_LIBDIR=/usr/ports/security/py-pyvex/work-py39/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES LDSHARED="cc -shared" PYTHONDONTWRITEBYTECODE= PYTHONOPTIMIZE= PREFIX=/usr/local  LOCALBASE=/usr/local  CC="cc" CFLAGS="-O2 -pipe  -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -std=c99 "  CPP="cpp" CPPFLAGS="-isystem /usr/local/include"  LDFLAGS=" -fstack-protector-strong " LIBS="-L/usr/local/lib"  CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include "  MANPREFIX="/usr/local" CCACHE_DIR="/tmp/.ccache" BSD_INSTALL_PROGRAM="install  -s -m 555"  BSD_INSTALL_LIB="install  -s -m 0644"  BSD_INSTALL_SCRIPT="install  -m 555"  BSD_INSTALL_DATA="install  -m 0644"  BSD_INSTALL_MAN="install  -m 444" /usr/local/bin/python3.9 -c  "import sys; import setuptools;  __file__='setup.py'; sys.argv[0]='setup.py';  exec(compile(open(__file__, 'rb').read().replace(b'\\r\\n', b'\\n'), __file__, 'exec'))" build )
running build
Building libVEX
gmake[1]: Entering directory '/usr/ports/security/py-pyvex/work-py39/pyvex-9.2.39/vex'
gmake[1]: Nothing to be done for 'all'.
gmake[1]: Leaving directory '/usr/ports/security/py-pyvex/work-py39/pyvex-9.2.39/vex'
Building libpyvex
gmake[1]: Entering directory '/usr/ports/security/py-pyvex/work-py39/pyvex-9.2.39/pyvex_c'
gmake[1]: Nothing to be done for 'all'.
gmake[1]: Leaving directory '/usr/ports/security/py-pyvex/work-py39/pyvex-9.2.39/pyvex_c'
Copying libraries and headers
error: [Errno 2] No such file or directory: '/usr/ports/security/py-pyvex/work-py39/pyvex-9.2.39/pyvex_c/libpyvex.so'
*** Error code 1

Steps to reproduce the bug

No response

Environment

Python-3.9 FreeBSD 13.1

Additional context

No response

rhelmot commented 1 year ago

Nobody on the team has access to a FreeBSD machine. Can you try to diagnose the failure a bit more for us?

rhelmot commented 1 year ago

shot in the dark - I've pushed https://github.com/angr/pyvex/commit/241e44102f8b86c9158bb8c6297c36c4f2ea1235. Can you check if it works now?

twizmwazin commented 11 months ago

I don't know how to test any third-party packaging, but I tested building and installing pyvex, as well as running its test suite on a FreeBSD 14 VM and it seems to work as expected once gmake is installed.