[pymaemo] python building issue under scratchbox.

Lauro Moura lauro.neto at openbossa.org
Wed Aug 13 17:10:07 EEST 2008


On Wed, Aug 13, 2008 at 5:30 AM, Fang Laifa <laifa at astri.org> wrote:
> Dear all,
>
>     I got a problem under scratchbox regarding re-building the python2.5.2
> from source. However the building is finally failed for qemu errors. The
> building environment is Maemo SDK 4.0.1 (Chinook) on Ubuntu PC. Below are
> the detail steps to reproduce the problem.
>     (1) download the source of python2.5.2 (python2.5_2.5.2_orig.tar.gz) and
> patches (python2.5_2.5.2-losso2.diff.gz) from
> http://repository.maemo.org/extras/pool/chinook/free/source/p/python2.5/.
>     (2) untar, patch, configure and compile the sources under
> sbox-CHINOOK_X86. The building is successful without any problems.
>     (3) switch to sbox-CHINOOK_ARMEL and re-build the sources. The building
> is failed with the following errors.
>
> ...................
> libpython2.5.a(posixmodule.o): In function
> `posix_tempnam':./Modules/posixmodule.c:6817: warning: the use of `tempnam'
> is dangerous, better use `mkstemp'
> case $MAKEFLAGS in \
> *-s*)  CC='gcc -pthread' LDSHARED='gcc -pthread -shared' OPT='-DNDEBUG -g
> -fwrapv -O3 -Wall -Wstrict-prototypes' ./python -E ./setup.py -q build;; \
> *)  CC='gcc -pthread' LDSHARED='gcc -pthread -shared' OPT='-DNDEBUG -g
> -fwrapv -O3 -Wall -Wstrict-prototypes' ./python -E ./setup.py build;; \
> esac
> sem_post: Function not implemented
> sem_post: Function not implemented
> sem_post: Function not implemented
> sem_post: Function not implemented
> sem_post: Function not implemented
> sem_post: Function not implemented
> sem_post: Function not implemented
> sem_post: Function not implemented
> sem_post: Function not implemented
> qemu: uncaught target signal 11 (Segmentation fault) - exiting
> make: *** [sharedmods] Error 245
>
>     (4) Then I follow the instructions from
> http://www.gossamer-threads.com/lists/maemo/users/35726. Get the patched
> qemu-arm-eabi sources; Compile; Update the scratchbox....
>     (5) However the building is still failed as below though the errors are
> different from the previous.
>
> ........
> libpython2.5.a(posixmodule.o): In function
> `posix_tempnam':./Modules/posixmodule.c:6817: warning: the use of `tempnam'
> is dangerous, better use `mkstemp'
> case $MAKEFLAGS in \
> *-s*)  CC='gcc -pthread' LDSHARED='gcc -pthread -shared' OPT='-DNDEBUG -g
> -fwrapv -O3 -Wall -Wstrict-prototypes' ./python -E ./setup.py -q build;; \
> *)  CC='gcc -pthread' LDSHARED='gcc -pthread -shared' OPT='-DNDEBUG -g
> -fwrapv -O3 -Wall -Wstrict-prototypes' ./python -E ./setup.py build;; \
> esac
> qemu: uncaught target signal 11 (Segmentation fault) - exiting
> make: *** [sharedmods] Error 126
>
>      So does anyone have encountered the similar problems? Any clues to
> solve this problem? Thanks a lot.
>
>

The qemu shipped with scratchbox doesn't support some syscalls needed
by python. The script below will install an updated version of qemu
with EABI support.

https://garage.maemo.org/svn/maemovmware/scripts/install_qemuarmeabi.sh

Original post (portuguese):
http://setanta.wordpress.com/2008/03/15/qemu-arm-eabi-no-scratchbox-o-script/


-- 
Lauro Moura
INdT - Instituto Nokia de Tecnologia


More information about the pymaemo-developers mailing list