回复: [edk2-discuss] edk2 build failure due to long paths


gaoliming
 

BZ https://bugzilla.tianocore.org/show_bug.cgi?id=3032 has been fixed at 020ec963048340c9eaf9799471167d769239bcfc

Can you try the latest edk2?

-----邮件原件-----
发件人: bounce+34241+490+4905953+8764802@groups.io
<bounce+34241+490+4905953+8764802@groups.io> 代表 Laszlo Ersek
发送时间: 2021年1月29日 1:51
收件人: discuss@edk2.groups.io; rajesh.ravi@...
主题: Re: [edk2-discuss] edk2 build failure due to long paths

On 01/28/21 10:29, rajesh.ravi@... via groups.io wrote:
I 'm facing edk2 build issues on Linux build hosts when path length is long.

*Example scenarios*
Eg. A) manual/standalone builds: If edk2 code base is deep inside a
directory path instead of $HOME dir
B)Yocto builds: when SRCREV_FORMAT contains multiple
components
making the uefi path very long.

*Source code*

It seems the following files are to support longer file paths and resolve
such issues.
*BaseTools/Source/Python/Common/LongFilePath*.py*

If so, please suggest how to enable longer file paths for edk2 builds on
Linux build host
You may have hit <https://bugzilla.tianocore.org/show_bug.cgi?id=3032>.

Thanks
Laszlo





rajesh.ravi@broadcom.com
 

Thanks a lot gaoliming.

Regards,
Rajesh

On Thu, Jan 28, 2021 at 04:57 PM, gaoliming wrote:


BZ https://bugzilla.tianocore.org/show_bug.cgi?id=3032 has been fixed at
020ec963048340c9eaf9799471167d769239bcfc


rajesh.ravi@broadcom.com
 

I'm seeing the same error even after picking the commit id: 020ec963048340c9eaf9799471167d769239bcfc by updating edk2 repository.
i.e. I'm seeing Yocto build failures only when path length is long due to platform name being slightly longer by a some 10-15 characters more.
Same repository build is passing with Yocto for platform whose name length is smaller by some 0-15 characters

*Error Log*
-----------------
Thu Feb 4 08:34:24 2021: | ERROR: Execution of '/tmp/yocto_builds/20519231_s9xxxx-bcm9xxxxi/poky/build/tmp/work/bcm9xxxxi-poky-linux/brcm-edk2/gitAUTOINC+ <--f30940e557_56f32f8dd9_3574ef9b13_31754d4ffc_31754d4ffc_e2e09d9fba_61687168fe-r0/temp/run.do_deploy.19127' failed with exit code 1:
Thu Feb 4 08:34:24 2021: | install: cannot stat '/tmp/yocto_builds/20519231_s9xxxx-bcm9xxxxi/poky/build/tmp/work/bcm9xxxxi-poky-linux/brcm-edk2/gitAUTOINC+ <--f30940e557_56f32f8dd9_3574ef9b13_31754d4ffc_31754d4ffc_e2e09d9fba_61687168fe-r0/git/Build/StingrayPkg/RELEASE_GCC5/AARCH64/Sbsa.efi': No such file or directory
Thu Feb 4 08:34:24 2021: | WARNING: exit code 1 from a shell command.
Thu Feb 4 08:34:24 2021: |-
Thu Feb 4 08:34:24 2021: NOTE: recipe brcm-edk2-gitAUTOINC+f30940e557_56f32f8dd9_3574ef9b13_31754d4ffc_31754d4ffc_e2e09d9fba_61687168fe-r0: task do_deploy: Failed
Thu Feb 4 08:34:24 2021: ERROR: Task (mc:stingray:/tmp/yocto_builds/20519231_s9xxxx-bcm9xxxxi/poky/build/../meta-brcm/common/recipes-bsp/edk2/brcm-edk2.bb:do_deploy) failed with exit code '1'

Regards,
Rajesh


rajesh.ravi@broadcom.com
 

Following is the corrected error log by removing unwanted/misleading spaces.

*Error Log*
-----------------
Thu Feb 4 08:34:24 2021: | ERROR: Execution of '/tmp/yocto_builds/20519231_s9xxxx-bcm9xxxxi/poky/build/tmp/work/bcm9xxxxi-poky-linux/brcm-edk2/gitAUTOINC+f30940e557_56f32f8dd9_3574ef9b13_31754d4ffc_31754d4ffc_e2e09d9fba_61687168fe-r0/temp/run.do_deploy.19127' failed with exit code 1:
Thu Feb 4 08:34:24 2021: | install: cannot stat '/tmp/yocto_builds/20519231_s9xxxx-bcm9xxxxi/poky/build/tmp/work/bcm9xxxxi-poky-linux/brcm-edk2/gitAUTOINC+f30940e557_56f32f8dd9_3574ef9b13_31754d4ffc_31754d4ffc_e2e09d9fba_61687168fe-r0/git/Build/StingrayPkg/RELEASE_GCC5/AARCH64/Sbsa.efi': No such file or directory
Thu Feb 4 08:34:24 2021: | WARNING: exit code 1 from a shell command.
Thu Feb 4 08:34:24 2021: |-
Thu Feb 4 08:34:24 2021: NOTE: recipe brcm-edk2-gitAUTOINC+f30940e557_56f32f8dd9_3574ef9b13_31754d4ffc_31754d4ffc_e2e09d9fba_61687168fe-r0: task do_deploy: Failed
Thu Feb 4 08:34:24 2021: ERROR: Task (mc:stingray:/tmp/yocto_builds/20519231_s9xxxx-bcm9xxxxi/poky/build/../meta-brcm/common/recipes-bsp/edk2/brcm-edk2.bb:do_deploy) failed with exit code '1'

Regards,
Rajesh

On Thu, Feb 4, 2021 at 01:42 PM, rajesh.ravi@... wrote:


*Error Log*
-----------------
Thu Feb 4 08:34:24 2021: | ERROR: Execution of
'/tmp/yocto_builds/20519231_s9xxxx-bcm9xxxxi/poky/build/tmp/work/bcm9xxxxi-poky-linux/brcm-edk2/gitAUTOINC+
<--f30940e557_56f32f8dd9_3574ef9b13_31754d4ffc_31754d4ffc_e2e09d9fba_61687168fe-r0/temp/run.do_deploy.19127'
failed with exit code 1:
Thu Feb 4 08:34:24 2021: | install: cannot stat
'/tmp/yocto_builds/20519231_s9xxxx-bcm9xxxxi/poky/build/tmp/work/bcm9xxxxi-poky-linux/brcm-edk2/gitAUTOINC+
<--f30940e557_56f32f8dd9_3574ef9b13_31754d4ffc_31754d4ffc_e2e09d9fba_61687168fe-r0/git/Build/StingrayPkg/RELEASE_GCC5/AARCH64/Sbsa.efi':
No such file or directory
Thu Feb 4 08:34:24 2021: | WARNING: exit code 1 from a shell command.
Thu Feb 4 08:34:24 2021: |-
Thu Feb 4 08:34:24 2021: NOTE: recipe
brcm-edk2-gitAUTOINC+f30940e557_56f32f8dd9_3574ef9b13_31754d4ffc_31754d4ffc_e2e09d9fba_61687168fe-r0:
task do_deploy: Failed
Thu Feb 4 08:34:24 2021: ERROR: Task
(mc:stingray:/tmp/yocto_builds/20519231_s9xxxx-bcm9xxxxi/poky/build/../meta-brcm/common/recipes-bsp/edk2/brcm-edk2.bb:do_deploy)
failed with exit code '1'