From patchwork Tue Jun 27 18:29:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Marek_Marczykowski-G=C3=B3recki?= X-Patchwork-Id: 9812951 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E8A666020A for ; Tue, 27 Jun 2017 18:32:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F11F128178 for ; Tue, 27 Jun 2017 18:32:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E3577282E8; Tue, 27 Jun 2017 18:32:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 37F9F28178 for ; Tue, 27 Jun 2017 18:32:25 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dPvFQ-0000DX-Pq; Tue, 27 Jun 2017 18:30:00 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dPvFP-0000DJ-P2 for xen-devel@lists.xen.org; Tue, 27 Jun 2017 18:29:59 +0000 Received: from [85.158.143.35] by server-8.bemta-6.messagelabs.com id ED/C4-03696-724A2595; Tue, 27 Jun 2017 18:29:59 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrIIsWRWlGSWpSXmKPExsXilM8iqau2JCj SoGcyr8WSj4tZHBg9ju7+zRTAGMWamZeUX5HAmnHuymeWgiNmFYsmtDI3MJ436mLk4hASOMEo 8enaS5YuRk4gJ1tix6VFzCA2i8AdFompTTEgtoSAp0TXsc9MELazxN3f19kh6s8xSsxtUOpi5 ACqV5W4NU8RJMwmECxxfckvVhBbREBdYsnZSWDlwgIqEod+XwIbzyugI/F22g12CFtQ4uTMJ2 AnMAuUSlzvOMYCMpJZQFpi+T8OkLCogLLE7lt7mScw8s9C0jELSccshA6IsLrEn3mXmDGEtSW WLXzNDGHbSqxb955lASP7Kkb14tSistQiXUu9pKLM9IyS3MTMHF1DAzO93NTi4sT01JzEpGK9 5PzcTYzA4GYAgh2MdzcFHGKU5GBSEuU91RkUKcSXlJ9SmZFYnBFfVJqTWnyIUYaDQ0mCV3wxU E6wKDU9tSItMwcYZzBpCQ4eJRHe2jlAad7igsTc4sx0iNQpRl2ODavXf2ESYsnLz0uVEudVAJ khAFKUUZoHNwIW85cYZaWEeRmBjhLiKUgtys0sQZV/xSjOwagkzPtoEdAUnsy8ErhNr4COYAI 6gmVeAMgRJYkIKakGxvZXKw58eVZzc32MiO6V+cazl+f9ZNv1S1H6rPQZRrMm+Yk3EmKkN3un 3Mxr73v8c/rStwVrPzLx66ql1Ir8nvo/+U1P085ddhqb/oUtkePpetvE6exz2tcxUf2g5jI2n U935osWVkZk/Tvj5S2cuDHLy3l/RI/wk0Xu3oER1v9eO7/neJ15SImlOCPRUIu5qDgRAHG4ct j0AgAA X-Env-Sender: marmarek@invisiblethingslab.com X-Msg-Ref: server-12.tower-21.messagelabs.com!1498588197!75914731!1 X-Originating-IP: [66.111.4.25] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTExLjQuMjUgPT4gNDQ5ODE=\n X-StarScan-Received: X-StarScan-Version: 9.4.19; banners=-,-,- X-VirusChecked: Checked Received: (qmail 13561 invoked from network); 27 Jun 2017 18:29:58 -0000 Received: from out1-smtp.messagingengine.com (HELO out1-smtp.messagingengine.com) (66.111.4.25) by server-12.tower-21.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 27 Jun 2017 18:29:58 -0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 5A8EA23950 for ; Tue, 27 Jun 2017 14:29:57 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute7.internal (MEProxy); Tue, 27 Jun 2017 14:29:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-sender:x-me-sender:x-sasl-enc :x-sasl-enc; s=fm1; bh=ETLNlW2G8K5oryhDfPHixlIW4T/TdvP9BexQ3IT3E ds=; b=aKEITZHKxStZoNeUatDj9uOpWRsiAgEdJhB/9FBIck19R2QR+GTUKBpEg orGlCza9T2maDS85i50CNFILK0UI6iSDIWlxmAzq5Z+vzUvM0SyNP4ON4DbiYhj/ 3qYK0m5qhbOHNfsWQ2w900NfIb7kYeSrTIy1PRmOEh1bieZg9NgOEz78wnuPty+n EDrL2AfmRjBX9scMQprEIK1u1KoBVBFUV5Gwo4roFpcm7xNoZJv0085LuJ0WQnPx SFFqpSkOEmz96+BRJCCYvIXEnL0X7JsbSvu2WmYj11sjCefg2jIgZB9K70SqokrQ VZJ/1Fd/SNPtsiuwxyJ5dHJcN0OuQ== X-ME-Sender: X-Sasl-enc: yLOWfQBkEYN3DUOWPaa5Q5Ul8mnTZymFvYI2DtzYSwB/ 1498588196 Received: from mail-itl (89-70-103-23.dynamic.chello.pl [89.70.103.23]) by mail.messagingengine.com (Postfix) with ESMTPA id BE7D524038 for ; Tue, 27 Jun 2017 14:29:56 -0400 (EDT) Date: Tue, 27 Jun 2017 20:29:52 +0200 From: Marek =?utf-8?Q?Marczykowski-G=C3=B3recki?= To: xen-devel Message-ID: <20170627182952.GZ3857@mail-itl> MIME-Version: 1.0 User-Agent: Mutt/1.8.0 (2017-02-23) Subject: [Xen-devel] Building Xen 4.8 with GCC 7 X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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? ld -nostdlib -L/home/user/rpmbuild/BUILD/xen-4.8.1/stubdom/cross-root-x86_64/x86_64-xen-elf/lib -m elf_x86_64 -T arch/x86/minios-x86_64.lds /home/user/rpmbuild/BUILD/xen-4.8.1/stubdom/mini-os-x86_64-vtpmmgr/mini-os.o -o /home/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 reference 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_SESSION' 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_DATA12' gdtoa-hexnan.c:(.text+0x9496): undefined reference to `unpack3_TPM_AUTH_SESSION' /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_SESSION' gdtoa-hexnan.c:(.text+0x9a62): undefined reference to `unpack3_TPM_AUTH_SESSION' /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_SESSION' /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_SYMMETRIC_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_SYMMETRIC_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_SESSION' gdtoa-hexnan.c:(.text+0xb768): undefined reference to `unpack3_TPM_AUTH_SESSION' /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_SYMMETRIC_KEY' gdtoa-hexnan.c:(.text+0xbc3a): undefined reference to `unpack3_TPM_AUTH_SESSION' gdtoa-hexnan.c:(.text+0xbc73): undefined reference to `unpack3_TPM_AUTH_SESSION' /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_COMPOSITE' gdtoa-hexnan.c:(.text+0xc081): undefined reference to `unpack_ALLOC' gdtoa-hexnan.c:(.text+0xc0da): undefined reference to `unpack3_TPM_AUTH_SESSION' /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: undefined 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_POINT' make[2]: *** [Makefile:173: /home/user/rpmbuild/BUILD/xen-4.8.1/stubdom/mini-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) --- 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 +0200 @@ -17,7 +17,7 @@ OBJS += vtpm_disk.o disk_tpm.o disk_io.o OBJS += mgmt_authority.o CFLAGS+=-Werror -Iutil -Icrypto -Itcs -CFLAGS+=-Wno-declaration-after-statement -Wno-unused-label +CFLAGS+=-Wno-declaration-after-statement -Wno-unused-label -fkeep-inline-functions build: $(TARGET) $(TARGET): $(OBJS)