* Xen Source code build
@ 2012-04-01 5:34 Mohit Dhingra
2012-04-02 8:56 ` Ian Campbell
0 siblings, 1 reply; 5+ messages in thread
From: Mohit Dhingra @ 2012-04-01 5:34 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 2935 bytes --]
*Hello All,*
I am a newbie to Linux and Xen. I tried compiling Xen Source code (I want
to make some changes and see how it works), but it failed on my system as
it couldn't find gnu-stubs32.h. Later, on looking at Makefile, I figured
out that for x86_64, it is not yet supported !!
Then I installed "32-bit" emulation utility for x86-64.
and I tried compiling by "linux32" terminal.
Here, I get following error :
make[5]: Entering directory `/srv/xen-4.1.2/tools/blktap/drivers'
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing
-std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value
-Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF .block-qcow2.o.d
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -Werror
-Wno-unused -I../lib
-I/srv/xen-4.1.2/tools/blktap/drivers/../../../tools/libxc
-I/srv/xen-4.1.2/tools/blktap/drivers/../../../tools/include
-I/srv/xen-4.1.2/tools/blktap/drivers/../../../tools/xenstore
-I/srv/xen-4.1.2/tools/blktap/drivers/../../../tools/include -I
../../libaio/src -I ../../memshr -D_GNU_SOURCE -DUSE_GCRYPT -DMEMSHR -c -o
block-qcow2.o block-qcow2.c
cc1: warnings being treated as errors
block-qcow2.c: In function ‘bdrv_pread’:
block-qcow2.c:238:4: error: format ‘%#llx’ expects type ‘long long unsigned
int’, but argument 5 has type ‘__off_t’
make[5]: *** [block-qcow2.o] Error 1
block-qcow2.c
------------------------------------------------------------------------------------------------------------------
static int bdrv_pread(int fd, int64_t offset, void *buf, int count)
{
int ret;
if (lseek(fd, offset, SEEK_SET) == -1) {
DPRINTF("bdrv_pread failed seek (%#"PRIx64").\n", offset);
return -1;
}
ret = read(fd, buf, count);
if (ret < 0) {
if (lseek(fd, 0, SEEK_END) >= offset) {
DPRINTF("bdrv_pread read failed (%#"PRIx64", END =
%#"PRIx64").\n",
offset, lseek(fd, 0, SEEK_END));
return -1;
}
/* Read beyond end of file. Reading zeros. */
memset(buf, 0, count);
ret = count;
} else if (ret < count) {
/* Read beyond end of file. Filling up with zeros. */
memset(buf + ret, 0, count - ret);
ret = count;
}
return ret;
}
------------------------------------------------------------------------------------------------------------------------
Currently, I have following configuration
cadlab:~/Downloads/xen-4.1.2 # uname -a
Linux cadlab 2.6.37.6-0.11-xen #1 SMP 2011-12-19 23:39:38 +0100 x86_64
x86_64 x86_64 GNU/Linux
And, can I contribute towards 64-bit compatibility on Xen source code build.
*
----------------------------
Thanks & Regards
Mohit Dhingra
*
[-- Attachment #1.2: Type: text/html, Size: 3240 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Xen Source code build
2012-04-01 5:34 Xen Source code build Mohit Dhingra
@ 2012-04-02 8:56 ` Ian Campbell
2012-04-02 9:21 ` Olaf Hering
0 siblings, 1 reply; 5+ messages in thread
From: Ian Campbell @ 2012-04-02 8:56 UTC (permalink / raw)
To: Mohit Dhingra; +Cc: xen-devel@lists.xensource.com
On Sun, 2012-04-01 at 06:34 +0100, Mohit Dhingra wrote:
> Hello All,
>
> I am a newbie to Linux and Xen. I tried compiling Xen Source code (I
> want to make some changes and see how it works), but it failed on my
> system as it couldn't find gnu-stubs32.h. Later, on looking at
> Makefile, I figured out that for x86_64, it is not yet supported !!
x86_64 is very much supported, in fact a 64 bit hypervisor is the
preferred configuration (with 32 or 64 tools depending on your chosen
dom0 configuration). What did you see in the Makefile which made you
think otherwise?
WRT gnu-stubs32.h I suspect you are missing some -devel package or
other. I don't know about how SuSE lays things out but you should locate
the package containing this file and install it. Googling suggests that
perhaps you meant gnu/stubs32.h? In which case you probably want to
install glibc-devel.
If you need to post again then please include a build log, including the
exact make command and the last page or so of the output (i.e. including
all of the error message).
> Then I installed "32-bit" emulation utility for x86-64.
> and I tried compiling by "linux32" terminal.
Cross compiling requires much more effort than that. I suggest you don't
go down that path.
Ian.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Xen Source code build
2012-04-02 8:56 ` Ian Campbell
@ 2012-04-02 9:21 ` Olaf Hering
2012-04-07 6:25 ` Mohit Dhingra
0 siblings, 1 reply; 5+ messages in thread
From: Olaf Hering @ 2012-04-02 9:21 UTC (permalink / raw)
To: Ian Campbell; +Cc: xen-devel@lists.xensource.com, Mohit Dhingra
On Mon, Apr 02, Ian Campbell wrote:
> On Sun, 2012-04-01 at 06:34 +0100, Mohit Dhingra wrote:
> > Hello All,
> >
> > I am a newbie to Linux and Xen. I tried compiling Xen Source code (I
> > want to make some changes and see how it works), but it failed on my
> > system as it couldn't find gnu-stubs32.h. Later, on looking at
> > Makefile, I figured out that for x86_64, it is not yet supported !!
> WRT gnu-stubs32.h I suspect you are missing some -devel package or
> other. I don't know about how SuSE lays things out but you should locate
> the package containing this file and install it. Googling suggests that
> perhaps you meant gnu/stubs32.h? In which case you probably want to
> install glibc-devel.
Running configure and/or make in a 32bit shell is not needed.
"zypper in gcc-32bit glibc-devel-32bit" will install the required
packages to compile the 32bit parts in the firmware.
Olaf
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Xen Source code build
2012-04-02 9:21 ` Olaf Hering
@ 2012-04-07 6:25 ` Mohit Dhingra
2012-04-07 7:30 ` Ian Campbell
0 siblings, 1 reply; 5+ messages in thread
From: Mohit Dhingra @ 2012-04-07 6:25 UTC (permalink / raw)
To: Olaf Hering; +Cc: xen-devel@lists.xensource.com, Ian Campbell
[-- Attachment #1.1: Type: text/plain, Size: 2215 bytes --]
*Hi Ian/All,*
I am sorry, I was mistaken by "For now, a 32 bits host environnment is
necessary to build successfuly. building on a 64 bits host machine is not
yet supported" in http://xen.org/products/xci_source.html
Well, I am now able to build the xen binary image xen4.1.2, (after
installing the missing packages as suggested by you)
-rw-r--r-- 1 root root 691748 Jul 27 2011 xen-4.0.2_52-0.2.1.gz
lrwxrwxrwx 1 root root 21 Feb 9 23:49 xen-4.0.gz ->
xen-4.0.2_52-0.2.1.gz
-rw-r--r-- 1 root root 734699 Apr 7 11:39 xen-4.1.2.gz
lrwxrwxrwx 1 root root 12 Apr 7 11:39 xen-4.1.gz -> xen-4.1.2.gz
lrwxrwxrwx 1 root root 12 Apr 7 11:39 xen-4.gz -> xen-4.1.2.gz
I earlier had the xen-4.0.2 installed through zypper in Dom0 (opensuse 11.4)
(cadlab:/srv/xen-4.1.2 # uname -a
Linux cadlab 2.6.37.6-0.11-xen #1 SMP 2011-12-19 23:39:38 +0100 x86_64
x86_64 x86_64 GNU/Linux
)
But xm commands are not working now.
cadlab:/srv/xen-4.1.2 # xm list
Error: Unable to connect to xend: Connection refused. Is xend running?
Is it not compatible with the openSUSE11.4? Or is there something which I
am missing out.
*
----------------------------
Thanks & Regards
Mohit Dhingra
+919611190435*
On 2 April 2012 14:51, Olaf Hering <olaf@aepfle.de> wrote:
> On Mon, Apr 02, Ian Campbell wrote:
>
> > On Sun, 2012-04-01 at 06:34 +0100, Mohit Dhingra wrote:
> > > Hello All,
> > >
> > > I am a newbie to Linux and Xen. I tried compiling Xen Source code (I
> > > want to make some changes and see how it works), but it failed on my
> > > system as it couldn't find gnu-stubs32.h. Later, on looking at
> > > Makefile, I figured out that for x86_64, it is not yet supported !!
>
> > WRT gnu-stubs32.h I suspect you are missing some -devel package or
> > other. I don't know about how SuSE lays things out but you should locate
> > the package containing this file and install it. Googling suggests that
> > perhaps you meant gnu/stubs32.h? In which case you probably want to
> > install glibc-devel.
>
> Running configure and/or make in a 32bit shell is not needed.
> "zypper in gcc-32bit glibc-devel-32bit" will install the required
> packages to compile the 32bit parts in the firmware.
>
> Olaf
>
[-- Attachment #1.2: Type: text/html, Size: 2938 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Xen Source code build
2012-04-07 6:25 ` Mohit Dhingra
@ 2012-04-07 7:30 ` Ian Campbell
0 siblings, 0 replies; 5+ messages in thread
From: Ian Campbell @ 2012-04-07 7:30 UTC (permalink / raw)
To: Mohit Dhingra; +Cc: xen-users, Olaf Hering
Redirecting to xen-uers@ where this belongs.
On Sat, 2012-04-07 at 07:25 +0100, Mohit Dhingra wrote:
> Hi Ian/All,
>
> I am sorry, I was mistaken by "For now, a 32 bits host environnment is
> necessary to build successfuly. building on a 64 bits host machine is
> not yet supported" in http://xen.org/products/xci_source.html
>
> Well, I am now able to build the xen binary image xen4.1.2, (after
> installing the missing packages as suggested by you)
>
> -rw-r--r-- 1 root root 691748 Jul 27 2011 xen-4.0.2_52-0.2.1.gz
> lrwxrwxrwx 1 root root 21 Feb 9 23:49 xen-4.0.gz ->
> xen-4.0.2_52-0.2.1.gz
> -rw-r--r-- 1 root root 734699 Apr 7 11:39 xen-4.1.2.gz
> lrwxrwxrwx 1 root root 12 Apr 7 11:39 xen-4.1.gz ->
> xen-4.1.2.gz
> lrwxrwxrwx 1 root root 12 Apr 7 11:39 xen-4.gz -> xen-4.1.2.gz
>
> I earlier had the xen-4.0.2 installed through zypper in Dom0 (opensuse
> 11.4)
You removed this before installing 4.1?
> (cadlab:/srv/xen-4.1.2 # uname -a
> Linux cadlab 2.6.37.6-0.11-xen #1 SMP 2011-12-19 23:39:38 +0100 x86_64
> x86_64 x86_64 GNU/Linux
> )
>
>
> But xm commands are not working now.
>
> cadlab:/srv/xen-4.1.2 # xm list
> Error: Unable to connect to xend: Connection refused. Is xend running?
>
> Is it not compatible with the openSUSE11.4? Or is there something
> which I am missing out.
Please check the logs under /var/log/xen/ for clues.
Note that xm is going to be deprecated in 4.2 so you might want to
consider using the new xl toolstack instead.
Ian.
>
> ----------------------------
>
> Thanks & Regards
> Mohit Dhingra
> +919611190435
>
>
> On 2 April 2012 14:51, Olaf Hering <olaf@aepfle.de> wrote:
> On Mon, Apr 02, Ian Campbell wrote:
>
> > On Sun, 2012-04-01 at 06:34 +0100, Mohit Dhingra wrote:
> > > Hello All,
> > >
> > > I am a newbie to Linux and Xen. I tried compiling Xen
> Source code (I
> > > want to make some changes and see how it works), but it
> failed on my
> > > system as it couldn't find gnu-stubs32.h. Later, on
> looking at
> > > Makefile, I figured out that for x86_64, it is not yet
> supported !!
>
>
> > WRT gnu-stubs32.h I suspect you are missing some -devel
> package or
> > other. I don't know about how SuSE lays things out but you
> should locate
> > the package containing this file and install it. Googling
> suggests that
> > perhaps you meant gnu/stubs32.h? In which case you probably
> want to
> > install glibc-devel.
>
>
> Running configure and/or make in a 32bit shell is not needed.
> "zypper in gcc-32bit glibc-devel-32bit" will install the
> required
> packages to compile the 32bit parts in the firmware.
>
> Olaf
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-04-07 7:30 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-01 5:34 Xen Source code build Mohit Dhingra
2012-04-02 8:56 ` Ian Campbell
2012-04-02 9:21 ` Olaf Hering
2012-04-07 6:25 ` Mohit Dhingra
2012-04-07 7:30 ` Ian Campbell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).