From: Peter Rye <prye@picu-sgh.demon.co.uk>
Subject: Re: Kernel 2.1.104 with egcs?
Date: 1998/06/08 [thread overview]
Message-ID: <m37m2r3gl3.fsf@picu-sgh.demon.co.uk> (raw)
In-Reply-To: 357c099b.0@rainbow.hrz.uni-siegen.de
Nils Faerber <nils@unix-ag.org> writes:
> Hi!
> Is it true (or only my fault?) that kernels 2.1.103-104 are not compilable
> with egcs that comes with RH5.1?
> I tried so yesterday and got an error from the assembler about some unknown
> instruction. Very annoying as I would like a) to use egcs as it should
> produce better code and b) test the latest kernels ;)
> Tips welcome!
I presume the "unknown instruction" error is the well known
__builtin_memset error.
I've compiled 2.1.102 to 2.1.105 using egcs, and although it is not
recommended, I don't seem to have come across any other problems (yet).
As far as the __builtin_memset stuff is concerned, you should be able to
get the kernel to compile with the following patch.
--- linux/include/asm-alpha/string.h.orig Fri Apr 10 06:25:33 1998
+++ linux/include/asm-alpha/string.h Thu Apr 9 19:28:23 1998
@@ -24,7 +24,8 @@
extern void * __constant_c_memset(void *, unsigned long, long);
extern void * __memset(void *, char, size_t);
-#if __GNUC__ > 2 || __GNUC_MINOR__ >= 8
+/* #if __GNUC__ > 2 || __GNUC_MINOR__ >= 8 */
+#if 0
#define memset(s, c, n)
\
(__builtin_constant_p(c) \
? (__builtin_constant_p(n) && (c) == 0
\
This seems to have been fixed in 2.1.105, where these lines now look like:
#if __GNUC__ > 2 || __GNUC_MINOR__ >= 91
#define memset(s, c, n) \
(__builtin_constant_p(c) \
next prev parent reply other threads:[~1998-06-08 4:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-06-08 4:00 Kernel 2.1.104 with egcs? Nils Faerber
1998-06-08 4:00 ` Peter Rye [this message]
1998-06-08 4:00 ` Nils Faerber
1998-06-09 4:00 ` Peter Rye
1998-06-09 4:00 ` Bram Stolk
1998-06-09 4:00 ` Nils Faerber
1998-06-10 4:00 ` Wai-Sun Chia
1998-06-10 4:00 ` Nils Faerber
1998-06-12 4:00 ` Wai-Sun Chia
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox