Subject: i'm not able compile new kernel

From: Jiri "Kasi" Kastner <[email-masked]>
Date: Sun, 11 Jun 2000 11:40:12 +0200

I downloaded kernel source from ftp://ftp.linux.sgi.com/.../v2.3/ 
make menuconfig,
make dep,
this is OK, but when I try make zImage I always get this error output:

/usr/src/linux/include/linux/sched.h: In function `on_sig_stack':
In file included from /usr/src/linux/include/linux/mm.h:4,
                 from /usr/src/linux/include/linux/slab.h:14,
                 from /usr/src/linux/include/linux/malloc.h:4,
                 from /usr/src/linux/include/linux/proc_fs.h:5,
                 from init/main.c:15:
/usr/src/linux/include/linux/sched.h:566: `current' undeclared (first use this function)
/usr/src/linux/include/linux/sched.h:566: (Each undeclared identifier is reported only once
/usr/src/linux/include/linux/sched.h:566: for each function it appears in.)
/usr/src/linux/include/linux/sched.h:567: warning: control reaches end of non-void function
/usr/src/linux/include/linux/sched.h: In function `sas_ss_flags':
/usr/src/linux/include/linux/sched.h:571: `current' undeclared (first use this function)
/usr/src/linux/include/linux/sched.h:573: warning: control reaches end of non-void function
/usr/src/linux/include/linux/sched.h: In function `suser':
/usr/src/linux/include/linux/sched.h:596: `current' undeclared (first use this function)
/usr/src/linux/include/linux/sched.h: In function `fsuser':
/usr/src/linux/include/linux/sched.h:605: `current' undeclared (first use this function)
/usr/src/linux/include/linux/sched.h: In function `capable':
/usr/src/linux/include/linux/sched.h:621: `current' undeclared (first use this function)
/usr/src/linux/include/linux/mm.h: In function `expand_stack':
In file included from /usr/src/linux/include/linux/slab.h:14,
                 from /usr/src/linux/include/linux/malloc.h:4,
                 from /usr/src/linux/include/linux/proc_fs.h:5,
                 from init/main.c:15:
/usr/src/linux/include/linux/mm.h:406: `current' undeclared (first use this function)
init/main.c: In function `start_kernel':
init/main.c:536: `current' undeclared (first use this function)
init/main.c: In function `do_basic_setup':
init/main.c:597: `current' undeclared (first use this function)
make: *** [init/main.o] Error 1

I would like to compile new kernel on indy (hardhat 5.1). Can anybody write to
me what is wrong? My indy is MIPS4600 (IP22), XL-8 bit graphics, vino, IndyCam,
soundcard.

Thanks
Jiri.

---

From: Ulf Carlsson <[email-masked]>
Date: Sun, 11 Jun 2000 03:46:22 -0700 (PDT)

> make: *** [init/main.o] Error 1

You have to use egcs when you compile the kernel.

Ulf

---

From: "Jiri Kastner jr." <[email-masked]>
Date: Mon, 12 Jun 2000 23:04:13 +0200

> You have to use egcs when you compile the kernel.

Is possible to compile kernel with gcc-2.7.2?

Jirka.

---

From: Ulf Carlsson <[email-masked]>
Date: Mon, 12 Jun 2000 16:36:12 -0700 (PDT)

> Is possible to compile kernel with gcc-2.7.2?

Try the egcs 1.0.2 release (egcs-2.90.27) or later. 

Ulf

---

From: "Jiri Kastner jr." <[email-masked]>
Date: Thu, 15 Jun 2000 21:22:19 +0200

> Try the egcs 1.0.2 release (egcs-2.90.27) or later. 
Now I have cross-compiler and I got following:

In file included from /usr/include/errno.h:36,
                 from scripts/split-include.c:26:
/usr/include/bits/errno.h:32: warning: `ECANCELED' redefined
/usr/include/asm/errno.h:139: warning: this is the location of the previous definition
cc1: Invalid option `-fno-strict-aliasing'
In file included from /usr/lib/gcc-lib/mips-linux/egcs-2.90.29/include/stdarg.h:27,
                 from /usr/src/linux/include/linux/kernel.h:10,
                 from /usr/src/linux/include/linux/wait.h:12,
                 from /usr/src/linux/include/linux/fs.h:12,
                 from /usr/src/linux/include/linux/capability.h:13,
                 from /usr/src/linux/include/linux/binfmts.h:5,
                 from /usr/src/linux/include/linux/sched.h:9,
                 from /usr/src/linux/include/linux/mm.h:4,
                 from /usr/src/linux/include/linux/slab.h:14,
                 from /usr/src/linux/include/linux/malloc.h:4,
                 from /usr/src/linux/include/linux/proc_fs.h:5,
                 from init/main.c:15:
/usr/lib/gcc-lib/mips-linux/egcs-2.90.29/include/va-mips.h:89: sgidefs.h: není souborem ani adresáøem
In file included from /usr/src/linux/include/linux/net.h:22,
                 from /usr/src/linux/include/linux/fs.h:15,
                 from /usr/src/linux/include/linux/capability.h:13,
                 from /usr/src/linux/include/linux/binfmts.h:5,
                 from /usr/src/linux/include/linux/sched.h:9,
                 from /usr/src/linux/include/linux/mm.h:4,
                 from /usr/src/linux/include/linux/slab.h:14,
                 from /usr/src/linux/include/linux/malloc.h:4,
                 from /usr/src/linux/include/linux/proc_fs.h:5,
                 from init/main.c:15:
/usr/src/linux/include/linux/socket.h:133: warning: `SOCK_STREAM' redefined
/usr/src/linux/include/asm/socket.h:67: warning: this is the location of the previous definition
/usr/src/linux/include/linux/socket.h:134: warning: `SOCK_DGRAM' redefined
/usr/src/linux/include/asm/socket.h:65: warning: this is the location of the previous definition
make: *** [init/main.o] Error 1

This is from compiling of kernel release 2.4.0test1 from czech mirror of kernel
site.

What's wrong I have cross-compiler egcs-2.90.29 (egcs 1.0.2 release) from
ftp://oss.sgi.com/....

I've compiled latest kernel from ftp.linux.sgi.com/.../v2.3 and when I'm tryin'
to boot this kernel, I get this:

72912+9440+3024+331696+23768d+3644+5808 entry: 0x8bf9a950
Exception:<vector=UTLB Miss>
Status register: 0x30004803<CU1,CU0,IM7,IM4,IPL=???,MODE=KERNEL,EXL,IE>
Cause register: 0x8008<CE=0,IP8,EXC=RMISS>
Exception PC: 0x0, Exception RA: 0x0
exception bad address: 0x0
Local I/O interupt register 1: 0x80<VR/GI02>
Saved user in hex (&gpda 0xa8740e48, &_regs 0xa8741048):.................

What I'm doin' wrong..?

Jirka.