[maemo-developers] [maemo-developers] Strange behavior with -O3 CFLAGS on ARM

From: Rudá Moura ruda.moura at indt.org.br
Date: Tue Aug 9 00:02:12 EEST 2005
Hello list,

I was amazed by a (possible) nasty bug in Pygame for ARM architecture.
Whenever I try to open and close pygame.mixer module and then exiting
the Python interpreter I got a segmentation fault. This isn't happening
on i386 architecture.

I thought it could be a bug in Pygame so I started to debug it. Then I
realize that compiling without optimizations the bug was not triggered.
Well, in resume: pygame was never the problem, the problem was in
compiling Python 2.4 with -O3 CFLAGS and then compiling PyGame with -O3,
this just make bugged code for ARM. So I recompiled everything with -O2
CFLAGS to be more conservative.

Anyone having problem with -O3 on ARM?

This is my setup:
- scratchbox 0.9.8.4, gcc 3.3.4, libc 2.3.2, python 2.4, pygame 1.6.

Rudá


More information about the maemo-developers mailing list