Problem building a kernel from src.rpm for AMD64 CPU type

Support for the other architectures (X86_64, IA-64, and PowerPC)
Post Reply
sbardash
Posts: 3
Joined: 2006/03/25 23:11:10
Location: Colorado Springs, CO USA
Contact:

Problem building a kernel from src.rpm for AMD64 CPU type

Post by sbardash » 2010/01/24 23:08:06

I installed all the packages in the how-to.
I installed the src.rpm for 2.6.18-164.11.1.el5
I ran the correct rpmbuild -bp command in http://wiki.centos.org/HowTos/I_need_the_Kernel_Source
I ran make oldconfig
I ran make

The kernel builds fine.

I then run make clean

then make xconfig and change only 2 items:

turn off optimize for size

change processor family from:

Generic x86_64
to
AMD-Opteron/Athlon64

save it and run make:

I do this on all the servers we use and support to convince myself that the kernel has been optimized
for the AMD architecture and for speed not size. Up till now this worked fine.

In arch/x86_64/kernel/setup.c I get the following error and the compile quits:

CC arch/x86_64/kernel/setup.o
arch/x86_64/kernel/setup.c: In function ‘setup_arch’:
arch/x86_64/kernel/setup.c:660: warning: format ‘%lx’ expects type ‘long unsigned int’, but argument 2 has type ‘resource_size_t’
arch/x86_64/kernel/setup.c:660: warning: format ‘%lx’ expects type ‘long unsigned int’, but argument 3 has type ‘resource_size_t’
arch/x86_64/kernel/setup.c: In function ‘amd_detect_cmp’:
arch/x86_64/kernel/setup.c:887: error: implicit declaration of function ‘amd_fixup_dcm’
make[1]: *** [arch/x86_64/kernel/setup.o] Error 1
make: *** [arch/x86_64/kernel] Error 2

After installing the kernel source for the 5.4 install release: 2.6.18-164.el5
I tested the same changes and they compile fine.
I tested 10.1 and 11.1 releases and they both fail at the same point.
Looks to me that this is an upstream change to setup.c and they broke it.
A comparison of the code show some major changes.
I think the kernel group at RH needs to fix this "improvement" in setup.c

Any suggestions would be helpful.

Seth

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: Problem building a kernel from src.rpm for AMD64 CPU type

Post by pschaff » 2010/01/24 23:36:21

Would you care to share the reason you are building custom kernels? The default kernels work find on AMD64.

sbardash
Posts: 3
Joined: 2006/03/25 23:11:10
Location: Colorado Springs, CO USA
Contact:

Re: Problem building a kernel from src.rpm for AMD64 CPU type

Post by sbardash » 2010/01/25 00:28:22

As I stated above:

"I do this on all the servers we use and support, to convince myself that the kernel has been optimized
for the AMD architecture and for speed not size. Up till now this worked fine."

We loaded the latest kernel - 164.11.1.el5 onto the machine after the O/S was installed.
While testing I/O speeds and network file transfers we saw some delays where the machine justed paused.

I then loaded the src.rpm for that kernel and tried to optimize it for the CPU architecure and for speed instead of size.
This usually fixes any issues with our systems when seeing the system pause during I/O. It fails to build.

I just build a kernel from the install version: 2.6.18-164.el5.src.rpm and turned on the AMD K8 optimization and turned off the
build for size option. This compiled and worked better. It seems to have fixed the pause during I/O issue.

I hope this answers your question.

I still think that the changes made to setup.c need to be addressed so they support the options in the kernel build.

Seth

User avatar
toracat
Forum Moderator
Posts: 7386
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: Problem building a kernel from src.rpm for AMD64 CPU type

Post by toracat » 2010/01/25 00:40:05

I suggest you try filing a bug report with upstream at http://bugzilla.redhat.com . Because they do not support custom kernels, they might reject your request. However, if you provide a patch that rectifies the issue, there is a good chance that they pick it up. It is case by case.

sbardash
Posts: 3
Joined: 2006/03/25 23:11:10
Location: Colorado Springs, CO USA
Contact:

Re: Problem building a kernel from src.rpm for AMD64 CPU type

Post by sbardash » 2010/01/25 02:38:12

Bug Submitted.

https://bugzilla.redhat.com/show_bug.cgi?id=558367

Now we wait to see if Redhat will fix it.

In the mean time I'm reloading the system with a different O/S:
Either Centos 4.8 or Opensuse 11.1 - both x86_64

I'll test both to see which performs better.

If I get an answer from the bug report I'll post it.

Thanks

Seth

User avatar
AlanBartlett
Forum Moderator
Posts: 9323
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: Problem building a kernel from src.rpm for AMD64 CPU type

Post by AlanBartlett » 2010/01/25 13:55:07

[quote]
sbardash wrote:
Bug Submitted.

https://bugzilla.redhat.com/show_bug.cgi?id=558367

Now we wait to see if Redhat will fix it.[/quote]
Issue monitored upstream.

Post Reply

Return to “CentOS 5 - X86_64,s390(x) and PowerPC Support”