compile fails: Xen on amd64 architecture

Bug #133986 reported by Morton Jonuschat
10
Affects Status Importance Assigned to Milestone
linux-source-2.6.22 (Ubuntu)
Fix Released
Undecided
Unassigned
Nominated for Gutsy by Morton Jonuschat

Bug Description

Compiling linux-source-2.6.22 dated 2007-08-20 from git repository fails at different stages of the compile process.

- Syntax error in pgtable.h added by Xen 3.1.0 patch (missing backslash)
- Syntax error in Xen 3.1.0 patch for arch/x86_64/kernel/entry.S
- Syntax errors in Xen 3.1.0 patch for arch/x86_64/kernel/irq.c
- Missing functions in apic-xen.c

Additionally the following information is missing from the control file:
architecture amd64 in control file for linux-image-2.6.22-10-xen
architecture amd64 in control file for linux-headers-2.6.22-10-xen

Regards,
Morton

Revision history for this message
Morton Jonuschat (ubuntu-debian-planet) wrote : Patch to fix the compile problems

Kernel has been successfully compiled with this patch applied and ran in the following configuration:

 - 64bit amd64Dom0
 - a 32bit i386 DomU
 - a 64bit amd64 DomU

Regards,
Morton

description: updated
Revision history for this message
Chuck Short (zulcss) wrote :

I have a fix locally, will be pushed soon

Changed in linux-source-2.6.22:
status: New → In Progress
Revision history for this message
Chuck Short (zulcss) wrote :

This is fixed already.

Changed in linux-source-2.6.22:
status: In Progress → Fix Committed
Revision history for this message
Andreas John (derjohn) wrote :

hm,
why can't I find a compiled kernel "linux-image-2.6.22-.*-xen" in the repository with $ARCH amd64?
Is that upload still pending?

Best regards,
Andreas

Revision history for this message
Morton Jonuschat (ubuntu-debian-planet) wrote :
Download full text (4.6 KiB)

Current GIT Version still fails compile - this time in mmc_sdhci module. I didn't bother to fix this, waiting for the "official" fix.. Normal generic/server builds work fine.

Building custom xen...
make ARCH=x86_64 EXTRAVERSION=-11-xen SUBLEVEL=22 -C /usr/src/xen-kernel/ubuntu-gutsy/debian/build/custom-build-xen -j1
make[1]: Entering directory `/usr/src/xen-kernel/ubuntu-gutsy/debian/build/custom-build-xen'
make -C /usr/src/xen-kernel/ubuntu-gutsy/debian/build/custom-source-xen O=/usr/src/xen-kernel/ubuntu-gutsy/debian/build/custom-build-xen
  Using /usr/src/xen-kernel/ubuntu-gutsy/debian/build/custom-source-xen as source for kernel
  GEN /usr/src/xen-kernel/ubuntu-gutsy/debian/build/custom-build-xen/Makefile
  CHK include/linux/version.h
  CHK include/linux/utsrelease.h
  CALL /usr/src/xen-kernel/ubuntu-gutsy/debian/build/custom-source-xen/scripts/checksyscalls.sh
  CHK include/linux/compile.h
  CC [M] drivers/mmc/mss/mss_sdhci.o
In file included from /usr/src/xen-kernel/ubuntu-gutsy/debian/build/custom-source-xen/drivers/mmc/mss/mss_sdhci.c:36:
/usr/src/xen-kernel/ubuntu-gutsy/debian/build/custom-source-xen/drivers/mmc/mss/mss_sdhci.h:237: error: field 'card_tasklet' has incomplete type
/usr/src/xen-kernel/ubuntu-gutsy/debian/build/custom-source-xen/drivers/mmc/mss/mss_sdhci.h:238: error: field 'finish_tasklet' has incomplete type
/usr/src/xen-kernel/ubuntu-gutsy/debian/build/custom-source-xen/drivers/mmc/mss/mss_sdhci.c: In function 'sdhci_finish_data':
/usr/src/xen-kernel/ubuntu-gutsy/debian/build/custom-source-xen/drivers/mmc/mss/mss_sdhci.c:556: warning: implicit declaration of function 'tasklet_schedule'
/usr/src/xen-kernel/ubuntu-gutsy/debian/build/custom-source-xen/drivers/mmc/mss/mss_sdhci.c: In function 'sdhci_send_command':
/usr/src/xen-kernel/ubuntu-gutsy/debian/build/custom-source-xen/drivers/mmc/mss/mss_sdhci.c:627: warning: format '%08X' expects type 'unsigned int', but argument 3 has type 'long unsigned int'
/usr/src/xen-kernel/ubuntu-gutsy/debian/build/custom-source-xen/drivers/mmc/mss/mss_sdhci.c: At top level:
/usr/src/xen-kernel/ubuntu-gutsy/debian/build/custom-source-xen/drivers/mmc/mss/mss_sdhci.c:1174: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sdhci_irq'
/usr/src/xen-kernel/ubuntu-gutsy/debian/build/custom-source-xen/drivers/mmc/mss/mss_sdhci.c: In function 'sdhci_suspend':
/usr/src/xen-kernel/ubuntu-gutsy/debian/build/custom-source-xen/drivers/mmc/mss/mss_sdhci.c:1281: warning: implicit declaration of function 'free_irq'
/usr/src/xen-kernel/ubuntu-gutsy/debian/build/custom-source-xen/drivers/mmc/mss/mss_sdhci.c:1267: warning: unused variable 'ret'
/usr/src/xen-kernel/ubuntu-gutsy/debian/build/custom-source-xen/drivers/mmc/mss/mss_sdhci.c: In function 'sdhci_resume':
/usr/src/xen-kernel/ubuntu-gutsy/debian/build/custom-source-xen/drivers/mmc/mss/mss_sdhci.c:1312: warning: implicit declaration of function 'request_irq'
/usr/src/xen-kernel/ubuntu-gutsy/debian/build/custom-source-xen/drivers/mmc/mss/mss_sdhci.c:1312: error: 'sdhci_irq' undeclared (first use in this function)
/usr/src/xen-kernel/ubuntu-gutsy/debian/build/custom-source-xen/drivers/mmc/mss/mss_sdhci.c:1312: error: (...

Read more...

Revision history for this message
Morton Jonuschat (ubuntu-debian-planet) wrote :

To fix this error and successfully compile amd64 kernel package apply the following patch:

diff --git a/drivers/mmc/mss/mss_sdhci.h b/drivers/mmc/mss/mss_sdhci.h
index eaad176..1107d8f 100644
--- a/drivers/mmc/mss/mss_sdhci.h
+++ b/drivers/mmc/mss/mss_sdhci.h
@@ -23,6 +23,7 @@
  * Copyright (c) 2005 Pierre Ossman
  */

+#include <linux/interrupt.h>

 /*
  * PCI registers

Revision history for this message
Zac Bowling (zac) wrote :
Revision history for this message
Zac Bowling (zac) wrote :

I guess the upload is still pending? I just pulled and built the latest in git and it seems to up and running for me now.

Revision history for this message
Bart Verwilst (verwilst) wrote :

AFAIK next week there will be a new build with a working amd64 xen kernel!

Revision history for this message
Bart Verwilst (verwilst) wrote :

It arrived!

ftp://ftp.ubuntu.com/ubuntu/pool/universe/l/linux-source-2.6.22

See, a nice and shiny amd64 deb! ;)

Thanks a lot for all the hard work @ devs, now let's test this puppy!

Revision history for this message
Christian Schürer-Waldheim (quincunx) wrote :

The xen-kernel is there, but I'm missing linux-ubuntu-modules-2.6.22-11-xen for amd64. The driver for my network card is in this package, without it I won't have any network :-(

Hope linux-ubuntu-modules for xen on amd64 will come soon too.

Revision history for this message
Morton Jonuschat (ubuntu-debian-planet) wrote :

Since 11.33 release the kernel is working and compiling with Xen patches, so this bug can be considered fixed.

Changed in linux-source-2.6.22:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.