[Spice-devel] Error compiling Spice Client on ARM
Alon Levy
alevy at redhat.com
Sat Jan 14 04:17:05 PST 2012
On Fri, Jan 13, 2012 at 03:54:02PM -0300, Nicolas Antonio Corrarello wrote:
> Guys,
> Being well aware that spice server only works on x64-64, I'm trying to
> compile the spice client in ARM, but I'm bumping into the following:
> make ߽ןall-am
> make[1]: Entering directory `/root/spice-0.10.0/client'
> ߽ן CXX ߽ן ߽ןforeign_menu.o
> foreign_menu.cpp: In constructor
> 'ForeignMenu::ForeignMenu(ForeignMenuInterface*)':
Ok, this is due to the define above only checking for __i386__, can you
run this to dump all predefined variables, so we can find the relevant
one (I guess something like __armv6__):
echo "int main() { return 0; }" | g++ -dD -E -
Thanks,
Alon
> foreign_menu.cpp:47:81: error: format '%lu' expects argument of type 'long
> unsigned int', but argument 4 has type 'uint64_t {aka long long unsigned
> int}' [-Werror=format]
> foreign_menu.cpp:47:81: error: format '%lu' expects argument of type 'long
> unsigned int', but argument 4 has type 'uint64_t {aka long long unsigned
> int}' [-Werror=format]
> cc1plus: all warnings being treated as errors
> make[1]: *** [foreign_menu.o] Error 1
> make[1]: Leaving directory `/root/spice-0.10.0/client'
> make: *** [all] Error 2
> I had to add my arm machine type manually in ./configure in order for it
> to pass the processor check.
> The system is emulated with qemu, and here is some info about the linux
> distro running on it:
> Script started on Fri Jan 13 18:50:48 2012
> root at test-arm:~/spice-0.10.0/client# gcc -version. .. .. .. .. .. .
> Using built-in specs.
> COLLECT_GCC=gcc
> COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabi/4.6/lto-wrapper
> Target: arm-linux-gnueabi
> Configured with: ../src/configure -v --with-pkgversion='Debian 4.6.2-11'
> --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs
> --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
> --program-suffix=-4.6 --enable-shared --enable-linker-build-id
> --with-system-zlib --libexecdir=/usr/lib --without-included-gettext
> --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6
> --libdir=/usr/lib --enable-nls --enable-clocale=gnu
> --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin
> --enable-objc-gc --disable-sjlj-exceptions --with-arch=armv4t
> --with-float=soft --enable-checking=release --build=arm-linux-gnueabi
> --host=arm-linux-gnueabi --target=arm-linux-gnueabi
> Thread model: posix
> gcc version 4.6.2 (Debian 4.6.2-11)߽ן
> root at test-arm:~/spice-0.10.0/client# una.me -a
> Linux test-arm 3.0.4 #2 Mon Oct 17 17:39:42 ICT 2011 armv6l GNU/Linux
> root at test-arm:~/spice-0.10.0/client# exit
> exit
> Script done on Fri Jan 13 18:51:08 2012
> I'd appreciate any help on the matter,
> Yours truly
> nac
More information about the Spice-devel
mailing list