<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>15677</bug_id>
          
          <creation_ts>2024-12-02 18:42:20 +0000</creation_ts>
          <short_desc>nativesdk-python3-numpy 2.1.3 fails do_compile</short_desc>
          <delta_ts>2024-12-05 17:28:46 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>5.2 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Denys Dmytriyenko">denis</reporter>
          <assigned_to name="Alexander Kanavin">alex.kanavin</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>100337</commentid>
    <comment_count>0</comment_count>
    <who name="Denys Dmytriyenko">denis</who>
    <bug_when>2024-12-02 18:42:20 +0000</bug_when>
    <thetext>nativesdk-python3-numpy 2.1.3 fails do_compile

MACHINE=&quot;qemuarm64&quot;
SDKMACHINE=&quot;x86_64&quot;

...
| Has header &quot;features.h&quot; : YES
| Has header &quot;xlocale.h&quot; : NO
| Has header &quot;dlfcn.h&quot; : YES
| Has header &quot;execinfo.h&quot; : YES
| Has header &quot;libunwind.h&quot; : NO
| Has header &quot;sys/mman.h&quot; : YES
| Checking for function &quot;strtold_l&quot; : YES
| Compiler for C supports arguments -O3: YES
| 
| ../numpy-2.1.3/numpy/_core/meson.build:408:46: ERROR: Can not run test applications in this cross environment.
| 
| A full log can be found at /OE/poky-master/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-python3-numpy/2.1.3/build/meson-logs/meson-log.txt
| 
| ERROR Backend subprocess exited when trying to invoke build_wheel
| WARNING: exit code 1 from a shell command.
ERROR: Task (virtual:nativesdk:/OE/poky-master/meta/recipes-devtools/python/python3-numpy_2.1.3.bb:do_compile) failed with exit code &apos;1&apos;


And meson.log doesn&apos;t say much:

...
-----------
Command line: `x86_64-pokysdk-linux-gcc -march=x86-64 --sysroot=/OE/poky-master/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-python3-numpy/2.1.3/recipe-sysroot /OE/poky-master/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-python3-numpy/2.1.3/build/meson-private/tmp4hjzmbr6/testfile.c -o /OE/poky-master/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-python3-numpy/2.1.3/build/meson-private/tmp4hjzmbr6/output.exe -O2 -fcanon-prefix-map -fmacro-prefix-map=/OE/poky-master/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-python3-numpy/2.1.3/numpy-2.1.3=/usr/src/debug/nativesdk-python3-numpy/2.1.3 -fdebug-prefix-map=/OE/poky-master/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-python3-numpy/2.1.3/numpy-2.1.3=/usr/src/debug/nativesdk-python3-numpy/2.1.3 -fmacro-prefix-map=/OE/poky-master/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-python3-numpy/2.1.3/build=/usr/src/debug/nativesdk-python3-numpy/2.1.3 -fdebug-prefix-map=/OE/poky-master/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-python3-numpy/2.1.3/build=/usr/src/debug/nativesdk-python3-numpy/2.1.3 -fdebug-prefix-map=/OE/poky-master/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-python3-numpy/2.1.3/recipe-sysroot= -fmacro-prefix-map=/OE/poky-master/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-python3-numpy/2.1.3/recipe-sysroot= -fdebug-prefix-map=/OE/poky-master/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-python3-numpy/2.1.3/recipe-sysroot-native= -fmacro-prefix-map=/OE/poky-master/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-python3-numpy/2.1.3/recipe-sysroot-native= -pipe -D_FILE_OFFSET_BITS=64 -O0 -std=c11 -Wl,-O1` -&gt; 0
Running compile:
Working directory:  /OE/poky-master/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-python3-numpy/2.1.3/build/meson-private/tmpnbz7eorf
Code:

    #ifdef _MSC_VER
    #pragma function(__builtin_prefetch)
    #endif
    int main(void) {
      __builtin_prefetch((float*)0, 0, 3);
      return 0;
    };
    
-----------
Command line: `x86_64-pokysdk-linux-gcc -march=x86-64 --sysroot=/OE/poky-master/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-python3-numpy/2.1.3/recipe-sysroot /OE/poky-master/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-python3-numpy/2.1.3/build/meson-private/tmpnbz7eorf/testfile.c -o /OE/poky-master/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-python3-numpy/2.1.3/build/meson-private/tmpnbz7eorf/output.exe -O2 -fcanon-prefix-map -fmacro-prefix-map=/OE/poky-master/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-python3-numpy/2.1.3/numpy-2.1.3=/usr/src/debug/nativesdk-python3-numpy/2.1.3 -fdebug-prefix-map=/OE/poky-master/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-python3-numpy/2.1.3/numpy-2.1.3=/usr/src/debug/nativesdk-python3-numpy/2.1.3 -fmacro-prefix-map=/OE/poky-master/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-python3-numpy/2.1.3/build=/usr/src/debug/nativesdk-python3-numpy/2.1.3 -fdebug-prefix-map=/OE/poky-master/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-python3-numpy/2.1.3/build=/usr/src/debug/nativesdk-python3-numpy/2.1.3 -fdebug-prefix-map=/OE/poky-master/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-python3-numpy/2.1.3/recipe-sysroot= -fmacro-prefix-map=/OE/poky-master/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-python3-numpy/2.1.3/recipe-sysroot= -fdebug-prefix-map=/OE/poky-master/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-python3-numpy/2.1.3/recipe-sysroot-native= -fmacro-prefix-map=/OE/poky-master/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-python3-numpy/2.1.3/recipe-sysroot-native= -pipe -D_FILE_OFFSET_BITS=64 -O0 -std=c11 -Wl,-O1` -&gt; 0

../numpy-2.1.3/numpy/_core/meson.build:408:46: ERROR: Can not run test applications in this cross environment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100348</commentid>
    <comment_count>1</comment_count>
    <who name="Denys Dmytriyenko">denis</who>
    <bug_when>2024-12-04 23:22:59 +0000</bug_when>
    <thetext>This patch by Alex is supposed to fix the issue:
https://patchwork.yoctoproject.org/project/oe-core/patch/20241204064920.817016-4-alex.kanavin@gmail.com/

Since nothing in OE-Core directly depends on python3-numpy (it&apos;s used in ptest), its nativesdk variant never gets pulled into any build on the AB and hence the breakage got missed...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100360</commentid>
    <comment_count>2</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2024-12-05 16:14:06 +0000</bug_when>
    <thetext>It does fix the issue. The failure no longer occurs with the patch. We can close this when it lands in master.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100361</commentid>
    <comment_count>3</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2024-12-05 17:28:46 +0000</bug_when>
    <thetext>In master now.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>