AnsweredAssumed Answered

Function failed: do_compile with FSL-Community-BSP

Question asked by Sven Lautenschläger on Mar 16, 2016
Latest reply on Mar 25, 2016 by Rita Wang

I've tried to compile a project with the following command: "bitbake core-image-minimal" and always run in a list of undeclared constants in /linux/drivers/mxc/hmp4e/mxc_hmp4e.c. I am using the dora branch of the fsl-community-bsp.

 

Loaded 1833 entries from dependency cache.

NOTE: Resolving any missing task queue dependencies

 

 

Build Configuration:

BB_VERSION        = "1.20.0"

BUILD_SYS         = "x86_64-linux"

NATIVELSBSTRING   = "Ubuntu-14.04"

TARGET_SYS        = "arm-poky-linux-gnueabi"

MACHINE           = "tx6q-seg5"

DISTRO            = "poky"

DISTRO_VERSION    = "1.5.4"

TUNE_FEATURES     = "armv7a vfp neon callconvention-hard cortexa9"

TARGET_FPU        = "vfp-neon"

meta             

meta-yocto        = "(nobranch):8e9e7e8def9b0b728937d34115f7165677c31bed"

meta-oe          

meta-ruby         = "(nobranch):e75ae8f50af3effe560c43fc63cfd1f39395f011"

meta-fsl-arm      = "(nobranch):5fdb620c09df11e70434092f675c891e0ba84108"

meta-fsl-arm-extra = "(nobranch):375f89b70655be2a17bbde36de6adb4e4a5a6975"

meta-fsl-demos    = "(nobranch):5a12677ad000a926d23c444266722a778ea228a7"

meta-qt5          = "master:b0a32232e702970b7bce8b0ff1973f8e689cdff9"

meta-seg          = "<unknown>:<unknown>"

 

 

NOTE: Preparing runqueue

NOTE: Executing SetScene Tasks

NOTE: Executing RunQueue Tasks

ERROR: Function failed: do_compile (log file is located at /home/armadillo/yocto/seg5/fsl-community-bsp/tx6q/tmp/work/tx6q_seg5-poky-linux-gnueabi/linux-tx6q/3.0.35-r8/temp/log.do_compile.4993)

ERROR: Logfile of failure stored in: /home/armadillo/yocto/seg5/fsl-community-bsp/tx6q/tmp/work/tx6q_seg5-poky-linux-gnueabi/linux-tx6q/3.0.35-r8/temp/log.do_compile.4993

Log data follows:

| DEBUG: Executing shell function do_compile

| NOTE: make -j 4 uImage CC=arm-poky-linux-gnueabi-gcc  -mno-thumb-interwork -marm LD=arm-poky-linux-gnueabi-ld.bfd

| make -C /home/armadillo/yocto/seg5/fsl-community-bsp/tx6q/tmp/work/tx6q_seg5-poky-linux-gnueabi/linux-tx6q/3.0.35-r8/linux O=/home/armadillo/yocto/seg5/fsl-community-bsp/tx6q/tmp/work/tx6q_seg5-poky-linux-gnueabi/linux-tx6q/3.0.35-r8/linux-tx6q-seg5-standard-build/. uImage

|   GEN     /home/armadillo/yocto/seg5/fsl-community-bsp/tx6q/tmp/work/tx6q_seg5-poky-linux-gnueabi/linux-tx6q/3.0.35-r8/linux-tx6q-seg5-standard-build/Makefile

|   CHK     include/linux/version.h

|   CHK     include/generated/utsrelease.h

|   Using /home/armadillo/yocto/seg5/fsl-community-bsp/tx6q/tmp/work/tx6q_seg5-poky-linux-gnueabi/linux-tx6q/3.0.35-r8/linux as source for kernel

| make[3]: `include/generated/mach-types.h' is up to date.

|   CALL    /home/armadillo/yocto/seg5/fsl-community-bsp/tx6q/tmp/work/tx6q_seg5-poky-linux-gnueabi/linux-tx6q/3.0.35-r8/linux/scripts/checksyscalls.sh

|   CHK     include/generated/compile.h

|   CC      drivers/mxc/hmp4e/mxc_hmp4e.o

| /home/armadillo/yocto/seg5/fsl-community-bsp/tx6q/tmp/work/tx6q_seg5-poky-linux-gnueabi/linux-tx6q/3.0.35-r8/linux/drivers/mxc/hmp4e/mxc_hmp4e.c:87:19: error: 'MPEG4_ENC_BASE_ADDR' undeclared here (not in a function)

|  ulong base_port = MPEG4_ENC_BASE_ADDR;

|                    ^

| /home/armadillo/yocto/seg5/fsl-community-bsp/tx6q/tmp/work/tx6q_seg5-poky-linux-gnueabi/linux-tx6q/3.0.35-r8/linux/drivers/mxc/hmp4e/mxc_hmp4e.c:88:11: error: 'MXC_INT_MPEG4_ENCODER' undeclared here (not in a function)

|  u32 irq = MXC_INT_MPEG4_ENCODER;

|            ^

| In file included from /home/armadillo/yocto/seg5/fsl-community-bsp/tx6q/tmp/work/tx6q_seg5-poky-linux-gnueabi/linux-tx6q/3.0.35-r8/linux/include/linux/mmzone.h:9:0,

|                  from /home/armadillo/yocto/seg5/fsl-community-bsp/tx6q/tmp/work/tx6q_seg5-poky-linux-gnueabi/linux-tx6q/3.0.35-r8/linux/include/linux/gfp.h:4,

|                  from /home/armadillo/yocto/seg5/fsl-community-bsp/tx6q/tmp/work/tx6q_seg5-poky-linux-gnueabi/linux-tx6q/3.0.35-r8/linux/include/linux/kmod.h:22,

|                  from /home/armadillo/yocto/seg5/fsl-community-bsp/tx6q/tmp/work/tx6q_seg5-poky-linux-gnueabi/linux-tx6q/3.0.35-r8/linux/include/linux/module.h:13,

|                  from /home/armadillo/yocto/seg5/fsl-community-bsp/tx6q/tmp/work/tx6q_seg5-poky-linux-gnueabi/linux-tx6q/3.0.35-r8/linux/drivers/mxc/hmp4e/mxc_hmp4e.c:35:

| /home/armadillo/yocto/seg5/fsl-community-bsp/tx6q/tmp/work/tx6q_seg5-poky-linux-gnueabi/linux-tx6q/3.0.35-r8/linux/drivers/mxc/hmp4e/mxc_hmp4e.c: In function 'hmp4e_ioctl':

| /home/armadillo/yocto/seg5/fsl-community-bsp/tx6q/tmp/work/tx6q_seg5-poky-linux-gnueabi/linux-tx6q/3.0.35-r8/linux/include/linux/wait.h:268:33: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)

|    prepare_to_wait(&wq, &__wait, TASK_INTERRUPTIBLE); \

|                                  ^

| /home/armadillo/yocto/seg5/fsl-community-bsp/tx6q/tmp/work/tx6q_seg5-poky-linux-gnueabi/linux-tx6q/3.0.35-r8/linux/include/linux/wait.h:300:3: note: in expansion of macro '__wait_event_interruptible'

|    __wait_event_interruptible(wq, condition, __ret); \

|    ^

| /home/armadillo/yocto/seg5/fsl-community-bsp/tx6q/tmp/work/tx6q_seg5-poky-linux-gnueabi/linux-tx6q/3.0.35-r8/linux/drivers/mxc/hmp4e/mxc_hmp4e.c:186:2: note: in expansion of macro 'wait_event_interruptible'

|   wait_event_interruptible(hmp4e_data.power_queue,

|   ^

| /home/armadillo/yocto/seg5/fsl-community-bsp/tx6q/tmp/work/tx6q_seg5-poky-linux-gnueabi/linux-tx6q/3.0.35-r8/linux/include/linux/wait.h:268:33: note: each undeclared identifier is reported only once for each function it appears in

|    prepare_to_wait(&wq, &__wait, TASK_INTERRUPTIBLE); \

|                                  ^

| /home/armadillo/yocto/seg5/fsl-community-bsp/tx6q/tmp/work/tx6q_seg5-poky-linux-gnueabi/linux-tx6q/3.0.35-r8/linux/include/linux/wait.h:300:3: note: in expansion of macro '__wait_event_interruptible'

|    __wait_event_interruptible(wq, condition, __ret); \

|    ^

| /home/armadillo/yocto/seg5/fsl-community-bsp/tx6q/tmp/work/tx6q_seg5-poky-linux-gnueabi/linux-tx6q/3.0.35-r8/linux/drivers/mxc/hmp4e/mxc_hmp4e.c:186:2: note: in expansion of macro 'wait_event_interruptible'

|   wait_event_interruptible(hmp4e_data.power_queue,

|   ^

| /home/armadillo/yocto/seg5/fsl-community-bsp/tx6q/tmp/work/tx6q_seg5-poky-linux-gnueabi/linux-tx6q/3.0.35-r8/linux/drivers/mxc/hmp4e/mxc_hmp4e.c:186:2: error: implicit declaration of function 'signal_pending' [-Werror=implicit-function-declaration]

| /home/armadillo/yocto/seg5/fsl-community-bsp/tx6q/tmp/work/tx6q_seg5-poky-linux-gnueabi/linux-tx6q/3.0.35-r8/linux/drivers/mxc/hmp4e/mxc_hmp4e.c:186:2: error: implicit declaration of function 'schedule' [-Werror=implicit-function-declaration]

| /home/armadillo/yocto/seg5/fsl-community-bsp/tx6q/tmp/work/tx6q_seg5-poky-linux-gnueabi/linux-tx6q/3.0.35-r8/linux/drivers/mxc/hmp4e/mxc_hmp4e.c: At top level:

| /home/armadillo/yocto/seg5/fsl-community-bsp/tx6q/tmp/work/tx6q_seg5-poky-linux-gnueabi/linux-tx6q/3.0.35-r8/linux/drivers/mxc/hmp4e/mxc_hmp4e.c:365:2: error: unknown field 'ioctl' specified in initializer

|   .ioctl = hmp4e_ioctl,

|   ^

| /home/armadillo/yocto/seg5/fsl-community-bsp/tx6q/tmp/work/tx6q_seg5-poky-linux-gnueabi/linux-tx6q/3.0.35-r8/linux/drivers/mxc/hmp4e/mxc_hmp4e.c:365:2: warning: initialization from incompatible pointer type [enabled by default]

| /home/armadillo/yocto/seg5/fsl-community-bsp/tx6q/tmp/work/tx6q_seg5-poky-linux-gnueabi/linux-tx6q/3.0.35-r8/linux/drivers/mxc/hmp4e/mxc_hmp4e.c:365:2: warning: (near initialization for 'hmp4e_fops.fsync') [enabled by default]

| /home/armadillo/yocto/seg5/fsl-community-bsp/tx6q/tmp/work/tx6q_seg5-poky-linux-gnueabi/linux-tx6q/3.0.35-r8/linux/drivers/mxc/hmp4e/mxc_hmp4e.c: In function 'hmp4e_isr':

| /home/armadillo/yocto/seg5/fsl-community-bsp/tx6q/tmp/work/tx6q_seg5-poky-linux-gnueabi/linux-tx6q/3.0.35-r8/linux/drivers/mxc/hmp4e/mxc_hmp4e.c:498:34: error: 'SIGIO' undeclared (first use in this function)

|    kill_fasync(&dev->async_queue, SIGIO, POLL_IN);

|                                   ^

| /home/armadillo/yocto/seg5/fsl-community-bsp/tx6q/tmp/work/tx6q_seg5-poky-linux-gnueabi/linux-tx6q/3.0.35-r8/linux/drivers/mxc/hmp4e/mxc_hmp4e.c:498:41: error: 'POLL_IN' undeclared (first use in this function)

|    kill_fasync(&dev->async_queue, SIGIO, POLL_IN);

|                                          ^

| In file included from /home/armadillo/yocto/seg5/fsl-community-bsp/tx6q/tmp/work/tx6q_seg5-poky-linux-gnueabi/linux-tx6q/3.0.35-r8/linux/include/linux/mmzone.h:9:0,

|                  from /home/armadillo/yocto/seg5/fsl-community-bsp/tx6q/tmp/work/tx6q_seg5-poky-linux-gnueabi/linux-tx6q/3.0.35-r8/linux/include/linux/gfp.h:4,

|                  from /home/armadillo/yocto/seg5/fsl-community-bsp/tx6q/tmp/work/tx6q_seg5-poky-linux-gnueabi/linux-tx6q/3.0.35-r8/linux/include/linux/kmod.h:22,

|                  from /home/armadillo/yocto/seg5/fsl-community-bsp/tx6q/tmp/work/tx6q_seg5-poky-linux-gnueabi/linux-tx6q/3.0.35-r8/linux/include/linux/module.h:13,

|                  from /home/armadillo/yocto/seg5/fsl-community-bsp/tx6q/tmp/work/tx6q_seg5-poky-linux-gnueabi/linux-tx6q/3.0.35-r8/linux/drivers/mxc/hmp4e/mxc_hmp4e.c:35:

| /home/armadillo/yocto/seg5/fsl-community-bsp/tx6q/tmp/work/tx6q_seg5-poky-linux-gnueabi/linux-tx6q/3.0.35-r8/linux/drivers/mxc/hmp4e/mxc_hmp4e.c: In function 'hmp4e_resume':

| /home/armadillo/yocto/seg5/fsl-community-bsp/tx6q/tmp/work/tx6q_seg5-poky-linux-gnueabi/linux-tx6q/3.0.35-r8/linux/include/linux/wait.h:175:47: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)

|  #define wake_up_interruptible(x) __wake_up(x, TASK_INTERRUPTIBLE, 1, NULL)

|                                                ^

| /home/armadillo/yocto/seg5/fsl-community-bsp/tx6q/tmp/work/tx6q_seg5-poky-linux-gnueabi/linux-tx6q/3.0.35-r8/linux/drivers/mxc/hmp4e/mxc_hmp4e.c:765:2: note: in expansion of macro 'wake_up_interruptible'

|   wake_up_interruptible(&hmp4e_data.power_queue);

|   ^

| /home/armadillo/yocto/seg5/fsl-community-bsp/tx6q/tmp/work/tx6q_seg5-poky-linux-gnueabi/linux-tx6q/3.0.35-r8/linux/drivers/mxc/hmp4e/mxc_hmp4e.c:772:41: error: 'SIGIO' undeclared (first use in this function)

|     kill_fasync(&hmp4e_data.async_queue, SIGIO, POLL_IN);

|                                          ^

| /home/armadillo/yocto/seg5/fsl-community-bsp/tx6q/tmp/work/tx6q_seg5-poky-linux-gnueabi/linux-tx6q/3.0.35-r8/linux/drivers/mxc/hmp4e/mxc_hmp4e.c:772:48: error: 'POLL_IN' undeclared (first use in this function)

|     kill_fasync(&hmp4e_data.async_queue, SIGIO, POLL_IN);

|                                                 ^

| cc1: some warnings being treated as errors

| make[5]: *** [drivers/mxc/hmp4e/mxc_hmp4e.o] Error 1

| make[4]: *** [drivers/mxc/hmp4e] Error 2

| make[3]: *** [drivers/mxc] Error 2

| make[3]: *** Waiting for unfinished jobs....

| make[2]: *** [drivers] Error 2

| make[1]: *** [sub-make] Error 2

| make: *** [all] Error 2

| ERROR: oe_runmake failed

| WARNING: exit code 1 from a shell command.

| ERROR: Function failed: do_compile (log file is located at /home/armadillo/yocto/seg5/fsl-community-bsp/tx6q/tmp/work/tx6q_seg5-poky-linux-gnueabi/linux-tx6q/3.0.35-r8/temp/log.do_compile.4993)

ERROR: Task 91 (/home/armadillo/yocto/seg5/fsl-community-bsp/sources/meta-seg/recipes-kernel/linux/linux-tx6q_3.0.35.bb, do_compile) failed with exit code '1'

NOTE: Tasks Summary: Attempted 3272 tasks of which 3271 didn't need to be rerun and 1 failed.

No currently running tasks (1319 of 3297)

 

 

Summary: 1 task failed:

  /home/armadillo/yocto/seg5/fsl-community-bsp/sources/meta-seg/recipes-kernel/linux/linux-tx6q_3.0.35.bb, do_compile

Summary: There was 1 WARNING message shown.

Summary: There was 1 ERROR message shown, returning a non-zero exit code.

Outcomes