Re: [CentOS] Building a kernel without kabichk

2009-04-15 Thread Kwan Lowe
On Mon, Apr 13, 2009 at 11:04 PM, Terry Hull t...@nrg-inc.com wrote:

 Did you get it to build with kabichk turned off?

 I had gotten older packages to build as below, but 128.1.6 was giving
 errors.  I can get the kernel to build with kabichk turned on with no real
 problems.  Also here are the kernel packages I have installed (plus the
 source of course.)

 rpm -qa | grep kernel
 kernel-2.6.18-92.el5
 kernel-devel-2.6.18-128.1.6.el5
 kernel-headers-2.6.18-128.1.6.el5
 kernel-2.6.18-128.1.6.el5
 kernel-2.6.18-92.1.22.el5SCST - This was the one that I built and it worked


 I have NOT installed any patches that will break KABI, but I am wanting to
 patch the kernel for SCST, and that will do it.  Currently, I¹m just trying
 to get the beast to build.  I have been successful getting this to work on
 older versions like 2.6.18-92.1.22, but I have not had success with
 ­128.1.6.  l. I have not worried about build errors at this point, because
 I¹m hoping someone can say, ³Just do this, and all will be well.²


Terry:
Have you applied the patch referenced in the bugzilla on the CentOS wiki:

https://bugzilla.redhat.com/show_bug.cgi?id=456765
https://bugzilla.redhat.com/attachment.cgi?id=332650


It differs somewhat from the patches in the kabi section of the
howto... i.e., changes the beginning of the %if block.

Thanks
Kwan
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Building a kernel without kabichk

2009-04-14 Thread Terry Hull

On 4/14/09 3:12 AM, in article
bfa89a870904140112s490d223ch440cf009d20e8...@mail.gmail.com, Akemi Yagi
amy...@gmail.com wrote:

 On Mon, Apr 13, 2009 at 8:08 PM, Terry Hull t...@nrg-inc.com wrote:
 
 
 On 4/13/09 7:01 PM, in article
 bfa89a870904131701i2afd9b41j78b53b0611a9e...@mail.gmail.com, Akemi Yagi
 amy...@gmail.com wrote:
 
 The patches I need to make do break kABI.  I just have not yet applied them.
 I was trying to get the base kernel to build before I added the complexity
 of patching it.
 
 If the build still fails, please post the last portion of the error
 log (or e-mail the whole log file to me).
 
 I have attached a compressed log file.  The errors seem to be in the build
 of OCFS.
 
 Thanks for the err log file. From the looks of it, the error is in the
 code itself as you noted.  So, that should have nothing to do with
 kABI.
 
 I checked my own log for the kernel 128.1.6 building but did not see
 anything (warnings and such) relating to ocfs2.  You mentioned  have
 NOT installed any patches that will break KABI.  Have you installed
 any patches at all, that is, patches that do not break kABI ?  If so,
 would any of them touch the ocfs code?
 
 Akemi
No, I have not added any patches at all to the source.  I just modified the
.spec file and compiled with the --without kabichk option.  I also did not
have any trouble building the kernel as long as kabichk was enabled.
-- 
Terry Hull
Network Resource Group, Inc. President


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Building a kernel without kabichk

2009-04-14 Thread Akemi Yagi
On Tue, Apr 14, 2009 at 7:33 AM, Terry Hull t...@nrg-inc.com wrote:

 On 4/14/09 3:12 AM, in article
 bfa89a870904140112s490d223ch440cf009d20e8...@mail.gmail.com, Akemi Yagi
 amy...@gmail.com wrote:

 On Mon, Apr 13, 2009 at 8:08 PM, Terry Hull t...@nrg-inc.com wrote:


 On 4/13/09 7:01 PM, in article
 bfa89a870904131701i2afd9b41j78b53b0611a9e...@mail.gmail.com, Akemi Yagi
 amy...@gmail.com wrote:

 The patches I need to make do break kABI.  I just have not yet applied them.
 I was trying to get the base kernel to build before I added the complexity
 of patching it.

 If the build still fails, please post the last portion of the error
 log (or e-mail the whole log file to me).

 I have attached a compressed log file.  The errors seem to be in the build
 of OCFS.

 Thanks for the err log file. From the looks of it, the error is in the
 code itself as you noted.  So, that should have nothing to do with
 kABI.

 I checked my own log for the kernel 128.1.6 building but did not see
 anything (warnings and such) relating to ocfs2.  You mentioned  have
 NOT installed any patches that will break KABI.  Have you installed
 any patches at all, that is, patches that do not break kABI ?  If so,
 would any of them touch the ocfs code?

 Akemi
 No, I have not added any patches at all to the source.  I just modified the
 .spec file and compiled with the --without kabichk option.  I also did not
 have any trouble building the kernel as long as kabichk was enabled.

Terry,

I normally build kABI compatible kernels, so seldom touch the
kabichk-related part of the spec file.  I'm now cc'ing this post to
Alan Bartlett who routinely does it and has amended most part of the
wiki article.

Alan,

This is the beginning of the thread:

http://lists.centos.org/pipermail/centos/2009-April/075066.html

Akemi
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Building a kernel without kabichk

2009-04-14 Thread Terry Hull

On 4/14/09 3:12 AM, in article
bfa89a870904140112s490d223ch440cf009d20e8...@mail.gmail.com, Akemi Yagi
amy...@gmail.com wrote:

 On Mon, Apr 13, 2009 at 8:08 PM, Terry Hull t...@nrg-inc.com wrote:
 
 
 On 4/13/09 7:01 PM, in article
 bfa89a870904131701i2afd9b41j78b53b0611a9e...@mail.gmail.com, Akemi Yagi
 amy...@gmail.com wrote:
 
 The patches I need to make do break kABI.  I just have not yet applied them.
 I was trying to get the base kernel to build before I added the complexity
 of patching it.
 
 If the build still fails, please post the last portion of the error
 log (or e-mail the whole log file to me).
 
 I have attached a compressed log file.  The errors seem to be in the build
 of OCFS.
 
 Thanks for the err log file. From the looks of it, the error is in the
 code itself as you noted.  So, that should have nothing to do with
 kABI.
 
 I checked my own log for the kernel 128.1.6 building but did not see
 anything (warnings and such) relating to ocfs2.  You mentioned  have
 NOT installed any patches that will break KABI.  Have you installed
 any patches at all, that is, patches that do not break kABI ?  If so,
 would any of them touch the ocfs code?
 
 Akemi

It may also be of note that I've done this on two separate machines.  I
guess I'm a little puzzled by this.  It must be true that very few people
actually have to turn off kABI, or this would have come up before.  I know
that I can turn off ocfs in the .config and see if there is anything else
that does not build correctly.
 
--
Terry Hull
Network Resource Group, Inc.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Building a kernel without kabichk

2009-04-14 Thread Kwan Lowe
On Mon, Apr 13, 2009 at 11:04 PM, Terry Hull t...@nrg-inc.com wrote:


 Did you get it to build with kabichk turned off?

Ahh.. It has failed without kabichk.  I can't troubleshoot at the
moment though but there are multiple errors.

 I had gotten older packages to build as below, but 128.1.6 was giving
 errors.  I can get the kernel to build with kabichk turned on with no real
 problems.  Also here are the kernel packages I have installed (plus the
 source of course.)

As someone else suggested, perhaps disabling those failed modules may
get us past the build error.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Building a kernel without kabichk

2009-04-14 Thread Akemi Yagi
On Tue, Apr 14, 2009 at 7:44 AM, Terry Hull t...@nrg-inc.com wrote:

 It may also be of note that I've done this on two separate machines.  I
 guess I'm a little puzzled by this.  It must be true that very few people
 actually have to turn off kABI, or this would have come up before.  I know
 that I can turn off ocfs in the .config and see if there is anything else
 that does not build correctly.

Terry,

I was only talking about the patches and kABI earlier.  I did not
realize that this was just the problem of coding in the ocfs module.
Because this is not enabled in the kernel upstream, they (upstream
developers) would not be interested in fixing the code.  This has
happened with the NTFS module -- it is broken in the 5.3 kernel and
they officially declared no patches for that (although a dev
provided a possible fix personally).

So, you probably do not have much choice. Either try fixing the issue
yourself or just disable it for now.

Akemi
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Building a kernel without kabichk

2009-04-13 Thread Terry Hull
I¹m trying to build a 2.6.18-128.1.6.el5 kernel without kabichk.  I have
downloaded the sources, installed the compiler, etc and ran the following
command

rpmbuild  -bb --target=`uname -m`  --without kabichk --with baseonly
--without debug \
--without debuginfo kernel-2.6.spec.

I had modified the .SPEC file according to the WIKI page
http://wiki.centos.org/HowTos/Custom_Kernel

I have NOT installed any patches that will break KABI, but I am wanting to
patch the kernel for SCST, and that will do it.  Currently, I¹m just trying
to get the beast to build.  I have been successful getting this to work on
older versions like 2.6.18-92.1.22, but I have not had success with
­128.1.6.  l. I have not worried about build errors at this point, because
I¹m hoping someone can say, ³Just do this, and all will be well.²

I am relatively new to CentOS / RedHat, but I do have a significant amount
of Linux experience building kernels.

I am now trying to see if I can get the kernel to build with kabi in place.

Any pointers would be greatly appreciated.  TIA.

-- 
Terry Hull
Network Resource Group, Inc. President


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Building a kernel without kabichk

2009-04-13 Thread Akemi Yagi
On Mon, Apr 13, 2009 at 3:53 PM, Terry Hull t...@nrg-inc.com wrote:
 I’m trying to build a 2.6.18-128.1.6.el5 kernel without kabichk.  I have
 downloaded the sources, installed the compiler, etc and ran the following
 command

 rpmbuild  -bb --target=`uname -m`  --without kabichk --with baseonly
 --without debug \
 --without debuginfo kernel-2.6.spec.

 I had modified the .SPEC file according to the WIKI page
 http://wiki.centos.org/HowTos/Custom_Kernel

 I have NOT installed any patches that will break KABI,

If you know your custom kernel retains the kABI, I suggest you
entirely skip the section of the Wiki article that deals with the
kABI-related modifications.  No only this will reduce the chance of
making incorrect changes but also it is indeed a good idea to do kABI
checking.

If the build still fails, please post the last portion of the error
log (or e-mail the whole log file to me).

Akemi
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Building a kernel without kabichk

2009-04-13 Thread Kwan Lowe
On Mon, Apr 13, 2009 at 6:53 PM, Terry Hull t...@nrg-inc.com wrote:
 I’m trying to build a 2.6.18-128.1.6.el5 kernel without kabichk.  I have
 downloaded the sources, installed the compiler, etc and ran the following
 command

 rpmbuild  -bb --target=`uname -m`  --without kabichk --with baseonly
 --without debug \
 --without debuginfo kernel-2.6.spec.

 I had modified the .SPEC file according to the WIKI page
 http://wiki.centos.org/HowTos/Custom_Kernel

For the most part, the build instructions on the link work for me. The
only changes I do is to install rpmdevtools first, then run
rpmdev-setuptree to create the rpmbuild directories and .rpmmacros
file. The x86_64 also had a requirement for the unifdef package.

 I have NOT installed any patches that will break KABI, but I am wanting to
 patch the kernel for SCST, and that will do it.  Currently, I’m just trying
 to get the beast to build.  I have been successful getting this to work on
 older versions like 2.6.18-92.1.22, but I have not had success with
 –128.1.6.  l. I have not worried about build errors at this point, because
 I’m hoping someone can say, “Just do this, and all will be well.”

 I am relatively new to CentOS / RedHat, but I do have a significant amount
 of Linux experience building kernels.

 I am now trying to see if I can get the kernel to build with kabi in place.


 Any pointers would be greatly appreciated.  TIA.

Any errors?
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Building a kernel without kabichk

2009-04-13 Thread Terry Hull


On 4/13/09 8:23 PM, in article
b7e478370904131823q239fb3dsd4629d1ec6361...@mail.gmail.com, Kwan Lowe
kwan.l...@gmail.com wrote:

 On Mon, Apr 13, 2009 at 6:53 PM, Terry Hull t...@nrg-inc.com wrote:
 I¹m trying to build a 2.6.18-128.1.6.el5 kernel without kabichk.  I have
 downloaded the sources, installed the compiler, etc and ran the following
 command
 
 rpmbuild  -bb --target=`uname -m`  --without kabichk --with baseonly
 --without debug \
 --without debuginfo kernel-2.6.spec.
 
 I had modified the .SPEC file according to the WIKI page
 http://wiki.centos.org/HowTos/Custom_Kernel
 
 For the most part, the build instructions on the link work for me. The
 only changes I do is to install rpmdevtools first, then run
 rpmdev-setuptree to create the rpmbuild directories and .rpmmacros
 file. The x86_64 also had a requirement for the unifdef package.
Did you get it to build with kabichk turned off?

I had gotten older packages to build as below, but 128.1.6 was giving
errors.  I can get the kernel to build with kabichk turned on with no real
problems.  Also here are the kernel packages I have installed (plus the
source of course.)

rpm -qa | grep kernel
kernel-2.6.18-92.el5
kernel-devel-2.6.18-128.1.6.el5
kernel-headers-2.6.18-128.1.6.el5
kernel-2.6.18-128.1.6.el5
kernel-2.6.18-92.1.22.el5SCST - This was the one that I built and it worked

 
 I have NOT installed any patches that will break KABI, but I am wanting to
 patch the kernel for SCST, and that will do it.  Currently, I¹m just trying
 to get the beast to build.  I have been successful getting this to work on
 older versions like 2.6.18-92.1.22, but I have not had success with
 ­128.1.6.  l. I have not worried about build errors at this point, because
 I¹m hoping someone can say, ³Just do this, and all will be well.²
 
 I am relatively new to CentOS / RedHat, but I do have a significant amount
 of Linux experience building kernels.
 
 I am now trying to see if I can get the kernel to build with kabi in place.
 
 
 Any pointers would be greatly appreciated.  TIA.
 
 Any errors?
Yes, this one from my stderr capture:

In file included from fs/ocfs2/ocfs2.h:45,
 from fs/ocfs2/alloc.c:34:fs/ocfs2/endian.h:26: error:
redefinition of 'le16_add_cpu'
include/linux/byteorder/generic.h:174: error: previous definition of
'le16_add_cpu' was herefs/ocfs2/endian.h:31: error: redefinition of
'le32_add_cpu'
include/linux/byteorder/generic.h:179: error: previous definition of
'le32_add_cpu' was herefs/ocfs2/endian.h:41: error: redefinition of
'be32_add_cpu'
include/linux/byteorder/generic.h:195: error: previous definition of
'be32_add_cpu' was here
make[2]: *** [fs/ocfs2/alloc.o] Error 1
make[1]: *** [fs/ocfs2] Error 2
make: *** [fs] Error 2
make: *** Waiting for unfinished jobs

That was all I found.

-- 
Terry Hull
Network Resource Group, Inc. President


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos