error: impossible constraint in 'asm'
Hi.
Recently, I'm work on mplayer that media player for my custom system.
My Kernel version is 3.8, and mplayer version is 1.3.0.
And when I perform bitbake, there's error on do_compile process. The messages says like below.
ERROR: mplayer-1.3.0-r0 do_compile: oe_runmake failed
ERROR: mplayer-1.3.0-r0 do_compile: Function failed: do_compile (log file is located at /home/ku/yocto/build/tmp/work/armv7ahf-vfp-poky-linux-gnueabi/mplayer/1.3.0- r0/temp/log.do_compile.2960)
ERROR: Logfile of failure stored in:/home/ku/yocto/build/tmp/work/armv7ahf-vfp-poky-linux-gnueabi/mplayer/1.3.0- r0/temp/log.do_compile.2960
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 4
| ./codec-cfg etc/codecs.conf > codecs.conf.h
| arm-poky-linux-gnueabi-gcc -march=armv7-a -marm -mfpu=vfp -mfloat-abi=hard --sysroot=/home/ku/yocto/build/tmp/work/armv7ahf-vfp-poky-linux-gnueabi/mpla yer/1.3.0-r0/recipe-sysroot -MMD -MP -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O4 -ffast-math -fno-tree-vectorize -fno-asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-D_LARGEFILE64_SOURCE -mcpu=cortex-a9 -mfpu=neon -D_REENTRANT -DZLIB_CONST
-c -o cpudetect.o cpudetect.c
| arm-poky-linux-gnueabi-gcc -march=armv7-a -marm -mfpu=vfp -mfloat-abi=hard --sysroot=/home/ku/yocto/build/tmp/work/armv7ahf-vfp-poky-linux-gnueabi/mpla yer/1.3.0-r0/recipe-sysroot -MMD -MP -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O4 -ffast-math -fno-tree-vectorize -fno-asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-D_LARGEFILE64_SOURCE -mcpu=cortex-a9 -mfpu=neon -D_REENTRANT -DZLIB_CONST
-c -o edl.o edl.c
| arm-poky-linux-gnueabi-gcc -march=armv7-a -marm -mfpu=vfp -mfloat-abi=hard --sysroot=/home/ku/yocto/build/tmp/work/armv7ahf-vfp-poky-linux-gnueabi/mpla yer/1.3.0-r0/recipe-sysroot -MMD -MP -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O4 -ffast-math -fno-tree-vectorize -fno-asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-D_LARGEFILE64_SOURCE -mcpu=cortex-a9 -mfpu=neon -D_REENTRANT -DZLIB_CONST
-c -o fmt-conversion.o fmt-conversion.c
| Reading optional codecs config file etc/codecs.conf: 224 audio & 451 video codecs
| arm-poky-linux-gnueabi-gcc -march=armv7-a -marm -mfpu=vfp -mfloat-abi=hard --sysroot=/home/ku/yocto/build/tmp/work/armv7ahf-vfp-poky-linux-gnueabi/mpla yer/1.3.0-r0/recipe-sysroot -MMD -MP -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O4 -ffast-math -fno-tree-vectorize -fno-asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-D_LARGEFILE64_SOURCE -mcpu=cortex-a9 -mfpu=neon -D_REENTRANT -DZLIB_CONST
-c -o m_config.o m_config.c
| m_config.c: In function 'm_config_add_option':
| m_config.c:326:14: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
| co->name = arg->name;
| ^
| cpudetect.c: In function 'do_cpuid':
| cpudetect.c:258:5: error: impossible constraint in 'asm'
| __asm__ volatile
| ^~~~~~~
| Makefile:726: recipe for target 'cpudetect.o' failed
| make: *** [cpudetect.o] Error 1
| make: *** Waiting for unfinished jobs....
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/ku/yocto/build/tmp/work/armv7ahf-vfp-poky-linux-gnueabi/mplayer/1.3.0- r0/temp/log.do_compile.2960)
ERROR: Task (/home/ku/yocto/meta-top/recipes-top/mplayer/mplayer_1.3.0.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1475 tasks of which 1474 didn't need to be rerun and 1 failed.
Does anyone has an idea??
2018-02-01 9:32 GMT+01:00 dhkoo <[email protected]>:
Quoted 38 lines
Hi.
Recently, I'm work on mplayer that media player for my custom system.
My Kernel version is 3.8, and mplayer version is 1.3.0.
And when I perform bitbake, there's error on
do_compileprocess. The messages says like below.[...]
| arm-poky-linux-gnueabi-gcc -march=armv7-a -marm -mfpu=vfp
(quoted diff) +0
-10-mfloat-abi=hard --sysroot=/home/ku/yocto/build/tmp/work/armv7ahf-vfp-poky-linux-gnueabi/mplayer/1.3.0-r0/recipe-sysroot -MMD -MP -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O4 -ffast-math -fno-tree-vectorize -fno-asynchronous-unwind-tables -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -mcpu=cortex-a9 -mfpu=neon -D_REENTRANT -DZLIB_CONST -c -o m_config.o m_config.c|
m_config.c: In function 'm_config_add_option':| m_config.c:326:14: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
|
co->name=arg->name;| ^
|
cpudetect.c: In function 'do_cpuid':
Quoted 8 lines
| cpudetect.c:258:5: error: impossible constraint in 'asm'
|
__asm__volatile| ^~~~~~~
[...]
Hi dhkoo,
I'm not sure, but the cpudetect.c file from the official website should be preprocessed so that all it's content is not compile when using ARCH_ARM.
All the code from the file is included in a
#if ARCH_X86
preprocessor statement
Regarding the line 258:
It's using embedded assembly code which I understand is specific for the X86 architecture.
Hope this helps.
Signature · 1 line
Philippe GISLARD