* [edk2-devel] buiding Uefi Universal Payload failed
@ 2025-03-11 8:43 丰立波 via groups.io
2025-03-12 5:21 ` Stepan via groups.io
0 siblings, 1 reply; 9+ messages in thread
From: 丰立波 via groups.io @ 2025-03-11 8:43 UTC (permalink / raw)
To: devel@edk2.groups.io
[-- Attachment #1: Type: text/plain, Size: 1442 bytes --]
Hello,
I am building Uefi Universal payload with the below python script,
python UefiPayloadPkg/UniversalPayloadBuild.py -t GCC5, or python UefiPayloadPkg/UniversalPayloadBuild.py -t CLANGDWARF
a building error always reports, no matter the toolchain is assigned GCC5 or CLANGDWARF.
ld.lld: error: cannot find linker script /home/EDKII/edk2/BaseTools/Scripts/ClangBase.lds
Did I miss something when setup the building enviroment?
Now, I changed CLANGDWARF to GCC5 in python script UefiPayloadPkg/UniversalPayloadBuild.py, and only with python UefiPayloadPkg/UniversalPayloadBuild.py -t GCC5, building is successful.
if Args.Fit == True:
PayloadEntryToolChain = ToolChain
Args.Macro.append("UNIVERSAL_PAYLOAD_FORMAT=FIT")
UpldEntryFile = "FitUniversalPayloadEntry"
else:
PayloadEntryToolChain = 'CLANGDWARF' <======== GCC5
Args.Macro.append("UNIVERSAL_PAYLOAD_FORMAT=ELF")
UpldEntryFile = "UniversalPayloadEntry"
the building enviroment is Ubuntu 22.04, GCC 11.4.0, clang 14.0.0.
Best Regards
Feng Libo
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#121183): https://edk2.groups.io/g/devel/message/121183
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]
-=-=-=-=-=-=-=-=-=-=-=-
[-- Attachment #2: Type: text/html, Size: 5257 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* [edk2-devel] buiding Uefi Universal Payload failed
2025-03-11 8:43 [edk2-devel] buiding Uefi Universal Payload failed 丰立波 via groups.io
@ 2025-03-12 5:21 ` Stepan via groups.io
2025-03-13 8:42 ` 丰立波 via groups.io
[not found] ` <182C50338DEC62BE.19915@groups.io>
0 siblings, 2 replies; 9+ messages in thread
From: Stepan via groups.io @ 2025-03-12 5:21 UTC (permalink / raw)
To: 丰立波, devel
[-- Attachment #1: Type: text/plain, Size: 659 bytes --]
Hello 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 (#121186): https://edk2.groups.io/g/devel/message/121186
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]
-=-=-=-=-=-=-=-=-=-=-=-
[-- Attachment #2: Type: text/html, Size: 4501 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [edk2-devel] buiding Uefi Universal Payload failed
2025-03-12 5:21 ` Stepan via groups.io
@ 2025-03-13 8:42 ` 丰立波 via groups.io
2025-03-13 10:35 ` Alireza Banejad via groups.io
[not found] ` <182C50338DEC62BE.19915@groups.io>
1 sibling, 1 reply; 9+ messages in thread
From: 丰立波 via groups.io @ 2025-03-13 8:42 UTC (permalink / raw)
To: devel, radio-fan
[-- Attachment #1.1: Type: text/plain, Size: 1447 bytes --]
Hello, 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.io<radio-fan=mail.ru@groups.io>Date:2025-03-12 13:21:35(中国 (GMT+08:00))To:丰立波<lbfeng@kunluntech.com.cn> , devel<devel@edk2.groups.io>Cc: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 (#121196): https://edk2.groups.io/g/devel/message/121196
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]
-=-=-=-=-=-=-=-=-=-=-=-
[-- Attachment #1.2: Type: text/html, Size: 6289 bytes --]
[-- Attachment #2: picture.png --]
[-- Type: image/png, Size: 83512 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [edk2-devel] buiding Uefi Universal Payload failed
[not found] ` <182C50338DEC62BE.19915@groups.io>
@ 2025-03-13 9:26 ` 丰立波 via groups.io
2025-03-13 10:53 ` Stepan via groups.io
2025-03-18 8:19 ` Stepan via groups.io
0 siblings, 2 replies; 9+ messages in thread
From: 丰立波 via groups.io @ 2025-03-13 9:26 UTC (permalink / raw)
To: devel
[-- Attachment #1.1: Type: text/plain, Size: 2442 bytes --]
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 <TOOLCHAINS>).
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.io<lbfeng=kunluntech.com.cn@groups.io>Date:2025-03-13 16:42:09(中国 (GMT+08:00))To:devel <devel@edk2.groups.io> , radio-fan <radio-fan@mail.ru>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.io<radio-fan=mail.ru@groups.io>Date:2025-03-12 13:21:35(中国 (GMT+08:00))To:丰立波<lbfeng@kunluntech.com.cn> , devel<devel@edk2.groups.io>Cc: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]
-=-=-=-=-=-=-=-=-=-=-=-
[-- Attachment #1.2: Type: text/html, Size: 11956 bytes --]
[-- Attachment #2: picture.png --]
[-- Type: image/png, Size: 83512 bytes --]
[-- Attachment #3: picture.png --]
[-- Type: image/png, Size: 60731 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [edk2-devel] buiding Uefi Universal Payload failed
2025-03-13 8:42 ` 丰立波 via groups.io
@ 2025-03-13 10:35 ` Alireza Banejad via groups.io
0 siblings, 0 replies; 9+ messages in thread
From: Alireza Banejad via groups.io @ 2025-03-13 10:35 UTC (permalink / raw)
To: devel@edk2.groups.io, lbfeng@kunluntech.com.cn; +Cc: radio-fan
[-- Attachment #1.1: Type: text/plain, Size: 1774 bytes --]
As Stephen said did you build the base tools using "make -C BaseTools" in
the edk2 directory?
On Thursday, March 13, 2025, 丰立波 via groups.io <lbfeng=
kunluntech.com.cn@groups.io> wrote:
> Hello, 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.io<radio-fan=mail.ru@groups.io>
> - Date:2025-03-12 13:21:35(中国 (GMT+08:00))
> - To:丰立波<lbfeng@kunluntech.com.cn> , devel<devel@edk2.groups.io>
> - Cc:
> - Subject:[edk2-devel] buiding Uefi Universal Payload failed
>
> Hello 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 (#121198): https://edk2.groups.io/g/devel/message/121198
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]
-=-=-=-=-=-=-=-=-=-=-=-
[-- Attachment #1.2: Type: text/html, Size: 5684 bytes --]
[-- Attachment #2: picture.png --]
[-- Type: image/png, Size: 83512 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* [edk2-devel] buiding Uefi Universal Payload failed
2025-03-13 9:26 ` 丰立波 via groups.io
@ 2025-03-13 10:53 ` Stepan via groups.io
2025-03-13 12:05 ` Ard Biesheuvel via groups.io
2025-03-18 8:19 ` Stepan via groups.io
1 sibling, 1 reply; 9+ messages in thread
From: Stepan via groups.io @ 2025-03-13 10:53 UTC (permalink / raw)
To: 丰立波, devel
[-- Attachment #1.1: Type: text/plain, Size: 599 bytes --]
Hello Feng Libo,
Please check you EDKII repository version. First appearance of the file ClangBase.lds is in the commit c1aa3bab1259a54cd392831bc1dc1fd263436349 . Also check that You update submodules (not recursive) of EDK II .
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#121199): https://edk2.groups.io/g/devel/message/121199
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]
-=-=-=-=-=-=-=-=-=-=-=-
[-- Attachment #1.2: Type: text/html, Size: 1129 bytes --]
[-- Attachment #2: 01.png --]
[-- Type: image/png, Size: 43548 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [edk2-devel] buiding Uefi Universal Payload failed
2025-03-13 10:53 ` Stepan via groups.io
@ 2025-03-13 12:05 ` Ard Biesheuvel via groups.io
0 siblings, 0 replies; 9+ messages in thread
From: Ard Biesheuvel via groups.io @ 2025-03-13 12:05 UTC (permalink / raw)
To: devel, radio-fan; +Cc: 丰立波
[-- Attachment #1: Type: text/plain, Size: 869 bytes --]
ClangBase.lds has been removed. Please make sure Conf/tools_def.txt is up
to date.
On Thu, 13 Mar 2025 at 11:53, Stepan via groups.io <radio-fan=
mail.ru@groups.io> wrote:
> Hello Feng Libo,
>
>
> Please check you EDKII repository version. First appearance of the file
> ClangBase.lds is in the commit c1aa3bab1259a54cd392831bc1dc1fd263436349 .
> Also check that You update submodules (not recursive) of EDK II .
>
>
> Attachments:
>
> - 01.png <https://edk2.groups.io/g/devel/attachment/121199/0>
>
>
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#121200): https://edk2.groups.io/g/devel/message/121200
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]
-=-=-=-=-=-=-=-=-=-=-=-
[-- Attachment #2: Type: text/html, Size: 1776 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* [edk2-devel] buiding Uefi Universal Payload failed
2025-03-13 9:26 ` 丰立波 via groups.io
2025-03-13 10:53 ` Stepan via groups.io
@ 2025-03-18 8:19 ` Stepan via groups.io
2025-03-18 8:20 ` Stepan via groups.io
1 sibling, 1 reply; 9+ messages in thread
From: Stepan via groups.io @ 2025-03-18 8:19 UTC (permalink / raw)
To: 丰立波, devel
[-- Attachment #1: Type: text/plain, Size: 720 bytes --]
Hello Feng Libo,
I found this bug, when i update EDK2 sources. You should remove directories Build , Conf and BaseTools. Then restore the source code of the BaseTools ( git reset --hard HEAD ). Then rebuild tools by make -c BaseTools/ and update environment by source edksetup.sh. After this You can apply settings for the target in Conf/target.txt.
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#121207): https://edk2.groups.io/g/devel/message/121207
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]
-=-=-=-=-=-=-=-=-=-=-=-
[-- Attachment #2: Type: text/html, Size: 1261 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [edk2-devel] buiding Uefi Universal Payload failed
2025-03-18 8:19 ` Stepan via groups.io
@ 2025-03-18 8:20 ` Stepan via groups.io
0 siblings, 0 replies; 9+ messages in thread
From: Stepan via groups.io @ 2025-03-18 8:20 UTC (permalink / raw)
To: Stepan, devel
[-- Attachment #1: Type: text/plain, Size: 389 bytes --]
*
make -C BaseTools/
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#121208): https://edk2.groups.io/g/devel/message/121208
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]
-=-=-=-=-=-=-=-=-=-=-=-
[-- Attachment #2: Type: text/html, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2025-03-18 8:20 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-11 8:43 [edk2-devel] buiding Uefi Universal Payload failed 丰立波 via groups.io
2025-03-12 5:21 ` Stepan via groups.io
2025-03-13 8:42 ` 丰立波 via groups.io
2025-03-13 10:35 ` Alireza Banejad via groups.io
[not found] ` <182C50338DEC62BE.19915@groups.io>
2025-03-13 9:26 ` 丰立波 via groups.io
2025-03-13 10:53 ` Stepan via groups.io
2025-03-13 12:05 ` Ard Biesheuvel via groups.io
2025-03-18 8:19 ` Stepan via groups.io
2025-03-18 8:20 ` Stepan via groups.io
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox