diff mbox series

[meta-arago,master,v3,2/3] onnx: fix 32-bit ARM build failure due to LONG_BIT mismatch

Message ID 20260326081151.1214749-3-p-deshmukh@ti.com
State New
Headers show
Series ARMv7 support across ML frameworks | expand

Commit Message

Pratham Deshmukh March 26, 2026, 8:11 a.m. UTC
Switch from python3native to python3targetconfig to
resolve cross-compilation issues on 32-bit architecture.

The build was incorrectly pulling Python headers from the native
(x86_64) sysroot, leading to a "LONG_BIT definition appears wrong"
error when cross-compiling for 32-bit ARMv7. Using python3targetconfig
ensures the compiler uses the target's architecture-specific
configuration, making the recipe compatible with both the
architectures.

Signed-off-by: Pratham Deshmukh <p-deshmukh@ti.com>
---
Change Logs:

v2 -> v3:
 - Update the commit messgae addressing Chirag's comment on v2

v1 -> v2:
 - None

 meta-arago-extras/recipes-framework/onnx/onnx_1.18.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta-arago-extras/recipes-framework/onnx/onnx_1.18.0.bb b/meta-arago-extras/recipes-framework/onnx/onnx_1.18.0.bb
index fc565dec..7d27119d 100644
--- a/meta-arago-extras/recipes-framework/onnx/onnx_1.18.0.bb
+++ b/meta-arago-extras/recipes-framework/onnx/onnx_1.18.0.bb
@@ -61,7 +61,7 @@  EXTRA_OECMAKE:append = " \
 	--log-level=VERBOSE \
 "
 
-inherit python3native cmake
+inherit python3targetconfig cmake
 
 python do_build_version_file() {
     import os