Trying to compile Xen 4 for a Debian package fail
Guys,
I'm trying to compile the Xen 4.0.0 via debian/rules makefile but I got
this:
administrativo@sid01:~/xen/xen-4/xen-4.0.0$ *make -f debian/rules build-tools* ..... make -C lib all make[7]: Entering directory `/home/administrativo/xen/xen-4/xen-4.0.0/debian/build/build-tools/tools/blktap2/vhd/lib' make[7]: Nothing to be done for `all'. make[7]: Leaving directory `/home/administrativo/xen/xen-4/xen-4.0.0/debian/build/build-tools/tools/blktap2/vhd/lib' make[6]: Leaving directory `/home/administrativo/xen/xen-4/xen-4.0.0/debian/build/build-tools/tools/blktap2/vhd' 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 .vhd-util.d -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -Werror -Wno-unused -I../include -D_GNU_SOURCE -Wp,-MD,.vhd-util.d -o vhd-util vhd-util.o -L../../tools/libxc -lxenctrl -L../../tools/libxc -lxenctrl -Llib -lvhd -luuid */usr/bin/ld: cannot find -lxenctrl* *collect2: ld returned 1 exit status* make[5]: *** [vhd-util] Error 1 make[5]: Leaving directory `/home/administrativo/xen/xen-4/xen-4.0.0/debian/build/build-tools/tools/blktap2/vhd' make[4]: *** [subdir-all-vhd] Error 2 make[4]: Leaving directory `/home/administrativo/xen/xen-4/xen-4.0.0/debian/build/build-tools/tools/blktap2' make[3]: *** [subdirs-all] Error 2 make[3]: Leaving directory `/home/administrativo/xen/xen-4/xen-4.0.0/debian/build/build-tools/tools/blktap2' make[2]: *** [subdir-all-blktap2] Error 2 make[2]: Leaving directory `/home/administrativo/xen/xen-4/xen-4.0.0/debian/build/build-tools/tools' make[1]: *** [subdirs-all] Error 2 make[1]: Leaving directory `/home/administrativo/xen/xen-4/xen-4.0.0/debian/build/build-tools/tools' make: *** [debian/stamps/build-tools] Error 2
BUT, if I run:
administrativo@sid01:~/xen/xen-4/xen-4.0.0$ *make -C debian/build/build-tools/tools/blktap2/vhd* make: Entering directory `/home/administrativo/xen/xen-4/xen-4.0.0/debian/build/build-tools/tools/blktap2/vhd' make[1]: Entering directory `/home/administrativo/xen/xen-4/xen-4.0.0/debian/build/build-tools/tools/blktap2/vhd' make -C lib all make[2]: Entering directory `/home/administrativo/xen/xen-4/xen-4.0.0/debian/build/build-tools/tools/blktap2/vhd/lib' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/administrativo/xen/xen-4/xen-4.0.0/debian/build/build-tools/tools/blktap2/vhd/lib' make[1]: Leaving directory `/home/administrativo/xen/xen-4/xen-4.0.0/debian/build/build-tools/tools/blktap2/vhd' 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 .vhd-util.d -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -Werror -Wno-unused -I../include -D_GNU_SOURCE -Wp,-MD,.vhd-util.d -o vhd-util vhd-util.o -Llib -lvhd -luuid 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 .vhd-update.d -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -Werror -Wno-unused -I../include -D_GNU_SOURCE -Wp,-MD,.vhd-update.d -o vhd-update vhd-update.o -Llib -lvhd -luuid make: Leaving directory `/home/administrativo/xen/xen-4/xen-4.0.0/debian/build/build-tools/tools/blktap2/vhd' administrativo@sid01:~/xen/xen-4/xen-4.0.0$
...it finishes without problems...
I'm not a programmer so, I appreciate any help...
The debian/rules file runs the same command, I guess, look:
-- some content of debian/rules:
$(STAMPS_DIR)/build-tools: $(STAMPS_DIR)/setup-tools
$(MAKE) -C $(DIR)/tools
touch $@build-tools:: $(STAMPS_DIR)/build-tools
--
Also, if I manually run "$(MAKE) -C $(DIR)/tools" from the same subdir as:
"make -C debian/build/build-tools/tools" it works too, look:
......
make[6]: Leaving directory /home/administrativo/xen/xen-4/xen-4.0.0/debian/build/build-tools/tools/blktap2/vhd/lib' make[5]: Leaving directory /home/administrativo/xen/xen-4/xen-4.0.0/debian/build/build-tools/tools/blktap2/vhd' 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 .vhd-util.d -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -Werror -Wno-unused -I../include -D_GNU_SOURCE -Wp,-MD,.vhd-util.d -o vhd-util vhd-util.o
-Llib -lvhd -luuid
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 .vhd-update.d -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -Werror -Wno-unused -I../include -D_GNU_SOURCE -Wp,-MD,.vhd-update.d -o vhd-update
vhd-update.o -Llib -lvhd -luuid
make[4]: Leaving directory /home/administrativo/xen/xen-4/xen-4.0.0/debian/build/build-tools/tools/blktap2/vhd' make[3]: Leaving directory /home/administrativo/xen/xen-4/xen-4.0.0/debian/build/build-tools/tools/blktap2' make[3]: Entering directory `/home/administrativo/xen/xen-4/xen-4.0.0/debian/build/build-tools/tools/blktap2' make -C drivers all
make[4]: Entering directory /home/administrativo/xen/xen-4/xen-4.0.0/debian/build/build-tools/tools/blktap2/drivers' Makefile:35: === libgcrypt not installed: falling back to libcrypto === make[4]: Nothing to be done for all'.
make[4]: Leaving directory /home/administrativo/xen/xen-4/xen-4.0.0/debian/build/build-tools/tools/blktap2/drivers' make[3]: Leaving directory /home/administrativo/xen/xen-4/xen-4.0.0/debian/build/build-tools/tools/blktap2' make[2]: Leaving directory /home/administrativo/xen/xen-4/xen-4.0.0/debian/build/build-tools/tools/blktap2' make[1]: Leaving directory /home/administrativo/xen/xen-4/xen-4.0.0/debian/build/build-tools/tools' make[1]: Entering directory `/home/administrativo/xen/xen-4/xen-4.0.0/debian/build/build-tools/tools' make -C libfsimage all
make[2]: Entering directory `/home/administrativo/xen/xen-4/xen-4.0.0/debian/build/build-tools/tools/libfsimage'
......
Thanks in advance!
Regards,
Thiago
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Could be a build ordering problem -- building blktap2 before the libxc library that it depends on -- perhaps? Unless this reproducible on one of our mainstream trees, this is an issue to report to the debian maintainer.
-- Keir
Quoted 20 lines · Martinx - ジェームズ
make -C lib all
make[7]: Entering directory `/home/administrativo/xen/xen-4/xen-4.0.0/debian/build/build-tools/tools/blkta p2/vhd/lib'
make[7]: Nothing to be done for `all'.
make[7]: Leaving directory `/home/administrativo/xen/xen-4/xen-4.0.0/debian/build/build-tools/tools/blkta p2/vhd/lib'
make[6]: Leaving directory `/home/administrativo/xen/xen-4/xen-4.0.0/debian/build/build-tools/tools/blkta p2/vhd'
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99(quoted diff) +0
-6-Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF .vhd-util.d -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -Werror -Wno-unused -I../include -D_GNU_SOURCE -Wp,-MD,.vhd-util.d -o vhd-util vhd-util.o -L../../tools/libxc -lxenctrl -L../../tools/libxc -lxenctrl -Llib -lvhd -luuid
/usr/bin/ld: cannot find -lxenctrl
collect2: ld returned 1 exit status
Well, thank you anyway Keir... But I'm the maintainer of this unofficial package... I
just trying to do a new package based on my experiences with the Xen...
Regards,
Thiago
2010/4/16 Keir Fraser <[email protected]>
Quoted 25 lines
Could be a build ordering problem -- building blktap2 before the libxc library that it depends on -- perhaps? Unless this reproducible on one of our mainstream trees, this is an issue to report to the debian maintainer.
-- Keir
Quoted 3 lines · Martinx - ジェームズ
make -C lib all
make[7]: Entering directory`/home/administrativo/xen/xen-4/xen-4.0.0/debian/build/build-tools/tools/blkta
Quoted 4 lines
p2/vhd/lib'
make[7]: Nothing to be done for `all'.
make[7]: Leaving directory`/home/administrativo/xen/xen-4/xen-4.0.0/debian/build/build-tools/tools/blkta
Quoted 3 lines
p2/vhd/lib'
make[6]: Leaving directory`/home/administrativo/xen/xen-4/xen-4.0.0/debian/build/build-tools/tools/blkta
Quoted 2 lines
p2/vhd'
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing-std=gnu99
Quoted 11 lines
Quoted 8 lines
(quoted diff) +0
-6-Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF .vhd-util.d -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -Werror -Wno-unused -I../include -D_GNU_SOURCE -Wp,-MD,.vhd-util.d -o vhd-util vhd-util.o -L../../tools/libxc -lxenctrl -L../../tools/libxc -lxenctrl -Llib -lvhd -luuid
/usr/bin/ld: cannot find -lxenctrl
collect2: ld returned 1 exit status
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Okay, well then I can tell you that it is almost certainly a build-ordering problem. Do your packages have patches on top of our build system? Because we do parallel builds all the time and we would generally know pretty quickly if our build dependencies and orderings are wrong.
-- Keir
Quoted 45 lines · Martinx - ジェームズ
Well, thank you anyway Keir... But I'm the maintainer of this unofficial package... I
just trying to do a new package based on my experiences with the Xen...Regards,
Thiago2010/4/16 Keir Fraser <[email protected]>
Quoted 35 lines
Could be a build ordering problem -- building blktap2 before the libxc library that it depends on -- perhaps? Unless this reproducible on one of our mainstream trees, this is an issue to report to the debian maintainer.
-- Keir
Quoted 24 lines · Martinx - ジェームズ
make -C lib all
make[7]: Entering directory `/home/administrativo/xen/xen-4/xen-4.0.0/debian/build/build-tools/tools/blk ta
p2/vhd/lib'
make[7]: Nothing to be done for `all'.
make[7]: Leaving directory `/home/administrativo/xen/xen-4/xen-4.0.0/debian/build/build-tools/tools/blk ta
p2/vhd/lib'
make[6]: Leaving directory `/home/administrativo/xen/xen-4/xen-4.0.0/debian/build/build-tools/tools/blk ta
p2/vhd'
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing(quoted diff) +0
-7-std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF .vhd-util.d -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -Werror -Wno-unused -I../include -D_GNU_SOURCE -Wp,-MD,.vhd-util.d -o vhd-util vhd-util.o -L../../tools/libxc -lxenctrl -L../../tools/libxc -lxenctrl -Llib -lvhd -luuid
/usr/bin/ld: cannot find -lxenctrl
collect2: ld returned 1 exit status
Thank you again Keir! [?]
I have not applied any patch to the original Xen, I'm just trying to pack/compile the original xen-4.0.0.tar.gz (hypervisor, tools and docs) using the debian/rules makefile file.
I will investigate more deeply the order.
Cheers,
Thiago
2010/4/16 Keir Fraser <[email protected]>
Quoted 50 lines
Okay, well then I can tell you that it is almost certainly a build-ordering problem. Do your packages have patches on top of our build system? Because we do parallel builds all the time and we would generally know pretty quickly if our build dependencies and orderings are wrong.
-- Keir
Quoted 10 lines · Martinx - ジェームズ
Well, thank you anyway Keir... But I'm the maintainer of this unofficial package... I
just trying to do a new package based on my experiences with the Xen...Regards,
Thiago2010/4/16 Keir Fraser <[email protected]>
Quoted 2 lines
Could be a build ordering problem -- building blktap2 before the libxc library that it depends on -- perhaps? Unless this reproducible on one
of
Quoted 1 line
Quoted 1 line
our mainstream trees, this is an issue to report to the debian
maintainer.
Quoted 9 lines
Quoted 9 lines
-- Keir
Quoted 3 lines · Martinx - ジェームズ
make -C lib all
make[7]: Entering directory`/home/administrativo/xen/xen-4/xen-4.0.0/debian/build/build-tools/tools/blk
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
ta
p2/vhd/lib'
make[7]: Nothing to be done for `all'.
make[7]: Leaving directory`/home/administrativo/xen/xen-4/xen-4.0.0/debian/build/build-tools/tools/blk
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
ta
p2/vhd/lib'
make[6]: Leaving directory`/home/administrativo/xen/xen-4/xen-4.0.0/debian/build/build-tools/tools/blk
Quoted 5 lines
Quoted 5 lines
Review
Quoted 5 lines
ta
p2/vhd'
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing(quoted diff) +0
-2-std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value-Wdeclaration-after-statement
Quoted 15 lines
Quoted 4 lines
Quoted 4 lines
Review
Quoted 4 lines
(quoted diff) +0
-4-D__XEN_TOOLS__ -MMD -MF .vhd-util.d -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -Werror -Wno-unused -I../include -D_GNU_SOURCE -Wp,-MD,.vhd-util.d -o vhd-util vhd-util.o-L../../tools/libxc
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
-lxenctrl -L../../tools/libxc -lxenctrl -Llib -lvhd -luuid
/usr/bin/ld: cannot find -lxenctrl
collect2: ld returned 1 exit status
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel