From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=40.107.4.49; helo=eur03-db5-obe.outbound.protection.outlook.com; envelope-from=meenakshi.aggarwal@nxp.com; receiver=edk2-devel@lists.01.org Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40049.outbound.protection.outlook.com [40.107.4.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 1F465211E7441 for ; Thu, 21 Mar 2019 23:12:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4xrA7xrqMN6wlYQV7MWqxKlRZlX1u0SOFk7IBMZFsCE=; b=wRb8zQ085gFItndYOWZ1X2H9SiJI7qgqAMRI2EMjItyfDfv9zwgdRzH6mlyULRSQcGGsTaljo3vZPxW0kKK/EOPqS01aEHkq/oMXtFsIew/UJ7r5LsqaKY7kzA/oamWJRiBvXBev1UTWu43ZUxm0KESLp/lBzUrnrgxgEqiVcXk= Received: from VI1PR04MB4685.eurprd04.prod.outlook.com (20.177.56.77) by VI1PR04MB4799.eurprd04.prod.outlook.com (20.177.48.220) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1709.15; Fri, 22 Mar 2019 06:12:34 +0000 Received: from VI1PR04MB4685.eurprd04.prod.outlook.com ([fe80::909d:bea4:dd27:1147]) by VI1PR04MB4685.eurprd04.prod.outlook.com ([fe80::909d:bea4:dd27:1147%4]) with mapi id 15.20.1730.013; Fri, 22 Mar 2019 06:12:34 +0000 From: Meenakshi Aggarwal To: Supreeth Venkatesh , "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/fHJhwPRvdgAbueIgAC3nz7AAaodSMA== Date: Fri, 22 Mar 2019 06:12:34 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=meenakshi.aggarwal@nxp.com; x-originating-ip: [92.120.0.5] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c165401b-6452-4edf-23f9-08d6ae8d6052 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:VI1PR04MB4799; x-ms-traffictypediagnostic: VI1PR04MB4799: x-ms-exchange-purlcount: 3 x-microsoft-antispam-prvs: x-forefront-prvs: 09840A4839 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(136003)(376002)(396003)(366004)(346002)(40434004)(199004)(189003)(86362001)(14454004)(102836004)(606006)(9326002)(54906003)(8936002)(97736004)(33656002)(966005)(110136005)(4326008)(106356001)(105586002)(6506007)(11346002)(316002)(7736002)(446003)(476003)(486006)(54896002)(236005)(53546011)(9686003)(55016002)(6306002)(76176011)(478600001)(6436002)(7696005)(229853002)(44832011)(6116002)(68736007)(26005)(81156014)(81166006)(8676002)(790700001)(99286004)(6246003)(25786009)(186003)(3846002)(53936002)(71190400001)(71200400001)(74316002)(14444005)(2501003)(66066001)(19627235002)(256004)(52536014)(2906002)(5024004)(5660300002)(40753002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB4799; H:VI1PR04MB4685.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: EdIhokma2V5aT7LtFFhSYAwvQ7Fc9h3dAlYup0SzcP1oQjDCxycztkBdp6B4bdCLKN8XoiFwt1MCeLQ8TFz3bv5zx7a/CPBXKIedlkE/x5NxdsztFqF/I53lJ48WIOyYORqMiC76ZB1dfkODP4rWJnbCO6Wzl4ottIbaIdYWGZ76QOgF72NUsW8fMJD7iF8it/EP7PpEOFLsGC94EWnSHwLtsYqh85DEoNWPJEy76KkPvT5yBbPueYTl8TCUvvF98C5ac6oRt0tBvgjcO8wl2gqj0oTCDF9uZba+UWKmeNpagtz714e18HYU5do/PD3w1jCudqWzx1TLuSSyx1cpVpNpnhErpTvX4bmxGcfGfvR4SxJI75/lKZb19C7QZKDUPxpU1yXm9R0HsRSLSTwvNfoIK4So4YnjOEekaxWLB1M= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c165401b-6452-4edf-23f9-08d6ae8d6052 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Mar 2019 06:12:34.7310 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4799 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: Fri, 22 Mar 2019 06:12:39 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Supreeth, I am able to compile SctPkg with your suggested changes. Yes, we are trying eith UDK2017 as this is what mentioned in How To Build". I tried with edk2's master branch today and faced following error: build.py... /home/meenakshi/SCT/edk2/SctPkg/Library/SctGuidLib/SctGuidLib.inf(...): err= or 5000: MODULE_TYPE is not given Thanks, Meenakshi From: Supreeth Venkatesh Sent: Wednesday, March 20, 2019 8:49 AM To: Meenakshi Aggarwal ; edk2-devel@lists.01.or= g Cc: Dong Wei ; Jin, Eric ; Udit Kumar= ; Varun Sethi Subject: RE: [edk2-test] SctPkg compilation is failing 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.org 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.