Compiling project with threads for ARM
Hi everybody. I'm performing development for AT91SAM9260 microcontroller (ARM926EJ-S core) under RedHat4 virtual machine.
I made a project wich contain one thread. And when I try to compile it with:
arm-none-linux-gnueabi-gcc -l pthread -mcpu=arm926ej-s test.c -o test
compiling is failing with a follow error:
/usr/local/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.0/../../../../arm-none-linux-gnueabi/bin/ld: cannot find /lib/libpthread.so.0 inside /usr/local/bin/../arm-none-linux-gnueabi/libc
After that I found a "libpthread.so.0" and pointed a path to this link:
arm-none-linux-gnueabi-gcc -L /usr/local/arm-none-linux-gnueabi/libc/armv4t/lib -l pthread -mcpu=arm926ej-s test.c -o test
And the same error occured again. After that I added "/usr/local/arm-none-linux-gnueabi/libc/armv4t/lib" to the 'PATH' environment variable. And it didn't help to solve this problem.
What else can I do to compile my project?
|