Hi dear list, I have hard time to fork the project thus I m sendng this little patch to fix FreeBSD build.
Hope it is helpful. Kind regards.
diff -r 353420330f35 rpython/rlib/rvmprof/cintf.py --- a/rpython/rlib/rvmprof/cintf.py Fri May 18 10:10:24 2018 +0200 +++ b/rpython/rlib/rvmprof/cintf.py Fri May 18 14:07:30 2018 +0000 @@ -17,9 +17,9 @@ # vmprof works only on x86 for now IS_SUPPORTED = False -if sys.platform in ('darwin', 'linux', 'linux2'): +if sys.platform in ('darwin', 'linux', 'linux2', 'freebsd10', 'freebsd11'): try: - IS_SUPPORTED = detect_cpu.autodetect().startswith('x86') + IS_SUPPORTED = detect_cpu.autodetect().startswith('x86') or detect_cpu.autodetect().startswith('amd64') except detect_cpu.ProcessorAutodetectError: pass diff -r 353420330f35 rpython/rlib/rvmprof/src/shared/vmprof_unix.h --- a/rpython/rlib/rvmprof/src/shared/vmprof_unix.h Fri May 18 10:10:24 2018 +0200 +++ b/rpython/rlib/rvmprof/src/shared/vmprof_unix.h Fri May 18 14:07:30 2018 +0000 @@ -24,6 +24,9 @@ #include "vmprof_mt.h" +#ifdef __FreeBSD__ +#include <ucontext.h> +#endif #include <signal.h> RPY_EXTERN void vmprof_ignore_signals(int ignored);
_______________________________________________ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev