From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,b3b5966a19e27b4c X-Google-Attributes: gid111c93,public From: Peter Rye Subject: Re: Kernel 2.1.104 with egcs? Date: 1998/06/08 Message-ID: #1/1 X-Deja-AN: 360798374 X-NNTP-Posting-Host: picu-sgh.demon.co.uk:194.222.182.163 References: <357c099b.0@rainbow.hrz.uni-siegen.de> X-Complaints-To: abuse@demon.net X-Trace: news.demon.co.uk 897340623 nnrp-06:14574 NO-IDENT picu-sgh.demon.co.uk:194.222.182.163 Organization: St. George's Hospital, Paediatric ICU Newsgroups: comp.os.linux.alpha Nils Faerber 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) \