Worked like charm...<br><br><div class="gmail_quote">2012/1/16 Alon Levy <span dir="ltr"><<a href="mailto:alevy@redhat.com">alevy@redhat.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Mon, Jan 16, 2012 at 08:47:00AM -0300, Nicolas Antonio Corrarello wrote:<br>
> Alo,<br>
> Sorry for the delay's, I left the VM at the office. Here is the output you<br>
<br>
</div>Thanks,<br>
<br>
Can you try this patch?<br>
<br>
<br>
diff --git a/client/foreign_menu.cpp b/client/foreign_menu.cpp<br>
index d1df49d..faef4c2 100644<br>
--- a/client/foreign_menu.cpp<br>
+++ b/client/foreign_menu.cpp<br>
@@ -30,7 +30,7 @@<br>
<br>
#ifdef WIN32<br>
#define PIPE_NAME "SpiceForeignMenu-%lu"<br>
-#elif defined(__i386__)<br>
+#elif defined(__i386__) || __SIZEOF_LONG__ == 4<br>
#define PIPE_NAME "/tmp/SpiceForeignMenu-%llu.uds"<br>
#else<br>
#define PIPE_NAME "/tmp/SpiceForeignMenu-%lu.uds"<br>
<div><div class="h5"><br>
> requested:<br>
> # 1 "<stdin>"<br>
> # 1 "<built-in>"<br>
> #define __STDC__ 1<br>
> #define __STDC_HOSTED__ 1<br>
> #define __GNUC__ 4<br>
> #define __GNUC_MINOR__ 6<br>
> #define __GNUC_PATCHLEVEL__ 2<br>
> #define __VERSION__ "4.6.2"<br>
> #define __FINITE_MATH_ONLY__ 0<br>
> #define __SIZEOF_INT__ 4<br>
> #define __SIZEOF_LONG__ 4<br>
> #define __SIZEOF_LONG_LONG__ 8<br>
> #define __SIZEOF_SHORT__ 2<br>
> #define __SIZEOF_FLOAT__ 4<br>
> #define __SIZEOF_DOUBLE__ 8<br>
> #define __SIZEOF_LONG_DOUBLE__ 8<br>
> #define __SIZEOF_SIZE_T__ 4<br>
> #define __CHAR_BIT__ 8<br>
> #define __BIGGEST_ALIGNMENT__ 8<br>
> #define __ORDER_LITTLE_ENDIAN__ 1234<br>
> #define __ORDER_BIG_ENDIAN__ 4321<br>
> #define __ORDER_PDP_ENDIAN__ 3412<br>
> #define __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__<br>
> #define __FLOAT_WORD_ORDER__ __ORDER_LITTLE_ENDIAN__<br>
> #define __SIZEOF_POINTER__ 4<br>
> #define __SIZE_TYPE__ unsigned int<br>
> #define __PTRDIFF_TYPE__ int<br>
> #define __WCHAR_TYPE__ unsigned int<br>
> #define __WINT_TYPE__ unsigned int<br>
> #define __INTMAX_TYPE__ long long int<br>
> #define __UINTMAX_TYPE__ long long unsigned int<br>
> #define __CHAR16_TYPE__ short unsigned int<br>
> #define __CHAR32_TYPE__ unsigned int<br>
> #define __SIG_ATOMIC_TYPE__ int<br>
> #define __INT8_TYPE__ signed char<br>
> #define __INT16_TYPE__ short int<br>
> #define __INT32_TYPE__ int<br>
> #define __INT64_TYPE__ long long int<br>
> #define __UINT8_TYPE__ unsigned char<br>
> #define __UINT16_TYPE__ short unsigned int<br>
> #define __UINT32_TYPE__ unsigned int<br>
> #define __UINT64_TYPE__ long long unsigned int<br>
> #define __INT_LEAST8_TYPE__ signed char<br>
> #define __INT_LEAST16_TYPE__ short int<br>
> #define __INT_LEAST32_TYPE__ int<br>
> #define __INT_LEAST64_TYPE__ long long int<br>
> #define __UINT_LEAST8_TYPE__ unsigned char<br>
> #define __UINT_LEAST16_TYPE__ short unsigned int<br>
> #define __UINT_LEAST32_TYPE__ unsigned int<br>
> #define __UINT_LEAST64_TYPE__ long long unsigned int<br>
> #define __INT_FAST8_TYPE__ signed char<br>
> #define __INT_FAST16_TYPE__ int<br>
> #define __INT_FAST32_TYPE__ int<br>
> #define __INT_FAST64_TYPE__ long long int<br>
> #define __UINT_FAST8_TYPE__ unsigned char<br>
> #define __UINT_FAST16_TYPE__ unsigned int<br>
> #define __UINT_FAST32_TYPE__ unsigned int<br>
> #define __UINT_FAST64_TYPE__ long long unsigned int<br>
> #define __INTPTR_TYPE__ int<br>
> #define __UINTPTR_TYPE__ unsigned int<br>
> #define __GXX_ABI_VERSION 1002<br>
> #define __SCHAR_MAX__ 127<br>
> #define __SHRT_MAX__ 32767<br>
> #define __INT_MAX__ <a href="tel:2147483647" value="+12147483647">2147483647</a><br>
> #define __LONG_MAX__ 2147483647L<br>
> #define __LONG_LONG_MAX__ 9223372036854775807LL<br>
> #define __WCHAR_MAX__ 4294967295U<br>
> #define __WCHAR_MIN__ 0U<br>
> #define __WINT_MAX__ 4294967295U<br>
> #define __WINT_MIN__ 0U<br>
> #define __PTRDIFF_MAX__ <a href="tel:2147483647" value="+12147483647">2147483647</a><br>
> #define __SIZE_MAX__ 4294967295U<br>
> #define __INTMAX_MAX__ 9223372036854775807LL<br>
> #define __INTMAX_C(c) c ## LL<br>
> #define __UINTMAX_MAX__ 18446744073709551615ULL<br>
> #define __UINTMAX_C(c) c ## ULL<br>
> #define __SIG_ATOMIC_MAX__ <a href="tel:2147483647" value="+12147483647">2147483647</a><br>
> #define __SIG_ATOMIC_MIN__ (-__SIG_ATOMIC_MAX__ - 1)<br>
> #define __INT8_MAX__ 127<br>
> #define __INT16_MAX__ 32767<br>
> #define __INT32_MAX__ <a href="tel:2147483647" value="+12147483647">2147483647</a><br>
> #define __INT64_MAX__ 9223372036854775807LL<br>
> #define __UINT8_MAX__ 255<br>
> #define __UINT16_MAX__ 65535<br>
> #define __UINT32_MAX__ 4294967295U<br>
> #define __UINT64_MAX__ 18446744073709551615ULL<br>
> #define __INT_LEAST8_MAX__ 127<br>
> #define __INT8_C(c) c<br>
> #define __INT_LEAST16_MAX__ 32767<br>
> #define __INT16_C(c) c<br>
> #define __INT_LEAST32_MAX__ <a href="tel:2147483647" value="+12147483647">2147483647</a><br>
> #define __INT32_C(c) c<br>
> #define __INT_LEAST64_MAX__ 9223372036854775807LL<br>
> #define __INT64_C(c) c ## LL<br>
> #define __UINT_LEAST8_MAX__ 255<br>
> #define __UINT8_C(c) c<br>
> #define __UINT_LEAST16_MAX__ 65535<br>
> #define __UINT16_C(c) c<br>
> #define __UINT_LEAST32_MAX__ 4294967295U<br>
> #define __UINT32_C(c) c ## U<br>
> #define __UINT_LEAST64_MAX__ 18446744073709551615ULL<br>
> #define __UINT64_C(c) c ## ULL<br>
> #define __INT_FAST8_MAX__ 127<br>
> #define __INT_FAST16_MAX__ 2147483647<br>
> #define __INT_FAST32_MAX__ 2147483647<br>
> #define __INT_FAST64_MAX__ 9223372036854775807LL<br>
> #define __UINT_FAST8_MAX__ 255<br>
> #define __UINT_FAST16_MAX__ 4294967295U<br>
> #define __UINT_FAST32_MAX__ 4294967295U<br>
> #define __UINT_FAST64_MAX__ 18446744073709551615ULL<br>
> #define __INTPTR_MAX__ 2147483647<br>
> #define __UINTPTR_MAX__ 4294967295U<br>
> #define __FLT_EVAL_METHOD__ 0<br>
> #define __DEC_EVAL_METHOD__ 2<br>
> #define __FLT_RADIX__ 2<br>
> #define __FLT_MANT_DIG__ 24<br>
> #define __FLT_DIG__ 6<br>
> #define __FLT_MIN_EXP__ (-125)<br>
> #define __FLT_MIN_10_EXP__ (-37)<br>
> #define __FLT_MAX_EXP__ 128<br>
> #define __FLT_MAX_10_EXP__ 38<br>
> #define __FLT_DECIMAL_DIG__ 9<br>
> #define __FLT_MAX__ 3.4028234663852886e+38F<br>
> #define __FLT_MIN__ 1.1754943508222875e-38F<br>
> #define __FLT_EPSILON__ 1.1920928955078125e-7F<br>
> #define __FLT_DENORM_MIN__ 1.4012984643248171e-45F<br>
> #define __FLT_HAS_DENORM__ 1<br>
> #define __FLT_HAS_INFINITY__ 1<br>
> #define __FLT_HAS_QUIET_NAN__ 1<br>
> #define __DBL_MANT_DIG__ 53<br>
> #define __DBL_DIG__ 15<br>
> #define __DBL_MIN_EXP__ (-1021)<br>
> #define __DBL_MIN_10_EXP__ (-307)<br>
> #define __DBL_MAX_EXP__ 1024<br>
> #define __DBL_MAX_10_EXP__ 308<br>
> #define __DBL_DECIMAL_DIG__ 17<br>
> #define __DBL_MAX__ ((double)1.7976931348623157e+308L)<br>
> #define __DBL_MIN__ ((double)2.2250738585072014e-308L)<br>
> #define __DBL_EPSILON__ ((double)2.2204460492503131e-16L)<br>
> #define __DBL_DENORM_MIN__ ((double)4.9406564584124654e-324L)<br>
> #define __DBL_HAS_DENORM__ 1<br>
> #define __DBL_HAS_INFINITY__ 1<br>
> #define __DBL_HAS_QUIET_NAN__ 1<br>
> #define __LDBL_MANT_DIG__ 53<br>
> #define __LDBL_DIG__ 15<br>
> #define __LDBL_MIN_EXP__ (-1021)<br>
> #define __LDBL_MIN_10_EXP__ (-307)<br>
> #define __LDBL_MAX_EXP__ 1024<br>
> #define __LDBL_MAX_10_EXP__ 308<br>
> #define __DECIMAL_DIG__ 17<br>
> #define __LDBL_MAX__ 1.7976931348623157e+308L<br>
> #define __LDBL_MIN__ 2.2250738585072014e-308L<br>
> #define __LDBL_EPSILON__ 2.2204460492503131e-16L<br>
> #define __LDBL_DENORM_MIN__ 4.9406564584124654e-324L<br>
> #define __LDBL_HAS_DENORM__ 1<br>
> #define __LDBL_HAS_INFINITY__ 1<br>
> #define __LDBL_HAS_QUIET_NAN__ 1<br>
> #define __DEC32_MANT_DIG__ 7<br>
> #define __DEC32_MIN_EXP__ (-94)<br>
> #define __DEC32_MAX_EXP__ 97<br>
> #define __DEC32_MIN__ 1E-95DF<br>
> #define __DEC32_MAX__ 9.999999E96DF<br>
> #define __DEC32_EPSILON__ 1E-6DF<br>
> #define __DEC32_SUBNORMAL_MIN__ 0.000001E-95DF<br>
> #define __DEC64_MANT_DIG__ 16<br>
> #define __DEC64_MIN_EXP__ (-382)<br>
> #define __DEC64_MAX_EXP__ 385<br>
> #define __DEC64_MIN__ 1E-383DD<br>
> #define __DEC64_MAX__ 9.999999999999999E384DD<br>
> #define __DEC64_EPSILON__ 1E-15DD<br>
> #define __DEC64_SUBNORMAL_MIN__ 0.000000000000001E-383DD<br>
> #define __DEC128_MANT_DIG__ 34<br>
> #define __DEC128_MIN_EXP__ (-6142)<br>
> #define __DEC128_MAX_EXP__ 6145<br>
> #define __DEC128_MIN__ 1E-6143DL<br>
> #define __DEC128_MAX__ 9.999999999999999999999999999999999E6144DL<br>
> #define __DEC128_EPSILON__ 1E-33DL<br>
> #define __DEC128_SUBNORMAL_MIN__<br>
> 0.000000000000000000000000000000001E-6143DL<br>
> #define __REGISTER_PREFIX__ <br>
> #define __USER_LABEL_PREFIX__ <br>
> #define __GNUC_GNU_INLINE__ 1<br>
> #define __NO_INLINE__ 1<br>
> #define __CHAR_UNSIGNED__ 1<br>
> #define __PRAGMA_REDEFINE_EXTNAME 1<br>
> #define __SIZEOF_WCHAR_T__ 4<br>
> #define __SIZEOF_WINT_T__ 4<br>
> #define __SIZEOF_PTRDIFF_T__ 4<br>
> #define __arm__ 1<br>
> #define __APCS_32__ 1<br>
> #define __ARMEL__ 1<br>
> #define __SOFTFP__ 1<br>
> #define __VFP_FP__ 1<br>
> #define __THUMB_INTERWORK__ 1<br>
> #define __ARM_ARCH_4T__ 1<br>
> #define __ARM_PCS 1<br>
> #define __ARM_EABI__ 1<br>
> #define __GXX_TYPEINFO_EQUALITY_INLINE 0<br>
> #define __gnu_linux__ 1<br>
> #define __linux 1<br>
> #define __linux__ 1<br>
> #define linux 1<br>
> #define __unix 1<br>
> #define __unix__ 1<br>
> #define unix 1<br>
> #define __ELF__ 1<br>
> # 1 "<command-line>"<br>
> # 1 "<stdin>"<br>
> int main() {return 0;}<br>
</div></div>> 2012/1/14 Alon Levy <[1]<a href="mailto:alevy@redhat.com">alevy@redhat.com</a>><br>
<div class="im">><br>
> On Fri, Jan 13, 2012 at 03:54:02PM -0300, Nicolas Antonio Corrarello<br>
> wrote:<br>
> > Guys,<br>
> > Being well aware that spice server only works on x64-64, I'm trying<br>
> to<br>
> > compile the spice client in ARM, but I'm bumping into the<br>
> following:<br>
</div>> > make ן߽all-am<br>
<div class="im">> > make[1]: Entering directory `/root/spice-0.10.0/client'<br>
</div>> > ן߽ CXX ן߽ ן߽foreign_menu.o<br>
<div><div class="h5">> > foreign_menu.cpp: In constructor<br>
> > 'ForeignMenu::ForeignMenu(ForeignMenuInterface*)':<br>
><br>
> Ok, this is due to the define above only checking for __i386__, can you<br>
> run this to dump all predefined variables, so we can find the relevant<br>
> one (I guess something like __armv6__):<br>
> echo "int main() { return 0; }" | g++ -dD -E -<br>
><br>
> Thanks,<br>
> Alon<br>
> > foreign_menu.cpp:47:81: error: format '%lu' expects argument of<br>
> type 'long<br>
> > unsigned int', but argument 4 has type 'uint64_t {aka long long<br>
> unsigned<br>
> > int}' [-Werror=format]<br>
> > foreign_menu.cpp:47:81: error: format '%lu' expects argument of<br>
> type 'long<br>
> > unsigned int', but argument 4 has type 'uint64_t {aka long long<br>
> unsigned<br>
> > int}' [-Werror=format]<br>
> > cc1plus: all warnings being treated as errors<br>
> > make[1]: *** [foreign_menu.o] Error 1<br>
> > make[1]: Leaving directory `/root/spice-0.10.0/client'<br>
> > make: *** [all] Error 2<br>
> > I had to add my arm machine type manually in ./configure in order<br>
> for it<br>
> > to pass the processor check.<br>
> > The system is emulated with qemu, and here is some info about the<br>
> linux<br>
> > distro running on it:<br>
> > Script started on Fri Jan 13 18:50:48 2012<br>
> > root@test-arm:~/spice-0.10.0/client# gcc -version. .. .. .. .. .. .<br>
> > Using built-in specs.<br>
> > COLLECT_GCC=gcc<br>
> > COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabi/4.6/lto-wrapper<br>
> > Target: arm-linux-gnueabi<br>
> > Configured with: ../src/configure -v --with-pkgversion='Debian<br>
> 4.6.2-11'<br>
> > --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs<br>
> > --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr<br>
> > --program-suffix=-4.6 --enable-shared --enable-linker-build-id<br>
> > --with-system-zlib --libexecdir=/usr/lib --without-included-gettext<br>
> > --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6<br>
> > --libdir=/usr/lib --enable-nls --enable-clocale=gnu<br>
> > --enable-libstdcxx-debug --enable-libstdcxx-time=yes<br>
> --enable-plugin<br>
> > --enable-objc-gc --disable-sjlj-exceptions --with-arch=armv4t<br>
> > --with-float=soft --enable-checking=release<br>
> --build=arm-linux-gnueabi<br>
> > --host=arm-linux-gnueabi --target=arm-linux-gnueabi<br>
> > Thread model: posix<br>
</div></div>> > gcc version 4.6.2 (Debian 4.6.2-11)ן߽<br>
> > root@test-arm:~/spice-0.10.0/client# [2]<a href="http://una.me" target="_blank">una.me</a> -a<br>
<div class="im">> > Linux test-arm 3.0.4 #2 Mon Oct 17 17:39:42 ICT 2011 armv6l<br>
> GNU/Linux<br>
> > root@test-arm:~/spice-0.10.0/client# exit<br>
> > exit<br>
> > Script done on Fri Jan 13 18:51:08 2012<br>
> > I'd appreciate any help on the matter,<br>
> > Yours truly<br>
> > nac<br>
><br>
</div>> References<br>
><br>
> Visible links<br>
> 1. mailto:<a href="mailto:alevy@redhat.com">alevy@redhat.com</a><br>
> 2. <a href="http://una.me/" target="_blank">http://una.me/</a><br>
<br>
> _______________________________________________<br>
> Spice-devel mailing list<br>
> <a href="mailto:Spice-devel@lists.freedesktop.org">Spice-devel@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/spice-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/spice-devel</a><br>
<br>
</blockquote></div><br>