Re: 2.3.34 doesn't compile with gcc 2.7.2.3

Artur Skawina (skawina@geocities.com)
Thu, 23 Dec 1999 14:05:29 +0100


Hans-Joachim Baader wrote:
>
> subject says it all:
>
> cc1: Invalid option `preferred-stack-boundary=2'
> cc1: Invalid option `arch=i686'
> cc1: Invalid option `-fno-strict-aliasing'
>
> Is this intentional?

no, it isn't.
i just tried 2.3.34 with gcc 2.7.2.3 as well as egcs 1.0.2, 1.1.2 and
gcc 2.95, and they all still work...
i'd guess you have some make/shell/compiler problem;
see arch/i386/Makefile for the autodetection code -- it is supposed
to turn these options on only if the compiler supports them.

$ make vmlinux "CC=/usr/local/gcc-2.7.2/bin/gcc -B/usr/local/gcc-2.7.2/lib/gcc-lib/i486-linux/2.7.2.3/"
/usr/local/gcc-2.7.2/bin/gcc -B/usr/local/gcc-2.7.2/lib/gcc-lib/i486-linux/2.7.2.3/ -D__KERNEL__ -I/usr/src/linux-2.3.34as/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -fno-strength-reduce -DCPU=686 -DHZ=1024 -DUTS_MACHINE='"i386"' -c -o init/version.o init/version.c

$ make vmlinux "CC=/usr/local/egcs-1.1.2/bin/gcc -B /usr/local/egcs-1.1.2/lib/gcc-lib/i686-pc-linux-gnu/egcs-2.91.66/"
/usr/local/egcs-1.1.2/bin/gcc -B /usr/local/egcs-1.1.2/lib/gcc-lib/i686-pc-linux-gnu/egcs-2.91.66/ -D__KERNEL__ -I/usr/src/linux-2.3.34as/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -DCPU=686 -DHZ=1024 -march=i686 -DUTS_MACHINE='"i386"' -c -o init/version.o init/version.c

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/