public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Re: [edk2-devel] UDK2022 stable202211 - GCC compiler for Windows for building X64 EFI
@ 2023-09-28  3:10 Daniel Samuelraj via groups.io
  2023-09-28  4:48 ` Andrew Fish via groups.io
  2023-09-28 19:38 ` Pedro Falcato
  0 siblings, 2 replies; 4+ messages in thread
From: Daniel Samuelraj via groups.io @ 2023-09-28  3:10 UTC (permalink / raw)
  To: devel, Kinney, Michael D, quic_llindhol, Felix Polyudov, afish
  Cc: Jianning Wang


[-- Attachment #1.1: Type: text/plain, Size: 2011 bytes --]

We tried GCC at https://sourceforge.net/projects/gcc-win64/

And then we tried GCC ver5.4

We are getting the following error:

x86_64-5.4.0-release-posix-sjlj-rt_v5-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.4.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
unrecognised emulation mode: elf_x86_64



Can you please let me know the recommended/suggested GCC version to compile
UDK2022 stable202211? Also if there is any link with instructions to
compile UDK2022 with GCC would be helpful?



Thanks,

Daniel

*From:* Daniel Samuelraj <daniel.samuelraj@broadcom.com>
*Sent:* Wednesday, September 27, 2023 12:54 PM
*To:* 'devel@edk2.groups.io' <devel@edk2.groups.io>
*Cc:* Jianning Wang <jianning.wang@broadcom.com>; 'Kinney, Michael D' <
michael.d.kinney@intel.com>
*Subject:* UDK2022 GCC compiler



Hi,

Can you recommend a GCC compiler to build UDK2022?



Thanks

-- 
This electronic communication and the information and any files transmitted 
with it, or attached to it, are confidential and are intended solely for 
the use of the individual or entity to whom it is addressed and may contain 
information that is confidential, legally privileged, protected by privacy 
laws, or otherwise restricted from disclosure to anyone else. If you are 
not the intended recipient or the person responsible for delivering the 
e-mail to the intended recipient, you are hereby notified that any use, 
copying, distributing, dissemination, forwarding, printing, or copying of 
this e-mail is strictly prohibited. If you received this e-mail in error, 
please return the e-mail to the sender, delete it from your computer, and 
destroy any printed copy of it.


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#109145): https://edk2.groups.io/g/devel/message/109145
Mute This Topic: https://groups.io/mt/101632378/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: 5132 bytes --]

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4221 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [edk2-devel] UDK2022 stable202211 - GCC compiler for Windows for building X64 EFI
  2023-09-28  3:10 [edk2-devel] UDK2022 stable202211 - GCC compiler for Windows for building X64 EFI Daniel Samuelraj via groups.io
@ 2023-09-28  4:48 ` Andrew Fish via groups.io
  2023-09-28 19:38 ` Pedro Falcato
  1 sibling, 0 replies; 4+ messages in thread
From: Andrew Fish via groups.io @ 2023-09-28  4:48 UTC (permalink / raw)
  To: Daniel Samuelraj
  Cc: devel, Kinney, Michael D, quic_llindhol, Felix Polyudov,
	Jianning Wang


[-- Attachment #1.1: Type: text/html, Size: 7830 bytes --]

[-- Attachment #1.2: edk2.png --]
[-- Type: image/png, Size: 63649 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [edk2-devel] UDK2022 stable202211 - GCC compiler for Windows for building X64 EFI
  2023-09-28  3:10 [edk2-devel] UDK2022 stable202211 - GCC compiler for Windows for building X64 EFI Daniel Samuelraj via groups.io
  2023-09-28  4:48 ` Andrew Fish via groups.io
@ 2023-09-28 19:38 ` Pedro Falcato
  2023-09-29  2:52   ` Daniel Samuelraj via groups.io
  1 sibling, 1 reply; 4+ messages in thread
From: Pedro Falcato @ 2023-09-28 19:38 UTC (permalink / raw)
  To: devel, daniel.samuelraj
  Cc: Kinney, Michael D, quic_llindhol, Felix Polyudov, afish,
	Jianning Wang

On Thu, Sep 28, 2023 at 2:20 PM Daniel Samuelraj via groups.io
<daniel.samuelraj=broadcom.com@groups.io> wrote:
>
> We tried GCC at https://sourceforge.net/projects/gcc-win64/
>
> And then we tried GCC ver5.4
>
> We are getting the following error:
>
> x86_64-5.4.0-release-posix-sjlj-rt_v5-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.4.0/../../../../x86_64-w64-mingw32/bin/ld.exe: unrecognised emulation mode: elf_x86_64
>
>
>
> Can you please let me know the recommended/suggested GCC version to compile UDK2022 stable202211? Also if there is any link with instructions to compile UDK2022 with GCC would be helpful?
>
>
>
> Thanks,
>
> Daniel

FWIW, I'm not sure if the EDK2 GCC toolchains support Windows, at
least you should need a Linux cross-toolchain.
Per BaseTools/Conf/tools_def.template, "GCC 5 with LTO support,
targeting x86_64-linux-gnu, aarch64-linux-gnu, arm-linux-gnueabi,
riscv64-linux-gnu or loongarch64-linux-gnu".
So if you really want GCC, try building a cross-toolchain (GCC built
to run on Windows and targeting one of the above targets, using
--target and a plethora of other options that are wildly offtopic
here).

-- 
Pedro


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#109176): https://edk2.groups.io/g/devel/message/109176
Mute This Topic: https://groups.io/mt/101632378/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [edk2-devel] UDK2022 stable202211 - GCC compiler for Windows for building X64 EFI
  2023-09-28 19:38 ` Pedro Falcato
@ 2023-09-29  2:52   ` Daniel Samuelraj via groups.io
  0 siblings, 0 replies; 4+ messages in thread
From: Daniel Samuelraj via groups.io @ 2023-09-29  2:52 UTC (permalink / raw)
  To: Pedro Falcato, devel
  Cc: Kinney, Michael D, quic_llindhol, Felix Polyudov, afish,
	Jianning Wang

[-- Attachment #1: Type: text/plain, Size: 2837 bytes --]

Thank you Pedro.

-----Original Message-----
From: Pedro Falcato <pedro.falcato@gmail.com>
Sent: Thursday, September 28, 2023 3:39 PM
To: devel@edk2.groups.io; daniel.samuelraj@broadcom.com
Cc: Kinney, Michael D <michael.d.kinney@intel.com>;
quic_llindhol@quicinc.com; Felix Polyudov <Felixp@ami.com>; afish@apple.com;
Jianning Wang <jianning.wang@broadcom.com>
Subject: Re: [edk2-devel] UDK2022 stable202211 - GCC compiler for Windows
for building X64 EFI

On Thu, Sep 28, 2023 at 2:20 PM Daniel Samuelraj via groups.io
<daniel.samuelraj=broadcom.com@groups.io> wrote:
>
> We tried GCC at https://sourceforge.net/projects/gcc-win64/
>
> And then we tried GCC ver5.4
>
> We are getting the following error:
>
> x86_64-5.4.0-release-posix-sjlj-rt_v5-rev0/mingw64/bin/../lib/gcc/x86_
> 64-w64-mingw32/5.4.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
> unrecognised emulation mode: elf_x86_64
>
>
>
> Can you please let me know the recommended/suggested GCC version to
> compile UDK2022 stable202211? Also if there is any link with instructions
> to compile UDK2022 with GCC would be helpful?
>
>
>
> Thanks,
>
> Daniel

FWIW, I'm not sure if the EDK2 GCC toolchains support Windows, at least you
should need a Linux cross-toolchain.
Per BaseTools/Conf/tools_def.template, "GCC 5 with LTO support, targeting
x86_64-linux-gnu, aarch64-linux-gnu, arm-linux-gnueabi, riscv64-linux-gnu or
loongarch64-linux-gnu".
So if you really want GCC, try building a cross-toolchain (GCC built to run
on Windows and targeting one of the above targets, using --target and a
plethora of other options that are wildly offtopic here).

--
Pedro

-- 
This electronic communication and the information and any files transmitted 
with it, or attached to it, are confidential and are intended solely for 
the use of the individual or entity to whom it is addressed and may contain 
information that is confidential, legally privileged, protected by privacy 
laws, or otherwise restricted from disclosure to anyone else. If you are 
not the intended recipient or the person responsible for delivering the 
e-mail to the intended recipient, you are hereby notified that any use, 
copying, distributing, dissemination, forwarding, printing, or copying of 
this e-mail is strictly prohibited. If you received this e-mail in error, 
please return the e-mail to the sender, delete it from your computer, and 
destroy any printed copy of it.


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#109207): https://edk2.groups.io/g/devel/message/109207
Mute This Topic: https://groups.io/mt/101632378/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4221 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-09-29 16:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-28  3:10 [edk2-devel] UDK2022 stable202211 - GCC compiler for Windows for building X64 EFI Daniel Samuelraj via groups.io
2023-09-28  4:48 ` Andrew Fish via groups.io
2023-09-28 19:38 ` Pedro Falcato
2023-09-29  2:52   ` Daniel Samuelraj 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