On Thu, Sep 28, 2023 at 2:20 PM Daniel Samuelraj via groups.io <daniel.samuelraj=broadcom....@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/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-