intel / intel-iot-refkit

MIT License
35 stars 61 forks source link

Compile issue #335

Open ghost opened 6 years ago

ghost commented 6 years ago

Hello Guys,

I tried to use your recipe and endup with compilation error

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.
ipuustin commented 6 years ago

Hmm, quick googling seems to indicate that for some reason the ARM rootfs is set up to use hard floats but the compiler tries to use soft floats (but fails, because the rootfs doesn't have gnu/stubs-soft.h installed). I don't have an ARM platform to play with, but you might want to try passing the correct arch in ${TOOLCHAIN_OPTIONS} or maybe see if map_arch() function at https://github.com/intel/intel-iot-refkit/blob/master/meta-refkit-extra/recipes-convnet/openblas/openblas_0.2.19.bb#L20 could be improved or fixed.

ghost commented 6 years ago

i tried recipe from here,

https://github.com/CogentEmbedded/meta-opencl/tree/master/meta-ocl-common/recipes-graphics/openblas (https://link.getmailspring.com/link/1521316726.local-cd8f0809-1f71-v1.1.5-5834c99f@getmailspring.com/0?redirect=https%3A%2F%2Fgithub.com%2FCogentEmbedded%2Fmeta-opencl%2Ftree%2Fmaster%2Fmeta-ocl-common%2Frecipes-graphics%2Fopenblas&recipient=cmVwbHkrMDBkOTM3ODllOWEyYzlmNGNhY2NmODQ1NjIwNmQ3ZTMzMDQzMGIzYjJiODMyN2YwOTJjZjAwMDAwMDAxMTZjNTMwZDY5MmExNjljZTEyM2Y2YWM3QHJlcGx5LmdpdGh1Yi5jb20%3D) it compiles.. what diff?

Sent from Mailspring (https://link.getmailspring.com/link/1521316726.local-cd8f0809-1f71-v1.1.5-5834c99f@getmailspring.com/1?redirect=https%3A%2F%2Fgetmailspring.com%2F&recipient=cmVwbHkrMDBkOTM3ODllOWEyYzlmNGNhY2NmODQ1NjIwNmQ3ZTMzMDQzMGIzYjJiODMyN2YwOTJjZjAwMDAwMDAxMTZjNTMwZDY5MmExNjljZTEyM2Y2YWM3QHJlcGx5LmdpdGh1Yi5jb20%3D), the best free email app for work On Mar 17 2018, at 8:39 pm, Ismo Puustinen notifications@github.com wrote:

Hmm, quick googling seems to indicate that for some reason the ARM rootfs is set up to use hard floats but the compiler tries to use soft floats (but fails, because the rootfs doesn't have gnu/stubs-soft.h installed). I don't have an ARM platform to play with, but you might want to try passing the correct arch in ${TOOLCHAIN_OPTIONS} or maybe see if map_arch() function at https://github.com/intel/intel-iot-refkit/blob/master/meta-refkit-extra/recipes-convnet/openblas/openblas_0.2.19.bb#L20 (https://link.getmailspring.com/link/1521316726.local-cd8f0809-1f71-v1.1.5-5834c99f@getmailspring.com/2?redirect=https%3A%2F%2Fgithub.com%2Fintel%2Fintel-iot-refkit%2Fblob%2Fmaster%2Fmeta-refkit-extra%2Frecipes-convnet%2Fopenblas%2Fopenblas_0.2.19.bb%23L20&recipient=cmVwbHkrMDBkOTM3ODllOWEyYzlmNGNhY2NmODQ1NjIwNmQ3ZTMzMDQzMGIzYjJiODMyN2YwOTJjZjAwMDAwMDAxMTZjNTMwZDY5MmExNjljZTEyM2Y2YWM3QHJlcGx5LmdpdGh1Yi5jb20%3D) could be improved or fixed. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub (https://link.getmailspring.com/link/1521316726.local-cd8f0809-1f71-v1.1.5-5834c99f@getmailspring.com/3?redirect=https%3A%2F%2Fgithub.com%2Fintel%2Fintel-iot-refkit%2Fissues%2F335%23issuecomment-373947058&recipient=cmVwbHkrMDBkOTM3ODllOWEyYzlmNGNhY2NmODQ1NjIwNmQ3ZTMzMDQzMGIzYjJiODMyN2YwOTJjZjAwMDAwMDAxMTZjNTMwZDY5MmExNjljZTEyM2Y2YWM3QHJlcGx5LmdpdGh1Yi5jb20%3D), or mute the thread (https://link.getmailspring.com/link/1521316726.local-cd8f0809-1f71-v1.1.5-5834c99f@getmailspring.com/4?redirect=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FANk3ieO74it1t37TcvFZKnZPoCbY9eO7ks5tfWZWgaJpZM4SuwNf&recipient=cmVwbHkrMDBkOTM3ODllOWEyYzlmNGNhY2NmODQ1NjIwNmQ3ZTMzMDQzMGIzYjJiODMyN2YwOTJjZjAwMDAwMDAxMTZjNTMwZDY5MmExNjljZTEyM2Y2YWM3QHJlcGx5LmdpdGh1Yi5jb20%3D).