Re: [Xen-ia64-devel] Problem with xen-3.0.4_1-src.tgz compilation onia64

2007-04-05 Thread Akio Takebe
Hi, Radek

I have never try xen-3.0.4_1_src,
bt if you modify domain.c like the below, you can compile it.

--- xen/arch/ia64/xen/domain.c.orig 2007-04-05 20:26:43.0 +0900
+++ xen/arch/ia64/xen/domain.c  2007-04-05 20:26:58.0 +0900
@@ -867,7 +867,7 @@ int shadow_mode_control(struct domain *d
 #endif
 
 // see arch/x86/xxx/domain_build.c
-int elf_sanity_check(Elf_Ehdr *ehdr)
+int elf_sanity_check(const Elf_Ehdr *ehdr)
 {
if (!(IS_ELF(*ehdr)))
{

Best Regards,

Akio Takebe

Hi,

Very shortly:
make world
(...)

gcc -O2 -fomit-frame-pointer -DNDEBUG -std=gnu99 -Wall
-Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement
-nostdinc -fno-builtin -fno-common -fno-strict-aliasing -mconstant-gp
-O2 -fomit-frame-pointer -D__KERNEL__ -iwithprefix include
-I/usr/src/xen-3.0.4_1-src/xen/include
-I/usr/src/xen-3.0.4_1-src/xen/include/asm-ia64
-I/usr/src/xen-3.0.4_1-src/xen/include/asm-ia64/linux
-I/usr/src/xen-3.0.4_1-src/xen/include/asm-ia64/linux-xen
-I/usr/src/xen-3.0.4_1-src/xen/include/asm-ia64/linux-null
-I/usr/src/xen-3.0.4_1-src/xen/arch/ia64/linux
-I/usr/src/xen-3.0.4_1-src/xen/arch/ia64/linux-xen -DIA64 -DXEN
-DLINUX_2_6 -ffixed-r13 -mfixed-range=f2-f5,f12-f127 -g
-DCONFIG_XEN_IA64_EXPOSE_P2M -DCONFIG_XEN_IA64_PERVCPU_VHPT
-DCONFIG_XEN_IA64_TLB_TRACK -DCONFIG_XEN_IA64_TLBFLUSH_CLOCK -g
-D__XEN__ -c domain.c -o domain.o
domain.c:871: error: conflicting types for 'elf_sanity_check'
/usr/src/xen-3.0.4_1-src/xen/include/xen/elf.h:529: error: previous
declaration of 'elf_sanity_check' was here
make[6]: *** [domain.o] Error 1
make[6]: Leaving directory `/usr/src/xen-3.0.4_1-src/xen/arch/ia64/xen'
make[5]: *** [xen/built_in.o] Error 2
make[5]: Leaving directory `/usr/src/xen-3.0.4_1-src/xen/arch/ia64'
make[4]: *** [/usr/src/xen-3.0.4_1-src/xen/arch/ia64/built_in.o] Error 2
make[4]: Leaving directory `/usr/src/xen-3.0.4_1-src/xen/arch/ia64'
make[3]: *** [/usr/src/xen-3.0.4_1-src/xen/xen] Error 2
make[3]: Leaving directory `/usr/src/xen-3.0.4_1-src/xen'
make[2]: *** [install] Error 2
make[2]: Leaving directory `/usr/src/xen-3.0.4_1-src/xen'
make[1]: *** [install-xen] Error 2
make[1]: Leaving directory `/usr/src/xen-3.0.4_1-src'
make: *** [world] Error 2



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


Re: [Xen-ia64-devel] Problem with xen-3.0.4_1-src.tgz compilation onia64

2007-04-05 Thread Radek Antoniuk

2007/4/5, Akio Takebe [EMAIL PROTECTED]:

Hi, Radek

I have never try xen-3.0.4_1_src,
bt if you modify domain.c like the below, you can compile it.

--- xen/arch/ia64/xen/domain.c.orig 2007-04-05 20:26:43.0 +0900
+++ xen/arch/ia64/xen/domain.c  2007-04-05 20:26:58.0 +0900
@@ -867,7 +867,7 @@ int shadow_mode_control(struct domain *d
 #endif

 // see arch/x86/xxx/domain_build.c
-int elf_sanity_check(Elf_Ehdr *ehdr)
+int elf_sanity_check(const Elf_Ehdr *ehdr)
 {
if (!(IS_ELF(*ehdr)))
{



Hi!

Indeed it helped.
Shame that it is not in the official source :(

You said that you didn't try to use 3.0.4.
Which would you prefer instead then?


Radek

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


Re: [Xen-ia64-devel] Problem with xen-3.0.4_1-src.tgz compilation onia64

2007-04-05 Thread Radek Antoniuk

2007/4/5, Radek Antoniuk [EMAIL PROTECTED]:

2007/4/5, Akio Takebe [EMAIL PROTECTED]:
 Hi, Radek

 I have never try xen-3.0.4_1_src,
 bt if you modify domain.c like the below, you can compile it.

 --- xen/arch/ia64/xen/domain.c.orig 2007-04-05 20:26:43.0 +0900
 +++ xen/arch/ia64/xen/domain.c  2007-04-05 20:26:58.0 +0900
 @@ -867,7 +867,7 @@ int shadow_mode_control(struct domain *d
  #endif

  // see arch/x86/xxx/domain_build.c
 -int elf_sanity_check(Elf_Ehdr *ehdr)
 +int elf_sanity_check(const Elf_Ehdr *ehdr)
  {
 if (!(IS_ELF(*ehdr)))
 {


Hi!

Indeed it helped.
Shame that it is not in the official source :(

You said that you didn't try to use 3.0.4.
Which would you prefer instead then?



Yeah. That is a actual question.
Then the
/usr/src/xen-3.0.4_1-src/linux-2.6.16.33-xen# make
 CHK include/linux/version.h
 CHK include/linux/compile.h
 CHK usr/initramfs_list
 CC  arch/ia64/xen/../../i386/kernel/pci-dma-xen.o
arch/ia64/xen/../../i386/kernel/pci-dma-xen.c:18:25: error:
asm/swiotlb.h: No such file or directory
make[1]: *** [arch/ia64/xen/../../i386/kernel/pci-dma-xen.o] Error 1
make: *** [arch/ia64/xen] Error 2

In fact there is no such file.
Looks like some patch is not included during the build process or ... ?


--
Radosław Antoniuk
___
Xen-ia64-devel mailing list
Xen-ia64-devel@lists.xensource.com
http://lists.xensource.com/xen-ia64-devel

Re: [Xen-ia64-devel] Problem with xen-3.0.4_1-src.tgz compilation onia64

2007-04-05 Thread Akio Takebe
Hi, Radek


 Hi!

 Indeed it helped.
 Shame that it is not in the official source :(

 You said that you didn't try to use 3.0.4.
 Which would you prefer instead then?


Yeah. That is a actual question.
Then the
/usr/src/xen-3.0.4_1-src/linux-2.6.16.33-xen# make
  CHK include/linux/version.h
  CHK include/linux/compile.h
  CHK usr/initramfs_list
  CC  arch/ia64/xen/../../i386/kernel/pci-dma-xen.o
arch/ia64/xen/../../i386/kernel/pci-dma-xen.c:18:25: error:
asm/swiotlb.h: No such file or directory
make[1]: *** [arch/ia64/xen/../../i386/kernel/pci-dma-xen.o] Error 1
make: *** [arch/ia64/xen] Error 2

In fact there is no such file.
Looks like some patch is not included during the build process or ... ?

Hm. You apply the following patch.
And if you do make kdelete, make kernels, you must compile it.
http://xenbits.xensource.com/ext/xen-ia64-unstable.hg?rev/8af3df2f4b01

When you install it, you see the following documents.

xen/arch/ia64/tools/README.xenia64

Best Regards,

Akio Takebe


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


Re: [Xen-ia64-devel] Problem with xen-3.0.4_1-src.tgz compilation onia64

2007-04-05 Thread Akio Takebe
Hi, Radek

I always use xen-ia64-unstable.hg because I develop it.
Current xen-ia64 is very stable.
And you may use RHEL5.

Best Regards,

Akio Takebe

2007/4/5, Akio Takebe [EMAIL PROTECTED]:
 Hi, Radek

 I have never try xen-3.0.4_1_src,
 bt if you modify domain.c like the below, you can compile it.

 --- xen/arch/ia64/xen/domain.c.orig 2007-04-05 20:26:43.0 +0900
 +++ xen/arch/ia64/xen/domain.c  2007-04-05 20:26:58.0 +0900
 @@ -867,7 +867,7 @@ int shadow_mode_control(struct domain *d
  #endif

  // see arch/x86/xxx/domain_build.c
 -int elf_sanity_check(Elf_Ehdr *ehdr)
 +int elf_sanity_check(const Elf_Ehdr *ehdr)
  {
 if (!(IS_ELF(*ehdr)))
 {


Hi!

Indeed it helped.
Shame that it is not in the official source :(

You said that you didn't try to use 3.0.4.
Which would you prefer instead then?


Radek


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