From: lpa@netcom10.netcom.com (Pierre Asselin)
Subject: Re: Trouble compiling the kernel
Date: 1999/10/31 [thread overview]
Message-ID: <7vhodv$20o$1@nntp1.atl.mindspring.net> (raw)
In-Reply-To: 7uo8t7$j3v$1@talia.mad.ttd.net
Guillem Campos <gcampos@coyote.asoc.euitt.upm.es> 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
prev parent reply other threads:[~1999-10-31 4:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-10-21 4:00 Trouble compiling the kernel Guillem Campos
1999-10-31 4:00 ` Pierre Asselin [this message]
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