I have a PXA270 board and I am trying to use gnu-unknown-linux-gnu-gcc to compile a file and put it in my board. I have done some steps as follow:
1.Unzip the file,
SHELL> sudo tar zxvf arm-linux-toolchain-bin-4.0.2.tar.gz -C/
2.Add one line to my ~/.bashrc,
export PATH=$PATH:/opt/microtime/pro/devkit/arm/pxa270/gcc-4.0.2-glibc-2.3.3/arm-unknown-linux-gnu/bin
3.Reload the ~/.bashrc
SHELL>source ~/.bashrc
After these steps are done, I try
SHELL>arm-unknown-linux-gnu-gcc -v
and it turn out that
bash: /opt/microtime/pro/devkit/arm/pxa270/gcc-4.0.2-glibc-2.3.3/arm-unknown-linux-gnu/bin/arm-unknown-linux-gnu-gcc: No such file or directory
It is weird that I go to the path "/opt/microtime/pro/devkit/arm/pxa270/gcc-4.0.2-glibc-2.3.3/arm-unknown-linux-gnu/bin" and I do see the arm-unlnown-linux- gnu-gcc there.
So my problems are:
1.Why can't my cross compiler arm-unknown-linux-gnu-gcc work after these setting?
2.Is the cross compiler setting the same as gcc?
Thanks for your help!
Edit:
I've founded that the cross compiler file is for 32 bit and my vm is 64 bit. To make some modification and it will work!