Open csielee opened 5 years ago
encounter compile error
Need to config compile option of dcurl
with MACHINE
variable
Because of cross-compile issue.
I will survey how to config by bitbake recipe without modifying source code.
error log:
ERROR: dcurl-1.0-r0 do_compile: oe_runmake failed
ERROR: dcurl-1.0-r0 do_compile: Function failed: do_compile (log file is located at /home/grass0756110/yocto/poky/build/tmp/work/armv5-poky-linux-gnueabi/dcurl/1.0-r0/temp/log.do_compile.18885)
ERROR: Logfile of failure stored in: /home/grass0756110/yocto/poky/build/tmp/work/armv5-poky-linux-gnueabi/dcurl/1.0-r0/temp/log.do_compile.18885
Log data follows:
| DEBUG: Executing shell function do_compile
| WARNING: hi i am compile!
| NOTE: make -j 8
| CC build/curl.o
| CC build/constants.o
| CC build/trinary.o
| CC build/dcurl.o
| CC build/implcontext.o
| CC build/common.o
| CC build/pow_sse.o
| CC build/test-trinary.o
| arm-poky-linux-gnueabi-gcc: error: unrecognized command line option '-msse2'
| Makefile:119: recipe for target 'build/curl.o' failed
| make: *** [build/curl.o] Error 1
| arm-poky-linux-gnueabi-gcc: error: unrecognized command line option '-msse2'
| make: *** Waiting for unfinished jobs....
| arm-poky-linux-gnueabi-gcc: error: unrecognized command line option '-msse2'
| Makefile:119: recipe for target 'build/constants.o' failed
| make: *** [build/constants.o] Error 1
| Makefile:119: recipe for target 'build/trinary.o' failed
| make: *** [build/trinary.o] Error 1
| arm-poky-linux-gnueabi-gcc: error: unrecognized command line option '-msse2'
| arm-poky-linux-gnueabi-gcc: error: unrecognized command line option '-msse2'
| arm-poky-linux-gnueabi-gcc: error: unrecognized command line option '-msse2'
| Makefile:119: recipe for target 'build/implcontext.o' failed
| make: *** [build/implcontext.o] Error 1
| Makefile:119: recipe for target 'build/dcurl.o' failed
| make: *** [build/dcurl.o] Error 1
| Makefile:119: recipe for target 'build/common.o' failed
| make: *** [build/common.o] Error 1
| arm-poky-linux-gnueabi-gcc: error: unrecognized command line option '-msse2'
| Makefile:115: recipe for target 'build/test-trinary.o' failed
| make: *** [build/test-trinary.o] Error 1
| arm-poky-linux-gnueabi-gcc: error: unrecognized command line option '-msse2'
| Makefile:119: recipe for target 'build/pow_sse.o' failed
| make: *** [build/pow_sse.o] Error 1
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/grass0756110/yocto/poky/build/tmp/work/armv5-poky-linux-gnueabi/dcurl/1.0-r0/temp/log.do_compile.18885)
ERROR: Task (/home/grass0756110/TangleID/meta-dltcollab/meta-dcurl/recipes-dcurl/dcurl/dcurl.bb:do_compile) failed with exit code '1'
After $ bitbake dcurl
, bitbake
will generate 3 packages
Using dpkg-deb -c *.deb
for show directory info of packages
drwxrwxrwx root/root 0 2018-10-16 18:00 ./
drwxr-xr-x root/root 0 2018-10-16 18:00 ./usr/
drwxr-xr-x root/root 0 2018-10-16 18:00 ./usr/bin/
-rwxr-xr-x root/root 13808 2018-10-16 18:00 ./usr/bin/test-curl
-rwxr-xr-x root/root 26252 2018-10-16 18:00 ./usr/bin/test-dcurl
-rwxr-xr-x root/root 22156 2018-10-16 18:00 ./usr/bin/test-pow
-rwxr-xr-x root/root 9716 2018-10-16 18:00 ./usr/bin/test-trinary
drwxr-xr-x root/root 0 2018-10-16 18:00 ./usr/lib/
-rwxr-xr-x root/root 22016 2018-10-16 18:00 ./usr/lib/libdcurl.so.1.0
lrwxrwxrwx root/root 0 2018-10-16 18:00 ./usr/lib/libdcurl.so.1 -> libdcurl.so.1.0
drwxrwxrwx root/root 0 2018-10-16 18:00 ./
drwxr-xr-x root/root 0 2018-10-16 18:00 ./usr/
drwxr-xr-x root/root 0 2018-10-16 18:00 ./usr/include/
drwxr-xr-x root/root 0 2018-10-16 18:00 ./usr/include/dcurl/
-rw-r--r-- root/root 1397 2018-10-16 18:00 ./usr/include/dcurl/clcontext.h
-rw-r--r-- root/root 248 2018-10-16 18:00 ./usr/include/dcurl/common.h
-rw-r--r-- root/root 3097 2018-10-16 18:00 ./usr/include/dcurl/constants.h
-rw-r--r-- root/root 1305 2018-10-16 18:00 ./usr/include/dcurl/cpu-utils.h
-rw-r--r-- root/root 271 2018-10-16 18:00 ./usr/include/dcurl/curl.h
-rw-r--r-- root/root 173 2018-10-16 18:00 ./usr/include/dcurl/dcurl.h
-rw-r--r-- root/root 1473 2018-10-16 18:00 ./usr/include/dcurl/implcontext.h
-rw-r--r-- root/root 14387 2018-10-16 18:00 ./usr/include/dcurl/list.h
-rw-r--r-- root/root 72989 2018-10-16 18:00 ./usr/include/dcurl/pearl.cl.h
-rw-r--r-- root/root 14299 2018-10-16 18:00 ./usr/include/dcurl/pow_avx.h
-rw-r--r-- root/root 2038 2018-10-16 18:00 ./usr/include/dcurl/pow_c.h
-rw-r--r-- root/root 995 2018-10-16 18:00 ./usr/include/dcurl/pow_cl.h
-rw-r--r-- root/root 703 2018-10-16 18:00 ./usr/include/dcurl/pow_fpga_accel.h
-rw-r--r-- root/root 3483 2018-10-16 18:00 ./usr/include/dcurl/pow_sse.h
-rw-r--r-- root/root 662 2018-10-16 18:00 ./usr/include/dcurl/trinary.h
drwxr-xr-x root/root 0 2018-10-16 18:00 ./usr/lib/
lrwxrwxrwx root/root 0 2018-10-16 18:00 ./usr/lib/libdcurl.so -> libdcurl.so.1
drwxrwxrwx root/root 0 2018-10-16 18:00 ./
drwxr-xr-x root/root 0 2018-10-16 18:00 ./usr/
drwxr-xr-x root/root 0 2018-10-16 18:00 ./usr/bin/
drwxr-xr-x root/root 0 2018-10-16 18:00 ./usr/bin/.debug/
-rwxr-xr-x root/root 13660 2018-10-16 18:00 ./usr/bin/.debug/test-curl
-rwxr-xr-x root/root 17984 2018-10-16 18:00 ./usr/bin/.debug/test-dcurl
-rwxr-xr-x root/root 17708 2018-10-16 18:00 ./usr/bin/.debug/test-pow
-rwxr-xr-x root/root 13660 2018-10-16 18:00 ./usr/bin/.debug/test-trinary
drwxr-xr-x root/root 0 2018-10-16 18:00 ./usr/lib/
drwxr-xr-x root/root 0 2018-10-16 18:00 ./usr/lib/.debug/
-rwxr-xr-x root/root 9792 2018-10-16 18:00 ./usr/lib/.debug/libdcurl.so.1.0
dcurl
forgithub
DLTcollab/dcurldcurl
into target image