Hi, I have problem with compiled xen-unstable when I write make world I have error: cc1: warnings being treated as errors block-ram.c: In function ''get_image_info'': block-ram.c:104: warning: format ''%lu'' expects type ''long unsigned int'', but argument 3 has type ''uint64_t'' block-ram.c: In function ''tdram_open'': block-ram.c:129: warning: format ''%lu'' expects type ''long unsigned int'', but argument 3 has type ''uint64_t'' make[6]: *** [block-ram.o] Błąd 1 make[6]: Opuszczenie katalogu `/opt/xen-unstable.hg/tools/blktap2/drivers'' make[5]: *** [subdir-install-drivers] Błąd 2 make[5]: Opuszczenie katalogu `/opt/xen-unstable.hg/tools/blktap2'' make[4]: *** [subdirs-install] Błąd 2 make[4]: Opuszczenie katalogu `/opt/xen-unstable.hg/tools/blktap2'' make[3]: *** [subdir-install-blktap2] Błąd 2 make[3]: Opuszczenie katalogu `/opt/xen-unstable.hg/tools'' make[2]: *** [subdirs-install] Błąd 2 make[2]: Opuszczenie katalogu `/opt/xen-unstable.hg/tools'' make[1]: *** [install-tools] Błąd 2 make[1]: Opuszczenie katalogu `/opt/xen-unstable.hg'' make: *** [world] Błąd 2 OS which I have installed is it debian lenny 5.01, installed gcc version dpkg -l |grep gcc ii gcc 4:4.3.2-2 The GNU C compiler ii gcc-3.4 3.4.6-9 The GNU C compiler ii gcc-3.4-base 3.4.6-9 The GNU Compiler Collection (base package) ii gcc-4.1 4.1.2-25 The GNU C compiler ii gcc-4.1-base 4.1.2-25 The GNU Compiler Collection (base package) ii gcc-4.2-base 4.2.4-6 The GNU Compiler Collection (base package) ii gcc-4.3 4.3.2-1.1 The GNU C compiler ii gcc-4.3-base 4.3.2-1.1 The GNU Compiler Collection (base package) For@ll _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
You can solve that by replacing the according format string part by "%llu". I guess that should be corrected in the source code?!! For@ll wrote:> Hi, > > I have problem with compiled xen-unstable when I write make world I > have error: > > cc1: warnings being treated as errors > block-ram.c: In function ''get_image_info'': > block-ram.c:104: warning: format ''%lu'' expects type ''long unsigned > int'', but argument 3 has type ''uint64_t'' > block-ram.c: In function ''tdram_open'': > block-ram.c:129: warning: format ''%lu'' expects type ''long unsigned > int'', but argument 3 has type ''uint64_t'' > make[6]: *** [block-ram.o] Błąd 1 > make[6]: Opuszczenie katalogu > `/opt/xen-unstable.hg/tools/blktap2/drivers'' > make[5]: *** [subdir-install-drivers] Błąd 2 > make[5]: Opuszczenie katalogu `/opt/xen-unstable.hg/tools/blktap2'' > make[4]: *** [subdirs-install] Błąd 2 > make[4]: Opuszczenie katalogu `/opt/xen-unstable.hg/tools/blktap2'' > make[3]: *** [subdir-install-blktap2] Błąd 2 > make[3]: Opuszczenie katalogu `/opt/xen-unstable.hg/tools'' > make[2]: *** [subdirs-install] Błąd 2 > make[2]: Opuszczenie katalogu `/opt/xen-unstable.hg/tools'' > make[1]: *** [install-tools] Błąd 2 > make[1]: Opuszczenie katalogu `/opt/xen-unstable.hg'' > make: *** [world] Błąd 2 > > OS which I have installed is it debian lenny 5.01, installed gcc version > dpkg -l |grep gcc > ii gcc 4:4.3.2-2 The > GNU C compiler > ii gcc-3.4 3.4.6-9 The > GNU C compiler > ii gcc-3.4-base 3.4.6-9 The > GNU Compiler Collection (base package) > ii gcc-4.1 4.1.2-25 The > GNU C compiler > ii gcc-4.1-base 4.1.2-25 The > GNU Compiler Collection (base package) > ii gcc-4.2-base 4.2.4-6 The > GNU Compiler Collection (base package) > ii gcc-4.3 4.3.2-1.1 The > GNU C compiler > ii gcc-4.3-base 4.3.2-1.1 The > GNU Compiler Collection (base package) > > > For@ll > > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Fri, 2009-06-26 at 20:17 +0100, Andreas Sommer wrote:> You can solve that by replacing the according format string part by > "%llu". I guess that should be corrected in the source code?!!I just sent a patch to do just that not realizing that it just breaks x86_64. No sense in playing ping-pong breakage between architectures. Its been fixed (properly), just ''hg pull'' after a make mrproper. Cheers, --Tim _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users