LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 01-02-2007, 12:34 AM   #1
kotao_78
LQ Newbie
 
Registered: Sep 2006
Posts: 17

Rep: Reputation: 0
Question Cross compile GDB issue


HI ALL,

I want to cross compile GDB to ARM platform , the configure run is fine , but it occurred error when make file,

Here is my make script,

Code:
export PATH=/tools/arm-none-linux-gnueabi/bin:$PATH
export CC=arm-none-linux-gnueabi-gcc
export CXX=arm-none-linux-gnueabi-g++
export CXX=CC

./configure \
 --prefix=/root/Download/Packages/gdb-6.5/arm \
 --verbose \
 --host=arm-none-linux-gnueabi \
 --build=i686-pc-linux-gnu \
 --target=arm-none-linux-gnueabi \

make
It always return following error message when make,

Quote:
[root@localhost gdb-6.5]# make
make[1]: Entering directory `/root/Download/Packages/gdb-6.5'
Configuring in ./libiberty
configure: loading cache ./config.cache
configure: error: `CC' has changed since the previous run:
configure: former value: gcc
configure: current value: arm-none-linux-gnueabi-gcc
configure: error: changes in the environment can compromise the build
configure: error: run `make distclean' and/or `rm ./config.cache' and start over
make[1]: *** [configure-libiberty] Error 1
make[1]: Leaving directory `/root/Download/Packages/gdb-6.5'
make: *** [all] Error 2
Best Regards,
Ke Tao
 
Old 01-02-2007, 12:36 AM   #2
kotao_78
LQ Newbie
 
Registered: Sep 2006
Posts: 17

Original Poster
Rep: Reputation: 0
Any suggestion ? please help me , thanks.
 
Old 01-02-2007, 07:55 PM   #3
burninGpi
Member
 
Registered: Mar 2006
Location: Fort McMurray, Canada
Distribution: Gentoo ~amd64
Posts: 163

Rep: Reputation: 30
Run make -e instead of just make. The -e flag tells make to give environment variables precedence over variables defined in the makefile.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to cross compile? jiyun0121 Linux - General 3 09-01-2005 06:15 PM
Qt Cross Compile werewolfolondon Linux - Software 2 02-25-2005 01:01 PM
cross compile zaicheke Linux - Software 7 01-20-2005 08:23 PM
How to cross-compile? karfei00 Linux - Laptop and Netbook 2 06-03-2004 09:56 AM
gdb issue afrm Programming 2 12-29-2003 09:54 AM


All times are GMT -5. The time now is 08:50 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
Open Source Consulting | Domain Registration