* [jethro][PATCH 0/1] nativesdk-python3 build fix
@ 2016-03-30 19:31 Juro Bystricky
2016-03-30 19:31 ` [jethro][PATCH 1/1] python3: fix building nativesdk-python3 Juro Bystricky
0 siblings, 1 reply; 2+ messages in thread
From: Juro Bystricky @ 2016-03-30 19:31 UTC (permalink / raw)
To: openembedded-core; +Cc: jurobystricky
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(+)
--
1.9.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* [jethro][PATCH 1/1] python3: fix building nativesdk-python3
2016-03-30 19:31 [jethro][PATCH 0/1] nativesdk-python3 build fix Juro Bystricky
@ 2016-03-30 19:31 ` Juro Bystricky
0 siblings, 0 replies; 2+ messages in thread
From: Juro Bystricky @ 2016-03-30 19:31 UTC (permalink / raw)
To: openembedded-core; +Cc: jurobystricky
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]
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
---
meta/recipes-devtools/python/python3_3.4.3.bb | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta/recipes-devtools/python/python3_3.4.3.bb b/meta/recipes-devtools/python/python3_3.4.3.bb
index f61d278..4f4e79c 100644
--- a/meta/recipes-devtools/python/python3_3.4.3.bb
+++ b/meta/recipes-devtools/python/python3_3.4.3.bb
@@ -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"
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-03-30 19:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-30 19:31 [jethro][PATCH 0/1] nativesdk-python3 build fix Juro Bystricky
2016-03-30 19:31 ` [jethro][PATCH 1/1] python3: fix building nativesdk-python3 Juro Bystricky
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.