New issue 2262: [patch] PyPy-5.0.0 fails to build on FreeBSD/i386 https://bitbucket.org/pypy/pypy/issues/2262/patch-pypy-500-fails-to-build-on-freebsd
David Naylor: PyPy fails to build on 32bit FreeBSD with the following error (fixed with the attached patch): [translation:ERROR] CompilationError: CompilationError(err=""" [translation:ERROR] In file included from /wrkdirs/usr/ports/lang/pypy/work/pypy-5.0.0-src/rpython/rlib/rvmprof/src/rvmprof.c:24: [translation:ERROR] In file included from /wrkdirs/usr/ports/lang/pypy/work/pypy-5.0.0-src/rpython/rlib/rvmprof/src/vmprof_main.h:36: [translation:ERROR] /wrkdirs/usr/ports/lang/pypy/work/pypy-5.0.0-src/rpython/rlib/rvmprof/src/vmprof_getpc.h:154:27: error: no member named 'mc_rip' in 'struct __mcontext'; did you mean 'mc_eip'? [translation:ERROR] return signal_ucontext->PC_FROM_UCONTEXT; // defined in config.h [translation:ERROR] ^ [translation:ERROR] /wrkdirs/usr/ports/lang/pypy/work/pypy-5.0.0-src/rpython/rlib/rvmprof/src/vmprof_config.h:3:38: note: expanded from macro 'PC_FROM_UCONTEXT' [translation:ERROR] #define PC_FROM_UCONTEXT uc_mcontext.mc_rip [translation:ERROR] ^ [translation:ERROR] /usr/include/x86/ucontext.h:64:15: note: 'mc_eip' declared here [translation:ERROR] __register_t mc_eip; [translation:ERROR] ^ [translation:ERROR] In file included from /wrkdirs/usr/ports/lang/pypy/work/pypy-5.0.0-src/rpython/rlib/rvmprof/src/rvmprof.c:24: [translation:ERROR] /wrkdirs/usr/ports/lang/pypy/work/pypy-5.0.0-src/rpython/rlib/rvmprof/src/vmprof_main.h:158:57: warning: incompatible pointer types passing 'void *[]' to parameter of type 'intptr_t *' (aka 'int *') [-Wincompatible-pointer-types] [translation:ERROR] depth = get_stack_trace(get_vmprof_stack(), st->stack, [translation:ERROR] ^~~~~~~~~ [translation:ERROR] /wrkdirs/usr/ports/lang/pypy/work/pypy-5.0.0-src/rpython/rlib/rvmprof/src/vmprof_common.h:80:61: note: passing argument to parameter 'result' here [translation:ERROR] static int get_stack_trace(vmprof_stack_t* stack, intptr_t *result, int max_depth, intptr_t pc) [translation:ERROR] ^ [translation:ERROR] In file included from /wrkdirs/usr/ports/lang/pypy/work/pypy-5.0.0-src/rpython/rlib/rvmprof/src/rvmprof.c:24: [translation:ERROR] /wrkdirs/usr/ports/lang/pypy/work/pypy-5.0.0-src/rpython/rlib/rvmprof/src/vmprof_main.h:161:32: warning: incompatible integer to pointer conversion assigning to 'void *' from 'intptr_t' (aka 'int') [-Wint-conversion] [translation:ERROR] st->stack[depth++] = get_current_thread_id(); [translation:ERROR] ^ ~~~~~~~~~~~~~~~~~~~~~~~ [translation:ERROR] /wrkdirs/usr/ports/lang/pypy/work/pypy-5.0.0-src/rpython/rlib/rvmprof/src/vmprof_main.h:295:20: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] [translation:ERROR] if (_write_all(&marker, 1) < 0) [translation:ERROR] ^~~~~~~ [translation:ERROR] /wrkdirs/usr/ports/lang/pypy/work/pypy-5.0.0-src/rpython/rlib/rvmprof/src/vmprof_main.h:279:35: note: passing argument to parameter 'buf' here [translation:ERROR] static int _write_all(const char *buf, size_t bufsize) [translation:ERROR] ^ [translation:ERROR] 3 warnings and 1 error generated. [translation:ERROR] """) [translation] start debugger... _______________________________________________ pypy-issue mailing list pypy-issue@python.org https://mail.python.org/mailman/listinfo/pypy-issue