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-users

Re: [Xen-users] xen compilation problem

To: Steven Timm <timm@xxxxxxxx>
Subject: Re: [Xen-users] xen compilation problem
From: Abhay Bhadani <abhadani@xxxxxxxxx>
Date: Thu, 2 Apr 2009 01:42:03 +0530
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 01 Apr 2009 13:12:46 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=b1r1f3HhalsRJiAOtPfT5KSARvL4JuEcOfRJBR4GhRY=; b=oYo/wV6grPjlY6eMbFXDRxo6VCEg3dK6JpjLJPTLs7ZFpMYqzL1PVjxgRqEMC3eydK ZmRy04JvJgCrXcbcOScG+r1xQBx/vZpZz18p4Uc364RbXpiDr7jLw1ziCCrNgDKVP83V tm1XIBpjqBrte1nI3ggXJZiyT9fWMtkQa0aSw=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=aPaKurDF7LfPcWI9Ft8mIFSrJXotGl8Z4FsJdMVNPg+n7LxB+PZhrPLf1O7qB/55IV AuZwf0ZJPp7zlbWdF/M5UNEnT97OdweQ1MnlgpF+YGk4tq9lEBF6hwv/IRsJ/cxXKKgo uV9ZV+5SLgw+w55kqP/uhFSMhZ5aNZzNQD+XQ=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <Pine.LNX.4.64.0904011448530.24668@xxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <bf5456430904011245o20c50635s7d3bb09f7f32e838@xxxxxxxxxxxxxx> <Pine.LNX.4.64.0904011448530.24668@xxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi Steven,

Thanks for the reply.

I have already created the initrd file the way u suggested, but i
think there is some other problem.


Any other suggestion....

Regards,
Abhay



On Thu, Apr 2, 2009 at 1:21 AM, Steven Timm <timm@xxxxxxxx> wrote:
> On Thu, 2 Apr 2009, Abhay Bhadani wrote:
>
>> Hi,
>>
>> I might be missing some silly thing. Please help me out to get the
>> source compiled.
>>
>> OS : RHEL 5.2   and   CentOS 5.2
>
> Note in RHEL5.2 or centos5.2 the xen and kernel-xen that come
> with the distro already work pretty good--the rpm says xen 3.0.3
> but it is really (mostly) xen 3.1.2 on the inside, that's what the
> dmesg prints out.  It may be good enough so you don't have to recompile.
>
>>
>>
>> I tried xen-3.3.0 and linux-2.6.18.8.hg kernel but failed to compile
>> successfully and gave some compilation errors.
>>
>> Then, i tried on Xen 3.0.3_0 and linux-2.6.16.29 kernel, which
>> compiled sucessfully. then i followed whole steps. But while booting
>> into Xen Kernel i got these errors:
>>
>> .
>> .
>> .
>> .
>> Loading ata_piix.ko module
>> Waiting for driver initialization.
>> Creating root device.
>> Mounting root filesystem.
>> mount: could not find filesystem '/dev/root'
>> Setting up other filesystems.
>> Setting up new root fs
>> setuproot: moving /dev failed: No such file or directory
>> no fstab.sys , mounting internal defaults
>> setuproot: error mounting /proc: No such file or directory
>> setuproot: error mounting /sys: No such file or directory
>> Switching to new root and running init.
>> unmounting old /dev
>> unmounting old /proc
>> unmounting old /sys
>> switchroot: mount failed: No such file or directory
>> Booting has failed.
>
> This is likely because you did not make a new initrd.img
> from the new kernel to boot the domU .
>
> depmod 2.6.16.29
> mkinitrd /path/to/yourinitrd.img 2.6.16.29
>
>>
>>
>>
>>
>> Also, during Compilation with xen 3.3.0 with linux-2.6.18-xen.hg,  i
>> got these compilation errors irrespective of any OS platform. I am
>> always getting these errors.
>>
>> I also tried to download linux-2.6.18-xen.hg 2-3 times, hoping i may
>> get some updates but it didn't worked.
>>
>>
>> .
>> .
>> .
>> .
>> .
>> CC [M]  net/ipv4/netfilter/iptable_raw.o
>>  CC [M]  net/ipv4/netfilter/ipt_hashlimit.o
>>  CC [M]  net/ipv4/netfilter/ipt_iprange.o
>>  CC [M]  net/ipv4/netfilter/ipt_owner.o
>>  CC [M]  net/ipv4/netfilter/ipt_tos.o
>>  CC [M]  net/ipv4/netfilter/ipt_recent.o
>>  CC [M]  net/ipv4/netfilter/ipt_ecn.o
>> /home/abhay/build330/linux-2.6.18-xen.hg/net/ipv4/netfilter/ipt_ecn.c:28:
>> warning: ?struct ipt_ECN_info? declared inside parameter list
>> /home/abhay/build330/linux-2.6.18-xen.hg/net/ipv4/netfilter/ipt_ecn.c:28:
>> warning: its scope is only this definition or declaration, which is
>> probably not what you want
>> /home/abhay/build330/linux-2.6.18-xen.hg/net/ipv4/netfilter/ipt_ecn.c:
>> In function ?set_ect_ip?:
>> /home/abhay/build330/linux-2.6.18-xen.hg/net/ipv4/netfilter/ipt_ecn.c:30:
>> error: ?IPT_DSCP_MASK? undeclared (first use in this function)
>> /home/abhay/build330/linux-2.6.18-xen.hg/net/ipv4/netfilter/ipt_ecn.c:30:
>> error: (Each undeclared identifier is reported only once
>> /home/abhay/build330/linux-2.6.18-xen.hg/net/ipv4/netfilter/ipt_ecn.c:30:
>> error: for each function it appears in.)
>> /home/abhay/build330/linux-2.6.18-xen.hg/net/ipv4/netfilter/ipt_ecn.c:31:
>> error: dereferencing pointer to incomplete type
>> /home/abhay/build330/linux-2.6.18-xen.hg/net/ipv4/netfilter/ipt_ecn.c:39:
>> error: dereferencing pointer to incomplete type
>> /home/abhay/build330/linux-2.6.18-xen.hg/net/ipv4/netfilter/ipt_ecn.c:
>> At top level:
>> /home/abhay/build330/linux-2.6.18-xen.hg/net/ipv4/netfilter/ipt_ecn.c:52:
>> warning: ?struct ipt_ECN_info? declared inside parameter list
>> /home/abhay/build330/linux-2.6.18-xen.hg/net/ipv4/netfilter/ipt_ecn.c:
>> In function ?set_ect_tcp?:
>> /home/abhay/build330/linux-2.6.18-xen.hg/net/ipv4/netfilter/ipt_ecn.c:63:
>> error: dereferencing pointer to incomplete type
>> /home/abhay/build330/linux-2.6.18-xen.hg/net/ipv4/netfilter/ipt_ecn.c:63:
>> error: ?IPT_ECN_OP_SET_ECE? undeclared (first use in this function)
>> /home/abhay/build330/linux-2.6.18-xen.hg/net/ipv4/netfilter/ipt_ecn.c:64:
>> error: dereferencing pointer to incomplete type
>> /home/abhay/build330/linux-2.6.18-xen.hg/net/ipv4/netfilter/ipt_ecn.c:65:
>> error: dereferencing pointer to incomplete type
>> /home/abhay/build330/linux-2.6.18-xen.hg/net/ipv4/netfilter/ipt_ecn.c:65:
>> error: ?IPT_ECN_OP_SET_CWR? undeclared (first use in this function)
>> /home/abhay/build330/linux-2.6.18-xen.hg/net/ipv4/netfilter/ipt_ecn.c:66:
>> error: dereferencing pointer to incomplete type
>> /home/abhay/build330/linux-2.6.18-xen.hg/net/ipv4/netfilter/ipt_ecn.c:78:
>> error: dereferencing pointer to incomplete type
>> /home/abhay/build330/linux-2.6.18-xen.hg/net/ipv4/netfilter/ipt_ecn.c:79:
>> error: dereferencing pointer to incomplete type
>> /home/abhay/build330/linux-2.6.18-xen.hg/net/ipv4/netfilter/ipt_ecn.c:80:
>> error: dereferencing pointer to incomplete type
>> /home/abhay/build330/linux-2.6.18-xen.hg/net/ipv4/netfilter/ipt_ecn.c:81:
>> error: dereferencing pointer to incomplete type
>> /home/abhay/build330/linux-2.6.18-xen.hg/net/ipv4/netfilter/ipt_ecn.c:
>> In function ?target?:
>> /home/abhay/build330/linux-2.6.18-xen.hg/net/ipv4/netfilter/ipt_ecn.c:103:
>> error: dereferencing pointer to incomplete type
>> /home/abhay/build330/linux-2.6.18-xen.hg/net/ipv4/netfilter/ipt_ecn.c:103:
>> error: ?IPT_ECN_OP_SET_IP? undeclared (first use in this function)
>> /home/abhay/build330/linux-2.6.18-xen.hg/net/ipv4/netfilter/ipt_ecn.c:104:
>> warning: passing argument 2 of ?set_ect_ip? from incompatible pointer
>> type
>> /home/abhay/build330/linux-2.6.18-xen.hg/net/ipv4/netfilter/ipt_ecn.c:107:
>> error: dereferencing pointer to incomplete type
>> /home/abhay/build330/linux-2.6.18-xen.hg/net/ipv4/netfilter/ipt_ecn.c:107:
>> error: ?IPT_ECN_OP_SET_ECE? undeclared (first use in this function)
>> /home/abhay/build330/linux-2.6.18-xen.hg/net/ipv4/netfilter/ipt_ecn.c:107:
>> error: ?IPT_ECN_OP_SET_CWR? undeclared (first use in this function)
>> /home/abhay/build330/linux-2.6.18-xen.hg/net/ipv4/netfilter/ipt_ecn.c:109:
>> warning: passing argument 2 of ?set_ect_tcp? from incompatible pointer
>> type
>> /home/abhay/build330/linux-2.6.18-xen.hg/net/ipv4/netfilter/ipt_ecn.c:
>> In function ?checkentry?:
>> /home/abhay/build330/linux-2.6.18-xen.hg/net/ipv4/netfilter/ipt_ecn.c:126:
>> error: dereferencing pointer to incomplete type
>> /home/abhay/build330/linux-2.6.18-xen.hg/net/ipv4/netfilter/ipt_ecn.c:126:
>> error: ?IPT_ECN_OP_MASK? undeclared (first use in this function)
>> /home/abhay/build330/linux-2.6.18-xen.hg/net/ipv4/netfilter/ipt_ecn.c:128:
>> error: dereferencing pointer to incomplete type
>> /home/abhay/build330/linux-2.6.18-xen.hg/net/ipv4/netfilter/ipt_ecn.c:131:
>> error: dereferencing pointer to incomplete type
>> /home/abhay/build330/linux-2.6.18-xen.hg/net/ipv4/netfilter/ipt_ecn.c:131:
>> error: ?IPT_DSCP_MASK? undeclared (first use in this function)
>> /home/abhay/build330/linux-2.6.18-xen.hg/net/ipv4/netfilter/ipt_ecn.c:133:
>> error: dereferencing pointer to incomplete type
>> /home/abhay/build330/linux-2.6.18-xen.hg/net/ipv4/netfilter/ipt_ecn.c:136:
>> error: dereferencing pointer to incomplete type
>> /home/abhay/build330/linux-2.6.18-xen.hg/net/ipv4/netfilter/ipt_ecn.c:136:
>> error: ?IPT_ECN_OP_SET_ECE? undeclared (first use in this function)
>> /home/abhay/build330/linux-2.6.18-xen.hg/net/ipv4/netfilter/ipt_ecn.c:136:
>> error: ?IPT_ECN_OP_SET_CWR? undeclared (first use in this function)
>> /home/abhay/build330/linux-2.6.18-xen.hg/net/ipv4/netfilter/ipt_ecn.c:
>> At top level:
>> /home/abhay/build330/linux-2.6.18-xen.hg/net/ipv4/netfilter/ipt_ecn.c:148:
>> error: invalid application of ?sizeof? to incomplete type ?struct
>> ipt_ECN_info?
>> make[9]: *** [net/ipv4/netfilter/ipt_ecn.o] Error 1
>> make[8]: *** [net/ipv4/netfilter] Error 2
>> make[7]: *** [net/ipv4] Error 2
>> make[6]: *** [net] Error 2
>> make[5]: *** [modules] Error 2
>> make[4]: *** [modules] Error 2
>> make[4]: Leaving directory
>> `/home/abhay/build330/xen-3.2.0/build-linux-2.6.18-xen_x86_32'
>> make[3]: *** [build] Error 1
>> make[3]: Leaving directory `/home/abhay/build330/xen-3.2.0'
>> make[2]: *** [linux-2.6-xen-install] Error 2
>> make[2]: Leaving directory `/home/abhay/build330/xen-3.2.0'
>> make[1]: *** [install-kernels] Error 1
>> make[1]: Leaving directory `/home/abhay/build330/xen-3.2.0'
>> make: *** [world] Error 2
>> [root@localhost xen-3.2.0]#
>>
>>
>>
>>
>> Any suggestions...
>>
>>
>> Thanks and Regards,
>>
>> Abhay Bhadani
>> http://dcomp.daiict.ac.in/~abhay
>>
>> _______________________________________________
>> Xen-users mailing list
>> Xen-users@xxxxxxxxxxxxxxxxxxx
>> http://lists.xensource.com/xen-users
>>
>
> --
> ------------------------------------------------------------------
> Steven C. Timm, Ph.D  (630) 840-8525
> timm@xxxxxxxx  http://home.fnal.gov/~timm/
> Fermilab Computing Division, Scientific Computing Facilities,
> Grid Facilities Department, FermiGrid Services Group, Assistant Group
> Leader.
>

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

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