linux-mips-fnet
[Top] [All Lists]

Problems with cross-compile.

To: linux-mips
Subject: Problems with cross-compile.
From: cdemps@lsumc.edu (Dempsey, Charles)
Date: Mon, 24 Feb 1997 09:11:26 -0600
Organization: Dept Pharmacology, LSUMC-S
Reply-to: cdemps@lsumc.edu
Hi,

I am attempting to cross-compile a kernel for my MIPS Magnum 4000PC on a
generic Pentium 133 running Slackware 3.1. What I have done so far is:

1. From / I untarred binutils-2.7-3.tar and gcc-2.7.2-3.tar.

2. I created the directory /root/MIPS. In this directory I untarred
inc-4.6.27.tar, and the mips sources for linux-2.0.21.tar.

3. mv usr/include include-4.6.27
   rmdir usr

4. cat include-4.6.27-2.diffs | patch -p.

5. I copied all files in include-4.6.27/ to
/root/MIPS/linux-2.0.21/include/.

6. tar xvf glibc-960501.tar. I copied the libraries in usr/lib/ and 
/usr/lib/ to /root/MIPS/linux-2.0.21/lib/.

7. I copied the info files from usr/share/info/ into /usr/info/.

I checked the install with particular attention to the symlinks. From 
/root/MIPS/linux-2.0.21/ I did a make config and then make dep which 
crapped out immediately. This may be the understatement of the year, but 
I don't think I've installed my cross-compiler correctly.

I tried this on an i386 with RedHat 4.0, I changed the kernel sources to 
2.1.14, I even moved the kernel to /usr/src/linux. No matter what,  make 
dep immediately runs into trouble. 

Obviously I'm doing something wrong and/or I missed a step. Any and all 
suggestions as to how to get going are welcome.

Thanks,
Charles

<Prev in Thread] Current Thread [Next in Thread>