From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=40.107.8.70; helo=eur04-vi1-obe.outbound.protection.outlook.com; envelope-from=supreeth.venkatesh@arm.com; receiver=edk2-devel@lists.01.org Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80070.outbound.protection.outlook.com [40.107.8.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 8F32E21962301 for ; Tue, 19 Mar 2019 20:18:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tlLmkI5pRMr1kb463AzD1qiUOy3YlbGjtzr1nwiOfBM=; b=VQxzHs7g4CY9j7rqWr5lfVoNzkdbyNg/1l2KCB5r0TbL9K5QUt3WPHLNRBqr/k0R4SELh+nfVuGfrhpyheVzL3aTmjSINrO1QkF9wp4A9c0vbT8I7frPL1ELvuddduApJlbSMCEvuDCKfGORgaXyXQvl3TNY3QOdcU/H8Atkc1Q= Received: from AM4PR08MB2788.eurprd08.prod.outlook.com (10.170.126.27) by AM4PR08MB2820.eurprd08.prod.outlook.com (10.171.191.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1709.14; Wed, 20 Mar 2019 03:18:40 +0000 Received: from AM4PR08MB2788.eurprd08.prod.outlook.com ([fe80::cc1a:f5ec:27c6:4136]) by AM4PR08MB2788.eurprd08.prod.outlook.com ([fe80::cc1a:f5ec:27c6:4136%2]) with mapi id 15.20.1709.015; Wed, 20 Mar 2019 03:18:40 +0000 From: Supreeth Venkatesh To: Meenakshi Aggarwal , "edk2-devel@lists.01.org" CC: Dong Wei , "Jin, Eric" , Udit Kumar , Varun Sethi Thread-Topic: [edk2-test] SctPkg compilation is failing Thread-Index: AdTdo9p0NeVXEA8PSaK/fHJhwPRvdgAbueIgAC3nz7A= Date: Wed, 20 Mar 2019 03:18:40 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Supreeth.Venkatesh@arm.com; x-originating-ip: [2600:1700:8c61:400:4902:18e0:4c4e:53be] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f57bc227-3b79-4e45-85fa-08d6ace2c04c x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM4PR08MB2820; x-ms-traffictypediagnostic: AM4PR08MB2820: x-ms-exchange-purlcount: 3 x-microsoft-antispam-prvs: x-forefront-prvs: 098291215C x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(136003)(396003)(376002)(39860400002)(346002)(40434004)(199004)(189003)(256004)(99286004)(7696005)(790700001)(71200400001)(110136005)(186003)(486006)(6116002)(102836004)(97736004)(25786009)(476003)(53546011)(19627235002)(11346002)(71190400001)(54906003)(46003)(4326008)(446003)(5024004)(76176011)(316002)(6506007)(86362001)(14444005)(2906002)(6436002)(33656002)(6246003)(74316002)(9326002)(54896002)(81166006)(236005)(14454004)(2501003)(6306002)(478600001)(81156014)(7736002)(8676002)(966005)(105586002)(68736007)(53936002)(9686003)(106356001)(8936002)(52536014)(72206003)(229853002)(606006)(5660300002)(55016002)(40753002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR08MB2820; H:AM4PR08MB2788.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: a1RiIADQUjesvV7RALOGid+3khQpHoh1+cmJSPx3LvFrz2aZdVxfBr17ebkO2PyN58dijIkOEKlUgDJ4j/oKQsoc8RyvAE+Fsl5dE9zjrDjGxtUt94kdgYfraTGi0uo4xRQbdX9o+48Ad0IA74wPX6vIEIMdZhyOYacmB+tDyCHBvYLB1oVObfLydYJJEop7+uoaLddrTr5KIq2/jNBNImj+gJJlqNV/QS0cCuZyrXM1q5OJK+gxZ8+pQgPG9OD8Lb+jqMuyZge5QtPund52s+dGHkim4uHS1U3OOpDSBd8DTM6mnxBWclqMlonht7TJE8Zjv8tq9QrDMj90IKLJbHxdNdC+PmZJ8jn/D48ZQ8O1JhQM8T+5yx5cG6d7K9f2hgcVX02gncLtS0qb/5JAeatAzoxvsWe3Z8DtQ75E5LQ= MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: f57bc227-3b79-4e45-85fa-08d6ace2c04c X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Mar 2019 03:18:40.7590 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR08MB2820 X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [edk2-test] SctPkg compilation is failing X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Mar 2019 03:18:46 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Meenakshi, I was able to reproduce this error. This is because a change in the edk2 file BaseTools/Source/C/Makefiles/app.= makefile which was using relative path to make it work with absolute path. This fix is present in latest edk2 versions already. Hence, as indicated earlier I will update build instructions so as to point= to edk2-stable201903 tag in the next few days. Assuming you are using UDK2017 still, please replace relative path to absol= ute path in your edk2 source and you will be able to compile. Diff details below. tmp/sct_workspace/edk2$ git diff diff --git a/BaseTools/Source/C/Makefiles/app.makefile b/BaseTools/Source/C= /Makefiles/app.makefile index e414551b4a..6017b2dd59 100644 --- a/BaseTools/Source/C/Makefiles/app.makefile +++ b/BaseTools/Source/C/Makefiles/app.makefile @@ -23,6 +23,6 @@ all: $(MAKEROOT)/bin $(APPLICATION) $(APPLICATION): $(OBJECTS) $(LINKER) -o $(APPLICATION) $(BUILD_LFLAGS) $(OBJECTS) -L$(MAKEROOT= )/libs $(LIBS) -$(OBJECTS): ../Include/Common/BuildVersion.h +$(OBJECTS): $(MAKEROOT)/Include/Common/BuildVersion.h Thanks, Supreeth From: Meenakshi Aggarwal Sent: Tuesday, March 19, 2019 12:19 AM To: Supreeth Venkatesh ; edk2-devel@lists.01.or= g Cc: Dong Wei ; Jin, Eric ; Udit Kumar= ; Varun Sethi Subject: RE: [edk2-test] SctPkg compilation is failing Hi Supreeth, I tried the step suggested by you, but still facing error: meenakshi@uefi-OptiPlex-790:~/SCT/edk2/SctPkg$ export EDK_TOOLS_PATH=3D"/ho= me/meenakshi/SCT/edk2/BaseTools" meenakshi@uefi-OptiPlex-790:~/SCT/edk2/SctPkg$ rm -f $EDK_TOOLS_PATH/Source= /C/bin/GenBin meenakshi@uefi-OptiPlex-790:~/SCT/edk2/SctPkg$ cd .. meenakshi@uefi-OptiPlex-790:~/SCT/edk2$ ./SctPkg/build.sh AARCH64 GCC Target: AARCH64 Build: other TOOLCHAIN is GCC49 Toolchain prefix: GCC49_AARCH64_PREFIX=3Daarch64-linux-gnu- Building from: /home/meenakshi/SCT/edk2 using prebuilt tools Building GenBin make: Entering directory `/home/meenakshi/SCT/edk2-test/uefi-sct/SctPkg/Too= ls/Source/GenBin' make: *** No rule to make target `../Include/Common/BuildVersion.h', needed= by `GenBin.o'. Stop. make: Leaving directory `/home/meenakshi/SCT/edk2-test/uefi-sct/SctPkg/Tool= s/Source/GenBin' Error while building GenBin Also, i can't see any update in compilation steps in edk2-test repository. Please update latest steps. Thanks, Meenakshi From: Supreeth Venkatesh > Sent: Monday, March 18, 2019 9:37 PM To: Meenakshi Aggarwal >; edk2-devel@lists.01.org Cc: Dong Wei >; Jin, Eric > Subject: RE:[edk2-test] SctPkg compilation is failing Changing Subject line to append [edk2-test]. If the source code for edk2 and/or edk2-test is stale, this may happen, as GenBin is no longer a pre-built binary but it is getting built from the = source. Please try this with the existing build and recompile. rm -f $EDK_TOOLS_PATH/Source/C/bin/GenBin Also, Build instructions need update, since UTWG decided to use edk2 stable relea= ses tag. I will update the instructions today. Thanks, Supreeth From: Meenakshi Aggarwal > Sent: Monday, March 18, 2019 1:42 AM To: edk2-devel@lists.01.org; Supreeth Venka= tesh > Subject: SctPkg compilation is failing Hi, I followed below steps to compile SctPkg: Refer to SctPkg/Tools/Source/GenBin/HowTo.txt to gen the GenBin and copy it= to Home/Dev/SctWorkspace/Bin/BaseTools/BinWrappers/PosixLike Build Instructions for UEFI SCTII AARCH64 (Linux) 1) mkdir "sct_workspace" 2) cd sct_workspace 3) git clone https://github.com/tianocore/edk2-test.git 4) git clone https://github.com/tianocore/edk2 5) cd edk2 6) git checkout UDK2017 7) ln -s ../edk2-test/uefi-sct/SctPkg SctPkg 8) cd .. 9) mkdir -p "tools/gcc" 10) cd "tools/gcc" 11) wget -nv "https://releases.linaro.org/components/toolchain/binaries/4= .9-2016.02/aarch64-linux-gnu/gcc-linaro-4.9-2016.02-x86_64_aarch64-linux-gn= u.tar.xz" 12) tar -xf gcc-linaro-4.9-2016.02-x86_64_aarch64-linux-gnu.tar.xz 13) cd ../.. 14) export PATH=3D$PATH:"$PWD/tools/gcc/gcc-linaro-4.9-2016.02-x86_64_aar= ch64-linux-gnu/bin" 15) export CROSS_COMPILE=3D"$PWD/tools/gcc/gcc-linaro-4.9-2016.02-x86_64_= aarch64-linux-gnu/bin/aarch64-linux-gnu-" 16) ./SctPkg/build.sh AARCH64 GCC But I am facing below error: meenakshi@uefi-OptiPlex-790:~/SCT/edk2$ ./SctPkg/build.sh AARCH64 GCC Target: AARCH64 Build: other TOOLCHAIN is GCC49 Toolchain prefix: GCC49_AARCH64_PREFIX=3Daarch64-linux-gnu- Building from: /home/meenakshi/SCT/edk2 using prebuilt tools Building GenBin make: Entering directory `/home/meenakshi/SCT/edk2-test/uefi-sct/SctPkg/Too= ls/Source/GenBin' make: *** No rule to make target `../Include/Common/BuildVersion.h', needed= by `GenBin.o'. Stop. make: Leaving directory `/home/meenakshi/SCT/edk2-test/uefi-sct/SctPkg/Tool= s/Source/GenBin' Error while building GenBin Please help in compiling SctPkg. Thanks, Meenakshi IMPORTANT NOTICE: The contents of this email and any attachments are confid= ential and may also be privileged. If you are not the intended recipient, p= lease notify the sender immediately and do not disclose the contents to any= other person, use it for any purpose, or store or copy the information in = any medium. Thank you. IMPORTANT NOTICE: The contents of this email and any attachments are confid= ential and may also be privileged. If you are not the intended recipient, p= lease notify the sender immediately and do not disclose the contents to any= other person, use it for any purpose, or store or copy the information in = any medium. Thank you.