From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,6cdbcd86a320876a X-Google-Attributes: gid111c93,public From: lpa@netcom10.netcom.com (Pierre Asselin) Subject: Re: Trouble compiling the kernel Date: 1999/10/31 Message-ID: <7vhodv$20o$1@nntp1.atl.mindspring.net>#1/1 X-Deja-AN: 542757154 References: <7uo8t7$j3v$1@talia.mad.ttd.net> Organization: MindSpring Enterprises Newsgroups: comp.os.linux.alpha Guillem Campos writes: >I have installed RH 5.2 on an AS/400 (I'm expecting the >oportunity to install RH 6.x or debian, or something) and >kernel compilation is making me sick. I have tried 2.0.36 >(the one that comes with RH 5.2) 2.2.3, 2.2.12 and today >2.2.13, and with all of them I get the same: when compiling >files in arch/alpha/math-emu/ gcc upsets and says 'internal >compiler error: cc1 got signal 6' after a lot of warnings >about 'left shift count is negative' and so on. I'm new >to alpha but I have compiled many kernels on x86 without >any problem. >What is happening here? Gcc is broke? Gods are against me? >Please help! (... long silence ...) Ahem. You're not alone. There's two of us. It must be a compiler bug (internal compiler error, signal 6). The negative shift counts are a red herring. They're just warnings. They come from a macro that expands like this: if(1<64) { yadda, yadda << (64-1) yadda, yadda } else { yadda, yadda << (1-64) yadda, yadda } The `1' was a parameter to the macro. The `else' branch is not taken, but the constant (1-64) is still folded at compile-time and produces the warning. The compiler trips somewhere else, I have no idea where. This is on redhat 5.2, egcs-1.0.3a-14 . You say you have the same problem with older kernels? For me this started at 2.2.12 . My workaround was to fall back to 2.2.11 and apply the errata (patches) from http://www.linux.org.uk . Also a TCP sequence number patch from http://kernelnotes.org/lnxlists/linux-kernel/lk_9909_04/msg00664.html . Is your source tree clean? Try unpacking a fresh distribution of 2.2.11 somewhere. You don't need to untar in /usr/src to compile the kernel. (Some include files have to be in /usr/src/linux/include to *install* the kernel, but that's another issue.) The clean fix would be to upgrade the compiler. Unfortunately, the release notes of 2.2.13 say *not* to compile stable kernels with gcc 2.95 . -- --Pierre Asselin, Westminster, Colorado lpa@netcom.com