gcc3.0 error halts make of linux kernel 2.2

Stewart Andreason sandreas@techline.com
Sun Jun 24 19:27:00 GMT 2001


Originator:
  Stewart Andreason
  sandreas@techline.com

Fatal error: make bzImage  halted due to errors specific to gcc-3.0
Category: other
Class: Rejects-legal

Synopsis: unable to compile linux kernel (any 2.2 version) after
installing
          gcc-3.0 from gcc-2.95.3
Same errors were given from linux-2.2.19, only the line numbers were
different.

/usr/src/linux-2.2.16 > gcc -v
Reading specs from
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0/specs
Configured with: ../gcc-3.0/configure
Thread model: single
gcc version 3.0

Command to trigger bug:
> make bzImage
[snip several warnings scrolled by]
make all_targets
make[2]: Entering directory `/usr/src/linux-test/kernel'
gcc -D__KERNEL__ -I/usr/src/linux-test/include -Wall
-Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing
-pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2
-malign-functions=2 -DCPU=686   -fno-omit-frame-pointer
-c -o sched.o sched.c
`-m486' is deprecated. Use `-march=i486' or `-mcpu=i486' instead.
In file included from
/usr/src/linux-test/include/linux/string.h:37,
                 from
/usr/src/linux-test/include/linux/signal.h:64,
                 from
/usr/src/linux-test/include/linux/sched.h:23,
                 from /usr/src/linux-test/include/linux/mm.h:4,
                 from sched.c:27:
/usr/src/linux-test/include/asm/string.h:476:17: warning:
multi-line string literals are deprecated
/usr/src/linux-test/include/asm/string.h:476:17: warning:
multi-line string literals are deprecated
In file included from
/usr/src/linux-test/include/linux/sched.h:23,
                 from /usr/src/linux-test/include/linux/mm.h:4,
                 from sched.c:27:
/usr/src/linux-test/include/linux/signal.h: In function
`siginitset':
/usr/src/linux-test/include/linux/signal.h:193: warning:
deprecated use of label at end of compound statement
/usr/src/linux-test/include/linux/signal.h: In function
`siginitsetinv':
/usr/src/linux-test/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-test/include/linux/sched.h:480: 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-test/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux-test/kernel'
make: *** [_dir_kernel] Error 2
sched.i.tar.bz2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: sched.i.tar.bz2
Type: application/x-bzip2
Size: 44179 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20010624/96642544/attachment.bz2>


More information about the Gcc-bugs mailing list