LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-22-2010, 09:14 AM   #1
owjian
LQ Newbie
 
Registered: Dec 2010
Posts: 4

Rep: Reputation: 0
Cross Compile GNU make for Alpha Architecture on i686 PC


Hi everyone ,,

I'm trying to cross compile the GNU make for Alpha Architecture on my i686 PC and the GNU make i compiled would be placed in my virtual hard disk which is a Alpha based linux simulated system.

My question is now , I'm able to cross compile the GNU make on my i686 real PC machine , but when i let the make program run in my virtual machine , it pops out the error ..

make: /lib/libc.so.6.1: version `GLIBC_2.4' not found (required by make)

After that, I try another alternative , and I read through the file "INSTALL" on the GNU make directory that I downloaded from the internet . In this case , I downloaded make-3.81.

On the sub section "Compiling For Multiple Architectures"

It says that

"You can compile the package for more than one kind of computer at the
same time, by placing the object files for each architecture in their
own directory. To do this, you must use a version of `make' that
supports the `VPATH' variable, such as GNU `make'. `cd' to the
directory where you want the object files and executables to go and run
the `configure' script. `configure' automatically checks for the
source code in the directory that `configure' is in and in `..'.

If you have to use a `make' that does not support the `VPATH'
variable, you have to compile the package for one architecture at a
time in the source code directory. After you have installed the
package for one architecture, use `make distclean' before reconfiguring
for another architecture."

And I do not understand the line "by placing the object files for each architecture in their own directory" . What object files that I should put ??

And in addition to that , what is the VPATH variable ?

Any help to this solution ?

regards

tq
 
Old 12-22-2010, 11:00 AM   #2
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
Hi owjian,

I'd recommend to look at Linux-From-Scratch, they are known for their excellent documentation about crosscompiling http://cross-lfs.org/files/BOOK/1.1.0/CLFS-x86.html . For vpath look at this: http://mad-scientist.net/make/vpath.html

Markus
 
Old 12-23-2010, 07:10 AM   #3
owjian
LQ Newbie
 
Registered: Dec 2010
Posts: 4

Original Poster
Rep: Reputation: 0
This problem solved by download the cross compiler from http://www.kernel.org/pub/tools/cros...ndex_old.shtml
 
Old 12-23-2010, 07:46 AM   #4
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
Well, nice to read that you found a solution, please use the "Thread Tools" button above in order to mark this thread as SOLVED.

Markus
 
  


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 virtualization (not cross architecture) Skaperen Linux - Virtualization and Cloud 2 11-19-2010 02:23 PM
fail to make pixman with cross compile arm ttthhhkkk Linux - Software 0 10-06-2010 09:49 AM
How to make cross compilation toolchain for mips architecture kennithwang Linux - Embedded & Single-board computer 3 10-20-2007 09:03 AM
Cross-compile Make Error icewm-1.2.29 npujol Linux - Software 1 12-15-2006 01:41 PM
cross compile for i686 Law1213 Linux - Software 2 06-20-2005 09:36 PM


All times are GMT -5. The time now is 10:49 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration