[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] Xen Source code build



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 

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.