[PLUG] GCC-3.3 --> kernel compilation crashes!?

Steven A. Adams stevea at nwtechops.com
Mon May 5 17:46:02 UTC 2003


On Mon, 2003-05-05 at 10:47, Alex Daniloff wrote:
> Hello Linux folkz,
> I've got an issue with plain kernel 2.4.20
> compilation using gcc-3.3 (Pre-release)
> which came as default gcc with my SuSE 8.2.
> I couldn't find solution to the problem
> when kernel compilation terminates with 
> warnings.
> Is there any chance to downgrade or upgrade
> gcc-3.3 to more stable version without sacrifying
> system integrity?
> Or could somebody please give me a hint what patch,
> option or other thing should be done to the plain
> vanilla kernel 2.4.20 in order to compile it correctly
> with existing gcc-3.3?
> 
> Thank you in advance for any help.
> 
> Alex
> 

Hey Alex,
Are you getting a "segmentation fault" error during 2.4.20 compile and
actually doing a core dump, or is gcc failing on compile errors? 

The warnings that you mention earlier are probably fine, they usually
mean that a comparison is being done on a sub-routine return that might
be of type int instead of unsigned int. Normally looks something like

if (!someroutine(int somearg)){ do something fun; }

where somerouting() is of type int. This forces the compiler to complain
that, since ! is likely to be of type unsigned integer (in C this is the
case, C++ it's type bool) 0 or 1 and the return can be a negative
number. Really only possibly devastating to the programs operation in
this case but the compiler still complains but does not stop.

> 
> _______________________________________________
> PLUG mailing list
> PLUG at lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
-- 






More information about the PLUG mailing list