2017-07-05 11:38
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"
00:12
rokujyouhitoma has joined #pypy
00:14
marr has quit [Ping timeout: 260 seconds]
00:17
rokujyouhitoma has quit [Ping timeout: 248 seconds]
01:01
mattip has quit [Ping timeout: 240 seconds]
01:02
mattip has joined #pypy
01:13
rokujyouhitoma has joined #pypy
01:18
rokujyouhitoma has quit [Ping timeout: 240 seconds]
01:58
forgottenone has joined #pypy
02:14
rokujyouhitoma has joined #pypy
02:18
rokujyouhitoma has quit [Ping timeout: 260 seconds]
02:25
realtime_ has quit [Remote host closed the connection]
02:26
realtime_ has joined #pypy
02:34
jcea has quit [Quit: jcea]
02:40
ArneBab has joined #pypy
02:44
ArneBab_ has quit [Ping timeout: 240 seconds]
03:00
pilne has quit [Quit: Quitting!]
03:05
marky1991 has quit [Remote host closed the connection]
03:05
marky1991 has joined #pypy
03:15
rokujyouhitoma has joined #pypy
03:16
tilgovi has quit [Ping timeout: 246 seconds]
03:20
rokujyouhitoma has quit [Ping timeout: 260 seconds]
03:33
tormoz has joined #pypy
03:34
realtime_ has quit [Remote host closed the connection]
03:35
realtime_ has joined #pypy
03:48
tilgovi has joined #pypy
03:50
yuyichao_ has joined #pypy
03:50
yuyichao has quit [Read error: Connection reset by peer]
04:15
rokujyouhitoma has joined #pypy
04:19
realtime_ has quit [Remote host closed the connection]
04:20
realtime_ has joined #pypy
04:20
rokujyouhitoma has quit [Ping timeout: 260 seconds]
04:46
tilgovi has quit [Ping timeout: 240 seconds]
04:56
_whitelogger has joined #pypy
04:56
tilgovi has joined #pypy
05:03
<
mjacob >
arigato: already awake?
05:03
<
mjacob >
arigato: i have the problem that with revdb, i got different addresses each run
05:04
<
mjacob >
arigato: randomize_va_space is set to 0 and even in gdb there is this problem
05:13
jamesaxl has quit [Read error: Connection reset by peer]
05:14
jamesaxl has joined #pypy
05:16
rokujyouhitoma has joined #pypy
05:17
jamesaxl has quit [Read error: Connection reset by peer]
05:18
jamesaxl has joined #pypy
05:21
rokujyouhitoma has quit [Ping timeout: 268 seconds]
05:27
marky1991 has quit [Remote host closed the connection]
05:27
marky1991 has joined #pypy
05:58
marky1991 has quit [Remote host closed the connection]
05:58
marky1991 has joined #pypy
06:17
rokujyouhitoma has joined #pypy
06:22
rokujyouhitoma has quit [Ping timeout: 255 seconds]
06:37
realtime_ has quit [Remote host closed the connection]
06:38
realtime_ has joined #pypy
06:47
glyph has quit [Quit: End of line.]
06:48
glyph has joined #pypy
06:51
<
mjacob >
arigato: even "setarch `uname -m` --addr-no-randomize cat /proc/self/maps" is non-determistic on my machine
06:51
<
mjacob >
(running arch linux)
06:51
<
mjacob >
it seems like arch linux ignores ADDR_NO_RANDOMIZE and /proc/sys/kernel/randomize_va_space
07:02
realtime_ has quit [Remote host closed the connection]
07:02
realtime_ has joined #pypy
07:15
vkirilichev has joined #pypy
07:18
rokujyouhitoma has joined #pypy
07:22
rokujyouhitoma has quit [Ping timeout: 246 seconds]
07:36
Remi_M has joined #pypy
07:39
realtime_ has quit [Remote host closed the connection]
07:40
realtime_ has joined #pypy
07:53
forgottenone has quit [Ping timeout: 240 seconds]
08:07
mihneas has joined #pypy
08:19
rokujyouhitoma has joined #pypy
08:22
oberstet has joined #pypy
08:23
rokujyouhitoma has quit [Ping timeout: 240 seconds]
08:28
forgottenone has joined #pypy
09:01
antocuni has joined #pypy
09:03
cstratak has joined #pypy
09:18
marr has joined #pypy
09:19
rokujyouhitoma has joined #pypy
09:24
rokujyouhitoma has quit [Ping timeout: 240 seconds]
09:29
jamesaxl has quit [Read error: Connection reset by peer]
09:29
jamesaxl has joined #pypy
09:35
vkirilichev has quit []
10:16
antocuni has quit [Ping timeout: 240 seconds]
10:20
rokujyouhitoma has joined #pypy
10:23
larstiq_ is now known as LarstiQ
10:24
rokujyouhitoma has quit [Ping timeout: 240 seconds]
10:35
marky1991 has quit [Remote host closed the connection]
10:36
marky1991 has joined #pypy
10:37
raynold has quit [Quit: Connection closed for inactivity]
10:55
cstratak has quit [Ping timeout: 260 seconds]
11:05
nimaje is now known as Guest77015
11:05
nimaje has joined #pypy
11:05
Guest77015 has quit [Killed (verne.freenode.net (Nickname regained by services))]
11:15
cstratak has joined #pypy
11:21
rokujyouhitoma has joined #pypy
11:26
rokujyouhitoma has quit [Ping timeout: 268 seconds]
11:32
realtime_ has quit [Read error: Connection reset by peer]
11:44
jcea has joined #pypy
11:45
leto_ni has joined #pypy
11:59
cstratak has quit [Quit: Leaving]
12:00
cstratak has joined #pypy
12:13
antocuni has joined #pypy
12:17
Rhy0lite has joined #pypy
12:19
adamholmberg has joined #pypy
12:22
rokujyouhitoma has joined #pypy
12:24
<
kenaan >
fijal default fd96c60cfb19 /rpython/annotator/binaryop.py: make sure dict != dict is complained about early
12:24
<
kenaan >
fijal default bddc7d672228 /: merge
12:26
rokujyouhitoma has quit [Ping timeout: 260 seconds]
12:48
Demon11 has joined #pypy
12:48
<
Demon11 >
ronan: Hey
13:10
ronan has quit [Quit: Ex-Chat]
13:18
marky1991 has quit [Quit: Saliendo]
13:18
marky1991 has joined #pypy
13:21
adamholmberg has quit [Remote host closed the connection]
13:22
adamholmberg has joined #pypy
13:22
rokujyouhitoma has joined #pypy
13:23
adamholmberg has quit [Remote host closed the connection]
13:23
adamholmberg has joined #pypy
13:27
rokujyouhitoma has quit [Ping timeout: 240 seconds]
13:31
dmalcolm has quit [Remote host closed the connection]
13:40
dmalcolm has joined #pypy
14:03
<
mattip >
Demon11: about get_config_h_filename, implementing this will IMO just get you to the next failure
14:03
<
Demon11 >
mattip: why is that happening anyway though?
14:03
<
mattip >
unless somehow you are compiling PyPy with cygwin and the stars align properly
14:04
<
Demon11 >
well, I'm just using the same build script I use for cpython, I thought it should just work
14:04
<
Demon11 >
passing -cmingw32 to setup.py
14:05
<
kenaan >
mattip default a85c3651973e /lib-python/2.7/distutils/sysconfig_pypy.py: add get_config_h_filename for cygwincompiler, which justifiably fails later anyway
14:06
<
mattip >
Demon11: we have our own distutils.sysconfig_pypy.py, and that function was missing
14:06
<
Demon11 >
mattip: I understand, but why is it even needed? if I used msvc would it do something else?
14:07
<
mattip >
Demon11: yes, cygwincomiler checks if gcc was used to compile python (or pypy) then issues a warning
14:07
<
mattip >
"Python's pyconfig.h doesn't seem to support your compiler. "
14:09
<
mattip >
msvc9compiler complains about other things, but not that :)
14:11
<
Demon11 >
I don't understand. isn't building CFFI extensions for pypy supported on windows?
14:11
<
mattip >
Demon11: you can apply a85c3651973e directly to your pypy installation, it is pure python
14:12
<
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
14:13
<
mattip >
to make sure the compiler is compatible with the compiler used to build python
14:14
<
mattip >
there is concern that using a different compiler will mix runtimes and cause strange faults,
14:14
<
mattip >
so it is advised to use exactly the same compiler/version on windows
14:15
<
LarstiQ >
mattip: a legitimate concern
14:17
<
mattip >
LarstiQ: have you gotten crashes when using a strict c interface and making sure the same side that allocs also frees?
14:17
<
Demon11 >
ok, I tried the commit. now I get a bounch of undefined references to '_imp__*"
14:17
<
LarstiQ >
mattip: hmm, I think so but it was well over a decade ago
14:20
<
mattip >
Demon11: you might not be linking to the cygwin runtime? Check the link command from the successful CPython build vs. PyPy
14:20
<
Demon11 >
now, I'm using mingw32, no cygwin runtime at all
14:23
rokujyouhitoma has joined #pypy
14:23
<
mattip >
ok, anyhow try to compare the link command line arguments
14:24
<
Demon11 >
I'm doing that right now
14:28
rokujyouhitoma has quit [Ping timeout: 248 seconds]
14:28
jcea has quit [Ping timeout: 240 seconds]
14:28
<
kenaan >
Dodan py3.5-sendmsg-recvmsg 528a9fe09ebd /pypy/module/_socket/interp_socket.py: Corrected sendmsg & recvmsg. Thanks Ronan Lamy
14:28
<
kenaan >
mattip default 8a997c17d016 /pypy/doc/whatsnew-head.rst: typo
14:33
<
Demon11 >
mattip: both link to the same libs, with the exception of libpython27
14:33
mihaid has joined #pypy
14:33
<
Demon11 >
pypy: -lws2_32 -luser32 -lmsvcr90
14:33
lritter has joined #pypy
14:33
<
Demon11 >
cpython: -lws2_32 -luser32 -lpython27 -lmsvcr90
14:33
jcea has joined #pypy
14:34
<
Demon11 >
I get undefined references for stuff like "_imp__PyArg_UnpackTuple"
14:34
mihaid has quit [Client Quit]
14:34
<
LarstiQ >
Demon11: are you building with --shared?
14:35
<
LarstiQ >
i.e., pypy-c is a thin wrapper over libpypy?
14:35
<
LarstiQ >
then you'd need something equivalent to -lpython27 I imagine
14:35
yuyichao_ has quit [Ping timeout: 240 seconds]
14:36
<
Demon11 >
LarstiQ: yeah, -shared is in there
14:36
<
LarstiQ >
Demon11: can you find the resulting library somewhere?
14:40
<
Demon11 >
LarstiQ: no, it doesn't finish linking
14:47
yuyichao_ has joined #pypy
14:50
<
mattip >
Demon11: confusing. You said cffi, but need to link with python27.dll? Are you embedding python in your C?
14:52
<
mattip >
anyhow, maybe try -llibpypy-c
14:55
<
mattip >
hang on, PyArg_UnpackTuple should be PyPyArg_UnpackTuple, so you must be using the cpython include files, not the pypy ones
14:56
<
mattip >
what package are you building?
15:08
Tiberium has joined #pypy
15:09
Tiberium has quit [Client Quit]
15:10
Tiberium has joined #pypy
15:17
<
Demon11 >
mattip: my own
15:21
<
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()]
15:24
rokujyouhitoma has joined #pypy
15:28
rokujyouhitoma has quit [Ping timeout: 260 seconds]
15:30
lritter has quit [Remote host closed the connection]
15:34
<
mattip >
Demon11: if you clone the cffi repo, can you pass tests when passing -cmingw32 to setup.py?
15:37
tilgovi has quit [Ping timeout: 246 seconds]
15:37
<
mattip >
plan_rich: ping
15:41
<
Demon11 >
mattip: I don't understand how run the tests with pypy
15:41
<
mattip >
pypy -mpip install pytest
15:43
raynold has joined #pypy
15:43
<
mattip >
ahh, sorry, not pytest
15:48
<
mattip >
cd testing/cffi0/snippets/distutils_package_1
15:48
<
mattip >
pypy setup.py build_ext -i
15:49
<
mattip >
that should try to link something
15:50
<
Demon11 >
getting a distutils platform error now, "visual c++ 9.0 is required"
15:50
<
Demon11 >
even when I pass -cmingw32
15:52
<
mattip >
ok, and if you try one of the setuptools_* ?
15:53
<
Demon11 >
same error
15:53
<
mattip >
I would be tempted to say "good, that's what you should get", but that will not make you happy :(
15:54
<
mattip >
and your package works on cpython, so it should work here too
15:56
<
Demon11 >
I thought so too. well, I'm going to try and the most basic thing compile
15:59
<
mattip >
sorry, it seems to be an unfortunate combination of closed source, distutils, and a not-well-supported compiler
16:00
<
mattip >
maybe looking aorund at some other cffi-based projects might help, this is a very complete one
16:01
<
mattip >
and here is a pypi search for cffi
16:02
<
Demon11 >
mattip: thanks, I'll take a look
16:02
<
Demon11 >
I'm really not doing anything complex though
16:03
forgottenone has quit [Remote host closed the connection]
16:06
forgottenone has joined #pypy
16:25
Demon11 has quit [Quit: Page closed]
16:25
rokujyouhitoma has joined #pypy
16:29
rokujyouhitoma has quit [Ping timeout: 240 seconds]
16:31
lritter has joined #pypy
16:36
antocuni has quit [Ping timeout: 246 seconds]
16:36
<
mattip >
any now for something completely different, my arm buildbot was offline for a couple of months
16:36
<
mattip >
I wonder if arm32 really works anymore
16:51
oberstet has quit [Ping timeout: 268 seconds]
16:56
cstratak has quit [Quit: Leaving]
17:18
ronan has joined #pypy
17:26
rokujyouhitoma has joined #pypy
17:30
rokujyouhitoma has quit [Ping timeout: 276 seconds]
17:48
forgottenone has quit [Ping timeout: 240 seconds]
18:04
leto_ni has quit [Ping timeout: 258 seconds]
18:16
ronan has quit [Ping timeout: 240 seconds]
18:17
yuyichao has joined #pypy
18:20
yuyichao_ has quit [Ping timeout: 260 seconds]
18:26
rokujyouhitoma has joined #pypy
18:31
rokujyouhitoma has quit [Ping timeout: 260 seconds]
19:06
forgottenone has joined #pypy
19:27
rokujyouhitoma has joined #pypy
19:32
rokujyouhitoma has quit [Ping timeout: 260 seconds]
19:33
Rhy0lite has quit [Quit: Leaving]
19:39
jamesaxl has quit [Read error: Connection reset by peer]
19:40
jamesaxl has joined #pypy
19:41
Rhy0lite has joined #pypy
20:23
zware has quit [Read error: Connection reset by peer]
20:27
zware has joined #pypy
20:28
rokujyouhitoma has joined #pypy
20:32
rokujyouhitoma has quit [Ping timeout: 260 seconds]
20:34
zware has quit [Quit: No Ping reply in 180 seconds.]
20:35
zware has joined #pypy
20:47
jamesaxl has quit [Quit: WeeChat 1.8]
20:49
larsivi_ has joined #pypy
20:50
larsivi_ has quit [Remote host closed the connection]
20:59
zware has quit [Ping timeout: 240 seconds]
21:00
zware has joined #pypy
21:08
leto_ni has joined #pypy
21:16
zware has quit [Quit: No Ping reply in 180 seconds.]
21:17
zware has joined #pypy
21:18
Rhy0lite has quit [Quit: Leaving]
21:23
forgottenone has quit [Quit: Konversation terminated!]
21:27
zware has quit [Remote host closed the connection]
21:28
zware has joined #pypy
21:29
rokujyouhitoma has joined #pypy
21:33
antocuni has joined #pypy
21:33
rokujyouhitoma has quit [Ping timeout: 260 seconds]
21:47
leto_ni has quit [Ping timeout: 258 seconds]
21:51
marky1991 has quit [Remote host closed the connection]
21:51
marky1991 has joined #pypy
22:30
rokujyouhitoma has joined #pypy
22:30
antocuni has quit [Ping timeout: 248 seconds]
22:34
rokujyouhitoma has quit [Ping timeout: 240 seconds]
23:05
yuyichao_ has joined #pypy
23:05
yuyichao has quit [Read error: Connection reset by peer]
23:22
yuyichao_ has quit [Ping timeout: 246 seconds]
23:31
rokujyouhitoma has joined #pypy
23:35
rokujyouhitoma has quit [Ping timeout: 255 seconds]
23:44
yuyichao_ has joined #pypy