Skip to contentSkip to conversation

nativesdk-python3 build fix

PATCH New Juro Bystricky 1 participant 2 messages Mar 30, 2016

lore
Share & tools
lore
#0 lore raw

cover nativesdk-python3 build fix

Using jethro, this works fine:

   $ bitbake nativesdk-python

However, this fails with an error:

   $ bitbake nativesdk-python3

Objects/obmalloc.o: In function `_PyObject_DebugMallocStats':
obmalloc.c:(.text+0x1360): undefined reference to `pool_is_in_list'
collect2: error: ld returned 1 exit status
make: *** [Parser/pgen] Error 1

Turns out this is the same issue as in YOCTO 8467, so the same fix/patch by Alejandro Hernandez applied on python_3.4.3.bb fixes the problem.

Juro Bystricky (1):
python3: fix building nativesdk-python3

 meta/recipes-devtools/python/python3_3.4.3.bb | 1 +
 1 file changed, 1 insertion(+)
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 python3: fix building nativesdk-python3

When the class nativesdk.bbclass is inherited, it redefines TARGET_CC_ARCH, in the case of python3, this enables debug, causing an error while linking. Since we don't enable debug during configure some functions are not declared. This patch makes sure we keep debug disabled, fixing the linking errors.

[YOCTO #9357]

---
 meta/recipes-devtools/python/python3_3.4.3.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-devtools/python/python3_3.4.3.bb +1 -0
index f61d278..4f4e79c 100644
@@ -61,6 +61,7 @@ CACHED_CONFIGUREVARS = "ac_cv_have_chflags=no \
 TARGET_CC_ARCH_append_armv6 = " -D__SOFTFP__"
 TARGET_CC_ARCH_append_armv7a = " -D__SOFTFP__"
 TARGET_CC_ARCH += "-DNDEBUG -fno-inline"
+SDK_CC_ARCH += "-DNDEBUG -fno-inline"
 EXTRA_OEMAKE += "CROSS_COMPILE=yes"
 EXTRA_OECONF += "CROSSPYTHONPATH=${STAGING_LIBDIR_NATIVE}/python${PYTHON_MAJMIN}/lib-dynload/ --without-ensurepip"
 
Signature · 1 line
1.9.1