<div dir="ltr">Hi Everyone,<div>I found a problem working with python(3) and C extensions.</div><div><br></div><div>The use-case is the recipe for python(3)-numpy, which can be linked against a BLAS/LAPACK library to use accelerated matricial and vectorial operations.</div><div><br></div><div>As it is currently shipped, the recipe fails to find any proper library and then does not use extensions.</div><div><br></div><div>I wrote a custom recipe for openblas which is correctly built & deploy using standard commands.</div><div>openblas is also added as a DEPENDS in a bbappend file for numpy.</div><div><br></div><div>However, the do_compile phase cannot find the aforementioned library.</div><div><br></div><div>Log attached:</div><div><br></div><div><div>DEBUG: Executing shell function do_compile</div><div>blas_opt_info:</div><div>blas_mkl_info:</div><div>customize UnixCCompiler</div><div>Â libraries mkl_rt not found in ['/home/fgp/poky/rpi3_64/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-numpy/1.14.2-r0/recipe-sysroot-native/usr/lib']</div><div>Â NOT AVAILABLE</div><div><br></div><div>blis_info:</div><div>customize UnixCCompiler</div><div>Â libraries blis not found in ['/home/fgp/poky/rpi3_64/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-numpy/1.14.2-r0/recipe-sysroot-native/usr/lib']</div><div>Â NOT AVAILABLE</div><div><br></div><div>openblas_info:</div><div>customize UnixCCompiler</div><div>customize UnixCCompiler</div><div>Â libraries openblas not found in ['/home/fgp/poky/rpi3_64/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-numpy/1.14.2-r0/recipe-sysroot-native/usr/lib']</div><div>Â NOT AVAILABLE</div><div><br></div><div>atlas_3_10_blas_threads_info:</div><div>Setting PTATLAS=ATLAS</div><div>customize UnixCCompiler</div><div>Â libraries tatlas not found in ['/home/fgp/poky/rpi3_64/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-numpy/1.14.2-r0/recipe-sysroot-native/usr/lib']</div><div>Â NOT AVAILABLE</div><div><br></div><div>atlas_3_10_blas_info:</div><div>customize UnixCCompiler</div><div>Â libraries satlas not found in ['/home/fgp/poky/rpi3_64/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-numpy/1.14.2-r0/recipe-sysroot-native/usr/lib']</div><div>Â NOT AVAILABLE</div><div><br></div><div>atlas_blas_threads_info:</div><div>Setting PTATLAS=ATLAS</div><div>customize UnixCCompiler</div><div>Â libraries ptf77blas,ptcblas,atlas not found in ['/home/fgp/poky/rpi3_64/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-numpy/1.14.2-r0/recipe-sysroot-native/usr/lib']</div><div>Â NOT AVAILABLE</div><div><br></div><div>atlas_blas_info:</div><div>customize UnixCCompiler</div><div>Â libraries f77blas,cblas,atlas not found in ['/home/fgp/poky/rpi3_64/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-numpy/1.14.2-r0/recipe-sysroot-native/usr/lib']</div><div>Â NOT AVAILABLE</div><div><br></div><div>blas_info:</div><div>customize UnixCCompiler</div><div>Â libraries blas not found in ['/home/fgp/poky/rpi3_64/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/python3-numpy/1.14.2-r0/recipe-sysroot-native/usr/lib']</div><div>Â NOT AVAILABLE</div><div><br></div><div>blas_src_info:</div><div>Â NOT AVAILABLE</div><div><br></div><div>Â NOT AVAILABLE</div><div><br></div><div>...And it is correct for it to fail as it is searching for openblas in the wrong path (sysroot-native vs sysroot).</div><div><br></div><div>I would assume that this is a setuptools.bbclass issue, does anyone know what to do? Is it trivial to fix?</div><div><br></div><div>I noticed that all the shipped python extensions were built as if we were building for x86, even though the MACHINE is an arm target.</div><div><br></div><div>Thank you for your attention,</div><div><br clear="all"><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div dir="ltr"><div><div dir="ltr">Francesco Giancane</div></div><div><dd style="margin:0px;padding:0px;border:0px;font-style:inherit;font-family:inherit;vertical-align:top;line-height:inherit;display:inline-block"><span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-family:inherit;vertical-align:baseline;line-height:inherit;direction:ltr"><br></span></dd></div></div></div></div></div></div></div></div>