public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Pedro Falcato" <pedro.falcato@gmail.com>
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
Date: Thu, 28 Sep 2023 20:38:30 +0100	[thread overview]
Message-ID: <CAKbZUD38y-unN8LGdqON3nvas77eFGGM+aGY0opnx96sFDijxA@mail.gmail.com> (raw)
In-Reply-To: <1c82a7eba279d8a129eb3bc4023ef04f@mail.gmail.com>

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]
-=-=-=-=-=-=-=-=-=-=-=-



  parent reply	other threads:[~2023-09-28 19:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2023-09-29  2:52   ` Daniel Samuelraj via groups.io

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAKbZUD38y-unN8LGdqON3nvas77eFGGM+aGY0opnx96sFDijxA@mail.gmail.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox