public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Brian Richardson" <brian.richardson@intel.com>
To: "devel@edk2.groups.io" <devel@edk2.groups.io>
Cc: "phlamorim@riseup.net" <phlamorim@riseup.net>
Subject: Re: [edk2-devel] Error building Python
Date: Mon, 29 Apr 2019 21:13:34 +0000	[thread overview]
Message-ID: <80AC2BAA3152784F98F581129E5CF5AFBD85E6E7@ORSMSX114.amr.corp.intel.com> (raw)
In-Reply-To: <8295592b609ab980b7fd3c1672718852@riseup.net>

Paulo:

A port of the MicroPython Interpreter for UEFI is available in edk2-staging: (MicroPythonPkg). This is a Python 3 compatible alternative for the Python 2.7 implementation in AppPkg.

Can you try this and provide feedback?

https://github.com/tianocore/tianocore.github.io/wiki/MicroPython 

Thanks ... br
---
Brian Richardson -- Director of Firmware Ecosystem Engagements
brian.richardson@intel.com -- @intel_brian
Firmware Ecosystem & Business Development, Firmware Integration & Development (FID)
https://software.intel.com/en-us/meet-the-developers/evangelists/team/brian-richardson 

-----Original Message-----
From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of phlamorim@riseup.net
Sent: Sunday, April 28, 2019 10:08 AM
To: devel@edk2.groups.io
Subject: [edk2-devel] Error building Python

I want to use python to prototype some UEFI applications, but the build is not working on my environment, im trying to build in a linux(debian) which have "gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516" installed, the
EDK2 is properly installed, i build other packages like OVMF and Mde*, at the first time i tried to build Python just uncommenting "AppPkg/Applications/Python/PythonCore.inf" the build stopped because some compiler warnings which are stopping the building bcause the flag -Werror, so i changed the file tools_def.txt to remove the -Werror flag, the warnings dont stopped the build, i probably should fix the warnings one by one, but when i tried to build again the build system stopped at target '/root/projeto_final/src/edk2/Build/AppPkg/DEBUG_GCC5/X64/AppPkg/Applications/Python/PythonCore/DEBUG/Python.dll',
i will leave the entire error message following this message, let me know if i need to provide another/more information.

--
pymath.obj (symbol from plugin): In function `_Py_get_387controlword':
(.text+0x0): multiple definition of `copysign'
s_copysign.obj (symbol from plugin):(.text+0x0): first defined here
collect2: error: ld returned 1 exit status
GNUmakefile:583: recipe for target
'/root/projeto_final/src/edk2/Build/AppPkg/DEBUG_GCC5/X64/AppPkg/Applications/Python/PythonCore/DEBUG/Python.dll'
failed
make: ***
[/root/projeto_final/src/edk2/Build/AppPkg/DEBUG_GCC5/X64/AppPkg/Applications/Python/PythonCore/DEBUG/Python.dll]
Error 1


build.py...
 : error 7000: Failed to execute command
        make tbuild
[/root/projeto_final/src/edk2/Build/AppPkg/DEBUG_GCC5/X64/AppPkg/Applications/Python/PythonCore]


build.py...
 : error F002: Failed to build module
       
/root/projeto_final/src/edk2/AppPkg/Applications/Python/PythonCore.inf
[X64, GCC5, DEBUG]

- Failed -
Build end time: 06:56:21, Apr.28 2019
Build total time: 00:05:32
--

Thanks,
Paulo Amorim




  reply	other threads:[~2019-04-29 21:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-28 14:08 Error building Python phlamorim
2019-04-29 21:13 ` Brian Richardson [this message]
  -- strict thread matches above, loose matches on Subject: below --
2019-04-29  4:25 phlamorim
2019-04-29 16:54 ` [edk2-devel] " Leif Lindholm
2019-04-30 16:36   ` Carsey, Jaben
2019-04-30 20:47     ` phlamorim

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=80AC2BAA3152784F98F581129E5CF5AFBD85E6E7@ORSMSX114.amr.corp.intel.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