Linux MIPS Architecture development
 help / color / mirror / Atom feed
* i'm not able compile new kernel
@ 2000-06-11  9:40 Jiri Kasi Kastner
  2000-06-11 10:46 ` Ulf Carlsson
  0 siblings, 1 reply; 5+ messages in thread
From: Jiri Kasi Kastner @ 2000-06-11  9:40 UTC (permalink / raw)
  To: linux

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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: i'm not able compile new kernel
  2000-06-11  9:40 i'm not able compile new kernel Jiri Kasi Kastner
@ 2000-06-11 10:46 ` Ulf Carlsson
  2000-06-12 21:04   ` Jiri Kastner jr.
  0 siblings, 1 reply; 5+ messages in thread
From: Ulf Carlsson @ 2000-06-11 10:46 UTC (permalink / raw)
  To: Jiri Kasi Kastner; +Cc: linux

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

You have to use egcs when you compile the kernel.

Ulf

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: i'm not able compile new kernel
  2000-06-11 10:46 ` Ulf Carlsson
@ 2000-06-12 21:04   ` Jiri Kastner jr.
  2000-06-12 23:36     ` Ulf Carlsson
  0 siblings, 1 reply; 5+ messages in thread
From: Jiri Kastner jr. @ 2000-06-12 21:04 UTC (permalink / raw)
  To: linux

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

Is possible to compile kernel with gcc-2.7.2?

Jirka.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: i'm not able compile new kernel
  2000-06-12 21:04   ` Jiri Kastner jr.
@ 2000-06-12 23:36     ` Ulf Carlsson
  2000-06-15 19:22       ` Jiri Kastner jr.
  0 siblings, 1 reply; 5+ messages in thread
From: Ulf Carlsson @ 2000-06-12 23:36 UTC (permalink / raw)
  To: Jiri Kastner jr.; +Cc: linux-mips

> > 
> > You have to use egcs when you compile the kernel.
> > 
> > Ulf
> 
> Is possible to compile kernel with gcc-2.7.2?

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

Ulf

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: i'm not able compile new kernel
  2000-06-12 23:36     ` Ulf Carlsson
@ 2000-06-15 19:22       ` Jiri Kastner jr.
  0 siblings, 0 replies; 5+ messages in thread
From: Jiri Kastner jr. @ 2000-06-15 19:22 UTC (permalink / raw)
  To: linux-mips

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2000-06-15 19:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-06-11  9:40 i'm not able compile new kernel Jiri Kasi Kastner
2000-06-11 10:46 ` Ulf Carlsson
2000-06-12 21:04   ` Jiri Kastner jr.
2000-06-12 23:36     ` Ulf Carlsson
2000-06-15 19:22       ` Jiri Kastner jr.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox