<cfbolz>
fijal: also, could you please push the merge to py3.8?
<mattip>
I sidestepped the find_library problem for now by using "--translationmodules" to get a minimum pypy
<mattip>
but now I get "[translation:ERROR] RuntimeError: ffi_prep_cif_var failed"
<mattip>
fijal: did you do something to get a different libffi?
otisolsen70 has quit [Quit: Leaving]
otisolsen70 has joined #pypy
<fijal>
mattip: I think you kinda want to compile with system libffi?
<fijal>
cfbolz: I was scared :) but I can
<fijal>
I don't know how I got system libffi, but how did you get a python 2 in the first place? did you use the apple provided one?
<LarstiQ>
mattip: intel macs 11.6.5 and 12.3.1, pythons 3.9.13, 3.10.2 and 2.7.18 "ld: symbol(s) not found for architecture x86_64" Might be an issue of not finding expat at all
<fijal>
cfbolz: right, we did not decide on OSX_MIN_VERSION
<mattip>
LarstiQ: I think we found the problem with expat: CPython has fixes for ctypes that are not backported to CPython2.7.18
<LarstiQ>
mattip: aaah
<mattip>
LarstiQ: but are backported to PyPy2.7.18+, so if we can get a pypy2 bootstrapped the problem will be gone
<mattip>
fijal: I am stuck. The python2 I have from pyenv has a broken ctypes and cannot translate, something about libffi and c_open and the error I showed above
<fijal>
yeah I'm pretty sure I did not use pyenv
<mattip>
fijal: can you suggest how I can replicate your work? Where can I get a python2 that can translate?
<fijal>
mattip: have you tried the apple-supplied one?
<mattip>
apple does not supply a python2
<fijal>
I'm pretty sure I used that one
<fijal>
yes it does?
<fijal>
do you have Moneterey 12.0.1 or something else?
<mattip>
monterey 12.4
<mattip>
what is the path to your python2?
<fijal>
mattip: /usr/bin/python
<fijal>
can you try to build yourself one --with-system-libffi or something like that?
<mattip>
zsh: no such file or directory: /usr/bin/python
<fijal>
--using-system-libffi?
<fijal>
but there were a few issues when I tried compiling
<fijal>
hm
<fijal>
mattip: can I give you my pypy binary simply?
<mattip>
yes, zip up the whole thing and put it on buildbot.pypy.org?
<fijal>
"the whole thing" being?
<fijal>
we have release scripts right?
<mattip>
stdlib since ctypes is apparently different?
<mattip>
pypy/release/package.py should do it
<mattip>
it expects pypy-c, libpypy-c.* to be in pypy/goal
<fijal>
ok, I'm trying
<fijal>
requires libtcl
<fijal>
who does require that?
<fijal>
mattip: can you just copy pypy-c and libpypy-c.dylib from ~fijal/tmp on baroque software?
<fijal>
the rest should be identical
<fijal>
and let's see if you can run it
<mattip>
ok
<fijal>
I don't quite understand why even without tkinter libtcl tries to be there
<fijal>
the whole resuable library story is both completely broken AND utterly bonkers by now
<fijal>
"let me save 200k of a library file here with tons of fighting" "but let's ship 2G video file for no reason at all"
<LarstiQ>
it's not just about saving space of course, also update management. But yeah
<mattip>
can you put the binaries on buildbot.pypy.org? I don't have access to baroquesoftware