From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?w4lsacOhcyBUYW3DoXM=?= Subject: compilation fail, xen staging-4.6, vnc.c, qemu-tradintional issues under ubuntu 16.04 Date: Fri, 25 Mar 2016 18:53:23 +0100 Message-ID: <56F57B13.7010400@etit.hu> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3782332138152067780==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" To: xen-users@lists.xen.org, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============3782332138152067780== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="gfnvJvSui90RXQHI2vPmkcpnsA52K06vT" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --gfnvJvSui90RXQHI2vPmkcpnsA52K06vT Content-Type: multipart/mixed; boundary="g37I4XxEHg83iopskOpUWFTOD949HMb4p" From: =?UTF-8?B?w4lsacOhcyBUYW3DoXM=?= To: xen-users@lists.xen.org, xen-devel@lists.xen.org Message-ID: <56F57B13.7010400@etit.hu> Subject: compilation fail, xen staging-4.6, vnc.c, qemu-tradintional issues under ubuntu 16.04 References: In-Reply-To: --g37I4XxEHg83iopskOpUWFTOD949HMb4p Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi. 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. My problem is: I get the staging 4.6 xen (http://xenbits.xen.org/gitweb/?p=3Dxen.git;a=3Dsnapshot;h=3D8e89d4386792= 2abaa67e894938c655a6fa82affe;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 ) 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: The first issue /usr/src/xen-staging-4.6/tools/qemu-xen-traditional-dir/vnc.c:2180: undefined reference to `gnutls_kx_set_priority' could be solved by applying these patches over the auto downloaded qemu sources: https://gitlab.com/johnth/aur-xen/raw/f9d0b40e240add9a136483a450c6a1b39a6= 85808/qemu-xen-traditional-gnutls-compilation.patch https://gitlab.com/johnth/aur-xen/raw/f9d0b40e240add9a136483a450c6a1b39a6= 85808/qemu-xen-traditional-gnutls-functions.patch after that I got vl.c:2784:5: error: =E2=80=98g_mem_set_vtable=E2=80=99 is deprecated [-Werror=3Ddeprecated-declarations] g_mem_set_vtable(&mem_trace); I had to apply https://lists.gnu.org/archive/html/qemu-devel/2015-09/msg01262.html which seemes that only partially been applied (has rejects), but after modifying the sources by hand, it seemes working. Just after this, Mini-OS failed to compile: Makefile:17: /config/MiniOS.mk: No such file or directory But, the MiniOS.mk DOES exists. I had to manually add XEN_ROOT=3Dmysourcedir to mini-os/Config.mk to continue. and now I'm stuck here: gcc -mno-red-zone -O1 -fno-omit-frame-pointer -m64 -mno-red-zone -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 -fno-stack-protector -fno-exceptions -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 -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 -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 -m elf_x86_64 -\( /usr/src/xen-staging-4.6/stubdom/grub-x86_64/main.a app.lds -\) -L/usr/src/xen-staging-4.6/stubdom/libs-x86_64/toollog -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' fail= ed make[2]: *** [/usr/src/xen-staging-4.6/stubdom/mini-os-x86_64-grub/mini-os_app.o] Erro= r 1 make[2]: Leaving directory '/usr/src/xen-staging-4.6/extras/mini-os-remot= e' 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 Can someone advise? 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. Is it possible fixing any of these problems? --=20 =C3=89li=C3=A1s Tam=C3=A1s Thomas Elias ETIT[nwpro] KFT, =C3=9Cgyvezet=C5=91-H=C3=A1l=C3=B3zatbiztons=C3=A1gi spe= cialista ETIT[nwpro] Ltd, General Manager-Network security specialist Tel. HU: +36/30-497-1626 Tel. DE: +49/160-651-8723 OpenPGP pubkey: http://etit.hu/doc/et-pub.asc Okleveles m=C3=A9rn=C3=B6k-informatikus (MSC) Master of Science in Information Technology (MSC) Kapcsolat: http://etit.hu/index.php/hu/kapcsolat Jogi nyilatkozat: http://etit.hu/disclaimer-email-hu.txt Contact: http://etit.hu/index.php/en/contact Disclaimer: http://etit.hu/disclaimer-email-en.txt --g37I4XxEHg83iopskOpUWFTOD949HMb4p-- --gfnvJvSui90RXQHI2vPmkcpnsA52K06vT Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJW9XsTAAoJENWYes1C3s/CxbIQAJ4gg1uGkdeKmGNODci4hEiS +cay4kiHoT5EH64FbV1mCg8XKBO/VutaRFAJG4+Sbpo7/WGNxMZXXeKDs/k3yaSK VVxpOnZ6SQSasQRMurhlM6YShJXVHNuyuWeNOE+2jEQILrhJY3tl3rFb5zpNgoxY Z/7j4OSERFJsE5TP10j5pHSyQSHHkYR1LOiRMHgysg3iN8yBwH2CEwchQJqEcRSg Lba/fbBwP133L4bmtrvZ2vuEgm3T3YZoD8kPisKN3c2x+tXxDyAkS/C1XWNOwJjI FjY5VLD3BPesII5PR3ReEn9kYjRh6M6WjPrXC5QhNiKp6HsASUMQYjUsoo1dOOnb TD2IKluoByG2+AZEA7avB4w0XWVED+ibKnKiNJ7rLvpmBmwJSjks0mqii0lAbJpj bSxXP7ac/1BICTgtNDOpjxGEsAFqm0RIuq8C9XEvbCoM5FW1jS+elsvOveqaC2v1 bQB91o4QdUm4bz/KL0QncQ8qa2zzk5uW1u6D/qeHVJwroeHhr3OZFYP92b5BNeeD jSi9LyCUAAr7Sx1TPzj7t93juydbc4UOTsMzAqVgG8KRMX6OP7a+Ha5lkXCRITko 4/unDRIOyPBa4k92TgHkRJqBiidHPvm3+f5VK/96CmAfSZwmRBkwRlz4sjq6uSEw XEPMZDEkT3P8xs6w+1jM =wX6M -----END PGP SIGNATURE----- --gfnvJvSui90RXQHI2vPmkcpnsA52K06vT-- --===============3782332138152067780== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVuLm9yZwpodHRwOi8vbGlzdHMueGVuLm9y Zy94ZW4tZGV2ZWwK --===============3782332138152067780==--