C compiler problem...
Hi all,
I am basically porting an application ( matchbox) from pc to ARM(PXA255)board... while i am trying to use the ./configure like below... CC=/opt/montavista/pro/devkit/arm/xscale_le/bin/arm-linux-gcc CXX=/opt/montavista/pro/devkit/arm/xscale_le/bin/arm-linux-g++ LDFLAGS=/opt/montavista/pro/devkit/arm/xscale_le/target/lib CPPFLAGS=/opt/montavista/pro/devkit/arm/xscale_le/target/usr/include ./configure --x-include=/opt/montavista/pro/devkit/arm/xscale_le/target/usr/root/usr/X11R6/include --x-libraries=/opt/montavista/pro/devkit/arm/xscale_le/target/usr/root/usr/X11R6/lib --prefix=/home/rameshchandra/Ramesh/Mywork/Armmatchbox/libfakekey checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for gcc... /opt/montavista/pro/devkit/arm/xscale_le/bin/arm-linux-gcc checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details. What is the the problem with the Cross-compiler? even though i can perfectly cross-compile with this arm-linux-gcc for other program like arm-linux-gcc -o helloarm helloarm.c |
The problem is that your are not telling config your are building it for another platoform. I have compiled many different apps to the XScale( PXA255 & PXA270 ) and StrongArm processors for embedded work. Add the following switches and you should be good:
--target=arm-linux --build=i686-pc-linux-gnu --host=arm-linux Keith |
C compiler problem??
I tried by giving your options i.e,
--target=arm-linux --build=i686-pc-linux-gnu --host=arm-linux with ./configure... here is my full configure details CC=/opt/montavista/pro/devkit/arm/xscale_le/bin/arm-linux-gcc CXX=/opt/montavista/pro/devkit/arm/xscale_le/bin/arm-linux-g++ LDFLAGS=/opt/montavista/pro/devkit/arm/xscale_le/target/lib host=i686 target=arm CPPFLAGS=/opt/montavista/pro/devkit/arm/xscale_le/target/usr/include ./configure --x-include=/opt/montavista/pro/devkit/arm/xscale_le/target/usr/root/usr/X11R6/include --x-libraries=/opt/montavista/pro/devkit/arm/xscale_le/target/usr/root/usr/X11R6/lib --host=i686-pc-linux-gnu --prefix=/home/rameshchandra/Ramesh/Mywork/Armmatchbox/volume/ --target=arm-linux --build=i686-pc-linux-gnu --host=arm-linux Inspite of this...I am facing the same problem..... What may be the reason??? |
All times are GMT -5. The time now is 05:10 AM. |