Re: Compiling a 2.2.15 linux kernel (for use on hyperSPARC cpu systems)

Christian Joensson <[email protected]>
Newsgroups gmane.linux.aurora.devel
Message-ID <[email protected]>
On Tue, Apr 29, 2003 at 07:55:13PM +0200, Christian Joensson wrote:
> I'd like to see a 2.2.x kernel available for Aurora SPARC Linux... due
> to it supposedly being able to run on hyperSPARC CPU systems...
> 
> Eventually, I'd like to see the current 2.4.x released kernels being
> able to run it well, maybe even in the 2.5.x or thereafter coming
> kernels... :-) But, maybe this is more of an issue for the sparclinux
> list rather than the auroroa-linux-devel list. Don't know what
> happened to the hyperSPARC Linux list :-(
> 
> If anyone else has done a 2.2.x kernel for aurora 1.0, I'd be very
> pleased to use that as a staring point, just a .config for a 2.2.x
> kernel would be fine.
> 
> Hmm, what about Debian these days? Do they have a 2.2.x kernel for
> SPARC? How would I extract their .config??
> 
> If there's no kernel available, I'll attempt to firstly build a 2.2.15
> linux-sparc kernel... suggestions of .config is welcome :-)
> 
> Then, with a little help of my friends here (there are, right?) I'd do
> an src.rpm/sparc.rpm of it and make it available to others.
> 
> So, if anyone got a helping hand, pls let me know. I just wish I had
> some more spare time left over to this hobby project of mine :-)
> 
> Cheers,
> 
> /ChJ
> 
> PS. spot, if you think this is inappropriate for this list, pls let me
> know and I'll find other ways of going ahead.

well, I just grabbed the 2.2.25 kernel, made a config using the
defaults, only enabled SMP, but got many warnings from the dep stage,
and the compile of the kernel bombs out immediately

This is on a SS20 (sparc32):

$ cd /usr/src/linux # the 2.2.25 tree
$ make mrproper

blur removed

$ make CC=kgcc HOSTCC=kgcc config

blur removed, just enabled SMP, the rest was default

$ make CC=kgcc HOSTCC=kgcc dep

lots of blur removed

$ make CC=kgcc HOSTCC=kgcc vmlinux >& build.log

hmm, bombs out right away:

kgcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/split-include scripts/split-include.c
scripts/split-include include/linux/autoconf.h include/config
kgcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -D__SMP__ -m32 -pipe -mno-fpu -fcall-used-g5 -fcall-used-g7  -c -o init/main.o init/main.c
In file included from /usr/include/asm-sparc/pgtable.h:21,
                 from /usr/include/asm/pgtable.h:6,
                 from /usr/include/linux/pagemap.h:15,
                 from /usr/include/linux/locks.h:8,
                 from /usr/include/linux/blk.h:5,
                 from init/main.c:23:
/usr/include/asm/vac-ops.h:1: warning: garbage at end of `#ifndef' argument
/usr/include/asm/vac-ops.h:2: warning: missing white space after `#define __SPARCSTUB__VAC'
In file included from /usr/include/asm/pgtable.h:6,
                 from /usr/include/linux/pagemap.h:15,
                 from /usr/include/linux/locks.h:8,
                 from /usr/include/linux/blk.h:5,
                 from init/main.c:23:
/usr/include/asm-sparc/pgtable.h:451: asm-generic/pgtable.h: No such file or directory
In file included from init/main.c:15:
/usr/include/linux/proc_fs.h:47: parse error before `off_t'
/usr/include/linux/proc_fs.h:50: warning: `struct file' declared inside parameter list
/usr/include/linux/proc_fs.h:50: warning: its scope is only this definition or declaration,
/usr/include/linux/proc_fs.h:50: warning: which is probably not what you want.
/usr/include/linux/proc_fs.h:51: parse error before `off_t'
/usr/include/linux/proc_fs.h:57: parse error before `mode_t'
/usr/include/linux/proc_fs.h:57: warning: no semicolon at end of struct or union
/usr/include/linux/proc_fs.h:58: warning: data definition has no type or storage class
/usr/include/linux/proc_fs.h:59: parse error before `uid'

lots, lots of blur removed

init/main.c: In function `init':
init/main.c:1617: `O_RDWR' undeclared (first use in this function)
init/main.c:1636: warning: implicit declaration of function `panic'
init/main.c:1637: warning: control reaches end of non-void function
init/main.c: At top level:
init/main.c:467: warning: `root_dev_names' defined but not used
make: *** [init/main.o] Error 1


Something is *very* wrong here... What have I missed?

TIA,

/ChJ
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.