Skip to contentSkip to conversation

Xen XCI Build fails with trousers-0.3.2-1

DISCUSSION dharshana 2 participants 5 messages Mar 3, 2010 – Mar 16, 2010

lore
Share & tools
lore

dharshana

author
#0 lore raw

Hi,

I'm trying to build xen xci through the source, and everything went so perfect until i got some troubles with trousers package.

include -Os -I/usr/src/build/build_i686/staging_dir/usr/include -I/usr/src/build/build_i686/staging_dir/include --sysroot=/usr/src/build/build_i686/staging_dir/ -isysroot /usr/src/build/build_i686/staging_dir -mtune=i686 -march=i686 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -ggdb -DBI_OPENSSL -I../include -W -Wall -Werror -Wno-unused-parameter
-Wsign-compare -DTCSD_DEFAULT_PORT=30003 -DTSS_VER_MAJOR=0
-DTSS_VER_MINOR=3 -DTSS_SPEC_MAJOR=1 -DTSS_SPEC_MINOR=2 -MT
ps_inspect-ps_inspect.o -MD -MP -MF .deps/ps_inspect-ps_inspect.Tpo -c -o ps_inspect-ps_inspect.o test -f 'ps_inspect.c' || echo './'ps_inspect.c
cc1: warnings being treated as errors
ps_inspect.c: In function ‘main’:
ps_inspect.c:342: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘off_t’
make[2]: *** [ps_inspect-ps_inspect.o] Error 1
make[2]: Leaving directory `/usr/src/build/build_i686/trousers-0.3.2-1/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/build/build_i686/trousers-0.3.2-1'
make: *** [/usr/src/build/build_i686/trousers-0.3.2-1/.stamp_built] Error 2

Please help me with this...:-((

Signature · 2 lines
View this message in context: http://old.nabble.com/Xen-XCI-Build-fails-with-trousers-0.3.2-1-tp27764652p27764652.html
Sent from the Xen - Dev mailing list archive at Nabble.com.
#1 lore raw

Hallo dharshana

i had exactly the same problem, I fixed it by takeing the newest trousers 0.3.4 version. (change the .mk file)

But after i run the make process again i had a error with the patch installation. But i think with the new version the patch is nomore needed. So i created the hidden file .stamp_patched into the /build/build_i686/trousers-0.3.4 Folder.

So it works now !

Quoted 30 lines · dharshana

Hi,

I'm trying to build xen xci through the source, and everything went so perfect until i got some troubles with trousers package.

include -Os -I/usr/src/build/build_i686/staging_dir/usr/include -I/usr/src/build/build_i686/staging_dir/include --sysroot=/usr/src/build/build_i686/staging_dir/ -isysroot /usr/src/build/build_i686/staging_dir -mtune=i686 -march=i686

(quoted diff) +0 -4
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -ggdb 
-DBI_OPENSSL -I../include -W -Wall -Werror -Wno-unused-parameter
-Wsign-compare 	-DTCSD_DEFAULT_PORT=30003 -DTSS_VER_MAJOR=0 
-DTSS_VER_MINOR=3 -DTSS_SPEC_MAJOR=1 	-DTSS_SPEC_MINOR=2 -MT

ps_inspect-ps_inspect.o -MD -MP -MF .deps/ps_inspect-ps_inspect.Tpo -c -o ps_inspect-ps_inspect.o test -f 'ps_inspect.c' || echo './'ps_inspect.c
cc1: warnings being treated as errors
ps_inspect.c: In function ‘main’:
ps_inspect.c:342: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘off_t’
make[2]: *** [ps_inspect-ps_inspect.o] Error 1
make[2]: Leaving directory `/usr/src/build/build_i686/trousers-0.3.2-1/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/build/build_i686/trousers-0.3.2-1'
make: *** [/usr/src/build/build_i686/trousers-0.3.2-1/.stamp_built] Error 2

Please help me with this...:-((

Signature · 2 lines
View this message in context: http://old.nabble.com/Xen-XCI-Build-fails-with-trousers-0.3.2-1-tp27764652p27887567.html
Sent from the Xen - Dev mailing list archive at Nabble.com.
#2 lore raw

Upps, sorry, i forgot,

change the line 342 in ps_inspect.c from

PRINT("filename: %s (%" OFF_T_PRINTF " bytes)\n", argv[1], file_size);

to

PRINT("filename: %s (%lld bytes)\n", argv[1], (long long) file_size);

regards

gollum1

Quoted 48 lines · gollum1 wrote:

Hallo dharshana

i had exactly the same problem, I fixed it by takeing the newest trousers 0.3.4 version. (change the .mk file)

But after i run the make process again i had a error with the patch installation. But i think with the new version the patch is nomore needed. So i created the hidden file .stamp_patched into the /build/build_i686/trousers-0.3.4 Folder.

So it works now !

Quoted 30 lines · dharshana

Hi,

I'm trying to build xen xci through the source, and everything went so perfect until i got some troubles with trousers package.

include -Os -I/usr/src/build/build_i686/staging_dir/usr/include -I/usr/src/build/build_i686/staging_dir/include --sysroot=/usr/src/build/build_i686/staging_dir/ -isysroot /usr/src/build/build_i686/staging_dir -mtune=i686 -march=i686

(quoted diff) +0 -4
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -ggdb 
-DBI_OPENSSL -I../include -W -Wall -Werror -Wno-unused-parameter
-Wsign-compare 	-DTCSD_DEFAULT_PORT=30003 -DTSS_VER_MAJOR=0 
-DTSS_VER_MINOR=3 -DTSS_SPEC_MAJOR=1 	-DTSS_SPEC_MINOR=2 -MT

ps_inspect-ps_inspect.o -MD -MP -MF .deps/ps_inspect-ps_inspect.Tpo -c -o ps_inspect-ps_inspect.o test -f 'ps_inspect.c' || echo './'ps_inspect.c
cc1: warnings being treated as errors
ps_inspect.c: In function ‘main’:
ps_inspect.c:342: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘off_t’
make[2]: *** [ps_inspect-ps_inspect.o] Error 1
make[2]: Leaving directory `/usr/src/build/build_i686/trousers-0.3.2-1/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/build/build_i686/trousers-0.3.2-1'
make: *** [/usr/src/build/build_i686/trousers-0.3.2-1/.stamp_built] Error 2

Please help me with this...:-((

Signature · 2 lines
View this message in context: http://old.nabble.com/Xen-XCI-Build-fails-with-trousers-0.3.2-1-tp27764652p27903221.html
Sent from the Xen - Dev mailing list archive at Nabble.com.
author
#3 lore raw

Okay i will try it, I'll post the status here.

Thank you

dharshana

Quoted 68 lines · gollum1 wrote:

Upps, sorry, i forgot,

change the line 342 in ps_inspect.c from

PRINT("filename: %s (%" OFF_T_PRINTF " bytes)\n", argv[1], file_size);

to

PRINT("filename: %s (%lld bytes)\n", argv[1], (long long) file_size);

regards

gollum1

Quoted 49 lines · gollum1 wrote:

Hallo dharshana

i had exactly the same problem, I fixed it by takeing the newest trousers 0.3.4 version. (change the .mk file)

But after i run the make process again i had a error with the patch installation. But i think with the new version the patch is nomore needed. So i created the hidden file .stamp_patched into the /build/build_i686/trousers-0.3.4 Folder.

So it works now !

Quoted 31 lines · dharshana

Hi,

I'm trying to build xen xci through the source, and everything went so perfect until i got some troubles with trousers package.

include -Os -I/usr/src/build/build_i686/staging_dir/usr/include -I/usr/src/build/build_i686/staging_dir/include --sysroot=/usr/src/build/build_i686/staging_dir/ -isysroot /usr/src/build/build_i686/staging_dir -mtune=i686 -march=i686

(quoted diff) +0 -4
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -ggdb 
-DBI_OPENSSL -I../include -W -Wall -Werror -Wno-unused-parameter
-Wsign-compare 	-DTCSD_DEFAULT_PORT=30003 -DTSS_VER_MAJOR=0 
-DTSS_VER_MINOR=3 -DTSS_SPEC_MAJOR=1 	-DTSS_SPEC_MINOR=2 -MT

ps_inspect-ps_inspect.o -MD -MP -MF .deps/ps_inspect-ps_inspect.Tpo -c -o ps_inspect-ps_inspect.o test -f 'ps_inspect.c' || echo './'ps_inspect.c
cc1: warnings being treated as errors
ps_inspect.c: In function ‘main’:
ps_inspect.c:342: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘off_t’
make[2]: *** [ps_inspect-ps_inspect.o] Error 1
make[2]: Leaving directory `/usr/src/build/build_i686/trousers-0.3.2-1/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/build/build_i686/trousers-0.3.2-1'
make: *** [/usr/src/build/build_i686/trousers-0.3.2-1/.stamp_built] Error 2

Please help me with this...:-((

Signature · 2 lines
View this message in context: http://old.nabble.com/Xen-XCI-Build-fails-with-trousers-0.3.2-1-tp27764652p27914191.html
Sent from the Xen - Dev mailing list archive at Nabble.com.
author
#4 lore raw
In reply to gollum1

Hello gollum1,

Thank you so much for your reply. I tried what you have mentioned here, but again the problem was there. Then i tried to use gcc3.4.1 (the latest one) when i do the "make oldconfig" menu selection. But still the problem was there, so i tried to atleast compile the trouser 0.3.4 alone and still it failed. I think i'm missing some packages to compile trousers.

*** I have done this compilation inside a 32 bit debian guest running on top of xen 3.4 since my dom 0 is a 64bit debian. (XCI cannot built on top of 64bit as they mention in their page, again i tried it but cant)

Have you done the make in a dedicated host ? what is the architecture( is it a single core or a dual core)? and if you can please attach the out put of

$ dpkg -l > abc.txt since i do believe i am missing some packages here.

Thank you,

dharshana

Quoted 48 lines · gollum1 wrote:

Hallo dharshana

i had exactly the same problem, I fixed it by takeing the newest trousers 0.3.4 version. (change the .mk file)

But after i run the make process again i had a error with the patch installation. But i think with the new version the patch is nomore needed. So i created the hidden file .stamp_patched into the /build/build_i686/trousers-0.3.4 Folder.

So it works now !

Quoted 30 lines · dharshana

Hi,

I'm trying to build xen xci through the source, and everything went so perfect until i got some troubles with trousers package.

include -Os -I/usr/src/build/build_i686/staging_dir/usr/include -I/usr/src/build/build_i686/staging_dir/include --sysroot=/usr/src/build/build_i686/staging_dir/ -isysroot /usr/src/build/build_i686/staging_dir -mtune=i686 -march=i686

(quoted diff) +0 -4
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -ggdb 
-DBI_OPENSSL -I../include -W -Wall -Werror -Wno-unused-parameter
-Wsign-compare 	-DTCSD_DEFAULT_PORT=30003 -DTSS_VER_MAJOR=0 
-DTSS_VER_MINOR=3 -DTSS_SPEC_MAJOR=1 	-DTSS_SPEC_MINOR=2 -MT

ps_inspect-ps_inspect.o -MD -MP -MF .deps/ps_inspect-ps_inspect.Tpo -c -o ps_inspect-ps_inspect.o test -f 'ps_inspect.c' || echo './'ps_inspect.c
cc1: warnings being treated as errors
ps_inspect.c: In function ‘main’:
ps_inspect.c:342: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘off_t’
make[2]: *** [ps_inspect-ps_inspect.o] Error 1
make[2]: Leaving directory `/usr/src/build/build_i686/trousers-0.3.2-1/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/build/build_i686/trousers-0.3.2-1'
make: *** [/usr/src/build/build_i686/trousers-0.3.2-1/.stamp_built] Error 2

Please help me with this...:-((

Signature · 2 lines
View this message in context: http://old.nabble.com/Xen-XCI-Build-fails-with-trousers-0.3.2-1-tp27764652p27914169.html
Sent from the Xen - Dev mailing list archive at Nabble.com.