cfbolz changed the topic of #pypy to: PyPy, the flexible snake (IRC logs: https://botbot.me/freenode/pypy/ ) | use cffi for calling C | the secret reason for us trying to get PyPy users: to test the JIT well enough that we're somewhat confident about it
ceridwen has quit [Ping timeout: 276 seconds]
ceridwen has joined #pypy
lritter has quit [Quit: Leaving]
bbot2 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
_whitelogger has joined #pypy
jcea has quit [Quit: jcea]
jacob22_ has joined #pypy
jacob22__ has quit [Ping timeout: 252 seconds]
_whitelogger has joined #pypy
dddddd has quit [Remote host closed the connection]
_whitelogger has joined #pypy
_whitelogger has joined #pypy
_whitelogger has joined #pypy
inhahe_ has joined #pypy
inhahe has quit [Ping timeout: 268 seconds]
glyph has quit [Quit: End of line.]
glyph has joined #pypy
glyph_ has joined #pypy
glyph has quit [Ping timeout: 244 seconds]
glyph_ is now known as glyph
bendlas[m] has quit [Ping timeout: 256 seconds]
bendlas[m] has joined #pypy
forgottenone has joined #pypy
jamesaxl has quit [Quit: WeeChat 2.2]
TheAdversary has joined #pypy
jacob22_ has quit [Ping timeout: 272 seconds]
tayfun26 has joined #pypy
jamesaxl has joined #pypy
Hasimir has joined #pypy
jacob22_ has joined #pypy
jacob22_ has quit [Remote host closed the connection]
jamesaxl has quit [Ping timeout: 264 seconds]
jamesaxl has joined #pypy
marky1991 has joined #pypy
marky1991 has quit [Remote host closed the connection]
marky1991 has joined #pypy
dddddd has joined #pypy
marky1991 has quit [Remote host closed the connection]
marky1991 has joined #pypy
awygle has quit [Quit: No Ping reply in 180 seconds.]
awygle has joined #pypy
lritter has joined #pypy
Rhy0lite has joined #pypy
adamholmberg has joined #pypy
<thnee> Using cffi on FreeBSD, trying to use libzfs_core. Gave "#include "libzfs_core.h" to ffibuilder.set_source, but it complains about a lot of unknown types in subsequent includes.
<thnee> In file included from /usr/include/libnvpair.h:29:
<thnee> /usr/include/sys/nvpair.h:161:1: error: unknown type name 'uint_t'
<thnee> What's the way to handle that? I tried including stdint.h etc, but doesn't seem to make a difference?
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
antocuni has joined #pypy
marky1991 has quit [Remote host closed the connection]
marky1991 has joined #pypy
<LarstiQ> thnee: types.h perhaps?
<LarstiQ> but at first I'd assume this is a C (headers) problem, not cffi specific
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
antocuni has quit [Ping timeout: 252 seconds]
tayfun26 has quit [Quit: tayfun26]
antocuni has joined #pypy
antocuni has quit [Ping timeout: 272 seconds]
redj_ has joined #pypy
redj has quit [Ping timeout: 240 seconds]
TheAdversary has quit [Remote host closed the connection]
TheAdversary has joined #pypy
speeder39 has joined #pypy
void_ has joined #pypy
void_ has quit [Client Quit]
arigato has joined #pypy
<arigato> thnee: 'uint_t'? what is this type and where should it come from?
<Alex_Gaynor> I don't think `uint_t` is a real type? There's various `uintN_t` for values of `N`
<arigato> as LarstiQ says, it means that writing a C file containing just ``#include "libzfs_core.h"`` is likely to fail in the same way
<arigato> if it doesn't, you can compare it with the C file produced by cffi, and figure out what messes up libzfs_core.h
<arigato> (the C file produced by cffi also includes other things before libzfs_core.h, like Python.h, which might have side-effects)
marky1991 has quit [Read error: Connection reset by peer]
marky1991 has joined #pypy
lritter has quit [Quit: Leaving]
forgottenone has quit [Remote host closed the connection]
forgottenone has joined #pypy
xorAxAx has quit [Read error: Connection reset by peer]
Rhy0lite has quit [Quit: Leaving]
redj_ has left #pypy [#pypy]
redj has joined #pypy
mattip has joined #pypy
<arigato> mattip: hi
<arigato> still digging but getting closer to the cpyext test failure
<mattip> arigato: cool, thanks
<thnee> LarstiQ, arigato, Alex_Gaynor: It's probaby specific to FreeBSD? But as I said I tried importing the relevant headers in the second argument to set_source, and it does not seem to make a difference
<thnee> so it seems like I am missing how cffi works somehow? I mean the libzfs_core.h should be importing the relevant headers itself anyway, right?
<arigato> well, please check this
marky1991 has quit [Read error: Connection reset by peer]
<kenaan> arigo py3.5 06709625320e /pypy/: Fix for cpyext test_translate when run after test_buffer. Not sure why but it must be something like the thread supp...
<arigato> I mean, please write the #include in a C file, and try to run gcc on it
<arigato> nothing else in the C file
<mattip> arigato: fwiw, "python pytest.py pypy/module/cpyext/test/test_pyerrors.py -k test_error_thread_race" segfaults for me locally,
xorAxAx has joined #pypy
xorAxAx has joined #pypy
xorAxAx has quit [Changing host]
<mattip> something is getting confused with the thread local data
<mattip> (on py3.5)
<mattip> I hit the abort in rpython/translator/c/src/thread_gil.c:122, "thread waiting for GIL, but GIL not initialized"
ceridwen has quit [Ping timeout: 264 seconds]
<mattip> it seems rpy_waiting_threads is not the same address in the call to rpy_init_mutexes and RPyGilAcquireSlowPath
<arigato> "ah"
<arigato> I could also just skip the test when run not in -A, because, well, basically I'm a bit surprized it works
<mattip> ok, skip sounds reasonable
<arigato> issues like the one you've just found explain why things fail
<arigato> it's very unclear to me if we should spend hours fixing these kind of non-bugs
<kenaan> arigo py3.5 530cd9055fea /pypy/module/cpyext/test/test_pyerrors.py: Skip this test unless run in -A mode (again, not completely sure I understand everything but it's messy)
<mattip> thanks. Let's see what happens tonite
* mattip zzz
* arigato zzz too
mattip has left #pypy ["Leaving"]
antocuni has joined #pypy
arigato has quit [Ping timeout: 252 seconds]
ceridwen has joined #pypy
heinrich5991 has quit [Ping timeout: 264 seconds]
heinrich5991 has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
tbodt has quit [Quit: ZNC 1.6.5+deb2build2 - http://znc.in]
tbodt has joined #pypy
adamholmberg has quit [Remote host closed the connection]
adamholmberg has joined #pypy
adamholmberg has quit [Ping timeout: 272 seconds]
speeder39 has quit [Quit: Connection closed for inactivity]
adamholmberg has joined #pypy
Kipras_ has quit [Read error: Connection reset by peer]
hexa- has quit [Ping timeout: 264 seconds]
Kipras_ has joined #pypy
crane has quit [Ping timeout: 268 seconds]
ulope has quit [Ping timeout: 268 seconds]
crane has joined #pypy
ulope has joined #pypy
hexa- has joined #pypy
antocuni has quit [Ping timeout: 272 seconds]
danieljabailey has quit [Ping timeout: 252 seconds]
danieljabailey has joined #pypy