From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@bluestop.org header.s=mail header.b=dkKPSmxn; spf=pass (domain: bluestop.org, ip: 65.103.231.193, mailfrom: rebecca@bluestop.org) Received: from muon.bluestop.org (muon.bluestop.org [65.103.231.193]) by groups.io with SMTP; Tue, 09 Apr 2019 21:57:37 -0700 Received: from muon.bluestop.org (localhost [127.0.0.1]) by muon.bluestop.org (Postfix) with ESMTP id B1A8366925 for ; Tue, 9 Apr 2019 22:59:37 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bluestop.org; s=mail; t=1554872377; bh=AsrnK1V+PGAFCE2CLRlIiIP1cFlkK3XogSmxcWznIzw=; h=To:From:Subject:Date:From; b=dkKPSmxneNdGtdohV/nU0uDI47I007uWCFIHjXgx6yQGyoNfxYsqyeLMypUKZXpwY ubFkHpLzQky7WsqJrSc45BBDX7V3egsHR79379Q6y7qgVPFof1brK965b1ycsVlMSC 2ygnRX3XC437CuD0aHvVN/IIygXtwiePvi7p9gXs= Received: from muon.bluestop.org ([127.0.0.1]) by muon.bluestop.org (muon.bluestop.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 2LG6_EtmDRGq for ; Tue, 9 Apr 2019 22:59:37 -0600 (MDT) Received: from photon.int.bluestop.org (unknown [65.103.231.197]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by muon.bluestop.org (Postfix) with ESMTPSA for ; Tue, 9 Apr 2019 22:59:37 -0600 (MDT) To: devel@edk2.groups.io From: "Rebecca Cran" Subject: Building EDK2 code on arm64 (aarch64) - BaseTools fails Message-ID: Date: Tue, 9 Apr 2019 22:57:35 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable Is there any expectation that EDK2 will build on non-x86 systems? I tried building BaseTools (from git master,=20 ae2fb9ead47b5abaf2a4e815b5f57c8f4838b221) using GCC 8.2 on a SoftIron=20 OverDrive 1000 (running FreeBSD) but there are lots of errors, such as: gcc=C2=A0 -c=C2=A0 -I .. -I ../Include/Common -I ../Include/ -I=20 ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/Arm/=C2= =A0=20 -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror=20 -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict=20 -Wno-unused-result -nostdlib -g -O2=C2=A0 BasePeCoff.c -o BasePeCoff.o BasePeCoff.c: In function 'PeCoffLoaderGetPeHeader': BasePeCoff.c:120:49: error: cast from pointer to integer of different=20 size [-Werror=3Dpointer-to-int-cast] =C2=A0=C2=A0 *PeHdr =3D (EFI_IMAGE_OPTIONAL_HEADER_UNION *)=20 ((UINTN)ImageContext->Handle + ImageContext->PeCoffHeaderOffset); =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^ BasePeCoff.c:120:12: error: cast to pointer from integer of different=20 size [-Werror=3Dint-to-pointer-cast] =C2=A0=C2=A0 *PeHdr =3D (EFI_IMAGE_OPTIONAL_HEADER_UNION *)=20 ((UINTN)ImageContext->Handle + ImageContext->PeCoffHeaderOffset); =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^ BasePeCoff.c: In function 'PeCoffLoaderImageAddress': BasePeCoff.c:551:10: error: cast to pointer from integer of different=20 size [-Werror=3Dint-to-pointer-cast] =C2=A0=C2=A0 return (UINT8 *) ((UINTN) ImageContext->ImageAddress + Addr= ess); =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^ --=20 Rebecca Cran