LTIB Build Error - imx-lib

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LTIB Build Error - imx-lib

2,315 Views
abdulrazak
Contributor I

Hi All,

I am running in to a issue while building ltib for i.mx35. Please help me solve this issue.

Also has some one built gstreamer package for i.mx35. If yes, please let me know the steps.

Below is the log.

Processing: imx-lib

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

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

rpmbuild --dbpath /home/dt-blr-04440/ltib/rootfs//var/lib/rpm --target arm --define '_unpackaged_files_terminate_build 0' --define '_target_cpu arm' --define '__strip strip' --define '_topdir /home/dt-blr-04440/ltib/rpm' --define '_prefix /usr' --define '_tmppath /home/dt-blr-04440/ltib/tmp' --define '_rpmdir /home/dt-blr-04440/ltib/rpm/RPMS'  --define '_mandir /usr/share/man' --define '_sysconfdir /etc' --define '_localstatedir /var' -bi --short-circuit  /home/dt-blr-04440/ltib/dist/lfs-5.1/mxc-misc/imx-lib.spec

Building target platforms: arm

Building for target arm

Executing(%install): /bin/sh -e /home/dt-blr-04440/ltib/tmp/rpm-tmp.17553

+ umask 022

+ cd /home/dt-blr-04440/ltib/rpm/BUILD

+ cd imx-lib-10.04.01

+ [ -z  ]

+ KERNELDIR=/home/dt-blr-04440/ltib/rpm/BUILD/imx-lib-10.04.01/../linux

+ KBUILD_OUTPUT=/home/dt-blr-04440/ltib/rpm/BUILD/imx-lib-10.04.01/../linux

+ rm -rf /home/dt-blr-04440/ltib/tmp/imx-lib

+ [ -n  ]

+ echo imx35_3stack

+ awk {print toupper($0)}

+ PLATFORM_UPPER=IMX35_3STACK

+ make PLATFORM=IMX35_3STACK DEST_DIR=/home/dt-blr-04440/ltib/tmp/imx-lib//opt/freescale/rootfs/arm install

make -C ipu install

make -C screenlayer install

make[1]: Entering directory `/home/dt-blr-04440/ltib/rpm/BUILD/imx-lib-10.04.01/ipu'

make -C sim install

Not support platform, will not complile

make[1]: Leaving directory `/home/dt-blr-04440/ltib/rpm/BUILD/imx-lib-10.04.01/ipu'

make -C vpu install

make[1]: Entering directory `/home/dt-blr-04440/ltib/rpm/BUILD/imx-lib-10.04.01/screenlayer'

make[1]: Entering directory `/home/dt-blr-04440/ltib/rpm/BUILD/imx-lib-10.04.01/sim'

make[1]: Nothing to be done for `install'.

make[1]: Leaving directory `/home/dt-blr-04440/ltib/rpm/BUILD/imx-lib-10.04.01/sim'

Not support platform, will not complile

make[1]: Leaving directory `/home/dt-blr-04440/ltib/rpm/BUILD/imx-lib-10.04.01/screenlayer'

make[1]: Entering directory `/home/dt-blr-04440/ltib/rpm/BUILD/imx-lib-10.04.01/vpu'

make[1]: Nothing to be done for `install'.

make[1]: Leaving directory `/home/dt-blr-04440/ltib/rpm/BUILD/imx-lib-10.04.01/vpu'

+ exit 0

Processing files: imx-lib-10.04.01-1

error: File not found by glob: /home/dt-blr-04440/ltib/tmp/imx-lib/opt/freescale/rootfs/arm/*

RPM build errors:

    File not found by glob: /home/dt-blr-04440/ltib/tmp/imx-lib/opt/freescale/rootfs/arm/*

Build time for imx-lib: 0 seconds

Failed building imx-lib

f_buildrpms() returned an error, exiting

traceback:

main:560

Started: Wed Dec  5 09:20:10 2012

Ended:   Wed Dec  5 09:26:32 2012

Elapsed: 382 seconds

These packages failed to build:

imx-lib

Build Failed


Labels (3)
0 Kudos
2 Replies

781 Views
brunoceldran
Contributor I

I have a similar problem while compiling imx-libs-1.1.0 for my iMX6 platform, with ptxdist.  It won't help you at all, but maybe it can guide to the resolution of the problem.

-----------------------

target: imx-lib.compile

-----------------------

make[1]: Entering directory `/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/imx-lib-1.1.0'

make -C sim all

make -C vpu all

make -C pxp all

make -C rng all

make[2]: Entering directory `/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/imx-lib-1.1.0/sim'

make[2]: Nothing to be done for `all'.

make[2]: Leaving directory `/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/imx-lib-1.1.0/sim'

make -C ipu all

make -C sahara2 all

make[2]: Entering directory `/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/imx-lib-1.1.0/vpu'

arm-cortexa9-linux-gnueabihf-gcc -DIMX6Q -Wall -O2 -fPIC -c vpu_io.c -o vpu_io.o

make -C screenlayer all

make[2]: Entering directory `/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/imx-lib-1.1.0/pxp'

arm-cortexa9-linux-gnueabihf-gcc -DIMX6Q -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/drivers/mxc/security/rng/include -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/drivers/mxc/security/sahara2/include -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/include -Wall -O2 -fPIC -c pxp_lib.c -o pxp_lib.o

arm-cortexa9-linux-gnueabihf-gcc -DIMX6Q -Wall -O2 -fPIC -c vpu_util.c -o vpu_util.o

arm-cortexa9-linux-gnueabihf-gcc -DIMX6Q -Wall -O2 -fPIC -c vpu_lib.c -o vpu_lib.o

make[2]: Entering directory `/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/imx-lib-1.1.0/rng'

arm-cortexa9-linux-gnueabihf-gcc -g -Wall -W -Wmissing-prototypes -Wstrict-prototypes -Wdeclaration-after-statement -fPIC -DFSL_PLATFORM_OTHER -DFSL_HAVE_RNGC -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/drivers/mxc/security/rng/include -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/drivers/mxc/security/sahara2/include -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/include   -c -o fsl_shw_rand.o fsl_shw_rand.c

make[2]: Entering directory `/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/imx-lib-1.1.0/ipu'

arm-cortexa9-linux-gnueabihf-gcc -DIMX6Q -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/drivers/mxc/security/rng/include -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/drivers/mxc/security/sahara2/include -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/include -Wall -O2 -fPIC -c mxc_ipu_hl_lib_dummy.c -o mxc_ipu_hl_lib_dummy.o

arm-cortexa9-linux-gnueabihf-gcc -g -Wall -W -Wmissing-prototypes -Wstrict-prototypes -Wdeclaration-after-statement -fPIC -DFSL_PLATFORM_OTHER -DFSL_HAVE_RNGC -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/drivers/mxc/security/rng/include -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/drivers/mxc/security/sahara2/include -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/include   -c -o fsl_shw_hash.o fsl_shw_hash.c

make[2]: Entering directory `/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/imx-lib-1.1.0/sahara2'

make[2]: Nothing to be done for `all'.

make[2]: Leaving directory `/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/imx-lib-1.1.0/sahara2'

arm-cortexa9-linux-gnueabihf-gcc -DIMX6Q -Wall -O2 -fPIC -c vpu_gdi.c -o vpu_gdi.o

make[2]: Entering directory `/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/imx-lib-1.1.0/screenlayer'

arm-cortexa9-linux-gnueabihf-gcc -g -Wall -W -Wmissing-prototypes -Wstrict-prototypes -Wdeclaration-after-statement -fPIC -DFSL_PLATFORM_OTHER -DFSL_HAVE_RNGC -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/drivers/mxc/security/rng/include -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/drivers/mxc/security/sahara2/include -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/include   -c -o fsl_shw_sym.o fsl_shw_sym.c

arm-cortexa9-linux-gnueabihf-gcc -g -Wall -W -Wmissing-prototypes -Wstrict-prototypes -Wdeclaration-after-statement -fPIC -DFSL_PLATFORM_OTHER -DFSL_HAVE_RNGC -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/drivers/mxc/security/rng/include -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/drivers/mxc/security/sahara2/include -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/include   -c -o fsl_shw_user.o fsl_shw_user.c

arm-cortexa9-linux-gnueabihf-gcc -g -Wall -W -Wmissing-prototypes -Wstrict-prototypes -Wdeclaration-after-statement -fPIC -DFSL_PLATFORM_OTHER -DFSL_HAVE_RNGC -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/drivers/mxc/security/rng/include -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/drivers/mxc/security/sahara2/include -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/include -c ../sahara2/fsl_shw_keystore.c

arm-cortexa9-linux-gnueabihf-gcc -g -Wall -W -Wmissing-prototypes -Wstrict-prototypes -Wdeclaration-after-statement -fPIC -DFSL_PLATFORM_OTHER -DFSL_HAVE_RNGC -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/drivers/mxc/security/rng/include -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/drivers/mxc/security/sahara2/include -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/include   -c -o fsl_shw_auth.o fsl_shw_auth.c

arm-cortexa9-linux-gnueabihf-gcc -g -Wall -W -Wmissing-prototypes -Wstrict-prototypes -Wdeclaration-after-statement -fPIC -DFSL_PLATFORM_OTHER -DFSL_HAVE_RNGC -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/drivers/mxc/security/rng/include -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/drivers/mxc/security/sahara2/include -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/include   -c -o fsl_shw_hmac.o fsl_shw_hmac.c

arm-cortexa9-linux-gnueabihf-gcc -g -Wall -W -Wmissing-prototypes -Wstrict-prototypes -Wdeclaration-after-statement -fPIC -DFSL_PLATFORM_OTHER -DFSL_HAVE_RNGC -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/drivers/mxc/security/rng/include -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/drivers/mxc/security/sahara2/include -I/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/include   -c -o fsl_shw_wrap.o fsl_shw_wrap.c

Not support platform, will not complile

make[2]: Leaving directory `/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/imx-lib-1.1.0/screenlayer'

vpu_io.c: In function 'IOPhyMemCheck':

vpu_io.c:596:16: warning: unused variable 'va_addr' [-Wunused-variable]

In file included from vpu_io.c:35:0:

vpu_io.c: At top level:

vpu_util.h:199:2: warning: 'EXIF_TAG' defined but not used [-Wunused-variable]

In file included from /home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/include/linux/pxp_dma.h:22:0,

                 from pxp_lib.h:19,

                 from pxp_lib.c:25:

/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/include/linux/types.h:13:2: warning: #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders" [-Wcpp]

pxp_lib.c: In function 'pxp_get_phymem':

pxp_lib.c:141:2: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'dma_addr_t' [-Wformat]

In file included from vpu_gdi.c:15:0:

vpu_util.h:199:2: warning: 'EXIF_TAG' defined but not used [-Wunused-variable]

In file included from /home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/include/linux/videodev2.h:66:0,

                 from mxc_ipu_hl_lib_dummy.c:40:

/home/bruno/BSP/BSP-Phytec-phyFLEX-i.MX6-PD12.0.3/platform-mx6/build-target/kernel-header-3.0.35/include/linux/types.h:13:2: warning: #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders" [-Wcpp]

vpu_util.c: In function 'SetParaSet':

vpu_util.c:791:11: warning: variable 'pDecInfo' set but not used [-Wunused-but-set-variable]

vpu_util.c: In function 'ParseJFIF':

vpu_util.c:2400:6: warning: unused variable 'pal' [-Wunused-variable]

In file included from vpu_util.c:20:0:

vpu_util.c: At top level:

vpu_util.h:199:2: warning: 'EXIF_TAG' defined but not used [-Wunused-variable]

arm-cortexa9-linux-gnueabihf-gcc -shared -nostartfiles -Wl,-soname,libipu.so.0 -o libipu.so.0 mxc_ipu_hl_lib_dummy.o -lpthread

vpu_lib.c: In function 'vpu_EncGetOutputInfo':

vpu_lib.c:1856:22: warning: variable 'address' set but not used [-Wunused-but-set-variable]

vpu_lib.c:1876:22: warning: variable 'address' set but not used [-Wunused-but-set-variable]

vpu_lib.c:1897:22: warning: variable 'address' set but not used [-Wunused-but-set-variable]

vpu_lib.c: In function 'vpu_EncGiveCommand':

vpu_lib.c:2114:8: warning: variable 'EncPicX' set but not used [-Wunused-but-set-variable]

vpu_lib.c: In function 'vpu_DecOpen':

vpu_lib.c:2437:15: warning: unused variable 'i' [-Wunused-variable]

vpu_lib.c: In function 'vpu_DecSetEscSeqInit':

vpu_lib.c:2712:11: warning: variable 'pDecInfo' set but not used [-Wunused-but-set-variable]

vpu_lib.c: In function 'vpu_DecUpdateBitstreamBuffer':

vpu_lib.c:3479:2: warning: format '%d' expects argument of type 'int', but argument 4 has type 'Uint32' [-Wformat]

vpu_lib.c: In function 'vpu_DecGetOutputInfo':

vpu_lib.c:4256:31: warning: variable 'address' set but not used [-Wunused-but-set-variable]

vpu_lib.c:4284:31: warning: variable 'address' set but not used [-Wunused-but-set-variable]

vpu_lib.c:4318:31: warning: variable 'address' set but not used [-Wunused-but-set-variable]

vpu_lib.c:4026:18: warning: variable 'paraBuffer' set but not used [-Wunused-but-set-variable]

vpu_lib.c: In function 'SaveGetEncodeHeader':

vpu_lib.c:4857:8: warning: variable 'n' set but not used [-Wunused-but-set-variable]

In file included from vpu_lib.c:26:0:

vpu_lib.c: At top level:

vpu_util.h:199:2: warning: 'EXIF_TAG' defined but not used [-Wunused-variable]

arm-cortexa9-linux-gnueabihf-gcc -shared -nostartfiles -Wl,-soname,libpxp.so.0 pxp_lib.o -o libpxp.so.0

arm-cortexa9-linux-gnueabihf-ar -rc libpxp.a  pxp_lib.o

../sahara2/fsl_shw_keystore.c:427:1: warning: no previous prototype for 'keystore_load_slot' [-Wmissing-prototypes]

arm-cortexa9-linux-gnueabihf-gcc -shared -nostartfiles -Wl,-soname,libfsl_shw.so.0 -o libfsl_shw.so.0 fsl_shw_rand.o fsl_shw_hash.o fsl_shw_sym.o fsl_shw_user.o fsl_shw_keystore.o fsl_shw_auth.o fsl_shw_hmac.o fsl_shw_wrap.o

arm-cortexa9-linux-gnueabihf-ar libfsl_shw.a fsl_shw_rand.o fsl_shw_hash.o fsl_shw_sym.o fsl_shw_user.o fsl_shw_keystore.o fsl_shw_auth.o fsl_shw_hmac.o fsl_shw_wrap.o

arm-cortexa9-linux-gnueabihf-ar: invalid option -- '_'

Usage: arm-cortexa9-linux-gnueabihf-ar [emulation options] [-]{dmpqrstx}[abcDfilMNoPsSTuvV] [member-name] [count] archive-file file...

       arm-cortexa9-linux-gnueabihf-ar -M [<mri-script]

commands:

  d            - delete file(s) from the archive

  m[ab]        - move file(s) in the archive

  p            - print file(s) found in the archive

  q[f]         - quick append file(s) to the archive

  r[ab][f][u]  - replace existing or insert new file(s) into the archive

  s            - act as ranlib

  t            - display contents of archive

  x[o]         - extract file(s) from the archive

command specific modifiers:

  [a]          - put file(s) after [member-name]

  [b]          - put file(s) before [member-name] (same as [i])

  [D]          - use zero for timestamps and uids/gids

  [N]          - use instance [count] of name

  [f]          - truncate inserted file names

  [P]          - use full path names when matching

  [o]          - preserve original dates

  [u]          - only replace files that are newer than current archive contents

generic modifiers:

  [c]          - do not warn if the library had to be created

  [s]          - create an archive index (cf. ranlib)

  [S]          - do not build a symbol table

  [T]          - make a thin archive

  [v]          - be verbose

  [V]          - display the version number

  @<file>      - read options from <file>

  --target=BFDNAME - specify the target object format as BFDNAME

emulation options:

  No emulation specific options

arm-cortexa9-linux-gnueabihf-ar: supported targets: elf32-littlearm elf32-bigarm elf32-little elf32-big srec symbolsrec verilog tekhex binary ihex

make[2]: *** [libfsl_shw.a] Error 1


0 Kudos

781 Views
brunoceldran
Contributor I

I found the solution to my problem :

There was a mistake into the Makefile (into the rng folder) concerning AR : the "-crv" arguments to the function were given into the first line :

AR = ar -crv

...

$(LIBNAME).a: $(OBJS)

    $(AR) $@ $^


and it was not working.

I replaced :

AR = ar

and

$(LIBNAME).a: $(OBJS)

    $(AR) -crv $@ $^


And it's better.

0 Kudos