2004-04-13 13:11:37

by Ravi Kumar Munnangi

[permalink] [raw]
Subject: linux-2.2.17 compilation error


ot@visionpc2 linux-2.2.17]# make bzImage
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/split-include
scripts/split-include.c
scripts/split-include include/linux/autoconf.h include/config
cc -D__KERNEL__ -I/usr/src/linux-2.2.17/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m386 -DCPU=386 -c -o init/main.o init/main.c
`-m386' is deprecated. Use `-march=i386' or `-mcpu=i386' instead.
In file included from /usr/src/linux-2.2.17/include/linux/string.h:37,
from /usr/src/linux-2.2.17/include/linux/signal.h:64,
from /usr/src/linux-2.2.17/include/linux/sched.h:23,
from /usr/src/linux-2.2.17/include/linux/mm.h:4,
from /usr/src/linux-2.2.17/include/linux/slab.h:14,
from /usr/src/linux-2.2.17/include/linux/malloc.h:4,
from /usr/src/linux-2.2.17/include/linux/proc_fs.h:5,
from init/main.c:15:
/usr/src/linux-2.2.17/include/asm/string.h:476:17: warning: multi-line string literals are deprecated
In file included from /usr/src/linux-2.2.17/include/linux/sched.h:23,
from /usr/src/linux-2.2.17/include/linux/mm.h:4,
from /usr/src/linux-2.2.17/include/linux/slab.h:14,
from /usr/src/linux-2.2.17/include/linux/malloc.h:4,
from /usr/src/linux-2.2.17/include/linux/proc_fs.h:5,
from init/main.c:15:
/usr/src/linux-2.2.17/include/linux/signal.h: In function `siginitset':
/usr/src/linux-2.2.17/include/linux/signal.h:193: warning: deprecated use of label at end of compound statement
/usr/src/linux-2.2.17/include/linux/signal.h: In function `siginitsetinv':
/usr/src/linux-2.2.17/include/linux/signal.h:205: warning: deprecated use of label at end of compound statement
In file included from /usr/src/linux-2.2.17/include/linux/blkdev.h:6,
from /usr/src/linux-2.2.17/include/linux/blk.h:4,
from init/main.c:23:
/usr/src/linux-2.2.17/include/linux/genhd.h: In function `ptype':
/usr/src/linux-2.2.17/include/linux/genhd.h:83: warning: deprecated use of label at end of compound statement
cc -D__KERNEL__ -I/usr/src/linux-2.2.17/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m386 -DCPU=386 -DUTS_MACHINE='"i386"' -c -o init/version.o init/version.c
`-m386' is deprecated. Use `-march=i386' or `-mcpu=i386' instead.
make -C kernel
make[1]: Entering directory `/usr/src/linux-2.2.17/kernel'
make all_targets
make[2]: Entering directory `/usr/src/linux-2.2.17/kernel'
cc -D__KERNEL__ -I/usr/src/linux-2.2.17/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m386 -DCPU=386 -DEXPORT_SYMTAB -c signal.c
`-m386' is deprecated. Use `-march=i386' or `-mcpu=i386' instead.
In file included from /usr/src/linux-2.2.17/include/linux/string.h:37,
from /usr/src/linux-2.2.17/include/linux/signal.h:64,
from /usr/src/linux-2.2.17/include/linux/sched.h:23,
from /usr/src/linux-2.2.17/include/linux/mm.h:4,
from /usr/src/linux-2.2.17/include/linux/slab.h:14,
from signal.c:9:
/usr/src/linux-2.2.17/include/asm/string.h:476:17: warning: multi-line string literals are deprecated
In file included from /usr/src/linux-2.2.17/include/linux/sched.h:23,
from /usr/src/linux-2.2.17/include/linux/mm.h:4,
from /usr/src/linux-2.2.17/include/linux/slab.h:14,
from signal.c:9:
/usr/src/linux-2.2.17/include/linux/signal.h: In function `siginitset':
/usr/src/linux-2.2.17/include/linux/signal.h:193: warning: deprecated use of label at end of compound statement
/usr/src/linux-2.2.17/include/linux/signal.h: In function `siginitsetinv':
/usr/src/linux-2.2.17/include/linux/signal.h:205: warning: deprecated use of label at end of compound statement
cc -D__KERNEL__ -I/usr/src/linux-2.2.17/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m386 -DCPU=386 -DEXPORT_SYMTAB -c ksyms.c
`-m386' is deprecated. Use `-march=i386' or `-mcpu=i386' instead.
In file included from /usr/src/linux-2.2.17/include/linux/string.h:37,
from /usr/src/linux-2.2.17/include/linux/signal.h:64,
from /usr/src/linux-2.2.17/include/linux/sched.h:23,
from /usr/src/linux-2.2.17/include/linux/mm.h:4,
from /usr/src/linux-2.2.17/include/linux/slab.h:14,
from /usr/src/linux-2.2.17/include/linux/malloc.h:4,
from ksyms.c:13:
/usr/src/linux-2.2.17/include/asm/string.h:476:17: warning: multi-line string literals are deprecated
In file included from /usr/src/linux-2.2.17/include/linux/sched.h:23,
from /usr/src/linux-2.2.17/include/linux/mm.h:4,
from /usr/src/linux-2.2.17/include/linux/slab.h:14,
from /usr/src/linux-2.2.17/include/linux/malloc.h:4,
from ksyms.c:13:
/usr/src/linux-2.2.17/include/linux/signal.h: In function `siginitset':
/usr/src/linux-2.2.17/include/linux/signal.h:193: warning: deprecated use of label at end of compound statement
/usr/src/linux-2.2.17/include/linux/signal.h: In function `siginitsetinv':
/usr/src/linux-2.2.17/include/linux/signal.h:205: warning: deprecated use of label at end of compound statement
In file included from /usr/src/linux-2.2.17/include/linux/blkdev.h:6,
from ksyms.c:15:
/usr/src/linux-2.2.17/include/linux/genhd.h: In function `ptype':
/usr/src/linux-2.2.17/include/linux/genhd.h:83: warning: deprecated use of label at end of compound statement
cc -D__KERNEL__ -I/usr/src/linux-2.2.17/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m386 -DCPU=386 -fno-omit-frame-pointer -c -o sched.o sched.c
`-m386' is deprecated. Use `-march=i386' or `-mcpu=i386' instead.
In file included from /usr/src/linux-2.2.17/include/linux/string.h:37,
from /usr/src/linux-2.2.17/include/linux/signal.h:64,
from /usr/src/linux-2.2.17/include/linux/sched.h:23,
from /usr/src/linux-2.2.17/include/linux/mm.h:4,
from sched.c:27:
/usr/src/linux-2.2.17/include/asm/string.h:476:17: warning: multi-line string literals are deprecated
In file included from /usr/src/linux-2.2.17/include/linux/sched.h:23,
from /usr/src/linux-2.2.17/include/linux/mm.h:4,
from sched.c:27:
/usr/src/linux-2.2.17/include/linux/signal.h: In function `siginitset':
/usr/src/linux-2.2.17/include/linux/signal.h:193: warning: deprecated use of label at end of compound statement
/usr/src/linux-2.2.17/include/linux/signal.h: In function `siginitsetinv':
/usr/src/linux-2.2.17/include/linux/signal.h:205: warning: deprecated use of label at end of compound statement
sched.c: At top level:
sched.c:52: conflicting types for `xtime'
/usr/src/linux-2.2.17/include/linux/sched.h:479: previous declaration of `xtime'sched.c: In function `schedule':
sched.c:738: warning: deprecated use of label at end of compound statement
make[2]: *** [sched.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.2.17/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux-2.2.17/kernel'
make: *** [_dir_kernel] Error 2
[root@visionpc2 linux-2.2.17]#


Attachments:
error.txt (7.32 kB)
error.txt

2004-04-13 13:21:41

by Jad Saklawi

[permalink] [raw]
Subject: Re: linux-2.2.17 compilation error

Ravi Kumar Munnangi wrote:

>Hi Users,
>
> I have RedHat Linux-8.0(2.4.18-14).
> Now for some reasons I want to have 2.2.17 also.
>
> But I faced the following errors after make bzImage
>
>
I am facing the same error. When I change the processor family to 586,
every thing is compiling great. I would like to know the reason behind
this error too..

Greets,
Jad Saklawi

2004-04-13 13:19:52

by Marc-Christian Petersen

[permalink] [raw]
Subject: Re: linux-2.2.17 compilation error

On Tuesday 13 April 2004 15:11, Ravi Kumar Munnangi wrote:

Hi Ravi,

> I have RedHat Linux-8.0(2.4.18-14).
> Now for some reasons I want to have 2.2.17 also.

may I ask why you want 2.2.17 and not 2.2.26?

> But I faced the following errors after make bzImage
> during compilation.
> Iam sending the error in error.txt as attachment.
> Please look into that and suggest me the correction.

Do RH8 has gcc3.x? If so, please install gcc 2.9x, because Kernel 2.2 can't be
compiled with gcc 3.2.x/3.3.x

ciao, Marc