LTIB Build error

cancel
Showing results for 
Search instead for 
Did you mean: 

LTIB Build error

899 Views
Swamy
Contributor III

Hello,

I am new to building LTIB. I am trying to build LTIB for IMX53 and I am facing following error. I have selected mx53_loco, mfg firmware profile, imx-lib, libpng, freetype, zlib, gstreamer-fsl-plugins, fsl-mm-codec-libs,  in the package list...

 

When i compile i am getting this following error. Missing file. Please let me know where to locate?

 

make[1]: Entering directory `/home/lucid/ltib/rpm/BUILD/imx-lib-11.01.00/sahara2'
gcc -g -Wall -W -Wmissing-prototypes -Wstrict-prototypes -Wdeclaration-after-statement -fPIC -DSAHARA -DLINUX -I/home/lucid/ltib/rootfs/usr/src/linux/include -I/home/lucid/ltib/rpm/BUILD/imx-lib-11.01.00/../linux/drivers/mxc/security/rng/include -I/home/lucid/ltib/rpm/BUILD/imx-lib-11.01.00/../linux/drivers/mxc/security/sahara2/include -DCONFIG_ARCH_MX5  -DCONFIG_ARCH_MX5 -c -o fsl_shw_rand.o fsl_shw_rand.c
fsl_shw_rand.c:29:74: error: /home/lucid/ltib/rpm/BUILD/linux-2.6.35.3/include/mxc_sahara.h: No such file or directory
make[1]: *** [fsl_shw_rand.o] Error 1
make[1]: Leaving directory `/home/lucid/ltib/rpm/BUILD/imx-lib-11.01.00/sahara2'
make: *** [sahara2] Error 2
error: Bad exit status from /home/lucid/ltib/tmp/rpm-tmp.17665 (%build)


RPM build errors:
    Bad exit status from /home/lucid/ltib/tmp/rpm-tmp.17665 (%build)
Build time for imx-lib: 1 seconds

Failed building imx-lib

 

 

 

Thanks in advance

Swamy

Tags (1)
0 Kudos
4 Replies

58 Views
alexandreschneg
Contributor I

Hello,

I have got the same issue. I use an i.MX27 on APF27 board from Armadeus.

I have tried to delete the rng/ and sahara2 folders but the compilation stops here:

>>> imx-lib 11.09.01 Building

/usr/bin/make -j1 CC="/home/schnegg/Downloads/armadeus-trunk/buildroot/output/host/bin/ccache /home/schnegg/Downloads/armadeus-trunk/buildroot/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc" PLATFORM=IMX51 DIRS="sahara2 vpu ipu" CFLAGS="-fPIC -I/home/schnegg/Downloads/armadeus-trunk/buildroot/output/build/linux-2.6.29.6/drivers/mxc/security/sahara2/include -I/home/schnegg/Downloads/armadeus-trunk/buildroot/output/build/linux-2.6.29.6/include" INCLUDE="-I/home/schnegg/Downloads/armadeus-trunk/buildroot/output/build/linux-2.6.29.6/include" -C /home/schnegg/Downloads/armadeus-trunk/buildroot/output/build/imx-lib-11.09.01

make[2]: Entering directory `/home/schnegg/Downloads/armadeus-trunk/buildroot/output/build/imx-lib-11.09.01'

/usr/bin/make -C sahara2 all

make: Entering an unknown directory

make: *** sahara2: No such file or directory.  Stop.

make: Leaving an unknown directory

make[2]: *** [sahara2] Error 2

make[2]: Leaving directory `/home/schnegg/Downloads/armadeus-trunk/buildroot/output/build/imx-lib-11.09.01'

make[1]: *** [/home/schnegg/Downloads/armadeus-trunk/buildroot/output/build/imx-lib-11.09.01/.stamp_built] Error 2

make[1]: Leaving directory `/home/schnegg/Downloads/armadeus-trunk/buildroot'

make: *** [all] Error 2

Did anyone find a solution ?

Regards

Alexandre Schnegg

0 Kudos

58 Views
CarstenBahme
Contributor I

Hi Swamy,

did you manage to solve your problem? I ran into the same thing while building imx-lib for a tqma35 (an i.MX35-based CPU-module).

I can compile the package after removing rng and sahara2 (suggested here: http://irclogs.ubuntu.com/2011/06/23/%23kubuntu-devel.txt and here: http://boundarydevices.com/blogs/building-gstreamer-plugins-under-ubuntu ) from it but

now imx-lib won't install the results:

 

+ make PLATFORM=IMX35_TQMA35 DEST_DIR=/opt/ltib_iMX35/ltib/tmp/imx-lib//opt/freescale/rootfs/arm install
make -C sim install
make -C vpu install
make[1]: Entering directory `/opt/ltib_iMX35/ltib/rpm/BUILD/imx-lib-11.01.00/sim'
make[1]: Nothing to be done for `install'.
make[1]: Leaving directory `/opt/ltib_iMX35/ltib/rpm/BUILD/imx-lib-11.01.00/sim'
make -C pxp install
make[1]: Entering directory `/opt/ltib_iMX35/ltib/rpm/BUILD/imx-lib-11.01.00/vpu'
make[1]: Nothing to be done for `install'.
make[1]: Leaving directory `/opt/ltib_iMX35/ltib/rpm/BUILD/imx-lib-11.01.00/vpu'
make -C ipu install
make[1]: Entering directory `/opt/ltib_iMX35/ltib/rpm/BUILD/imx-lib-11.01.00/pxp'
make[1]: Nothing to be done for `install'.
make[1]: Leaving directory `/opt/ltib_iMX35/ltib/rpm/BUILD/imx-lib-11.01.00/pxp'
make[1]: Entering directory `/opt/ltib_iMX35/ltib/rpm/BUILD/imx-lib-11.01.00/ipu'
make -C screenlayer install
Not support platform, will not complile
make[1]: Leaving directory `/opt/ltib_iMX35/ltib/rpm/BUILD/imx-lib-11.01.00/ipu'
make[1]: Entering directory `/opt/ltib_iMX35/ltib/rpm/BUILD/imx-lib-11.01.00/screenlayer'
Not support platform, will not complile
make[1]: Leaving directory `/opt/ltib_iMX35/ltib/rpm/BUILD/imx-lib-11.01.00/screenlayer'
+ exit 0
Processing files: imx-lib-11.01.00-1
error: File not found by glob: /opt/ltib_iMX35/ltib/tmp/imx-lib/opt/freescale/rootfs/arm/*

RPM build errors:
File not found by glob: /opt/ltib_iMX35/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: Tue Nov 22 18:03:12 2011
Ended: Tue Nov 22 18:03:22 2011
Elapsed: 10 seconds

These packages failed to build:
imx-lib

0 Kudos

58 Views
abdulrazak
Contributor I

Hi Carsten,

I am running into the same issue that you have faced. Were you able to solve this issue??

Please let me know. also were u able to compile gstreamer package for I.mx35??

Thanks,

0 Kudos

58 Views
LilyZhang
Contributor I
Please build kernel firstly and ensure the relative header files are installed into rootfs
0 Kudos