From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dario Faggioli Subject: Re: compilation fail, xen staging-4.6, vnc.c, qemu-tradintional issues under ubuntu 16.04 Date: Wed, 30 Mar 2016 16:58:42 +0200 Message-ID: <1459349922.5082.90.camel@citrix.com> References: <56F57B13.7010400@etit.hu> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8884465977367333646==" Return-path: In-Reply-To: <56F57B13.7010400@etit.hu> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" To: =?ISO-8859-1?Q?=C9li=E1s_Tam=E1s?= , xen-devel@lists.xen.org Cc: "Ian.Jackson" , Wei Liu , Samuel Thibault , "anthony.perard" List-Id: xen-devel@lists.xenproject.org --===============8884465977367333646== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-PdAA0SS1SDbUHF3pTD5Q" --=-PdAA0SS1SDbUHF3pTD5Q Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Cc-ing some tools, Qemu, and Stubdom/MiniOS people, and dropping xen- users (Bcc-ed)... On Fri, 2016-03-25 at 18:53 +0100, =C3=89li=C3=A1s Tam=C3=A1s wrote: > Hi. >=20 > Previously I was using debian 8 to compile my xen 4.6 with hvm > stubdomain support. We recently switched to ubuntu servers, thus I > needed to change my compilation environment not to have lib > dependency > issues. >=20 > My problem is: I get the staging 4.6 xen > (http://xenbits.xen.org/gitweb/?p=3Dxen.git;a=3Dsnapshot;h=3D8e89d4386792= 2a > baa67e894938c655a6fa82affe;sf=3Dtgz), > installed all required prereqs for my compilaton environment, but > during > compilation I get errors (I do not get them using debian 8). I'm sure > that all prereq is met, becasuse ./configure runs correctly, I'm > using > --enable-systemd --enable-stubdom ) >=20 > Most of the problems could be solved by dirty hacks for myself, but I > belive they require some attention of qemu/xen developers to make > compilation work under ubuntu 16.04 out of the box: >=20 > The first issue >=20 > /usr/src/xen-staging-4.6/tools/qemu-xen-traditional-dir/vnc.c:2180: > undefined reference to `gnutls_kx_set_priority' >=20 > could be solved by applying these patches over the auto downloaded > qemu > sources: >=20 > https://gitlab.com/johnth/aur-xen/raw/f9d0b40e240add9a136483a450c6a1b > 39a685808/qemu-xen-traditional-gnutls-compilation.patch >=20 > https://gitlab.com/johnth/aur-xen/raw/f9d0b40e240add9a136483a450c6a1b > 39a685808/qemu-xen-traditional-gnutls-functions.patch >=20 > after that I got >=20 > vl.c:2784:5: error: =E2=80=98g_mem_set_vtable=E2=80=99 is deprecated > [-Werror=3Ddeprecated-declarations] > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0g_mem_set_vtable(&mem_trace); >=20 >=20 > I had to apply >=20 > https://lists.gnu.org/archive/html/qemu-devel/2015-09/msg01262.html >=20 > which seemes that only partially been applied (has rejects), but > after > modifying the sources by hand, it seemes working. >=20 > Just after this, Mini-OS failed to compile: >=20 > Makefile:17: /config/MiniOS.mk: No such file or directory >=20 > But, the MiniOS.mk DOES exists. >=20 > I had to manually add >=20 > XEN_ROOT=3Dmysourcedir >=20 > to mini-os/Config.mk to continue. and now I'm stuck here: >=20 > gcc -mno-red-zone -O1 -fno-omit-frame-pointer=C2=A0=C2=A0-m64 -mno-red-zo= ne > -fno-reorder-blocks -fno-asynchronous-unwind-tables -m64 -g > -fno-strict-aliasing -std=3Dgnu99 -Wall -Wstrict-prototypes > -Wdeclaration-after-statement -Wno-unused-but-set-variable > -Wno-unused-local-typedefs=C2=A0=C2=A0=C2=A0-fno-stack-protector -fno-exc= eptions > -DCONFIG_BLKFRONT -DCONFIG_TPMFRONT -DCONFIG_NETFRONT > -DCONFIG_KBDFRONT > -DCONFIG_FBFRONT -DCONFIG_CONSFRONT -DCONFIG_XENBUS -fno-builtin > -Wall > -Werror -Wredundant-decls -Wno-format -Wno-redundant-decls -Wformat > -fno-stack-protector -fgnu89-inline -Wstrict-prototypes -Wnested- > externs > -Wpointer-arith -Winline -g -D__INSIDE_MINIOS__ -m64 -mno-red-zone > -fno-reorder-blocks -fno-asynchronous-unwind-tables -isystem > /usr/src/xen-staging-4.6/extras/mini-os/include -D__MINIOS__ > -DHAVE_LIBC > -isystem /usr/src/xen-staging-4.6/extras/mini-os/include/posix > -isystem > /usr/src/xen-staging-4.6/tools/xenstore/include=C2=A0=C2=A0-isystem > /usr/src/xen-staging-4.6/extras/mini-os/include/x86 -isystem > /usr/src/xen-staging-4.6/extras/mini-os/include/x86/x86_64 -U > __linux__ > -U __FreeBSD__ -U __sun__ -nostdinc -isystem > /usr/src/xen-staging-4.6/extras/mini-os/include/posix -isystem > /usr/src/xen-staging-4.6/stubdom/cross-root-x86_64/x86_64-xen- > elf/include -isystem > /usr/lib/gcc/x86_64-linux-gnu/5/include -isystem > /usr/src/xen-staging-4.6/stubdom/lwip-x86_64/src/include -isystem > /usr/src/xen-staging-4.6/stubdom/lwip-x86_64/src/include/ipv4 > -I/usr/src/xen-staging-4.6/stubdom/include > -I/usr/src/xen-staging-4.6/xen/include -isystem > /usr/src/xen-staging-4.6/extras/mini-os/include -D__MINIOS__ > -DHAVE_LIBC > -isystem /usr/src/xen-staging-4.6/extras/mini-os/include/posix > -isystem > /usr/src/xen-staging-4.6/tools/xenstore/include > -D__XEN_INTERFACE_VERSION__=3D0x00030205=C2=A0=C2=A0-isystem > /usr/src/xen-staging-4.6/extras/mini-os/include/x86 -isystem > /usr/src/xen-staging-4.6/extras/mini-os/include/x86/x86_64 -c > console/xenbus.c -o > /usr/src/xen-staging-4.6/stubdom/mini-os-x86_64-grub/console/xenbus.o > ld -r -d -nostdlib > -L/usr/src/xen-staging-4.6/stubdom/cross-root-x86_64/x86_64-xen- > elf/lib > =C2=A0-m elf_x86_64 -\( /usr/src/xen-staging-4.6/stubdom/grub- > x86_64/main.a > app.lds -\)=C2=A0=C2=A0-L/usr/src/xen-staging-4.6/stubdom/libs-x86_64/too= llog > -whole-archive -lxentoollog -no-whole-archive > -L/usr/src/xen-staging-4.6/stubdom/libs-x86_64/evtchn -whole-archive > -lxenevtchn -no-whole-archive > -L/usr/src/xen-staging-4.6/stubdom/libs-x86_64/gnttab -whole-archive > -lxengnttab -no-whole-archive > -L/usr/src/xen-staging-4.6/stubdom/libs-x86_64/call -whole-archive > -lxencall -no-whole-archive > -L/usr/src/xen-staging-4.6/stubdom/libs-x86_64/foreignmemory > -whole-archive -lxenforeignmemory -no-whole-archive > -L/usr/src/xen-staging-4.6/stubdom/libxc-x86_64 -whole-archive > -lxenguest -lxenctrl -no-whole-archive -lpci -lz -lm --undefined main > -o > /usr/src/xen-staging-4.6/stubdom/mini-os-x86_64-grub/mini-os_app.o > ld: warning: app.lds contains output sections; did you forget -T? > ld: cannot find -lxentoollog > ld: cannot find -lxenevtchn > ld: cannot find -lxengnttab > ld: cannot find -lxencall > ld: cannot find -lxenforeignmemory > Makefile:186: recipe for target > '/usr/src/xen-staging-4.6/stubdom/mini-os-x86_64-grub/mini-os_app.o' > failed > make[2]: *** > [/usr/src/xen-staging-4.6/stubdom/mini-os-x86_64-grub/mini-os_app.o] > Error 1 > make[2]: Leaving directory '/usr/src/xen-staging-4.6/extras/mini-os- > remote' > Makefile:455: recipe for target 'pv-grub' failed > make[1]: *** [pv-grub] Error 2 > make[1]: Leaving directory '/usr/src/xen-staging-4.6/stubdom' > Makefile:106: recipe for target 'install-stubdom' failed > make: *** [install-stubdom] Error 2 >=20 > Can someone advise? >=20 > So I belive, that these important patches / fixes are missing from > xen > version of qemu (at least prevents compiling it without hacks on > newer > systems) and also the mini-os port needs some polishing. Maybe ubuntu > has newer build tools which ones causing some incompatibilities, I do > not know. >=20 > Is it possible fixing any of these problems? >=20 >=20 > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel --=20 <> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK) --=-PdAA0SS1SDbUHF3pTD5Q Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEABECAAYFAlb76aIACgkQk4XaBE3IOsR/7QCdE9AwOeKZcEYb+9i7biqvbANZ gp8AnRvfP6Jxvv8Iuc7bnYuOjqJYPoIy =wtOM -----END PGP SIGNATURE----- --=-PdAA0SS1SDbUHF3pTD5Q-- --===============8884465977367333646== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVuLm9yZwpodHRwOi8vbGlzdHMueGVuLm9y Zy94ZW4tZGV2ZWwK --===============8884465977367333646==--