From: Marek =?utf-8?Q?Marczykowski-G=C3=B3recki?= Subject: Building Xen 4.8 with GCC 7 Date: Tue, 27 Jun 2017 20:29:52 +0200 Message-ID: <20170627182952.GZ3857@mail-itl> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4074267433002623297==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" To: xen-devel List-Id: xen-devel@lists.xenproject.org --===============4074267433002623297== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="y5yQnZmVlpWlTeDv" Content-Disposition: inline --y5yQnZmVlpWlTeDv Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, I'm having troubles with building Xen with GCC 7 (Fedora 26). Some of the problems are fixed by "Compilation fixes for GCC 7" patch series sent a moment ago, but then I've stumbled on link failure of vtpmmgr stubdomain, related to some functions of tpm_emulator. I've already tried with -fkeep-inline-functions, but it only reduced number of errors. Below is both -fkeep-inline-functions patch and full error message. Any idea? --- xen-4.6.5/stubdom/vtpmmgr/Makefile 2017-03-07 17:19:05.000000000 +0100 +++ xen-4.6.5/stubdom/vtpmmgr/Makefile.new 2017-05-12 01:49:02.589000000 +0= 200 @@ -17,7 +17,7 @@ OBJS +=3D vtpm_disk.o disk_tpm.o disk_io.o OBJS +=3D mgmt_authority.o =20 CFLAGS+=3D-Werror -Iutil -Icrypto -Itcs -CFLAGS+=3D-Wno-declaration-after-statement -Wno-unused-label +CFLAGS+=3D-Wno-declaration-after-statement -Wno-unused-label -fkeep-inline= -functions =20 build: $(TARGET) $(TARGET): $(OBJS) ld -nostdlib -L/home/user/rpmbuild/BUILD/xen-4.8.1/stubdom/cross-root-x86_6= 4/x86_64-xen-elf/lib -m elf_x86_64 -T arch/x86/minios-x86_64.lds /home/us= er/rpmbuild/BUILD/xen-4.8.1/stubdom/mini-os-x86_64-vtpmmgr/mini-os.o -o /h= ome/user/rpmbuild/BUILD/xen-4.8.1/stubdom/mini-os-x86_64-vtpmmgr/mini-os /home/user/rpmbuild/BUILD/xen-4.8.1/stubdom/mini-os-x86_64-vtpmmgr/mini-os.= o: In function `vtpmmgr_GroupRegister': /home/user/rpmbuild/BUILD/xen-4.8.1/stubdom/vtpmmgr/vtpm_cmd_handler.c:555:= undefined reference to `tpmrsa_free' /home/user/rpmbuild/BUILD/xen-4.8.1/stubdom/mini-os-x86_64-vtpmmgr/mini-os.= o: In function `vtpmmgr_GroupRegister': vtpm_cmd_handler.c:(.text+0x3b6e): undefined reference to `tpmrsa_free' /home/user/rpmbuild/BUILD/xen-4.8.1/stubdom/mini-os-x86_64-vtpmmgr/mini-os.= o: In function `vtpmmgr_handle_cmd': gdtoa-hexnan.c:(.text+0x4e68): undefined reference to `tpmrsa_free' /home/user/rpmbuild/BUILD/xen-4.8.1/stubdom/mini-os-x86_64-vtpmmgr/mini-os.= o: In function `TPM_TakeOwnership': /home/user/rpmbuild/BUILD/xen-4.8.1/stubdom/vtpmmgr/tpm.c:407: undefined re= ference to `unpack3_TPM_KEY' /home/user/rpmbuild/BUILD/xen-4.8.1/stubdom/mini-os-x86_64-vtpmmgr/mini-os.= o: In function `TPM_TakeOwnership': gdtoa-hexnan.c:(.text+0x8726): undefined reference to `unpack3_TPM_KEY' gdtoa-hexnan.c:(.text+0x8787): undefined reference to `unpack3_TPM_AUTH_SES= SION' gdtoa-hexnan.c:(.text+0x8827): undefined reference to `free_TPM_KEY' /home/user/rpmbuild/BUILD/xen-4.8.1/stubdom/mini-os-x86_64-vtpmmgr/mini-os.= o: In function `TPM_Seal': gdtoa-hexnan.c:(.text+0x9435): undefined reference to `unpack3_TPM_STORED_D= ATA12' gdtoa-hexnan.c:(.text+0x9496): undefined reference to `unpack3_TPM_AUTH_SES= SION' /home/user/rpmbuild/BUILD/xen-4.8.1/stubdom/mini-os-x86_64-vtpmmgr/mini-os.= o: In function `TPM_Unseal': gdtoa-hexnan.c:(.text+0x99d4): undefined reference to `unpack_ALLOC' gdtoa-hexnan.c:(.text+0x9a28): undefined reference to `unpack3_TPM_AUTH_SES= SION' gdtoa-hexnan.c:(.text+0x9a62): undefined reference to `unpack3_TPM_AUTH_SES= SION' /home/user/rpmbuild/BUILD/xen-4.8.1/stubdom/mini-os-x86_64-vtpmmgr/mini-os.= o: In function `TPM_LoadKey': gdtoa-hexnan.c:(.text+0xa0c8): undefined reference to `unpack3_TPM_AUTH_SES= SION' /home/user/rpmbuild/BUILD/xen-4.8.1/stubdom/mini-os-x86_64-vtpmmgr/mini-os.= o: In function `TPM_ReadPubek': gdtoa-hexnan.c:(.text+0xa592): undefined reference to `unpack3_TPM_RSA_KEY_= PARMS' gdtoa-hexnan.c:(.text+0xa5b7): undefined reference to `unpack3_TPM_SYMMETRI= C_KEY_PARMS' gdtoa-hexnan.c:(.text+0xa616): undefined reference to `unpack3_PTR' /home/user/rpmbuild/BUILD/xen-4.8.1/stubdom/mini-os-x86_64-vtpmmgr/mini-os.= o: In function `TPM_GetCapability': gdtoa 0K ..-hexnan.c:(.text+0xaafc): undefined reference to `unpack_ALLOC' /home/user/rpmbuild/BUILD/xen-4.8.1/stubdom/mini-os-x86_64-vtpmmgr/mini-os.= o: In function `TPM_CreateEndorsementKeyPair': gdtoa-hexnan.c:(.text+0xae1b): undefined reference to `unpack3_TPM_RSA_KEY_= PARMS' gdtoa-hexnan.c:(.text+0xae3f): undefined reference to `unpack3_TPM_SYMMETRI= C_KEY_PARMS' gdtoa-hexnan.c:(.text+0xae9c): undefined reference to `unpack3_PTR' /home/user/rpmbuild/BUILD/xen-4.8.1/stubdom/mini-os-x86_64-vtpmmgr/mini-os.= o: In function `TPM_MakeIdentity': gdtoa-hexnan.c:(.text+0xb646): undefined reference to `unpack3_TPM_KEY' gdtoa-hexnan.c:(.text+0xb6c8): undefined reference to `unpack_ALLOC' gdtoa-hexnan.c:(.text+0xb72b): undefined reference to `unpack3_TPM_AUTH_SES= SION' gdtoa-hexnan.c:(.text+0xb768): undefined reference to `unpack3_TPM_AUTH_SES= SION' /home/user/rpmbuild/BUILD/xen-4.8.1/stubdom/mini-os-x86_64-vtpmmgr/mini-os.= o: In function `TPM_ActivateIdentity': gdtoa-hexnan.c:(.text+0xbbcc): undefined reference to `unpack3_TPM_SYMMETRI= C_KEY' gdtoa-hexnan.c:(.text+0xbc3a): undefined reference to `unpack3_TPM_AUTH_SES= SION' gdtoa-hexnan.c:(.text+0xbc73): undefined reference to `unpack3_TPM_AUTH_SES= SION' /home/user/rpmbuild/BUILD/xen-4.8.1/stubdom/mini-os-x86_64-vtpmmgr/mini-os.= o: In function `TPM_Quote': gdtoa-hexnan.c:(.text+0xc015): undefined reference to `unpack3_TPM_PCR_COMP= OSITE' gdtoa-hexnan.c:(.text+0xc081): undefined reference to `unpack_ALLOC' gdtoa-hexnan.c:(.text+0xc0da): undefined reference to `unpack3_TPM_AUTH_SES= SION' /home/user/rpmbuild/BUILD/xen-4.8.1/stubdom/mini-os-x86_64-vtpmmgr/mini-os.= o: In function `unpack_TPMU_PUBLIC_ID': /home/user/rpmbuild/BUILD/xen-4.8.1/stubdom/vtpmmgr/tpm2_marshal.h:577: und= efined reference to `unpack_TPMS_ECC_POINT' /home/user/rpmbuild/BUILD/xen-4.8.1/stubdom/mini-os-x86_64-vtpmmgr/mini-os.= o: In function `TPM2_CreatePrimary': gdtoa-hexnan.c:(.text+0xdadc): undefined reference to `unpack_TPMS_ECC_POIN= T' make[2]: *** [Makefile:173: /home/user/rpmbuild/BUILD/xen-4.8.1/stubdom/min= i-os-x86_64-vtpmmgr/mini-os] Error 1 make[2]: Leaving directory '/home/user/rpmbuild/BUILD/xen-4.8.1/extras/mini= -os' make[1]: *** [Makefile:576: vtpmmgr-stubdom] Error 2 make[1]: Leaving directory '/home/user/rpmbuild/BUILD/xen-4.8.1/stubdom' make: *** [Makefile:105: install-stubdom] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.uyhPyK (%build) --=20 Best Regards, Marek Marczykowski-G=C3=B3recki Invisible Things Lab A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --y5yQnZmVlpWlTeDv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJZUqQgAAoJENuP0xzK19csWekH/02spvI7MMzdbkEJ+iylW9kG /0WsEqZWOcpo1Dx+ZBUavSto+yOa47mSBNqo3HW7XhoaFV1bqg9ZP63chWdWNz6l LUfwSunbkgXfI90zmxISy6z5YWRuNrAQ7bTab2RDWfSPnTNQnNHI2VQKq9/CQt6t LKMlIdR4QFpAJUGGilv9LBWz85BXAV6NcMXlCOqWY2u24zpMTOt3UVmoNQK2v3qS PuEkupo0oskiFIL5uEcRY39lqQrVAzQPsXrvdQnud3L9kKh2kFA74V6Jn4XMu3Kt bAZ7DQsaUNkaCsN0rg6QdB0oRUdUtx/JsP+2mPJw3PD/XSDKbjKIZlhLRHeZC/s= =kA14 -----END PGP SIGNATURE----- --y5yQnZmVlpWlTeDv-- --===============4074267433002623297== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVuLm9yZwpodHRwczovL2xpc3RzLnhlbi5v cmcveGVuLWRldmVsCg== --===============4074267433002623297==--