[yocto] error: impossible constraint in 'asm'

dhkoo dhkoo at m2i.co.kr
Thu Feb 1 00:32:52 PST 2018


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??

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180201/dbde5bf6/attachment.html>


More information about the yocto mailing list