From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: Re: Yocto recipe for scikit-learn To: openembedded-devel@lists.openembedded.org From: kodali13451@gmail.com X-Originating-Location: Frisco, Texas, US (107.204.20.30) X-Originating-Platform: Mac Chrome 87 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Wed, 13 Jan 2021 13:31:49 -0800 References: <246d3d88-0c56-733d-553d-0cb3f83c1c9e@embed.me.uk> In-Reply-To: <246d3d88-0c56-733d-553d-0cb3f83c1c9e@embed.me.uk> Message-ID: <912.1610573509191386989@lists.openembedded.org> X-Groupsio-MsgNum: 88754 Content-Type: multipart/mixed; boundary="kH9LyFjNaec6fvauKt7t" --kH9LyFjNaec6fvauKt7t Content-Type: multipart/alternative; boundary="xqdGggs7deNIv2xIcekR" --xqdGggs7deNIv2xIcekR Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable I was using "dunfell" branch and looks like "pybind11" does not have "nativ= e" option set in this version of the branch. After creating a "bbappend" fi= le for pybind11 with "BBCLASSEXTEND =3D "native", I was able to bitbake "sc= ipy" package successfully. But, When I try to bitbake "scikit-learn" or "scipy-native", I am getting = the below error with scipy-native recipe. This is for the armv8 target. /home/ubuntu/projects/apps/apps_proc/poky/build/tmp-glibc/work/x86_64-linu= x/python3-scipy-native/ 1.5.2 -r0/build/ temp.linux-x86_64-3.8 /scipy/integ= rate/ _quadpackmodule.o : In function `PyInit__quadpack': /home/ubuntu/projects/apps/apps_proc/poky/build/tmp-glibc/work/x86_64-linu= x/python3-scipy-native/ 1.5.2 -r0/ scipy-1.5.2 /scipy/integrate/ _quadpackm= odule.c : 43 : undefined reference to `Py_FatalError' collect2: error : ld returned 1 exit status Running from SciPy source directory. /home/ubuntu/projects/apps/apps_proc/poky/build/tmp-glibc/work/x86_64-linu= x/python3-scipy-native/ 1.5.2 -r0/recipe-sysroot-native/usr/lib/ python3.8 = /site-packages/numpy/distutils/fcompiler/ __init__.py : 530 : UserWarning: = LDFLAGS is used as is, not appended to flags already defined by numpy.distu= tils ! Use NPY_DISTUTILS_APPEND_FLAGS=3D 1 to obtain appending behavior ins= tead (this behavior will become default in a future release). linker_so_flags =3D self.flag_vars.linker_so /home/ubuntu/projects/apps/apps_proc/poky/build/tmp-glibc/work/x86_64-linu= x/python3-scipy-native/ 1.5.2 -r0/recipe-sysroot-native/usr/lib/ python3.8 = /site-packages/numpy/distutils/fcompiler/ __init__.py : 540 : UserWarning: = LDFLAGS is used as is, not appended to flags already defined by numpy.distu= tils ! Use NPY_DISTUTILS_APPEND_FLAGS=3D 1 to obtain appending behavior ins= tead (this behavior will become default in a future release). linker_exe_flags =3D self.flag_vars.linker_exe /home/ubuntu/projects/apps/apps_proc/poky/build/tmp-glibc/work/x86_64-linu= x/python3-scipy-native/ 1.5.2 -r0/recipe-sysroot-native/usr/lib/ python3.8 = /site-packages/numpy/distutils/fcompiler/ __init__.py : 530 : UserWarning: = LDFLAGS is used as is, not appended to flags already defined by numpy.distu= tils ! Use NPY_DISTUTILS_APPEND_FLAGS=3D 1 to obtain appending behavior ins= tead (this behavior will become default in a future release). linker_so_flags =3D self.flag_vars.linker_so /home/ubuntu/projects/apps/apps_proc/poky/build/tmp-glibc/work/x86_64-linu= x/python3-scipy-native/ 1.5.2 -r0/recipe-sysroot-native/usr/lib/ python3.8 = /site-packages/numpy/distutils/fcompiler/ __init__.py : 540 : UserWarning: = LDFLAGS is used as is, not appended to flags already defined by numpy.distu= tils ! Use NPY_DISTUTILS_APPEND_FLAGS=3D 1 to obtain appending behavior ins= tead (this behavior will become default in a future release). linker_exe_flags =3D self.flag_vars.linker_exe /home/ubuntu/projects/apps/apps_proc/poky/build/tmp-glibc/work/x86_64-linu= x/python3-scipy-native/ 1.5.2 -r0/recipe-sysroot-native/usr/lib/ python3.8 = /site-packages/numpy/distutils/fcompiler/ __init__.py : 530 : UserWarning: = LDFLAGS is used as is, not appended to flags already defined by numpy.distu= tils ! Use NPY_DISTUTILS_APPEND_FLAGS=3D 1 to obtain appending behavior ins= tead (this behavior will become default in a future release). linker_so_flags =3D self.flag_vars.linker_so /home/ubuntu/projects/apps/apps_proc/poky/build/tmp-glibc/work/x86_64-linu= x/python3-scipy-native/ 1.5.2 -r0/recipe-sysroot-native/usr/lib/ python3.8 = /site-packages/numpy/distutils/fcompiler/ __init__.py : 540 : UserWarning: = LDFLAGS is used as is, not appended to flags already defined by numpy.distu= tils ! Use NPY_DISTUTILS_APPEND_FLAGS=3D 1 to obtain appending behavior ins= tead (this behavior will become default in a future release). linker_exe_flags =3D self.flag_vars.linker_exe error : Command "/home/ubuntu/projects/apps/apps_proc/poky/build/tmp-glibc= /hosttools/gfortran -Wall -g -L/home/ubuntu/projects/apps/apps_proc/poky/bu= ild/tmp-glibc/work/x86_64-linux/python3-scipy-native/1.5.2-r0/recipe-sysroo= t-native/usr/lib -L/home/ubuntu/projects/apps/apps_proc/poky/build/tmp-glib= c/work/x86_64-linux/python3-scipy-native/1.5.2-r0/recipe-sysroot-native/lib= -Wl,--enable-new-dtags -Wl,-rpath-link,/home/ubuntu/projects/apps/apps_pro= c/poky/build/tmp-glibc/work/x86_64-linux/python3-scipy-native/1.5.2-r0/reci= pe-sysroot-native/usr/lib -Wl,-rpath-link,/home/ubuntu/projects/apps/apps_p= roc/poky/build/tmp-glibc/work/x86_64-linux/python3-scipy-native/1.5.2-r0/re= cipe-sysroot-native/lib -Wl,-rpath,/home/ubuntu/projects/apps/apps_proc/pok= y/build/tmp-glibc/work/x86_64-linux/python3-scipy-native/1.5.2-r0/recipe-sy= sroot-native/usr/lib -Wl,-rpath,/home/ubuntu/projects/apps/apps_proc/poky/b= uild/tmp-glibc/work/x86_64-linux/python3-scipy-native/1.5.2-r0/recipe-sysro= ot-native/lib -Wl,-O1 /home/ubuntu/projects/apps/apps_proc/poky/build/tmp-g= libc/work/x86_64-linux/python3-scipy-native/1.5.2-r0/build/temp.linux-x86_6= 4-3.8/scipy/integrate/_quadpackmodule.o -L/home/ubuntu/projects/apps/apps_p= roc/poky/build/tmp-glibc/work/x86_64-linux/python3-scipy-native/1.5.2-r0/re= cipe-sysroot-native/usr/lib -L/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib/gc= c/x86_64-linux-gnu/5 -L/home/ubuntu/projects/apps/apps_proc/poky/build/tmp-= glibc/work/x86_64-linux/python3-scipy-native/1.5.2-r0/recipe-sysroot-native= /usr/lib -L/home/ubuntu/projects/apps/apps_proc/poky/build/tmp-glibc/work/x= 86_64-linux/python3-scipy-native/1.5.2-r0/build/temp.linux-x86_64-3.8 -lqua= dpack -lmach -lopenblas -llapack -lopenblas -llapack -lgfortran -o /home/ub= untu/projects/apps/apps_proc/poky/build/tmp-glibc/work/x86_64-linux/python3= -scipy-native/1.5.2-r0/build/lib.linux-x86_64-3.8/scipy/integrate/_quadpack= .cpython-38-x86_64-linux-gnu.so -Wl,--version-script=3D/home/ubuntu/project= s/apps/apps_proc/poky/build/tmp-glibc/work/x86_64-linux/python3-scipy-nativ= e/1.5.2-r0/build/temp.linux-x86_64-3.8/link-version-scipy.integrate._quadpa= ck.map" failed with exit status 1 ERROR : 'python3 setup.py build ' execution failed. WARNING: /home/ubuntu/projects/apps/apps_proc/poky/build/tmp-glibc/work/x8= 6_64-linux/python3-scipy-native/ 1.5.2 -r0/temp/ run.do_compile.14972 : 1 e= xit 1 from 'exit 1' ERROR : Execution of '/home/ubuntu/projects/apps/apps_proc/poky/build/tmp-= glibc/work/x86_64-linux/python3-scipy-native/1.5.2-r0/temp/run.do_compile.1= 4972' failed with exit code 1 : Attached is the complete log file. --xqdGggs7deNIv2xIcekR Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
I was using "dunfell" branch and looks like "pybind11" does not have "na= tive" option set in this version of the branch. After creating a "bbappend"= file for pybind11 with "BBCLASSEXTEND =3D "native", I was able to bitbake = "scipy" package successfully.
But, When I try to bitbake "scikit-learn" or "scipy-native", I am getti=
ng the below error with scipy-native recipe. This is for the armv8 target.&=
nbsp;
Attached is the complete log file.