[yocto] OpenBLAS recipe

Matthias Schöpfer matthias.schoepfer at identpro.de
Sat Mar 17 06:08:47 PDT 2018


Hi Peter,

openblas builds for me fine. This seems to be more of an issue with
hard/softfloat than openBLAS.

If I remember correctly, there was at some point a problem with fortran,
which might be needed for openBLAS. But this seems not to be the issue
here.

Maybe try to compile it for qemu-x86 and see, if it works there...

Regards,

	Matthias

On 03/17/2018 11:44 AM, Peter Balazovic wrote:
> Hello guys,
> 
> I tried to use openblas recipe from
> https://layers.openembedded.org/layerindex/recipe/68888/
> recipes-convnet/openblas/openblas_0.2.19.bb
> <http://github.com/intel/intel-iot-refkit/blob/master/meta-refkit-extra/recipes-convnet/openblas/openblas_0.2.19.bb>
> 
> Unfortunately got compiling error btw I notice there is further openBLAS
> release 0.2.20, is there any update on that recipe?
> 
> 
> Compiling problems:
> 
> NOTE: Executing RunQueue Tasks
> ERROR: openblas-0.2.19-r0 do_compile: oe_runmake failed
> ERROR: openblas-0.2.19-r0 do_compile: Function failed: do_compile (log
> file is located at
> ../build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/openblas/0.2.19-r0/temp/log.do_compile.2836)
> ERROR: Logfile of failure stored in:
> ../build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/openblas/0.2.19-r0/temp/log.do_compile.2836
> Log data follows:
> | DEBUG: Executing shell function do_compile
> | NOTE: make -j 4 HOSTCC=gcc  CC=arm-poky-linux-gnueabi-gcc 
> --sysroot=../build/tmp/sysroots/ ONLY_CBLAS=1 BINARY=32 TARGET=arm
> | make[1]: warning: -jN forced in submake: disabling jobserver mode.
> | make[1]: Entering directory
> '../build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/openblas/0.2.19-r0/OpenBLAS-0.2.19/interface'
> | arm-poky-linux-gnueabi-gcc  --sysroot=../build/tmp/sysroots/  -O2
> -pipe -g -feliminate-unused-debug-types
> -fdebug-prefix-map=../build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/openblas/0.2.19-r0=/usr/src/debug/openblas/0.2.19-r0
> -fdebug-prefix-map=../build/tmp/sysroots/x86_64-linux=
> -fdebug-prefix-map=../build/tmp/sysroots/=  -O2 -DMAX_STACK_ALLOC=2048
> -Wall -DF_INTERFACE_GFORT -fPIC -DNO_LAPACK -DNO_LAPACKE -DSMP_SERVER
> -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME= -DASMFNAME=_ -DNAME=_ -DCNAME=
> -DCHAR_NAME=\"_\" -DCHAR_CNAME=\"\" -DNO_AFFINITY -I. -O2
> -DMAX_STACK_ALLOC=2048 -Wall -DF_INTERFACE_GFORT -fPIC -DNO_LAPACK
> -DNO_LAPACKE -DSMP_SERVER -DNO_WARMUP -DMAX_CPU_NUMBER=4
> -DASMNAME=cblas_isamax -DASMFNAME=cblas_isamax_ -DNAME=cblas_isamax_
> -DCNAME=cblas_isamax -DCHAR_NAME=\"cblas_isamax_\"
> -DCHAR_CNAME=\"cblas_isamax\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX
> -DCBLAS -c -DUSE_ABS -UUSE_MIN imax.c -o cblas_isamax.o
> | arm-poky-linux-gnueabi-gcc  --sysroot=../build/tmp/sysroots/  -O2
> -pipe -g -feliminate-unused-debug-types
> -fdebug-prefix-map=../build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/openblas/0.2.19-r0=/usr/src/debug/openblas/0.2.19-r0
> -fdebug-prefix-map=../build/tmp/sysroots/x86_64-linux=
> -fdebug-prefix-map=../build/tmp/sysroots/=  -O2 -DMAX_STACK_ALLOC=2048
> -Wall -DF_INTERFACE_GFORT -fPIC -DNO_LAPACK -DNO_LAPACKE -DSMP_SERVER
> -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME= -DASMFNAME=_ -DNAME=_ -DCNAME=
> -DCHAR_NAME=\"_\" -DCHAR_CNAME=\"\" -DNO_AFFINITY -I. -O2
> -DMAX_STACK_ALLOC=2048 -Wall -DF_INTERFACE_GFORT -fPIC -DNO_LAPACK
> -DNO_LAPACKE -DSMP_SERVER -DNO_WARMUP -DMAX_CPU_NUMBER=4
> -DASMNAME=cblas_sasum -DASMFNAME=cblas_sasum_ -DNAME=cblas_sasum_
> -DCNAME=cblas_sasum -DCHAR_NAME=\"cblas_sasum_\"
> -DCHAR_CNAME=\"cblas_sasum\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX
> -DCBLAS -c asum.c -o cblas_sasum.o
> | arm-poky-linux-gnueabi-gcc  --sysroot=../build/tmp/sysroots/  -O2
> -pipe -g -feliminate-unused-debug-types
> -fdebug-prefix-map=../build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/openblas/0.2.19-r0=/usr/src/debug/openblas/0.2.19-r0
> -fdebug-prefix-map=../build/tmp/sysroots/x86_64-linux=
> -fdebug-prefix-map=../build/tmp/sysroots/=  -O2 -DMAX_STACK_ALLOC=2048
> -Wall -DF_INTERFACE_GFORT -fPIC -DNO_LAPACK -DNO_LAPACKE -DSMP_SERVER
> -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME= -DASMFNAME=_ -DNAME=_ -DCNAME=
> -DCHAR_NAME=\"_\" -DCHAR_CNAME=\"\" -DNO_AFFINITY -I. -O2
> -DMAX_STACK_ALLOC=2048 -Wall -DF_INTERFACE_GFORT -fPIC -DNO_LAPACK
> -DNO_LAPACKE -DSMP_SERVER -DNO_WARMUP -DMAX_CPU_NUMBER=4
> -DASMNAME=cblas_saxpy -DASMFNAME=cblas_saxpy_ -DNAME=cblas_saxpy_
> -DCNAME=cblas_saxpy -DCHAR_NAME=\"cblas_saxpy_\"
> -DCHAR_CNAME=\"cblas_saxpy\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX
> -DCBLAS -c axpy.c -o cblas_saxpy.o
> | arm-poky-linux-gnueabi-gcc  --sysroot=../build/tmp/sysroots/  -O2
> -pipe -g -feliminate-unused-debug-types
> -fdebug-prefix-map=../build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/openblas/0.2.19-r0=/usr/src/debug/openblas/0.2.19-r0
> -fdebug-prefix-map=../build/tmp/sysroots/x86_64-linux=
> -fdebug-prefix-map=../build/tmp/sysroots/=  -O2 -DMAX_STACK_ALLOC=2048
> -Wall -DF_INTERFACE_GFORT -fPIC -DNO_LAPACK -DNO_LAPACKE -DSMP_SERVER
> -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME= -DASMFNAME=_ -DNAME=_ -DCNAME=
> -DCHAR_NAME=\"_\" -DCHAR_CNAME=\"\" -DNO_AFFINITY -I. -O2
> -DMAX_STACK_ALLOC=2048 -Wall -DF_INTERFACE_GFORT -fPIC -DNO_LAPACK
> -DNO_LAPACKE -DSMP_SERVER -DNO_WARMUP -DMAX_CPU_NUMBER=4
> -DASMNAME=cblas_scopy -DASMFNAME=cblas_scopy_ -DNAME=cblas_scopy_
> -DCNAME=cblas_scopy -DCHAR_NAME=\"cblas_scopy_\"
> -DCHAR_CNAME=\"cblas_scopy\" -DNO_AFFINITY -I.. -I. -UDOUBLE  -UCOMPLEX
> -DCBLAS -c copy.c -o cblas_scopy.o
> | <command-line>:0:0: warning: "ASMNAME" redefined
> | <command-line>:0:0: warning: "ASMNAME" redefined
> | <command-line>:0:0: note: this is the location of the previous definition
> | <command-line>:0:0: warning: "ASMFNAME" redefined
> | <command-line>:0:0: note: this is the location of the previous definition
> | <command-line>:0:0: warning: "NAME" redefined
> | <command-line>:0:0: note: this is the location of the previous definition
> | <command-line>:0:0: warning: "CNAME" redefined
> | <command-line>:0:0: note: this is the location of the previous definition
> | <command-line>:0:0: warning: "CHAR_NAME" redefined
> | <command-line>:0:0: note: this is the location of the previous definition
> | <command-line>:0:0: warning: "CHAR_CNAME" redefined
> | <command-line>:0:0: note: this is the location of the previous definition
> | <command-line>:0:0: warning: "ASMNAME" redefined
> | <command-line>:0:0: note: this is the location of the previous definition
> | <command-line>:0:0: warning: "ASMFNAME" redefined
> | <command-line>:0:0: note: this is the location of the previous definition
> | <command-line>:0:0: warning: "NAME" redefined
> | In file included from ../build/tmp/sysroots//usr/include/features.h:392:0,
> |                  from ../build/tmp/sysroots//usr/include/stdio.h:27,
> |                  from imax.c:39:
> | ../build/tmp/sysroots//usr/include/gnu/stubs.h:7:29: fatal error:
> gnu/stubs-soft.h: No such file or directory
> |  # include <gnu/stubs-soft.h>
> |                              ^
> | compilation terminated.
> | <command-line>:0:0: note: this is the location of the previous definition
> | <command-line>:0:0: warning: "CNAME" redefined
> | <command-line>:0:0: note: this is the location of the previous definition
> | <command-line>:0:0: warning: "CHAR_NAME" redefined
> | <command-line>:0:0: note: this is the location of the previous definition
> | <command-line>:0:0: warning: "CHAR_CNAME" redefined
> | <command-line>:0:0: note: this is the location of the previous definition
> | <command-line>:0:0: note: this is the location of the previous definition
> | <command-line>:0:0: warning: "ASMFNAME" redefined
> | <command-line>:0:0: note: this is the location of the previous definition
> | <command-line>:0:0: warning: "NAME" redefined
> | <command-line>:0:0: note: this is the location of the previous definition
> | <command-line>:0:0: warning: "CNAME" redefined
> | <command-line>:0:0: note: this is the location of the previous definition
> | <command-line>:0:0: warning: "CHAR_NAME" redefined
> | <command-line>:0:0: note: this is the location of the previous definition
> | <command-line>:0:0: warning: "CHAR_CNAME" redefined
> | <command-line>:0:0: note: this is the location of the previous definition
> | <command-line>:0:0: warning: "ASMNAME" redefined
> | <command-line>:0:0: note: this is the location of the previous definition
> | <command-line>:0:0: warning: "ASMFNAME" redefined
> | <command-line>:0:0: note: this is the location of the previous definition
> | <command-line>:0:0: warning: "NAME" redefined
> | <command-line>:0:0: note: this is the location of the previous definition
> | <command-line>:0:0: warning: "CNAME" redefined
> | <command-line>:0:0: note: this is the location of the previous definition
> | <command-line>:0:0: warning: "CHAR_NAME" redefined
> | In file included from ../build/tmp/sysroots//usr/include/features.h:392:0,
> |                  from ../build/tmp/sysroots//usr/include/stdio.h:27,
> |                  from axpy.c:39:
> | ../build/tmp/sysroots//usr/include/gnu/stubs.h:7:29: fatal error:
> gnu/stubs-soft.h: No such file or directory
> |  # include <gnu/stubs-soft.h>
> |                              ^
> | <command-line>:0:0: note: this is the location of the previous definition
> | <command-line>:0:0: warning: "CHAR_CNAME" redefined
> | <command-line>:0:0: note: this is the location of the previous definition
> | ERROR: oe_runmake failed
> | In file included from ../build/tmp/sysroots//usr/include/features.h:392:0,
> |                  from ../build/tmp/sysroots//usr/include/stdio.h:27,
> |                  from asum.c:39:
> | ../build/tmp/sysroots//usr/include/gnu/stubs.h:7:29: fatal error:
> gnu/stubs-soft.h: No such file or directory
> |  # include <gnu/stubs-soft.h>
> |                              ^
> | compilation terminated.
> | In file included from ../build/tmp/sysroots//usr/include/features.h:392:0,
> |                  from ../build/tmp/sysroots//usr/include/stdio.h:27,
> |                  from copy.c:39:
> | ../build/tmp/sysroots//usr/include/gnu/stubs.h:7:29: fatal error:
> gnu/stubs-soft.h: No such file or directory
> |  # include <gnu/stubs-soft.h>
> |                              ^
> | compilation terminated.
> | compilation terminated.
> | Makefile:1351: recipe for target 'cblas_isamax.o' failed
> | make[1]: *** [cblas_isamax.o] Error 1
> | make[1]: *** Waiting for unfinished jobs....
> | Makefile:1375: recipe for target 'cblas_sasum.o' failed
> | make[1]: *** [cblas_sasum.o] Error 1
> | Makefile:1447: recipe for target 'cblas_scopy.o' failed
> | make[1]: *** [cblas_scopy.o] Error 1
> | Makefile:1435: recipe for target 'cblas_saxpy.o' failed
> | make[1]: *** [cblas_saxpy.o] Error 1
> | make[1]: Leaving directory
> '../build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/openblas/0.2.19-r0/OpenBLAS-0.2.19/interface'
> | Makefile:133: recipe for target 'libs' failed
> | make: *** [libs] Error 1
> | ERROR: Function failed: do_compile (log file is located at
> ../build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/openblas/0.2.19-r0/temp/log.do_compile.2836)
> ERROR: Task
> (../sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-graphics/openblas/openblas_0.2.19.bb:do_compile)
> failed with exit code '1'
> NOTE: Tasks Summary: Attempted 433 tasks of which 432 didn't need to be
> rerun and 1 failed.
> 


-- 
Dr.-Ing. Matthias Schöpfer

Softwareentwicklung

____________________________________

IdentPro GmbH
Camp-Spich-Str. 4
53842 Troisdorf

Tel:   +49 (0)2241 / 866 392 46
Fax:   +49 (0)2241 / 866 392 99
eMail: matthias.schoepfer at identpro.de

http://www.identpro.de

identplus® – Das 3D Staplerleitsystem mit enormen Sparpotenzial: z. B.
über 67.000 EUR pro Jahr bei 500 Transporten täglich! Berechnen Sie das
Einsparpotenzial für Ihr Lager mit dem identplus® Potenzialrechner.

identplus® live erleben: Vereinbaren Sie jetzt einen Termin!

---------------------------------
IdentPro GmbH
Member of Dr. Wack Holding GmbH & Co.KG
Sitz und Registergericht: St. Augustin, HRB 9770 Siegburg
Geschäftsführer: Michael Wack
Umsatzsteuer-ID-Nr.: DE 254 824 945
WEEE-Reg.-Nr. DE 79026890



More information about the yocto mailing list