From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: Error building Python To: devel@edk2.groups.io From: phlamorim@riseup.net X-Originating-IP: 200.201.11.254 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Sun, 28 Apr 2019 21:25:28 -0700 Message-ID: <11299.1556511928716793059@groups.io> Content-Type: multipart/alternative; boundary="3e1E0tknaUCuEyW9fVXw" --3e1E0tknaUCuEyW9fVXw Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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/Applicati= ons/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/Applicati= ons/Python/PythonCore/DEBUG/Python.dll' failed make: *** [/root/projeto_final/src/edk2/Build/AppPkg/DEBUG_GCC5/X64/AppPkg/Applicati= ons/Python/PythonCore/DEBUG/Python.dll] Error 1 build.py... =C2=A0: error 7000: Failed to execute command =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0make tbuild [/root/projeto_final/src/edk2/Build/AppPkg/DEBUG_GCC5/X64/AppPkg/Applicati= ons/Python/PythonCore] build.py... =C2=A0: error F002: Failed to build module =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /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 --3e1E0tknaUCuEyW9fVXw Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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
"Ap= pPkg/Applications/Python/PythonCore.inf" the build stopped because
som= e compiler warnings which are stopping the building bcause the flag
-W= error, so i changed the file tools_def.txt to remove the -Werror flag,
the warnings dont stopped the build, i probably should fix the warningsone by one, but when i tried to build again the build system stopped at<= br />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): mult= iple definition of `copysign'
s_copysign.obj (symbol from plugin):(.te= xt+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/Py= thon.dll'
failed
make: ***
[/root/projeto_final/src/edk2/Bui= ld/AppPkg/DEBUG_GCC5/X64/AppPkg/Applications/Python/PythonCore/DEBUG/Python= .dll]
Error 1


build.py...
 : error 7000: Fa= iled to execute command
       &nbs= p;make tbuild
[/root/projeto_final/src/edk2/Build/AppPkg/DEBUG_GCC5/X6= 4/AppPkg/Applications/Python/PythonCore]


build.py...
=  : error F002: Failed to build module
    &nb= sp;  
/root/projeto_final/src/edk2/AppPkg/Applications/Pytho= n/PythonCore.inf
[X64, GCC5, DEBUG]

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

Thanks,
Paulo Amorim --3e1E0tknaUCuEyW9fVXw--