[Top] [All Lists]

Re: Problems with cross-compile.

To: linux-mips
Subject: Re: Problems with cross-compile.
From: Ralf Baechle <ralf@Julia.DE>
Date: Mon, 24 Feb 1997 17:00:40 +0100 (MET)
In-reply-to: <> from "Dempsey, Charles" at Feb 24, 97 09:11:26 am

> 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.

Should be /tftpboot/<ip-addr>, not /root/MIPS where <ip-addr> is your
Magnum's IP address.

> 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

libc 4.6.27 is *absolutely* unusable today.  rm -rf and nothing else.
Use libc-961216.

> /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/.

They should all go to /usr/mipsel-linux/lib/ - and nowhere else.

> 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.

What error messages exactly?

> 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. 

The kernel should build where ever you install it.  But without error
messages I can't help you.


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