Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 06-07-2007, 12:39 AM   #1
Registered: May 2007
Posts: 89

Rep: Reputation: 15
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
Old 06-07-2007, 09:13 AM   #2
Registered: Feb 2007
Location: Colorado
Distribution: FC6, FC7 x86_64
Posts: 218

Rep: Reputation: 30
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

Old 06-08-2007, 06:37 AM   #3
Registered: May 2007
Posts: 89

Original Poster
Rep: Reputation: 15
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???


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
checking for C compiler default output... configure: error: C compiler cannot create fiorejm Linux - Software 6 11-12-2009 01:35 PM
compiler problem??? hegdeshashi Linux - Newbie 6 03-07-2007 11:54 PM
Problem in C compiler tirtha Linux - Newbie 3 07-04-2006 11:57 AM
compiler problem athenerx Linux - Newbie 1 07-29-2002 07:52 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:00 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration