public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* edk2-libc Python Build issue
@ 2022-04-06 18:45 M.T.
  2022-04-07 14:58 ` [edk2-devel] " Michael D Kinney
  0 siblings, 1 reply; 3+ messages in thread
From: M.T. @ 2022-04-06 18:45 UTC (permalink / raw)
  To: devel

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

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: 1179 bytes --]

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

* Re: [edk2-devel] edk2-libc Python Build issue
  2022-04-06 18:45 edk2-libc Python Build issue M.T.
@ 2022-04-07 14:58 ` Michael D Kinney
  2023-10-22 16:26   ` Jayaprakash, N
  0 siblings, 1 reply; 3+ messages in thread
From: Michael D Kinney @ 2022-04-07 14:58 UTC (permalink / raw)
  To: devel@edk2.groups.io, xzavierpower@gmail.com, Kinney, Michael D,
	Jayaprakash, N

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

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

* Re: [edk2-devel] edk2-libc Python Build issue
  2022-04-07 14:58 ` [edk2-devel] " Michael D Kinney
@ 2023-10-22 16:26   ` Jayaprakash, N
  0 siblings, 0 replies; 3+ messages in thread
From: Jayaprakash, N @ 2023-10-22 16:26 UTC (permalink / raw)
  To: Michael D Kinney, devel

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

You can build edk2-libc Python 3.6.8 using GCC tool chain by following the BKMs documented in this file
https://github.com/tianocore/edk2-libc/blob/master/AppPkg/Applications/Python/Python-3.6.8/GCCCompilationBKMs.rst


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



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

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

end of thread, other threads:[~2023-10-22 16:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-06 18:45 edk2-libc Python Build issue M.T.
2022-04-07 14:58 ` [edk2-devel] " Michael D Kinney
2023-10-22 16:26   ` Jayaprakash, N

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox