cfbolz changed the topic of #pypy to: PyPy, the flexible snake (IRC logs: https://botbot.me/freenode/pypy/ ) | use cffi for calling C | "the modern world where network packets and compiler optimizations are effectively hostile"
rokujyouhitoma has joined #pypy
marr has quit [Ping timeout: 260 seconds]
rokujyouhitoma has quit [Ping timeout: 248 seconds]
mattip has quit [Ping timeout: 240 seconds]
mattip has joined #pypy
rokujyouhitoma has joined #pypy
rokujyouhitoma has quit [Ping timeout: 240 seconds]
forgottenone has joined #pypy
rokujyouhitoma has joined #pypy
rokujyouhitoma has quit [Ping timeout: 260 seconds]
realtime_ has quit [Remote host closed the connection]
realtime_ has joined #pypy
jcea has quit [Quit: jcea]
ArneBab has joined #pypy
ArneBab_ has quit [Ping timeout: 240 seconds]
pilne has quit [Quit: Quitting!]
marky1991 has quit [Remote host closed the connection]
marky1991 has joined #pypy
rokujyouhitoma has joined #pypy
tilgovi has quit [Ping timeout: 246 seconds]
rokujyouhitoma has quit [Ping timeout: 260 seconds]
tormoz has joined #pypy
realtime_ has quit [Remote host closed the connection]
realtime_ has joined #pypy
tilgovi has joined #pypy
yuyichao_ has joined #pypy
yuyichao has quit [Read error: Connection reset by peer]
rokujyouhitoma has joined #pypy
realtime_ has quit [Remote host closed the connection]
realtime_ has joined #pypy
rokujyouhitoma has quit [Ping timeout: 260 seconds]
tilgovi has quit [Ping timeout: 240 seconds]
_whitelogger has joined #pypy
tilgovi has joined #pypy
<mjacob> arigato: already awake?
<mjacob> arigato: i have the problem that with revdb, i got different addresses each run
<mjacob> arigato: randomize_va_space is set to 0 and even in gdb there is this problem
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #pypy
rokujyouhitoma has joined #pypy
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #pypy
rokujyouhitoma has quit [Ping timeout: 268 seconds]
marky1991 has quit [Remote host closed the connection]
marky1991 has joined #pypy
marky1991 has quit [Remote host closed the connection]
marky1991 has joined #pypy
rokujyouhitoma has joined #pypy
rokujyouhitoma has quit [Ping timeout: 255 seconds]
realtime_ has quit [Remote host closed the connection]
realtime_ has joined #pypy
glyph has quit [Quit: End of line.]
glyph has joined #pypy
<mjacob> arigato: even "setarch `uname -m` --addr-no-randomize cat /proc/self/maps" is non-determistic on my machine
<mjacob> (running arch linux)
<mjacob> it seems like arch linux ignores ADDR_NO_RANDOMIZE and /proc/sys/kernel/randomize_va_space
realtime_ has quit [Remote host closed the connection]
realtime_ has joined #pypy
vkirilichev has joined #pypy
rokujyouhitoma has joined #pypy
rokujyouhitoma has quit [Ping timeout: 246 seconds]
Remi_M has joined #pypy
realtime_ has quit [Remote host closed the connection]
realtime_ has joined #pypy
forgottenone has quit [Ping timeout: 240 seconds]
mihneas has joined #pypy
rokujyouhitoma has joined #pypy
oberstet has joined #pypy
rokujyouhitoma has quit [Ping timeout: 240 seconds]
forgottenone has joined #pypy
antocuni has joined #pypy
cstratak has joined #pypy
marr has joined #pypy
rokujyouhitoma has joined #pypy
rokujyouhitoma has quit [Ping timeout: 240 seconds]
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #pypy
vkirilichev has quit []
antocuni has quit [Ping timeout: 240 seconds]
rokujyouhitoma has joined #pypy
larstiq_ is now known as LarstiQ
rokujyouhitoma has quit [Ping timeout: 240 seconds]
marky1991 has quit [Remote host closed the connection]
marky1991 has joined #pypy
raynold has quit [Quit: Connection closed for inactivity]
cstratak has quit [Ping timeout: 260 seconds]
nimaje is now known as Guest77015
nimaje has joined #pypy
Guest77015 has quit [Killed (verne.freenode.net (Nickname regained by services))]
cstratak has joined #pypy
rokujyouhitoma has joined #pypy
rokujyouhitoma has quit [Ping timeout: 268 seconds]
realtime_ has quit [Read error: Connection reset by peer]
jcea has joined #pypy
leto_ni has joined #pypy
cstratak has quit [Quit: Leaving]
cstratak has joined #pypy
antocuni has joined #pypy
Rhy0lite has joined #pypy
adamholmberg has joined #pypy
rokujyouhitoma has joined #pypy
<kenaan> fijal default fd96c60cfb19 /rpython/annotator/binaryop.py: make sure dict != dict is complained about early
<kenaan> fijal default bddc7d672228 /: merge
rokujyouhitoma has quit [Ping timeout: 260 seconds]
Demon11 has joined #pypy
<Demon11> ronan: Hey
ronan has quit [Quit: Ex-Chat]
marky1991 has quit [Quit: Saliendo]
marky1991 has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
rokujyouhitoma has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
rokujyouhitoma has quit [Ping timeout: 240 seconds]
dmalcolm has quit [Remote host closed the connection]
dmalcolm has joined #pypy
<mattip> Demon11: about get_config_h_filename, implementing this will IMO just get you to the next failure
<Demon11> mattip: why is that happening anyway though?
<mattip> unless somehow you are compiling PyPy with cygwin and the stars align properly
<Demon11> well, I'm just using the same build script I use for cpython, I thought it should just work
<Demon11> passing -cmingw32 to setup.py
<kenaan> mattip default a85c3651973e /lib-python/2.7/distutils/sysconfig_pypy.py: add get_config_h_filename for cygwincompiler, which justifiably fails later anyway
<mattip> Demon11: we have our own distutils.sysconfig_pypy.py, and that function was missing
<Demon11> mattip: I understand, but why is it even needed? if I used msvc would it do something else?
<mattip> Demon11: yes, cygwincomiler checks if gcc was used to compile python (or pypy) then issues a warning
<mattip> "Python's pyconfig.h doesn't seem to support your compiler. "
<mattip> msvc9compiler complains about other things, but not that :)
<Demon11> I don't understand. isn't building CFFI extensions for pypy supported on windows?
<mattip> Demon11: you can apply a85c3651973e directly to your pypy installation, it is pure python
<mattip> building a cffi module uses the same mechanism as building a c-api extension module, so the compiler initialzation does all kinds of checks
<mattip> to make sure the compiler is compatible with the compiler used to build python
<mattip> there is concern that using a different compiler will mix runtimes and cause strange faults,
<mattip> so it is advised to use exactly the same compiler/version on windows
<LarstiQ> mattip: a legitimate concern
<mattip> LarstiQ: have you gotten crashes when using a strict c interface and making sure the same side that allocs also frees?
<Demon11> ok, I tried the commit. now I get a bounch of undefined references to '_imp__*"
<LarstiQ> mattip: hmm, I think so but it was well over a decade ago
<mattip> Demon11: you might not be linking to the cygwin runtime? Check the link command from the successful CPython build vs. PyPy
<Demon11> now, I'm using mingw32, no cygwin runtime at all
rokujyouhitoma has joined #pypy
<mattip> ok, anyhow try to compare the link command line arguments
<Demon11> I'm doing that right now
<mattip> cool
rokujyouhitoma has quit [Ping timeout: 248 seconds]
jcea has quit [Ping timeout: 240 seconds]
<kenaan> Dodan py3.5-sendmsg-recvmsg 528a9fe09ebd /pypy/module/_socket/interp_socket.py: Corrected sendmsg & recvmsg. Thanks Ronan Lamy
<kenaan> mattip default 8a997c17d016 /pypy/doc/whatsnew-head.rst: typo
<Demon11> mattip: both link to the same libs, with the exception of libpython27
mihaid has joined #pypy
<Demon11> pypy: -lws2_32 -luser32 -lmsvcr90
lritter has joined #pypy
<Demon11> cpython: -lws2_32 -luser32 -lpython27 -lmsvcr90
jcea has joined #pypy
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/4815 [mihaid: force build, py3.5-sendmsg-recvmsg]
<bbot2> Started: http://buildbot.pypy.org/builders/own-linux-x86-64/builds/6128 [mihaid: force build, py3.5-sendmsg-recvmsg]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-app-level-linux-x86-64/builds/3933 [mihaid: force build, py3.5-sendmsg-recvmsg]
<bbot2> Started: http://buildbot.pypy.org/builders/own-linux-x86-32/builds/5363 [mihaid: force build, py3.5-sendmsg-recvmsg]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-app-level-linux-x86-32/builds/2945 [mihaid: force build, py3.5-sendmsg-recvmsg]
<bbot2> Started: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-32/builds/4123 [mihaid: force build, py3.5-sendmsg-recvmsg]
<Demon11> I get undefined references for stuff like "_imp__PyArg_UnpackTuple"
mihaid has quit [Client Quit]
<LarstiQ> Demon11: are you building with --shared?
<LarstiQ> i.e., pypy-c is a thin wrapper over libpypy?
<LarstiQ> then you'd need something equivalent to -lpython27 I imagine
yuyichao_ has quit [Ping timeout: 240 seconds]
<Demon11> LarstiQ: yeah, -shared is in there
<LarstiQ> Demon11: can you find the resulting library somewhere?
<Demon11> LarstiQ: no, it doesn't finish linking
yuyichao_ has joined #pypy
<mattip> Demon11: confusing. You said cffi, but need to link with python27.dll? Are you embedding python in your C?
<mattip> anyhow, maybe try -llibpypy-c
<mattip> hang on, PyArg_UnpackTuple should be PyPyArg_UnpackTuple, so you must be using the cpython include files, not the pypy ones
<mattip> mess
<mattip> what package are you building?
Tiberium has joined #pypy
Tiberium has quit [Client Quit]
Tiberium has joined #pypy
<Demon11> mattip: my own
Tiberium has left #pypy ["Textual IRC Client: www.textualapp.com"]
<Demon11> mattip: I'm not embedding anything, I just create the FFI() object with, call set_source() and then setup() calls ext=modules[my_ffi.distutils.extensions()]
rokujyouhitoma has joined #pypy
rokujyouhitoma has quit [Ping timeout: 260 seconds]
lritter has quit [Remote host closed the connection]
<mattip> Demon11: if you clone the cffi repo, can you pass tests when passing -cmingw32 to setup.py?
<mattip> specifically the tests in https://bitbucket.org/cffi/cffi/src/default/testing/cffi0/snippets, do any of the setup.py in there look like yours?
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-app-level-linux-x86-64/builds/3933 [mihaid: force build, py3.5-sendmsg-recvmsg]
tilgovi has quit [Ping timeout: 246 seconds]
<mattip> plan_rich: ping
<Demon11> mattip: I don't understand how run the tests with pypy
<mattip> pypy -mpip install pytest
raynold has joined #pypy
<mattip> ahh, sorry, not pytest
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-64/builds/4815 [mihaid: force build, py3.5-sendmsg-recvmsg]
<mattip> cd testing/cffi0/snippets/distutils_package_1
<mattip> pypy setup.py build_ext -i
<mattip> that should try to link something
<Demon11> getting a distutils platform error now, "visual c++ 9.0 is required"
<Demon11> even when I pass -cmingw32
<mattip> ok, and if you try one of the setuptools_* ?
<Demon11> same error
<mattip> I would be tempted to say "good, that's what you should get", but that will not make you happy :(
<mattip> and your package works on cpython, so it should work here too
<Demon11> I thought so too. well, I'm going to try and the most basic thing compile
<mattip> sorry, it seems to be an unfortunate combination of closed source, distutils, and a not-well-supported compiler
<mattip> maybe looking aorund at some other cffi-based projects might help, this is a very complete one
<mattip> and here is a pypi search for cffi
<Demon11> mattip: thanks, I'll take a look
<Demon11> I'm really not doing anything complex though
forgottenone has quit [Remote host closed the connection]
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-app-level-linux-x86-32/builds/2945 [mihaid: force build, py3.5-sendmsg-recvmsg]
forgottenone has joined #pypy
<bbot2> Failure: http://buildbot.pypy.org/builders/pypy-c-jit-linux-x86-32/builds/4123 [mihaid: force build, py3.5-sendmsg-recvmsg]
<bbot2> Failure: http://buildbot.pypy.org/builders/own-linux-x86-64/builds/6128 [mihaid: force build, py3.5-sendmsg-recvmsg]
Demon11 has quit [Quit: Page closed]
rokujyouhitoma has joined #pypy
rokujyouhitoma has quit [Ping timeout: 240 seconds]
lritter has joined #pypy
antocuni has quit [Ping timeout: 246 seconds]
<mattip> any now for something completely different, my arm buildbot was offline for a couple of months
<mattip> I wonder if arm32 really works anymore
oberstet has quit [Ping timeout: 268 seconds]
<bbot2> Failure: http://buildbot.pypy.org/builders/own-linux-x86-32/builds/5363 [mihaid: force build, py3.5-sendmsg-recvmsg]
cstratak has quit [Quit: Leaving]
ronan has joined #pypy
rokujyouhitoma has joined #pypy
rokujyouhitoma has quit [Ping timeout: 276 seconds]
forgottenone has quit [Ping timeout: 240 seconds]
leto_ni has quit [Ping timeout: 258 seconds]
ronan has quit [Ping timeout: 240 seconds]
yuyichao has joined #pypy
yuyichao_ has quit [Ping timeout: 260 seconds]
rokujyouhitoma has joined #pypy
rokujyouhitoma has quit [Ping timeout: 260 seconds]
forgottenone has joined #pypy
rokujyouhitoma has joined #pypy
rokujyouhitoma has quit [Ping timeout: 260 seconds]
Rhy0lite has quit [Quit: Leaving]
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #pypy
Rhy0lite has joined #pypy
zware has quit [Read error: Connection reset by peer]
zware has joined #pypy
rokujyouhitoma has joined #pypy
rokujyouhitoma has quit [Ping timeout: 260 seconds]
zware has quit [Quit: No Ping reply in 180 seconds.]
zware has joined #pypy
jamesaxl has quit [Quit: WeeChat 1.8]
larsivi_ has joined #pypy
larsivi_ has quit [Remote host closed the connection]
zware has quit [Ping timeout: 240 seconds]
zware has joined #pypy
leto_ni has joined #pypy
zware has quit [Quit: No Ping reply in 180 seconds.]
zware has joined #pypy
Rhy0lite has quit [Quit: Leaving]
forgottenone has quit [Quit: Konversation terminated!]
zware has quit [Remote host closed the connection]
zware has joined #pypy
rokujyouhitoma has joined #pypy
antocuni has joined #pypy
rokujyouhitoma has quit [Ping timeout: 260 seconds]
leto_ni has quit [Ping timeout: 258 seconds]
marky1991 has quit [Remote host closed the connection]
marky1991 has joined #pypy
rokujyouhitoma has joined #pypy
antocuni has quit [Ping timeout: 248 seconds]
rokujyouhitoma has quit [Ping timeout: 240 seconds]
yuyichao_ has joined #pypy
yuyichao has quit [Read error: Connection reset by peer]
yuyichao_ has quit [Ping timeout: 246 seconds]
rokujyouhitoma has joined #pypy
rokujyouhitoma has quit [Ping timeout: 255 seconds]
yuyichao_ has joined #pypy