Author Ray.Donnelly
Recipients Arfrever, BreamoreBoy, David.Kern, Greg.Hellings, Ray.Donnelly, WhiteTiger, alexis, doko, eric.araujo, kalev, marqvar, rpetrov, tarek, vapier, wrobell
Date 2012-05-30.22:36:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1338417405.4.0.0131851418964.issue3754@psf.upfronthosting.co.za>
In-reply-to
Content
Hi Roumen,

Many thanks for your patches, I've been using a 2.7.1 version of your patches for Python integration with GDB (pretty-printing) of my own version of the Android NDK for ages now (part of the Necessitas Qt project) and I really appreciate your efforts in this area. I've recently started looking into cross compilation of Python as I want to build everything on Linux and hopefully I can be useful in this effort.

What you said about wchar_t on Android is true on API level <= 8, but fixed for >8. See:

https://groups.google.com/group/android-ndk/browse_thread/thread/e40e3fd241e72d3f?pli=1

To test this:

test.c:
#include <stdlib.h>
char bytes[(signed)sizeof(wchar_t)-4];

compile failure:
arm-linux-androideabi-gcc -I$NDK/platforms/android-8/arch-arm/usr/include/ -S test.c
test.c:2: error: size of array 'bytes' is negative

compile success:
arm-linux-androideabi-gcc -I$NDK/platforms/android-9/arch-arm/usr/include/ -S test.c

I've attached a version of your latest patch re-made against released 3.3.0a2. I've also done the same thing for your MinGW patch at http://bugs.python.org/issue3871

I'll follow up shortly with a patch that addresses some of the remaining issues with cross building for MinGW on Linux (and also the beginnings of Darwin on Linux). It'll be attached to http://bugs.python.org/issue3871 though as it's more specific to MinGW than general cross.
History
Date User Action Args
2012-05-30 22:36:45Ray.Donnellysetrecipients: + Ray.Donnelly, doko, wrobell, vapier, tarek, eric.araujo, rpetrov, Arfrever, alexis, WhiteTiger, BreamoreBoy, David.Kern, Greg.Hellings, kalev, marqvar
2012-05-30 22:36:45Ray.Donnellysetmessageid: <1338417405.4.0.0131851418964.issue3754@psf.upfronthosting.co.za>
2012-05-30 22:36:44Ray.Donnellylinkissue3754 messages
2012-05-30 22:36:44Ray.Donnellycreate