Can't compile kernel-2.6.15-1.54 with gcc 4.1.0

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mohammadazim
    New Member
    • Aug 2007
    • 28

    Can't compile kernel-2.6.15-1.54 with gcc 4.1.0

    Hi,

    I am trying to compile kernel 2.6.15-1.54 of FC5. in BUILD/2.6.15-1.2054/README it says gcc should be above 3.2.0. I have gcc 4.1.0 but I am getting a lot of warning messages like:
    CC [M] fs/xfs/xfs_bmap.o
    fs/xfs/xfs_bmap.c: In function ‘xfs_bmap_alloc ’:
    fs/xfs/xfs_bmap.c:2326 : warning: ‘rtx’ is used uninitialized in this function

    when I do make and it gives error when I do 'make modules'.

    I think this kernel I am trying to compile is compiled with some older version gcc.

    Can any one suggest me a kernel which will compile well on gcc 4.1.0.


    Thx,
    Last edited by mohammadazim; Sep 8 '07, 03:03 PM. Reason: Added warning message for ref..
  • mohammadazim
    New Member
    • Aug 2007
    • 28

    #2
    Originally posted by mohammadazim
    Hi,

    I am trying to compile kernel 2.6.15-1.54 of FC5. in BUILD/2.6.15-1.2054/README it says gcc should be above 3.2.0. I have gcc 4.1.0 but I am getting a lot of warning messages like:
    CC [M] fs/xfs/xfs_bmap.o
    fs/xfs/xfs_bmap.c: In function ‘xfs_bmap_alloc ’:
    fs/xfs/xfs_bmap.c:2326 : warning: ‘rtx’ is used uninitialized in this function

    when I do make and it gives error when I do 'make modules'.

    I think this kernel I am trying to compile is compiled with some older version gcc.

    Can any one suggest me a kernel which will compile well on gcc 4.1.0.


    Thx,
    Hi want to update you all. Sorry for this late update!

    I figured it out by upgrading gcc to 4.1.1-51 version. Since I downloaded latest kernel from net I should upgrade gcc to latest as always latest kernels are compiled on latest gcc before release.

    Comment

    Working...