Skip to contentSkip to conversation

Building XCI on a 64 bit Linux - Fails

DISCUSSION Tom Rotenberg 2 participants 6 messages Aug 3, 2009 – Aug 17, 2009

lore
Share & tools
lore
#0 lore raw

Hi All,

It seems like trying to build the XCI tree, on a 64-bit Linux, fails. Shouldn't it be possible to build the XCI tree on a 64-bit linux? Can anyone please help me with this?

What i did:
git clone http://xenbits.xensource.com/git-http/xenclient/build
cd build
cp configs/xenclient_config ./.config
make

I got the following errors:
cc1: warnings being treated as errors
block-qcow2.c: In function גbdrv_preadג:
block-qcow2.c:237: warning: format ג%#llxג expects type גlong long unsigned intג, but argument 5 has type ג__off_tג /root/test/xci-stuff/build/build_i686/staging_dir/usr/bin/i686-linux-uclibc-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 .tapaio.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -Werror -Wno-unused -I../lib -I../../../tools/libxc -I../../../tools/include -I../../../tools/xenstore -I../../../tools/include -I ../../libaio/src -D_GNU_SOURCE -c -o tapaio.o tapaio.c
make[8]: *** [block-qcow2.o] Error 1
make[8]: *** Waiting for unfinished jobs....
make[8]: *** wait: No child processes. Stop.
make[7]: *** [subdir-install-drivers] Error 2
make[7]: Leaving directory `/root/test/xci-stuff/build/repo/xenclient-xen/tools/blktap' make[6]: *** [subdirs-install] Error 2
make[6]: Leaving directory `/root/test/xci-stuff/build/repo/xenclient-xen/tools/blktap' make[5]: *** [subdir-install-blktap] Error 2
make[5]: Leaving directory `/root/test/xci-stuff/build/repo/xenclient-xen/tools' make[4]: *** [subdirs-install] Error 2
make[4]: Leaving directory `/root/test/xci-stuff/build/repo/xenclient-xen/tools' make[3]: *** [install-tools] Error 2
make[3]: Leaving directory `/root/test/xci-stuff/build/repo/xenclient-xen' make[2]: *** [xenclient-xen-compile-tools] Error 2
make[2]: Leaving directory `/root/test/xci-stuff/build'
make[1]: *** [xenclient-xen-compile] Error 2
make[1]: Leaving directory `/root/test/xci-stuff/build'
make: *** [/root/test/xci-stuff/build/build_i686/xenclient-xen-tip/.installed] Error 2

Tom

#1 lore raw
Quoted 6 lines · Tom Rotenberg

Hi All,

It seems like trying to build the XCI tree, on a 64-bit Linux, fails. Shouldn't it be possible to build the XCI tree on a 64-bit linux? Can anyone please help me with this?

there's no reason why building on 64 bits shouldn't work, although the team usually build 32 bits. which might explain why we haven't seen this issue.

Quoted 6 lines

What i did:
git clone http://xenbits.xensource.com/git-http/xenclient/build
cd build
cp configs/xenclient_config ./.config
make

Quoted 6 lines

I got the following errors:
cc1: warnings being treated as errors
block-qcow2.c: In function גbdrv_preadג:
block-qcow2.c:237: warning: format ג%#llxג expects type גlong long unsigned intג, but argument 5 has type ג__off_tג

it looks like you __off_t is 32 bits ... where it should have been 64 bits...

did you use the config in configs/ ?
can you send me your build .config and the uclibc config in toolchain_build_*/uClibc-0.9.30/.config ?

thanks,

Signature · 1 line
Vincent
#2 lore raw
Quoted 13 lines · Vincent Hanquez
Quoted 6 lines

What i did:
git clone http://xenbits.xensource.com/git-http/xenclient/build
cd build
cp configs/xenclient_config ./.config
make

Quoted 7 lines

I got the following errors:
cc1: warnings being treated as errors
block-qcow2.c: In function גbdrv_preadג:
block-qcow2.c:237: warning: format ג%#llxג expects type גlong long unsigned intג, but argument 5 has type ג__off_tג

Quoted 5 lines

it looks like you __off_t is 32 bits ... where it should have been 64 bits...

did you use the config in configs/ ?
can you send me your build .config and the uclibc config in toolchain_build_*/uClibc-0.9.30/.config ?

ok, i did the same experiments and end up with the same error.
we're currently modifying our toolchain for better caching and better reliability, which hope may fix thoses kind of issue once and for all.

Signature · 1 line
Vincent
#3 lore raw

Thanks for the help!

Do u have estimation, on when this fix will be available?

Quoted 30 lines · Vincent Hanquez
Quoted 14 lines · Vincent Hanquez
Quoted 7 lines

What i did:
git clone http://xenbits.xensource.com/git-http/xenclient/build
cd build
cp configs/xenclient_config ./.config
make

Quoted 6 lines

I got the following errors:
cc1: warnings being treated as errors
block-qcow2.c: In function גbdrv_preadג:
block-qcow2.c:237: warning: format ג%#llxג expects type גlong long unsigned intג, but argument 5 has type ג__off_tג

Quoted 7 lines

it looks like you __off_t is 32 bits ... where it should have been 64 bits...

did you use the config in configs/ ?
can you send me your build .config and the uclibc config in toolchain_build_*/uClibc-0.9.30/.config ?

ok, i did the same experiments and end up with the same error. we're currently modifying our toolchain for better caching and better reliability, which hope may fix thoses kind of issue once and for all.

--
Vincent

#4 lore raw
Quoted 3 lines · Tom Rotenberg

Thanks for the help!

Do u have estimation, on when this fix will be available?

we're still working on it, i expect by the end of this week it will be hammered out and working completely.

Cheers,

Signature · 1 line
Vincent
#5 lore raw

Great.

I will surely test it when it will be out...

Quoted 13 lines · Vincent Hanquez
Quoted 4 lines · Tom Rotenberg

Thanks for the help!

Do u have estimation, on when this fix will be available?

we're still working on it, i expect by the end of this week it will be hammered out and working completely.

Cheers,
--
Vincent