ScratchBox and pthread_create()


Everything on this site is, in general, in Italian, but I'm writing this in English since I believe that it could be of general interest.



I was using ScratchBox with the CodeSourcery toolchain for ARM7 (scratchbox-toolchain-cs2007q3-glibc2.5-arm7-1.0.8-6-i386.tar.gz) to cross-compile and test some software for the ARM platform.

I noticed that every time a pthread_create() was in the code, the program in execution just terminated. No error message, no error code (the value returned by the program was 0), absolutely nothing.

I couldn't find any info on the Net about this problem, so I decided to write here about it and its solution.

(Click on "Read All / Leggi tutto" to read the rest)

I found out that it was a problem of qemu.

The qemu version that I was using is the one name qemu-arm-cvs-m that can be found in the cpu transparency package of ScratchBox (scratchbox-devkit-cputransp-1.0.7-i386.tar.gz).

Downloading and installing qemu-arm-eabi following the instructions listed on its website and then selecting it as the emulator to be used by ScratchBox (using sb-menu from inside the cross-compilation environment) I was able to solve the problem.

I hope this can help someone!


Articolo tratto da: Appunti IngInf - http://windizio.altervista.org/appunti/
URL di riferimento: http://windizio.altervista.org/appunti/index.php?mod=read&id=1224279669