From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id D4C41941C07 for ; Thu, 28 Sep 2023 19:38:44 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=F8PPpWXkR3JzvExSBAv09OAH5qL+wWlEWwCxMLMj1WA=; c=relaxed/simple; d=groups.io; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:To:Cc:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Transfer-Encoding; s=20140610; t=1695929923; v=1; b=jQG2ZSaBlFnLZV+bwTpqjSGBP8DZFk6RmfT+MeOd8Yc6BjV82zhTuAYcJqwblWMbsUu1B7lL dd8T6vrbIxDpdkq6hxFpArjR4Awn3WtkuDaOKNvXD59F78xgvFxABR4ffgaSCTINEvC+wyiwcZd FW2fqvoclnVymQIVJ3c1kS8E= X-Received: by 127.0.0.2 with SMTP id RbRfYY7687511xQy4F2p5gNK; Thu, 28 Sep 2023 12:38:43 -0700 X-Received: from mail-ua1-f44.google.com (mail-ua1-f44.google.com [209.85.222.44]) by mx.groups.io with SMTP id smtpd.web10.1995.1695929922595235485 for ; Thu, 28 Sep 2023 12:38:42 -0700 X-Received: by mail-ua1-f44.google.com with SMTP id a1e0cc1a2514c-7ae1a075fc5so2387405241.3 for ; Thu, 28 Sep 2023 12:38:42 -0700 (PDT) X-Gm-Message-State: A5sy1qWAA11yA0UyuE77ONFRx7686176AA= X-Google-Smtp-Source: AGHT+IHXeKB4avarFUOtAS3sVNialMuMn7AmsDSZ2AONIlXjp1+9H8SRP4pbUWQvY0AB96c/ZAOcPQbBdF1Lnxc4j0c= X-Received: by 2002:a05:6102:2db:b0:452:cfeb:160d with SMTP id h27-20020a05610202db00b00452cfeb160dmr2107302vsh.26.1695929921210; Thu, 28 Sep 2023 12:38:41 -0700 (PDT) MIME-Version: 1.0 References: <1c82a7eba279d8a129eb3bc4023ef04f@mail.gmail.com> In-Reply-To: <1c82a7eba279d8a129eb3bc4023ef04f@mail.gmail.com> From: "Pedro Falcato" Date: Thu, 28 Sep 2023 20:38:30 +0100 Message-ID: Subject: Re: [edk2-devel] UDK2022 stable202211 - GCC compiler for Windows for building X64 EFI To: devel@edk2.groups.io, daniel.samuelraj@broadcom.com Cc: "Kinney, Michael D" , quic_llindhol@quicinc.com, Felix Polyudov , afish@apple.com, Jianning Wang Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,pedro.falcato@gmail.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=jQG2ZSaB; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io On Thu, Sep 28, 2023 at 2:20=E2=80=AFPM Daniel Samuelraj via 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 e= mulation mode: elf_x86_64 > > > > Can you please let me know the recommended/suggested GCC version to compi= le UDK2022 stable202211? Also if there is any link with instructions to com= pile 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). --=20 Pedro -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- 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] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-