Hello, Clang tool chains is said better in dealing 32bit mode and 64bit mode, and generating elf file. So UniversalPayloadEntry must be built using Clang tool chains (I think this is done by the hardcode "PayloadEntryToolChain = 'CLANGDWARF'" in UniversalPayloadBuild.py, ignoring the cmd line option -t ). At the beginning, BaseTools/Scripts contains a ClangBase.lds file, as the below link shows, the file is a linker script. But now, the link script is missing. Without ClangBase.lds, building UniversalPayloadEnty failed. How can I get the ClangBase.lds? or Did I miss something when setting up the building enviroment? https://edk2.groups.io/g/devel/message/75955 Thanks Best Regards Feng Libo Original: From:丰立波 via groups.ioDate:2025-03-13 16:42:09(中国 (GMT+08:00))To:devel , radio-fan Cc:Subject:Re: [edk2-devel] buiding Uefi Universal Payload failedHello, Stepan, Thanks for the reply. You didn't encounter such problems, just because ClangBase.lds already exists in your directory BaseTools/Scripts, as your building log below. But ClangBase.lds is absent in my BaseTools/Scripts, there is only GccBase.lds. Where did you get the ClangBase.lds? GccBase.lds claims it is "Unified linker script for GCC and CLANG based builds", so I duplicate one and change the file name to ClangBase.lds. Now, building is successful, but I am not sure it is the right way. Best Regards Feng Libo Original: From:Stepan via groups.ioDate:2025-03-12 13:21:35(中国 (GMT+08:00))To:丰立波 , develCc:Subject:[edk2-devel] buiding Uefi Universal Payload failedHello Feng Libo, 1) Are You building BaseTools? 2) Are You source edksetup.sh? We are use Ubuntu and GCC and we have not encountered such problems. Also You can check our topic about building universal payload. https://edk2.groups.io/g/devel/topic/universal_uefi_elf_payload/111543703 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#121197): https://edk2.groups.io/g/devel/message/121197 Mute This Topic: https://groups.io/mt/111636381/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-