WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ia64-devel

RE: [Xen-ia64-devel] [Patch] build pacth for acpi

To: <takebe_akio@xxxxxxxxxxxxxx>, <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-ia64-devel] [Patch] build pacth for acpi
From: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
Date: Wed, 16 Nov 2005 11:12:00 +0800
Delivery-date: Wed, 16 Nov 2005 03:11:59 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcXqWSoNwurnl6DBSCOK3TUXQEmXegAAEERw
Thread-topic: [Xen-ia64-devel] [Patch] build pacth for acpi
Hi, Akio,
        I also saw such error sometime ago, and doubt it may be from the chaos 
environment caused by directories move at pre-build time. Usually a fresh clone 
always works for me.

        Specific to following acpi issue. Currently if everything works well, 
linux-2.6-xen-sparse/drivers/acpi/tables.c will be renamed to tables.c.xen-x86 
at build time. Then original linux acpi tables.c will be used for ia64 and then 
you won't see following error anymore related to fixmap. But as you may see in 
xen-mkbuildtree-pre, such directory/file move may only happen at absent of 
mm.xen-x86.

        So normally you'll have your tree working in first fresh clone. Then 
you pull new changesets and checkout again. Now because 
linux-2.6-xen-sparse/drivers/acpi/tables.c is missing due to renamed in first 
build, a new tables.c (with fixmap) will be created which won't be renamed 
again due to existing mm.xen-x86.

        I have no clear idea now about the build process. A simple way you can 
try is to remove all linux directories (linux-2.6-xen-sparse, ref-linux-2.6.12, 
pristine-linux-2.6.12, and linux-2.6.12-xen0) before you check out new 
changesets. You may add it into rule of "make clean" temporarily.

Thanks,
Kevin

>-----Original Message-----
>From: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
>[mailto:xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of
>takebe_akio@xxxxxxxxxxxxxx
>Sent: 2005年11月16日 10:54
>To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
>Subject: [Xen-ia64-devel] [Patch] build pacth for acpi
>
>Hi,
>
>I have the following error today.
>Do anyone have the same error?
>I tried to write a patch for fix acpi/table.c.
>Could anyone check the following patch since I'm not familiar with acpi?
>
>Error is below
>=====================================
>  CC      crypto/compress.o
>  CC      crypto/proc.o
>  CC      crypto/md5.o
>  CC      crypto/des.o
>  LD      crypto/built-in.o
>  CC      drivers/acpi/tables.o
>drivers/acpi/tables.c: In function `acpi_table_init':
>drivers/acpi/tables.c:590: warning: implicit declaration of function 
>`__fix_to_virt'
>drivers/acpi/tables.c:590: error: `FIX_ACPI_RSDP_PAGE' undeclared (first use in
>this function)
>drivers/acpi/tables.c:590: error: (Each undeclared identifier is reported only 
>once
>drivers/acpi/tables.c:590: error: for each function it appears in.)
>make[6]: *** [drivers/acpi/tables.o] Error 1
>make[5]: *** [drivers/acpi] Error 2
>make[4]: *** [drivers] Error 2
>make[4]: Leaving directory `/root/xen-ia64-unstable.hg/linux-2.6.12-xen0'
>make[3]: *** [build] Error 2
>make[3]: Leaving directory `/root/xen-ia64-unstable.hg'
>make[2]: *** [linux-2.6-xen0-install] Error 2
>make[2]: Leaving directory `/root/xen-ia64-unstable.hg'
>make[1]: *** [install-kernels] Error 1
>make[1]: Leaving directory `/root/xen-ia64-unstable.hg'
>make: *** [world] Error 2
>
>=====================================
>
>Patch is below.
>=====================================
>diff -r bd234c9603ce linux-2.6-xen-sparse/drivers/acpi/tables.c
>--- a/linux-2.6-xen-sparse/drivers/acpi/tables.c        Fri Nov 11 19:23:04 
>2005
>+++ b/linux-2.6-xen-sparse/drivers/acpi/tables.c        Wed Nov 16 11:38:24 
>2005
>@@ -565,7 +565,7 @@
>  *
>  * result: sdt_entry[] is initialized
>  */
>-#if CONFIG_XEN
>+#if CONFIG_XEN && ! __ia64__
> #define acpi_rsdp_phys_to_va(rsdp_phys) (__fix_to_virt(FIX_ACPI_RSDP_PAGE)
>+ \
>                                           (rsdp_phys & ~PAGE_MASK))
> #else
>
>========================================
>
>
>Best Regards,
>
>Akio Takebe
>
>_______________________________________________
>Xen-ia64-devel mailing list
>Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
>http://lists.xensource.com/xen-ia64-devel

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel

<Prev in Thread] Current Thread [Next in Thread>