[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: make-kpkg cross compile

On Thu, Apr 10, 2003 at 07:25:40PM +0200, Emanuel Schmid wrote:
> hello
> i'm trying to cross compile a sparc kernel on an i386 with make-kpkg.
> setting KPKG_ARCH=sparc and CROSS_COMPILE=sparc-linux (according to man
> make-kpkg) and running make-kpkg produces the following warning:
> --------
> dpkg-architecture: warning: Specified GNU system type sparc-linux does not
> match
>  gcc system type i386-linux.
> --------
> if i set CC=sparc-linux-gcc this warning disappears, but the compiled
> kernel does not run (which very likely is not the problem of make-kpkg as
> "make ARCH=sparc CROSS_COMPILE=sparc-linux-" does not result in a running
> kernel either)

If "make ARCH=sparc CROSS_COMPILE=sparc-linux-" does not produce a
working kernel, you might aswell go back and get a working
cross-compiler. What kernel version are you using to build your
cross-compiler and what binutils? FYI, you can get away with
binutils-multiarch package, and just use a cross-compile gcc, doing:

make ARCH=sparc CC=sparc-linux-gcc

Debian     - http://www.debian.org/
Linux 1394 - http://www.linux1394.org/
Subversion - http://subversion.tigris.org/
Deqo       - http://www.deqo.com/

Reply to: