From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from muon.cran.org.uk (muon.bluestop.org [IPv6:2605:7700:0:8:1:0:4a32:3323]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 607DB21A6F107 for ; Mon, 8 May 2017 17:48:45 -0700 (PDT) Received: from muon.bluestop.org (localhost [127.0.0.1]) by muon.cran.org.uk (Postfix) with ESMTP id 7FECA10CE6 for ; Tue, 9 May 2017 00:48:44 +0000 (UTC) Received: from muon.cran.org.uk ([127.0.0.1]) by muon.bluestop.org (muon.bluestop.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id psfRRmGrUBlk for ; Tue, 9 May 2017 00:48:44 +0000 (UTC) Received: from localhost (unknown [IPv6:2601:681:4300:fd:58ad:3f7c:ac95:1e42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by muon.cran.org.uk (Postfix) with ESMTPSA for ; Tue, 9 May 2017 00:48:43 +0000 (UTC) Date: Mon, 8 May 2017 18:48:42 -0600 From: Rebecca Cran To: "edk2-devel@lists.01.org" Message-ID: <20170508184842.000041fb@bluestop.org> X-Mailer: Claws Mail 3.15.0 (GTK+ 2.24.31; i686-w64-mingw32) MIME-Version: 1.0 Subject: Warnings cross-building AARCH64 package with GCC 6.2.1 (-Wlto-type-mismatch) X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 May 2017 00:48:45 -0000 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit I suspect I should be trying to build AARCH64 stuff with something more like gcc 4.8 instead of 6.2.1, but when I did build the Overdrive1000Board package I saw lots of warnings complaining about the implementation not matching the prototype (with the warning being -Wlto-type-mismatch). I cross-compiled on an OpenSUSE x64 system with aarch64-suse-linux-gcc-6, with the commandline: build -a AARCH64 -t GCC5 -b RELEASE -p OpenPlatformPkg/Platforms/AMD/Styx/Overdrive1000Board/Overdrive1000Board.dsc ArmPlatformPkg is from linaro git master, edk2 is tianocore git master The warnings were all similar to: /workspace/edk2/MdePkg/Include/Library/BaseMemoryLib.h:462:1: warning: type of 'IsZeroGuid' does not match original declaration [-Wlto-type-mismatch] IsZeroGuid ( ^ //workspace/edk2/MdePkg/Library/BaseMemoryLibOptDxe/Arm/MemLibGuid.c:158:1: note: 'IsZeroGuid' was previously declared here IsZeroGuid ( ^ /workspace/edk2/MdePkg/Library/BaseMemoryLibOptDxe/Arm/MemLibGuid.c:158:1: note: code may be misoptimized unless -fno-strict-aliasing is used Are these real problems, or just because gcc 6.2 and/or LTO aren't ready for AARCH64 yet? -- Rebecca