Skip to contentSkip to conversation

current hg unstable tree: arch/i386/kernel/built-in.o: In function `safe_halt': undefined reference to `rcu_needs_cpu'

DISCUSSION Hans-Christian Armingeon 4 participants 7 messages Jun 13, 2006 – Jun 15, 2006 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

Hi,

kernel building doesn't work witth current hg unstable tree and 2.6.16.20 on x86:

  GEN     .version
  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1

arch/i386/kernel/built-in.o: In function safe_halt': undefined reference to rcu_needs_cpu'
make[1]: *** [.tmp_vmlinux1] Error 1
make[1]: Leaving directory `/usr/src/xen/build/kernelbau-20060613.3-xen-unstable.hg-nosmp/linux-2.6.16.20-20060613.3-xen-unstable.hg-nosmp-xen'
make: *** [stamp-build] Error 2

Johnny

#1 lore raw

You need patches/linux-2.6.16.13/rcu_needs_cpu.patch from our repository.

-- Keir

Quoted 23 lines · Hans-Christian Armingeon

Hi,

kernel building doesn't work witth current hg unstable tree and 2.6.16.20 on x86:

  GEN     .version
  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1

arch/i386/kernel/built-in.o: In function safe_halt': undefined reference to rcu_needs_cpu' make[1]: *** [.tmp_vmlinux1] Error 1
make[1]: Leaving directory `/usr/src/xen/build/kernelbau-20060613.3-xen-unstable.hg-nosmp/linux -2.6.16.20-20060613.3-xen-unstable.hg-nosmp-xen'
make: *** [stamp-build] Error 2

Johnny

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#2 lore raw
In reply to Hans-Christian Armingeon

There's a patch in patches/linux-2.6.16.13 called rcu_needs_cpu.patch which provides rcu_needs_cpu for the 2.6.16.13 kernel which is the one I tested against when I submitted the rcu_needs_cpu_patch.

I'm not sure how you are getting the 2.6.16.20 kernel. If this is a standard part of the xen-unstable build that is supposed to work then let me know how to invoke it and I will fix up the problem.

But maybe you have pulled 2.6.16.20 manually, applied the 2.6.16.13 patches manually and then done an hg pull and got the new patch in the patches directory but failed to apply it to your kernel?

Harry

Quoted 23 lines · Hans-Christian Armingeon

Hi,

kernel building doesn't work witth current hg unstable tree and 2.6.16.20 on x86:

  GEN     .version
  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1

arch/i386/kernel/built-in.o: In function safe_halt': undefined reference to rcu_needs_cpu'
make[1]: *** [.tmp_vmlinux1] Error 1
make[1]: Leaving directory `/usr/src/xen/build/kernelbau-20060613.3-xen-unstable.hg-nosmp/linux-2.6.16.20-20060613.3-xen-unstable.hg-nosmp-xen'
make: *** [stamp-build] Error 2

Johnny

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#3 lore raw

Am Mittwoch, 14. Juni 2006 12:55 schrieb Harry Butterworth:

Quoted 11 lines

There's a patch in patches/linux-2.6.16.13 called rcu_needs_cpu.patch which provides rcu_needs_cpu for the 2.6.16.13 kernel which is the one I tested against when I submitted the rcu_needs_cpu_patch.

I'm not sure how you are getting the 2.6.16.20 kernel. If this is a standard part of the xen-unstable build that is supposed to work then let me know how to invoke it and I will fix up the problem.

But maybe you have pulled 2.6.16.20 manually, applied the 2.6.16.13 patches manually and then done an hg pull and got the new patch in the patches directory but failed to apply it to your kernel?

I used linux-2.6.16.20.tar.bz2 from kernel.org, and patched it with mkbuildtree from xen-unstable.hg .

Can mkbuildtree automatically patch the kernel?

Johnny

Quoted 34 lines

Harry

Quoted 16 lines · Hans-Christian Armingeon

Hi,

kernel building doesn't work witth current hg unstable tree and 2.6.16.20 on x86:

  GEN     .version
  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1

arch/i386/kernel/built-in.o: In function safe_halt': undefined reference to rcu_needs_cpu'
make[1]: *** [.tmp_vmlinux1] Error 1
make[1]: Leaving directory `/usr/src/xen/build/kernelbau-20060613.3-xen-unstable.hg-nosmp/linux-2.6.16.20-20060613.3-xen-unstable.hg-nosmp-xen'
make: *** [stamp-build] Error 2

Quoted 7 lines

Johnny

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#6 lore raw
In reply to a message not in the archive

Am Donnerstag, 15. Juni 2006 12:26 schrieben Sie:

Quoted 11 lines

I was worried that I had broken a standard part of the xen build process when I submitted my patch but I think you are doing something that is not supported.

The long-term solution to your problem is clearly to complete the upstream merge of the xen patches with mainstream Linux.

There are some issues with making it easier for people to try to use non-default kernels. It's going to make recreating bugs harder and may cause some spurious problems when patches apply cleanly but are incompatible with the chosen kernel.

So using the latest 2.6.16.x kernel isnt actually supported?

Or is that supported, but using a 2.6.17.x kernel wouldn't be supported?

Johnny

Quoted 29 lines

Harry.

Quoted 23 lines · Hans-Christian Armingeon

Hi Harry,

I wanted mkbuildtree to automatically pick the patches, that are needed. Some of the 2.6.16.13 patches seem to be already in the mainline kernel tree.

I can cleanly apply rcu_needs_cpu_patch to 2.6.16.20.

Johnny

Am Mittwoch, 14. Juni 2006 12:55 schrieben Sie:

Quoted 13 lines

There's a patch in patches/linux-2.6.16.13 called rcu_needs_cpu.patch which provides rcu_needs_cpu for the 2.6.16.13 kernel which is the one I tested against when I submitted the rcu_needs_cpu_patch.

I'm not sure how you are getting the 2.6.16.20 kernel. If this is a standard part of the xen-unstable build that is supposed to work then let me know how to invoke it and I will fix up the problem.

But maybe you have pulled 2.6.16.20 manually, applied the 2.6.16.13 patches manually and then done an hg pull and got the new patch in the patches directory but failed to apply it to your kernel?

Harry

#7 lore raw
Quoted 8 lines · Hans-Christian Armingeon

Am Donnerstag, 15. Juni 2006 12:26 schrieben Sie:

Quoted 7 lines

I was worried that I had broken a standard part of the xen build process when I submitted my patch but I think you are doing something that is not supported.

The long-term solution to your problem is clearly to complete the upstream merge of the xen patches with mainstream Linux.

Quoted 6 lines
Quoted 4 lines

There are some issues with making it easier for people to try to use non-default kernels. It's going to make recreating bugs harder and may cause some spurious problems when patches apply cleanly but are incompatible with the chosen kernel.

So using the latest 2.6.16.x kernel isnt actually supported?

I'm a bit out of my depth with the xen build process here and perhaps someone will correct me but AFAIK, the standard build process in the xen-unstable tree will currently just build 2.6.16.13 and it is a manual process for someone to make the change in the unstable tree to move forwards to a later Linux snapshot.

This should make sense to you if you think that the code in the sparse tree and the patches in the patches directory all have to be consistent with the version of Linux chosen and changes to Linux are outside the control of the Xen developers. So any future version of Linux may require changes in the sparse tree and the patches directory before it will work correctly.

Perhaps someone who knows more would like to comment on support for Linux point releases.

Quoted 35 lines

Or is that supported, but using a 2.6.17.x kernel wouldn't be supported?

Johnny

Quoted 29 lines

Harry.

Quoted 23 lines · Hans-Christian Armingeon

Hi Harry,

I wanted mkbuildtree to automatically pick the patches, that are needed. Some of the 2.6.16.13 patches seem to be already in the mainline kernel tree.

I can cleanly apply rcu_needs_cpu_patch to 2.6.16.20.

Johnny

Am Mittwoch, 14. Juni 2006 12:55 schrieben Sie:

Quoted 13 lines

There's a patch in patches/linux-2.6.16.13 called rcu_needs_cpu.patch which provides rcu_needs_cpu for the 2.6.16.13 kernel which is the one I tested against when I submitted the rcu_needs_cpu_patch.

I'm not sure how you are getting the 2.6.16.20 kernel. If this is a standard part of the xen-unstable build that is supposed to work then let me know how to invoke it and I will fix up the problem.

But maybe you have pulled 2.6.16.20 manually, applied the 2.6.16.13 patches manually and then done an hg pull and got the new patch in the patches directory but failed to apply it to your kernel?

Harry

#8 lore raw
Quoted 5 lines

I'm a bit out of my depth with the xen build process here and perhaps someone will correct me but AFAIK, the standard build process in the xen-unstable tree will currently just build 2.6.16.13 and it is a manual process for someone to make the change in the unstable tree to move forwards to a later Linux snapshot.

Yep.

Quoted 6 lines

This should make sense to you if you think that the code in the sparse tree and the patches in the patches directory all have to be consistent with the version of Linux chosen and changes to Linux are outside the control of the Xen developers. So any future version of Linux may require changes in the sparse tree and the patches directory before it will work correctly.

Yep yep.

Quoted 2 lines

Perhaps someone who knows more would like to comment on support for Linux point releases.

The 2.6.x.y releases generally have small changes moving from y -> y+1. As a result it's often possible to stick the appropriate patch in the patches/ directory (or apply it directly to the build tree and rebuild) and have it work.

There are only a few places in generic code where there could be conflicts, and often the stable series patches don't touch the arch-specific code at all.

Strictly you should check through the patch and look for conflicts with Xen-related stuff. However, often (maybe even usually) it'll work, it's just not officially supported.

Cheers,
Mark

Quoted 37 lines
Quoted 32 lines

Or is that supported, but using a 2.6.17.x kernel wouldn't be supported?

Johnny

Quoted 28 lines

Harry.

Quoted 25 lines · Hans-Christian Armingeon

Hi Harry,

I wanted mkbuildtree to automatically pick the patches, that are needed. Some of the 2.6.16.13 patches seem to be already in the mainline kernel tree.

I can cleanly apply rcu_needs_cpu_patch to 2.6.16.20.

Johnny

Am Mittwoch, 14. Juni 2006 12:55 schrieben Sie:

Quoted 14 lines

There's a patch in patches/linux-2.6.16.13 called rcu_needs_cpu.patch which provides rcu_needs_cpu for the 2.6.16.13 kernel which is the one I tested against when I submitted the rcu_needs_cpu_patch.

I'm not sure how you are getting the 2.6.16.20 kernel. If this is a standard part of the xen-unstable build that is supposed to work then let me know how to invoke it and I will fix up the problem.

But maybe you have pulled 2.6.16.20 manually, applied the 2.6.16.13 patches manually and then done an hg pull and got the new patch in the patches directory but failed to apply it to your kernel?

Harry

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Signature · 4 lines
Dave: Just a question. What use is a unicyle with no seat?  And no pedals!
Mark: To answer a question with a question: What use is a skateboard?
Dave: Skateboards have wheels.
Mark: My wheel has a wheel!