Re: Question on Kernel Compilation

Tony Travis <[email protected]> Thu, 25 Jan 2007 09:51:59 +0000
Newsgroups gmane.linux.cluster.openmosix.general
Message-ID <[email protected]>
Juan dela Cruz wrote:
> Hi,
>     I've been trying for a long time to install openMosix 2.4.x on my 
> OpenSuse 10.1 workstation with no success. Suse 10.1 has a kernel 2.6.15 
> version so recompiled the kernel using a vanilla 2.4.x kernel. The 
> problem is that, I cannot get pass thru the kernel compilation. I 
> encountered and error when invoking 'make bzImage'. The error dump looks 
> pretty much like the following lines;
> 
>     /usr/src/linux-2.4.26/include/linux/byteorder/swab.h:160: warning: 
> type qualifiers ignored on function return type
> [...]

Hello, Juan.

No, I've not used Suse but I guess you're using gcc-4.x from the error 
messages you're getting: Try installing gcc-3.3, and edit the Makefile 
to use gcc-3.3:

	HOSTCC          = gcc-3.3

	CC              = $(CROSS_COMPILE)gcc-3.3

You will also need to patch the kernel sources for the "as" assember in 
more recent versions of binutils as I described in my post to the 
openmosix-general list (changing movl to mov, and adjusting some of the 
C types used in the assembler expressions):

http://www.kernel.org/pub/linux/devel/binutils/linux-2.4-seg-4.patch

Let me know how you get on,

	Tony.
-- 
Dr. A.J.Travis,                     |  mailto:[email protected]
Rowett Research Institute,          |    http://www.rri.sari.ac.uk/~ajt
Greenburn Road, Bucksburn,          |   phone:+44 (0)1224 712751
Aberdeen AB21 9SB, Scotland, UK.    |     fax:+44 (0)1224 716687

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV