Hi all,
I am trying to setup cross compiler on a CentOS machine. For that, i have downloaded and installed ti-sdk-am335x-evm-07.00.00.00. For testing compiler working , i am trying to compile c code [ thread-ex.c]mentioned @processors.wiki.ti.com/.../Sitara_Linux_SDK_GCC_Toolchain . I Am getting following error when i tried to compile above program . I am using linux-devkit/environment-setup script setup environment for compilation .
[linux-devkit]:/home/gokul/SDK/utils/test_compiler>
[linux-devkit]:/home/gokul/SDK/utils/test_compiler> arm-linux-gnueabihf-gcc -lpthread thread-ex.c -o thread-ex
/opt/ti-sdk-am335x-evm-07.00.00.00/linux-devkit/sysroots/i686-arago-linux/usr/bin/../lib/gcc/arm-linux-gnueabihf/4.7.3/../../../../arm-linux-gnueabihf/bin/ld: cannot find crt1.o: No such file or directory
/opt/ti-sdk-am335x-evm-07.00.00.00/linux-devkit/sysroots/i686-arago-linux/usr/bin/../lib/gcc/arm-linux-gnueabihf/4.7.3/../../../../arm-linux-gnueabihf/bin/ld: cannot find crti.o: No such file or directory
/opt/ti-sdk-am335x-evm-07.00.00.00/linux-devkit/sysroots/i686-arago-linux/usr/bin/../lib/gcc/arm-linux-gnueabihf/4.7.3/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lpthread
collect2: error: ld returned 1 exit status
[linux-devkit]:/home/gokul/SDK/utils/test_compiler>
This is my compiler version :
[linux-devkit]:/home/gokul/SDK/utils/test_compiler> arm-linux-gnueabihf-gcc --version
arm-linux-gnueabihf-gcc (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) 4.7.3 20130226 (prerelease)
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[linux-devkit]:/home/gokul/SDK/utils/test_compiler>
I think some more setting is needed for proper working .Let me know if any additional setting needs to be done .
Thanks and regards
Gokul C G[gokul.g@kalkitech.in]