[Python-3000] [Python-checkins] buildbot failure in S-390 Debian 3.0
"Martin v. Löwis"
martin at v.loewis.de
Wed Aug 29 19:17:31 CEST 2007
Guido van Rossum schrieb:
> Never mind. Amaury pointed out that the code already includes
> PY_FORMAT_SIZE_T, but that particular platform doesn't support %zd.
> Maybe PY_FORMAT_SIZE_T should be "l" instead on that platform? (As
> it's not Windows I'm pretty sure sizeof(long) == sizeof(void*)...)
Are you still talking about S/390? I see this from configure:
checking size of int... 4
checking size of long... 4
checking size of void *... 4
checking size of size_t... 4
So:
a) it's not a 64-bit system (it should then be an 31-bit system),
b) Python already would use %ld if sizeof(ssize_t)!=sizeof(int),
but sizeof(ssize_t)==sizeof(long)
Not sure why gcc is complaining; according to this change to APR
http://www.mail-archive.com/dev@apr.apache.org/msg18533.html
it might still be that the warning goes away if %ld is used on
S390 (similar to what is done for __APPLE__). Interestingly
enough, they use this code for OSX :-)
+ *apple-darwin*)
+ osver=`uname -r`
+ case $osver in
+ [[0-7]].*)
+ ssize_t_fmt="d"
+ ;;
+ *)
+ ssize_t_fmt="ld"
+ ;;
+ esac
Regards,
Martin
More information about the Python-3000
mailing list