Re: 5000 emails later, compressed summary ;)

Jakub Jelinek (jj@sunsite.ms.mff.cuni.cz)
Wed, 3 Jun 1998 16:33:13 +0200 (MET DST)


>
> Alan Cox wrote:
> >General things:
> > 2.0.34pre16 is waiting Linus to move it to 2.0.34. Once that is
> >done I will be releasing 2.0.35pre1. The first things Im fixing there are
> >the Cyrix problems and hopefully finishing the Alpha merge
>
> Before you do this, isn't it time to put in something like this?
>
> if gcc -v 2>&1 | grep "gcc version 2\.7\.2" >/dev/null; then
> echo "Ok, youre using gcc 2.7.2.x"
> else
> echo "Dumb jerk, you're trying to compile a 2.0 kernel with"
> echo "a gcc other than 2.7.2.x"
> echo "DON'T"
> exit 1
> fi
>
> It should get rid om some of the complaints here on linux-kernel. :-)

Probably just putting it into main.c would be better:

#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 6)
#error sorry, your GCC is too old. It builds incorrect kernels.
+#elif __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 7)
+#error sorry, your GCC is too new. 2.0.x kernels should be compiled with GCC 2.7.2.x
#endif

Cheers,
Jakub
___________________________________________________________________
Jakub Jelinek | jj@sunsite.mff.cuni.cz | http://sunsite.mff.cuni.cz
Administrator of SunSITE Czech Republic, MFF, Charles University
___________________________________________________________________
Ultralinux - first 64bit OS to take full power of the UltraSparc
Linux version 2.1.103 on a sparc64 machine (498.80 BogoMips).
___________________________________________________________________

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu