LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 02-13-2010, 04:34 AM   #1
shariefbe
Member
 
Registered: Aug 2008
Location: Tiruchirappalli, India
Distribution: UBUNTU 11.04
Posts: 367

Rep: Reputation: 31
cross compilation


I am trying to croos compile font-config-2.8.0. When compileing i got this error
Code:
  CC     fc-case.o
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
cc1: error: unrecognized command line option "-mfloat-abi=softfp"
cc1: error: unrecognized command line option "-mfpu=neon"
cc1: error: unrecognized command line option "-mfloat-abi=softfp"
cc1: error: unrecognized command line option "-mfpu=neon"
fc-case.c:1: error: bad value (armv7-a) for -march= switch
fc-case.c:1: error: bad value (cortex-a8) for -mtune= switch
make[3]: *** [fc-case.o] Error 1
make[3]: Leaving directory `/mnt/omap/sources/fontconfig-2.8.0/fc-case'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/mnt/omap/sources/fontconfig-2.8.0/fc-case'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/omap/sources/fontconfig-2.8.0'
make: *** [all] Error 2
I think it is using gcc instead of ARM toolchain. But in make file all are using ARM only. But how only this part can use GCC. I am not sure. if anybody knows the answer will be appretiated.
 
Old 02-13-2010, 07:35 AM   #2
ForzaItalia2006
Member
 
Registered: Dec 2009
Location: Walldorf, Germany
Distribution: (X)Ubuntu, Arch, Gentoo
Posts: 205

Rep: Reputation: 67
Yes, this seems to be "caused" by the use of gcc. But honestly, we should really get some fragments of your makefile to answer your question. From the error we can't really tell WHY you are using gcc instead of ARM toolchain. By the way, if your compiler is really gcc - which I am quite sure - you could verify the version by

# cc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.3.2-1ubuntu12' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu12)

- Andi -
 
Old 02-13-2010, 07:57 AM   #3
shariefbe
Member
 
Registered: Aug 2008
Location: Tiruchirappalli, India
Distribution: UBUNTU 11.04
Posts: 367

Original Poster
Rep: Reputation: 31
you are give configuration for compile in host system. but i want to compile for target system (ie) ARM processor.
what can i do? see this is my makefile
http://www.filehosting.org/file/details/112202/Makefile
Please help me
 
Old 02-14-2010, 07:14 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,560

Rep: Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512
You can also show the output of : gcc-arm-linux -v

And may be your configure line, which may cause
some wrong options added to the Makefile.

Your Makefile can be attached to your post ..
using the "clip tool" in ' Post Reply '.
Attached Images
File Type: jpg 2010-02-07-09:28:09.jpg (15.4 KB, 4 views)

Last edited by knudfl; 02-14-2010 at 07:17 AM.
 
Old 02-14-2010, 11:36 PM   #5
shariefbe
Member
 
Registered: Aug 2008
Location: Tiruchirappalli, India
Distribution: UBUNTU 11.04
Posts: 367

Original Poster
Rep: Reputation: 31
if i give that command i am getting as
Code:
sharief@sharief-desktop:/mnt/omap/sources/fontconfig-2.8.0$ gcc-arm-linux -v
bash: gcc-arm-linux: command not found
sharief@sharief-desktop:/mnt/omap/sources/fontconfig-2.8.0$
CC=arm-none-linux-gnueabi-gcc CXX=arm-none-linux-gnueabi-g++ LD=arm-none-linux-gnueabi-ld AS=arm-none-linux-gnueabi-as NM=arm-none-linux-gnueabi-nm AR=arm-none-linux-gnueabi-ar RANLIB=arm-none-linux-gnueabi-ranlib STRIP=arm-none-linux-gnueabi-strip OBJCOPY=arm-none-linux-gnueabi-objcopy OBJDUMP=arm-none-linux-gnueabi-objdump ./configure --prefix=$PREFIX --build=$HOST --with-arch=ARM --host=$TARGET --without-python --cache-file=cache-file
[/code]
This is the configure line which i use.
 
Old 02-15-2010, 05:23 AM   #6
shariefbe
Member
 
Registered: Aug 2008
Location: Tiruchirappalli, India
Distribution: UBUNTU 11.04
Posts: 367

Original Poster
Rep: Reputation: 31
see the output of "cc -v"
Code:
sharief@sharief-desktop:/mnt/omap/sources/libtorrent-rasterbar-0.14.8$ cc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.3.3-5ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4)
 
  


Reply


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
cross compilation shaiva Linux - Newbie 2 10-06-2009 03:43 AM
all about cross compilation swift2008 Programming 3 08-27-2008 05:49 AM
cross compilation NeoMagic Programming 5 12-13-2006 02:19 AM
cross compilation Kocil Slackware 6 12-18-2003 01:53 PM
Cross-compilation radhapriya Linux - Software 0 08-11-2003 07:24 AM


All times are GMT -5. The time now is 09:14 AM.

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