AnsweredAssumed Answered

Kernal build error for MPEG4 encoder

Question asked by Iqbal Ajmeri on Oct 29, 2012
Latest reply on Mar 3, 2014 by Yixing Kong

1).Kernal is not able to build with MPEG4 encoder.

Please find the error log bellow.

 

Processing platform: Freescale iMX6x Based Boards

===================================================

using config/platform/imx/.config

 

Processing: fake-provides

===========================

 

Processing: kernel-3.0.35

===========================

Build path taken because: build key set, no prebuilt rpm,

 

rpmbuild --dbpath /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/Release_Source_Code/ltib/rootfs//var/lib/rpm --target arm --define '_unpackaged_files_terminate_build 0' --define '_target_cpu arm' --define '__strip strip' --define '_topdir /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/Release_Source_Code/ltib/rpm' --define '_prefix /usr' --define '_tmppath /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/Release_Source_Code/ltib/tmp' --define '_rpmdir /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/Release_Source_Code/ltib/rpm/RPMS'  --define '_mandir /usr/share/man' --define '_sysconfdir /etc' --define '_localstatedir /var' -bb  /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/Release_Source_Code/ltib/tmp/kernel-3.0.35.spec

Building target platforms: arm

Building for target arm

Executing(%prep): /bin/sh -e /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/Release_Source_Code/ltib/tmp/rpm-tmp.22893

+ umask 022

+ cd /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/Release_Source_Code/ltib/rpm/BUILD

+ cut -d_ -f2

+ echo imx_12.09.03

+ rel_ver=12.09.03

+ cut -d. -f3

+ cut -c2

+ echo imx_12.09.03

+ zz=3

+ git_tag=rel_imx_3.0.35_12.09.03

+ [ 3 != 0 ]

+ git_br=imx_3.0.35_12.09.03

+ KSRC_DIR=/media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/Release_Source_Code/ltib/rpm/BUILD/linux-3.0.35

+ [ -z y ]

+ [ ! -d /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/Release_Source_Code/ltib/rpm/BUILD/linux-3.0.35 ]

+ exit 0

Executing(%build): /bin/sh -e /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/Release_Source_Code/ltib/tmp/rpm-tmp.22893

+ umask 022

+ cd /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/Release_Source_Code/ltib/rpm/BUILD

+ cd linux-3.0.35

+ eval echo

+ echo

+ PKG_KERNEL_PATH_PRECONFIG=

+ eval echo

+ echo

+ PKG_KERNEL_KBUILD_PRECONFIG=

+ eval echo imx6s_defconfig

+ echo imx6s_defconfig

+ PKG_KERNEL_PRECONFIG=imx6s_defconfig

+ KSRC_DIR=/media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/Release_Source_Code/ltib/rpm/BUILD/linux-3.0.35

+ : arm

+ : ccache /usr/bin/gcc -B/usr/bin/

+ : imx6s_defconfig

+ : /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/Release_Source_Code/ltib/config/platform/imx

+ : /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/Release_Source_Code/ltib/rpm/BUILD/linux-3.0.35

+ rm -f /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/Release_Source_Code/ltib/rpm/BUILD/linux

+ ln -s /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/Release_Source_Code/ltib/rpm/BUILD/linux-3.0.35 /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/Release_Source_Code/ltib/rpm/BUILD/linux

+ cd /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/Release_Source_Code/ltib/rpm/BUILD/linux-3.0.35

+ KBOUT=

+ [ -n  -a  != . ]

+ KBOUT=.

+ KTARG=zImage

+ SYSCFG_KTARG=uImage

+ [ imx6s_defconfig = defconfig ]

+ [ -f /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/Release_Source_Code/ltib/config/platform/imx/imx6s_defconfig.dev ]

+ CFG_PATH=/media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/Release_Source_Code/ltib/config/platform/imx/imx6s_defconfig.dev

+ break

+ [ -z /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/Release_Source_Code/ltib/config/platform/imx/imx6s_defconfig.dev ]

+ [ arm = ppc -a -f arch/powerpc/Kconfig ]

+ [ -n  ]

+ [ -n /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/Release_Source_Code/ltib/config/platform/imx/imx6s_defconfig.dev ]

+ cp -f /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/Release_Source_Code/ltib/config/platform/imx/imx6s_defconfig.dev ./.config

+ [ -z  -a -n y -o -n  ]

+ make ARCH=arm CROSS_COMPILE= HOSTCC=ccache /usr/bin/gcc -B/usr/bin/ menuconfig

scripts/kconfig/mconf Kconfig

#

# configuration written to .config

#

 

 

*** End of the configuration.

*** Execute 'make' to start the build or try 'make help'.

 

+ [ -f /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/Release_Source_Code/ltib/config/platform/imx/imx6s_defconfig.dev ]

+ diff -q ./.config /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/Release_Source_Code/ltib/config/platform/imx/imx6s_defconfig.dev

Files ./.config and /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/Release_Source_Code/ltib/config/platform/imx/imx6s_defconfig.dev differ

+ cp -f ./.config /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/Release_Source_Code/ltib/config/platform/imx/imx6s_defconfig.dev

+ [ -n  ]

+ grep -q VERSION = 2 Makefile

+ [ %{kernel_series} = 2.4 ]

+ make ARCH=arm CROSS_COMPILE= HOSTCC=ccache /usr/bin/gcc -B/usr/bin/ uImage

scripts/kconfig/conf --silentoldconfig Kconfig

  CHK     include/linux/version.h

  CHK     include/generated/utsrelease.h

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

  CALL    scripts/checksyscalls.sh

  CHK     include/generated/compile.h

  GZIP    kernel/config_data.gz

  IKCFG   kernel/config_data.h

  CC      kernel/configs.o

  LD      kernel/built-in.o

  LD      drivers/mxc/hmp4e/built-in.o

  LD      vmlinux.o

  MODPOST vmlinux.o

  GEN     .version

  CHK     include/generated/compile.h

  UPD     include/generated/compile.h

  CC      init/version.o

  LD      init/built-in.o

  LD      .tmp_vmlinux1

  KSYM    .tmp_kallsyms1.S

  AS      .tmp_kallsyms1.o

  LD      .tmp_vmlinux2

  KSYM    .tmp_kallsyms2.S

  AS      .tmp_kallsyms2.o

  LD      vmlinux

  SYSMAP  System.map

  SYSMAP  .tmp_System.map

  OBJCOPY arch/arm/boot/Image

  Kernel: arch/arm/boot/Image is ready

  GZIP    arch/arm/boot/compressed/piggy.gzip

  SHIPPED arch/arm/boot/compressed/lib1funcs.S

  AS      arch/arm/boot/compressed/lib1funcs.o

  AS      arch/arm/boot/compressed/piggy.gzip.o

  LD      arch/arm/boot/compressed/vmlinux

  OBJCOPY arch/arm/boot/zImage

  Kernel: arch/arm/boot/zImage is ready

  UIMAGE  arch/arm/boot/uImage

Image Name:   Linux-3.0.35-2039-g267e004

Created:      Mon Oct 29 12:06:19 2012

Image Type:   ARM Linux Kernel Image (uncompressed)

Data Size:    3548276 Bytes = 3465.11 kB = 3.38 MB

Load Address: 0x10008000

Entry Point:  0x10008000

  Image arch/arm/boot/uImage is ready

+ grep -q ^CONFIG_MODULES= ./.config

+ make ARCH=arm CROSS_COMPILE= HOSTCC=ccache /usr/bin/gcc -B/usr/bin/ modules

  CHK     include/linux/version.h

  CHK     include/generated/utsrelease.h

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

  CALL    scripts/checksyscalls.sh

  CC [M]  drivers/mxc/hmp4e/mxc_hmp4e.o

drivers/mxc/hmp4e/mxc_hmp4e.c:87:19: error: 'MPEG4_ENC_BASE_ADDR' undeclared here (not in a function)

drivers/mxc/hmp4e/mxc_hmp4e.c:88:11: error: 'MXC_INT_MPEG4_ENCODER' undeclared here (not in a function)

drivers/mxc/hmp4e/mxc_hmp4e.c: In function 'hmp4e_ioctl':

drivers/mxc/hmp4e/mxc_hmp4e.c:186:2: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)

drivers/mxc/hmp4e/mxc_hmp4e.c:186:2: note: each undeclared identifier is reported only once for each function it appears in

drivers/mxc/hmp4e/mxc_hmp4e.c:186:2: error: implicit declaration of function 'signal_pending' [-Werror=implicit-function-declaration]

drivers/mxc/hmp4e/mxc_hmp4e.c:186:2: error: implicit declaration of function 'schedule' [-Werror=implicit-function-declaration]

drivers/mxc/hmp4e/mxc_hmp4e.c: At top level:

drivers/mxc/hmp4e/mxc_hmp4e.c:365:2: error: unknown field 'ioctl' specified in initializer

drivers/mxc/hmp4e/mxc_hmp4e.c:365:2: warning: initialization from incompatible pointer type [enabled by default]

drivers/mxc/hmp4e/mxc_hmp4e.c:365:2: warning: (near initialization for 'hmp4e_fops.fsync') [enabled by default]

drivers/mxc/hmp4e/mxc_hmp4e.c: In function 'hmp4e_isr':

drivers/mxc/hmp4e/mxc_hmp4e.c:498:34: error: 'SIGIO' undeclared (first use in this function)

drivers/mxc/hmp4e/mxc_hmp4e.c:498:41: error: 'POLL_IN' undeclared (first use in this function)

drivers/mxc/hmp4e/mxc_hmp4e.c: In function 'hmp4e_resume':

drivers/mxc/hmp4e/mxc_hmp4e.c:765:2: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)

drivers/mxc/hmp4e/mxc_hmp4e.c:772:41: error: 'SIGIO' undeclared (first use in this function)

drivers/mxc/hmp4e/mxc_hmp4e.c:772:48: error: 'POLL_IN' undeclared (first use in this function)

cc1: some warnings being treated as errors

 

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

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

make[1]: *** [drivers/mxc] Error 2

make: *** [drivers] Error 2

error: Bad exit status from /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/Release_Source_Code/ltib/tmp/rpm-tmp.22893 (%build)

 

 

RPM build errors:

    Bad exit status from /media/data/Freescale/L3.0.35_MX6DLS_ER_12.09.03_ER/Release_Source_Code/ltib/tmp/rpm-tmp.22893 (%build)

Build time for kernel-3.0.35: 194 seconds

 

Failed building kernel-3.0.35

 

 

f_buildrpms() returned an error, exiting

traceback:

main:572

 

 

Started: Mon Oct 29 12:03:32 2012

Ended:   Mon Oct 29 12:06:53 2012

Elapsed: 201 seconds

 

These packages failed to build:

kernel-3.0.35

 

Build Failed

 

Exiting on error or interrupt

 


Outcomes