* Re: [edk2-test] SctPkg compilation is failing @ 2019-03-18 16:06 Supreeth Venkatesh 2019-03-19 5:18 ` Meenakshi Aggarwal 0 siblings, 1 reply; 5+ messages in thread From: Supreeth Venkatesh @ 2019-03-18 16:06 UTC (permalink / raw) To: Meenakshi Aggarwal, edk2-devel@lists.01.org; +Cc: Dong Wei, Jin, Eric 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 releases tag. I will update the instructions today. Thanks, Supreeth From: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com> Sent: Monday, March 18, 2019 1:42 AM To: edk2-devel@lists.01.org; Supreeth Venkatesh <Supreeth.Venkatesh@arm.com> 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-gnu.tar.xz" 12) tar -xf gcc-linaro-4.9-2016.02-x86_64_aarch64-linux-gnu.tar.xz 13) cd ../.. 14) export PATH=$PATH:"$PWD/tools/gcc/gcc-linaro-4.9-2016.02-x86_64_aarch64-linux-gnu/bin" 15) export CROSS_COMPILE="$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=aarch64-linux-gnu- Building from: /home/meenakshi/SCT/edk2 using prebuilt tools Building GenBin make: Entering directory `/home/meenakshi/SCT/edk2-test/uefi-sct/SctPkg/Tools/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/Tools/Source/GenBin' Error while building GenBin Please help in compiling SctPkg. Thanks, Meenakshi IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please 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. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [edk2-test] SctPkg compilation is failing 2019-03-18 16:06 [edk2-test] SctPkg compilation is failing Supreeth Venkatesh @ 2019-03-19 5:18 ` Meenakshi Aggarwal 2019-03-19 13:14 ` Supreeth Venkatesh 2019-03-20 3:18 ` Supreeth Venkatesh 0 siblings, 2 replies; 5+ messages in thread From: Meenakshi Aggarwal @ 2019-03-19 5:18 UTC (permalink / raw) To: Supreeth Venkatesh, edk2-devel@lists.01.org Cc: Dong Wei, Jin, Eric, Udit Kumar, Varun Sethi Hi Supreeth, I tried the step suggested by you, but still facing error: meenakshi@uefi-OptiPlex-790:~/SCT/edk2/SctPkg$ export EDK_TOOLS_PATH="/home/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=aarch64-linux-gnu- Building from: /home/meenakshi/SCT/edk2 using prebuilt tools Building GenBin make: Entering directory `/home/meenakshi/SCT/edk2-test/uefi-sct/SctPkg/Tools/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/Tools/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 <Supreeth.Venkatesh@arm.com> Sent: Monday, March 18, 2019 9:37 PM To: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>; edk2-devel@lists.01.org Cc: Dong Wei <Dong.Wei@arm.com>; Jin, Eric <eric.jin@intel.com> 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 releases tag. I will update the instructions today. Thanks, Supreeth From: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com<mailto:meenakshi.aggarwal@nxp.com>> Sent: Monday, March 18, 2019 1:42 AM To: edk2-devel@lists.01.org<mailto:edk2-devel@lists.01.org>; Supreeth Venkatesh <Supreeth.Venkatesh@arm.com<mailto:Supreeth.Venkatesh@arm.com>> 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<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftianocore%2Fedk2-test.git&data=02%7C01%7Cmeenakshi.aggarwal%40nxp.com%7Cccf889fbbad24313a6e408d6abbbb03f%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C636885219941288860&sdata=fePIVsPrXuJamaijqMwzC7ofb5e9zOSbwE5KXIrI%2Faw%3D&reserved=0> 4) git clone https://github.com/tianocore/edk2<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftianocore%2Fedk2&data=02%7C01%7Cmeenakshi.aggarwal%40nxp.com%7Cccf889fbbad24313a6e408d6abbbb03f%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C636885219941288860&sdata=gUtGod9T7GC4RWAvn5DrpnzIF2%2Bwp09DvcumXJFneBs%3D&reserved=0> 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-gnu.tar.xz<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Freleases.linaro.org%2Fcomponents%2Ftoolchain%2Fbinaries%2F4.9-2016.02%2Faarch64-linux-gnu%2Fgcc-linaro-4.9-2016.02-x86_64_aarch64-linux-gnu.tar.xz&data=02%7C01%7Cmeenakshi.aggarwal%40nxp.com%7Cccf889fbbad24313a6e408d6abbbb03f%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C636885219941298869&sdata=GJwSfTJu7XijioKuXANSpUhBKu7KLcM7K650IHIP2i0%3D&reserved=0>" 12) tar -xf gcc-linaro-4.9-2016.02-x86_64_aarch64-linux-gnu.tar.xz 13) cd ../.. 14) export PATH=$PATH:"$PWD/tools/gcc/gcc-linaro-4.9-2016.02-x86_64_aarch64-linux-gnu/bin" 15) export CROSS_COMPILE="$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=aarch64-linux-gnu- Building from: /home/meenakshi/SCT/edk2 using prebuilt tools Building GenBin make: Entering directory `/home/meenakshi/SCT/edk2-test/uefi-sct/SctPkg/Tools/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/Tools/Source/GenBin' Error while building GenBin Please help in compiling SctPkg. Thanks, Meenakshi IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please 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. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [edk2-test] SctPkg compilation is failing 2019-03-19 5:18 ` Meenakshi Aggarwal @ 2019-03-19 13:14 ` Supreeth Venkatesh 2019-03-20 3:18 ` Supreeth Venkatesh 1 sibling, 0 replies; 5+ messages in thread From: Supreeth Venkatesh @ 2019-03-19 13:14 UTC (permalink / raw) To: Meenakshi Aggarwal, edk2-devel@lists.01.org Cc: Dong Wei, Jin, Eric, Udit Kumar, Varun Sethi Sorry, I had to make a few changes to get uefi-sct working with edk2-stable201903 tag<https://github.com/tianocore/edk2/releases/tag/edk2-stable201903>. I will update the instructions after posting those patches. Please let me know which versions of edk2 and edk2-test are you using, so that I can look into that first and let you know. Thanks, Supreeth From: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com> Sent: Tuesday, March 19, 2019 12:19 AM To: Supreeth Venkatesh <Supreeth.Venkatesh@arm.com>; edk2-devel@lists.01.org Cc: Dong Wei <Dong.Wei@arm.com>; Jin, Eric <eric.jin@intel.com>; Udit Kumar <udit.kumar@nxp.com>; Varun Sethi <V.Sethi@nxp.com> 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="/home/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=aarch64-linux-gnu- Building from: /home/meenakshi/SCT/edk2 using prebuilt tools Building GenBin make: Entering directory `/home/meenakshi/SCT/edk2-test/uefi-sct/SctPkg/Tools/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/Tools/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 <Supreeth.Venkatesh@arm.com<mailto:Supreeth.Venkatesh@arm.com>> Sent: Monday, March 18, 2019 9:37 PM To: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com<mailto:meenakshi.aggarwal@nxp.com>>; edk2-devel@lists.01.org<mailto:edk2-devel@lists.01.org> Cc: Dong Wei <Dong.Wei@arm.com<mailto:Dong.Wei@arm.com>>; Jin, Eric <eric.jin@intel.com<mailto:eric.jin@intel.com>> 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 releases tag. I will update the instructions today. Thanks, Supreeth From: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com<mailto:meenakshi.aggarwal@nxp.com>> Sent: Monday, March 18, 2019 1:42 AM To: edk2-devel@lists.01.org<mailto:edk2-devel@lists.01.org>; Supreeth Venkatesh <Supreeth.Venkatesh@arm.com<mailto:Supreeth.Venkatesh@arm.com>> 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<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftianocore%2Fedk2-test.git&data=02%7C01%7Cmeenakshi.aggarwal%40nxp.com%7Cccf889fbbad24313a6e408d6abbbb03f%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C636885219941288860&sdata=fePIVsPrXuJamaijqMwzC7ofb5e9zOSbwE5KXIrI%2Faw%3D&reserved=0> 4) git clone https://github.com/tianocore/edk2<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftianocore%2Fedk2&data=02%7C01%7Cmeenakshi.aggarwal%40nxp.com%7Cccf889fbbad24313a6e408d6abbbb03f%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C636885219941288860&sdata=gUtGod9T7GC4RWAvn5DrpnzIF2%2Bwp09DvcumXJFneBs%3D&reserved=0> 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-gnu.tar.xz<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Freleases.linaro.org%2Fcomponents%2Ftoolchain%2Fbinaries%2F4.9-2016.02%2Faarch64-linux-gnu%2Fgcc-linaro-4.9-2016.02-x86_64_aarch64-linux-gnu.tar.xz&data=02%7C01%7Cmeenakshi.aggarwal%40nxp.com%7Cccf889fbbad24313a6e408d6abbbb03f%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C636885219941298869&sdata=GJwSfTJu7XijioKuXANSpUhBKu7KLcM7K650IHIP2i0%3D&reserved=0>" 12) tar -xf gcc-linaro-4.9-2016.02-x86_64_aarch64-linux-gnu.tar.xz 13) cd ../.. 14) export PATH=$PATH:"$PWD/tools/gcc/gcc-linaro-4.9-2016.02-x86_64_aarch64-linux-gnu/bin" 15) export CROSS_COMPILE="$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=aarch64-linux-gnu- Building from: /home/meenakshi/SCT/edk2 using prebuilt tools Building GenBin make: Entering directory `/home/meenakshi/SCT/edk2-test/uefi-sct/SctPkg/Tools/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/Tools/Source/GenBin' Error while building GenBin Please help in compiling SctPkg. Thanks, Meenakshi IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please 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 confidential and may also be privileged. If you are not the intended recipient, please 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. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [edk2-test] SctPkg compilation is failing 2019-03-19 5:18 ` Meenakshi Aggarwal 2019-03-19 13:14 ` Supreeth Venkatesh @ 2019-03-20 3:18 ` Supreeth Venkatesh 2019-03-22 6:12 ` Meenakshi Aggarwal 1 sibling, 1 reply; 5+ messages in thread From: Supreeth Venkatesh @ 2019-03-20 3:18 UTC (permalink / raw) To: Meenakshi Aggarwal, edk2-devel@lists.01.org Cc: Dong Wei, Jin, Eric, Udit Kumar, Varun Sethi 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 absolute 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 <meenakshi.aggarwal@nxp.com> Sent: Tuesday, March 19, 2019 12:19 AM To: Supreeth Venkatesh <Supreeth.Venkatesh@arm.com>; edk2-devel@lists.01.org Cc: Dong Wei <Dong.Wei@arm.com>; Jin, Eric <eric.jin@intel.com>; Udit Kumar <udit.kumar@nxp.com>; Varun Sethi <V.Sethi@nxp.com> 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="/home/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=aarch64-linux-gnu- Building from: /home/meenakshi/SCT/edk2 using prebuilt tools Building GenBin make: Entering directory `/home/meenakshi/SCT/edk2-test/uefi-sct/SctPkg/Tools/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/Tools/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 <Supreeth.Venkatesh@arm.com<mailto:Supreeth.Venkatesh@arm.com>> Sent: Monday, March 18, 2019 9:37 PM To: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com<mailto:meenakshi.aggarwal@nxp.com>>; edk2-devel@lists.01.org<mailto:edk2-devel@lists.01.org> Cc: Dong Wei <Dong.Wei@arm.com<mailto:Dong.Wei@arm.com>>; Jin, Eric <eric.jin@intel.com<mailto:eric.jin@intel.com>> 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 releases tag. I will update the instructions today. Thanks, Supreeth From: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com<mailto:meenakshi.aggarwal@nxp.com>> Sent: Monday, March 18, 2019 1:42 AM To: edk2-devel@lists.01.org<mailto:edk2-devel@lists.01.org>; Supreeth Venkatesh <Supreeth.Venkatesh@arm.com<mailto:Supreeth.Venkatesh@arm.com>> 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<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftianocore%2Fedk2-test.git&data=02%7C01%7Cmeenakshi.aggarwal%40nxp.com%7Cccf889fbbad24313a6e408d6abbbb03f%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C636885219941288860&sdata=fePIVsPrXuJamaijqMwzC7ofb5e9zOSbwE5KXIrI%2Faw%3D&reserved=0> 4) git clone https://github.com/tianocore/edk2<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftianocore%2Fedk2&data=02%7C01%7Cmeenakshi.aggarwal%40nxp.com%7Cccf889fbbad24313a6e408d6abbbb03f%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C636885219941288860&sdata=gUtGod9T7GC4RWAvn5DrpnzIF2%2Bwp09DvcumXJFneBs%3D&reserved=0> 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-gnu.tar.xz<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Freleases.linaro.org%2Fcomponents%2Ftoolchain%2Fbinaries%2F4.9-2016.02%2Faarch64-linux-gnu%2Fgcc-linaro-4.9-2016.02-x86_64_aarch64-linux-gnu.tar.xz&data=02%7C01%7Cmeenakshi.aggarwal%40nxp.com%7Cccf889fbbad24313a6e408d6abbbb03f%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C636885219941298869&sdata=GJwSfTJu7XijioKuXANSpUhBKu7KLcM7K650IHIP2i0%3D&reserved=0>" 12) tar -xf gcc-linaro-4.9-2016.02-x86_64_aarch64-linux-gnu.tar.xz 13) cd ../.. 14) export PATH=$PATH:"$PWD/tools/gcc/gcc-linaro-4.9-2016.02-x86_64_aarch64-linux-gnu/bin" 15) export CROSS_COMPILE="$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=aarch64-linux-gnu- Building from: /home/meenakshi/SCT/edk2 using prebuilt tools Building GenBin make: Entering directory `/home/meenakshi/SCT/edk2-test/uefi-sct/SctPkg/Tools/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/Tools/Source/GenBin' Error while building GenBin Please help in compiling SctPkg. Thanks, Meenakshi IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please 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 confidential and may also be privileged. If you are not the intended recipient, please 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. ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [edk2-test] SctPkg compilation is failing 2019-03-20 3:18 ` Supreeth Venkatesh @ 2019-03-22 6:12 ` Meenakshi Aggarwal 0 siblings, 0 replies; 5+ messages in thread From: Meenakshi Aggarwal @ 2019-03-22 6:12 UTC (permalink / raw) To: Supreeth Venkatesh, edk2-devel@lists.01.org Cc: Dong Wei, Jin, Eric, Udit Kumar, Varun Sethi 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(...): error 5000: MODULE_TYPE is not given Thanks, Meenakshi From: Supreeth Venkatesh <Supreeth.Venkatesh@arm.com> Sent: Wednesday, March 20, 2019 8:49 AM To: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>; edk2-devel@lists.01.org Cc: Dong Wei <Dong.Wei@arm.com>; Jin, Eric <eric.jin@intel.com>; Udit Kumar <udit.kumar@nxp.com>; Varun Sethi <V.Sethi@nxp.com> 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 absolute 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 <meenakshi.aggarwal@nxp.com<mailto:meenakshi.aggarwal@nxp.com>> Sent: Tuesday, March 19, 2019 12:19 AM To: Supreeth Venkatesh <Supreeth.Venkatesh@arm.com<mailto:Supreeth.Venkatesh@arm.com>>; edk2-devel@lists.01.org<mailto:edk2-devel@lists.01.org> Cc: Dong Wei <Dong.Wei@arm.com<mailto:Dong.Wei@arm.com>>; Jin, Eric <eric.jin@intel.com<mailto:eric.jin@intel.com>>; Udit Kumar <udit.kumar@nxp.com<mailto:udit.kumar@nxp.com>>; Varun Sethi <V.Sethi@nxp.com<mailto:V.Sethi@nxp.com>> 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="/home/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=aarch64-linux-gnu- Building from: /home/meenakshi/SCT/edk2 using prebuilt tools Building GenBin make: Entering directory `/home/meenakshi/SCT/edk2-test/uefi-sct/SctPkg/Tools/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/Tools/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 <Supreeth.Venkatesh@arm.com<mailto:Supreeth.Venkatesh@arm.com>> Sent: Monday, March 18, 2019 9:37 PM To: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com<mailto:meenakshi.aggarwal@nxp.com>>; edk2-devel@lists.01.org<mailto:edk2-devel@lists.01.org> Cc: Dong Wei <Dong.Wei@arm.com<mailto:Dong.Wei@arm.com>>; Jin, Eric <eric.jin@intel.com<mailto:eric.jin@intel.com>> 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 releases tag. I will update the instructions today. Thanks, Supreeth From: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com<mailto:meenakshi.aggarwal@nxp.com>> Sent: Monday, March 18, 2019 1:42 AM To: edk2-devel@lists.01.org<mailto:edk2-devel@lists.01.org>; Supreeth Venkatesh <Supreeth.Venkatesh@arm.com<mailto:Supreeth.Venkatesh@arm.com>> 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<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftianocore%2Fedk2-test.git&data=02%7C01%7Cmeenakshi.aggarwal%40nxp.com%7Cb63c62842126422b188208d6ace2c138%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C636886487253128518&sdata=hH6juyFTjHaUwfYq4WLFms6NyQk7YMYywLWyFi0bN%2BE%3D&reserved=0> 4) git clone https://github.com/tianocore/edk2<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ftianocore%2Fedk2&data=02%7C01%7Cmeenakshi.aggarwal%40nxp.com%7Cb63c62842126422b188208d6ace2c138%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C636886487253138532&sdata=xbU4CDI9Xc5m2s6uh1cIfmRLQbhOyqMujfYtfPE3CK4%3D&reserved=0> 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-gnu.tar.xz<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Freleases.linaro.org%2Fcomponents%2Ftoolchain%2Fbinaries%2F4.9-2016.02%2Faarch64-linux-gnu%2Fgcc-linaro-4.9-2016.02-x86_64_aarch64-linux-gnu.tar.xz&data=02%7C01%7Cmeenakshi.aggarwal%40nxp.com%7Cb63c62842126422b188208d6ace2c138%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C636886487253148537&sdata=H%2FOmSLYq6T%2BkEeOaRqQYR8KvuhuA8pwEgNEAAtycRH4%3D&reserved=0>" 12) tar -xf gcc-linaro-4.9-2016.02-x86_64_aarch64-linux-gnu.tar.xz 13) cd ../.. 14) export PATH=$PATH:"$PWD/tools/gcc/gcc-linaro-4.9-2016.02-x86_64_aarch64-linux-gnu/bin" 15) export CROSS_COMPILE="$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=aarch64-linux-gnu- Building from: /home/meenakshi/SCT/edk2 using prebuilt tools Building GenBin make: Entering directory `/home/meenakshi/SCT/edk2-test/uefi-sct/SctPkg/Tools/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/Tools/Source/GenBin' Error while building GenBin Please help in compiling SctPkg. Thanks, Meenakshi IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please 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 confidential and may also be privileged. If you are not the intended recipient, please 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. ^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-03-22 6:12 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2019-03-18 16:06 [edk2-test] SctPkg compilation is failing Supreeth Venkatesh 2019-03-19 5:18 ` Meenakshi Aggarwal 2019-03-19 13:14 ` Supreeth Venkatesh 2019-03-20 3:18 ` Supreeth Venkatesh 2019-03-22 6:12 ` Meenakshi Aggarwal
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox