public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Michael D Kinney" <michael.d.kinney@intel.com>
To: "devel@edk2.groups.io" <devel@edk2.groups.io>,
	"xzavierpower@gmail.com" <xzavierpower@gmail.com>,
	"Kinney, Michael D" <michael.d.kinney@intel.com>,
	"Jayaprakash, N" <n.jayaprakash@intel.com>
Subject: Re: [edk2-devel] edk2-libc Python Build issue
Date: Thu, 7 Apr 2022 14:58:20 +0000	[thread overview]
Message-ID: <CO1PR11MB4929617C62312D8B8D9568BCD2E69@CO1PR11MB4929.namprd11.prod.outlook.com> (raw)
In-Reply-To: <CAEsd5Rv6PqBse4_taTFeDUTMQer4E4Gy-zjeC=Ucz=v6-jLN5w@mail.gmail.com>

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

Hi,

Yes.  This is a known issue.

https://bugzilla.tianocore.org/show_bug.cgi?id=3779

If you are interested, we could use the help fixing this issue.

Thanks,

Mike

From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of M.T.
Sent: Wednesday, April 6, 2022 11:46 AM
To: devel@edk2.groups.io
Subject: [edk2-devel] edk2-libc Python Build issue

Hello

I am trying to build the Python environment for UEFI as per Py368ReadMe.txt.
I am doing this on Ubuntu 20.04.4 LTS with GCC5 for X64, all instructions seem to be meant for windows and MSFT.
I was able to build everything else and verify that it works, so I don't see why this should be an issue, but I am running into several issues.

Initial error is missing Python.h.
The path to AppPkg/Applications/Python/Python-3.6.8/Include seems to be missing from the build command, I was able to fix that by modifying Python368.inf and under BuildOptions, adding:
GCC:*_*_*_CC_FLAGS = -I$(WORKSPACE)/AppPkg/Applications/Python/Python-3.6.8/Include
However this then results in other errors such as unused functions - fixed with -Wno-unused-functions added to the same line above, and then finally redfinitions.

Is the build process of Python 3.6.8 documented anywhere that might help me out, or if someone could point me in the right direction, that would be greatly appreciated.

Thank you
xp


[-- Attachment #2: Type: text/html, Size: 42347 bytes --]

  reply	other threads:[~2022-04-07 14:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-06 18:45 edk2-libc Python Build issue M.T.
2022-04-07 14:58 ` Michael D Kinney [this message]
2023-10-22 16:26   ` [edk2-devel] " Jayaprakash, N

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=CO1PR11MB4929617C62312D8B8D9568BCD2E69@CO1PR11MB4929.namprd11.prod.outlook.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