xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* 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

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).