imx6qsabresd yocto project building errors???

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

imx6qsabresd yocto project building errors???

3,327 Views
turkersezgin
Contributor III

Hello,

I am trying to generate an image from yocto project for my imx6qsabresd.

I want to run my QT5 app on this board.

I followed Freescale Yocto Project User's Guide but I couldn't generate "core-image-minimal" there is an error...

I followed this document: building linux 3.14.28 fsl-image-gui with opencv using yocto on imx6q  so, there is an error.

Also, I tried this with krogoth and morty branches, there are still an error...

This is my local.conf file:

MACHINE ??= 'imx6qsabresd'
DISTRO ?= 'fsl-imx-x11'
PACKAGE_CLASSES ?= "package_rpm"
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
USER_CLASSES ?= "buildstats image-mklibs"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS = "\
    STOPTASKS,${TMPDIR},1G,100K \
    STOPTASKS,${DL_DIR},1G,100K \
    STOPTASKS,${SSTATE_DIR},1G,100K \
    STOPTASKS,/tmp,100M,100K \
    ABORT,${TMPDIR},100M,1K \
    ABORT,${DL_DIR},100M,1K \
    ABORT,${SSTATE_DIR},100M,1K \
    ABORT,/tmp,10M,1K"
PACKAGECONFIG_append_pn-qemu-native = " sdl"
PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"
CONF_VERSION = "1"

DL_DIR ?= "${BSPDIR}/downloads/"
ACCEPT_FSL_EULA = "1"

Last time, I got this error wwith krogoth;

NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: perl-native-5.22.1-r0 do_compile: oe_runmake failed
ERROR: perl-native-5.22.1-r0 do_compile: Function failed: do_compile (log file is located at /home/mikrostar/fsl-f/build/tmp/work/x86_64-linux/perl-native/5.22.1-r0/temp/log.do_compile.13075)
ERROR: Logfile of failure stored in: /home/mikrostar/fsl-f/build/tmp/work/x86_64-linux/perl-native/5.22.1-r0/temp/log.do_compile.13075
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 4 -e MAKEFLAGS=
| gcc  -L/home/mikrostar/fsl-f/build/tmp/sysroots/x86_64-linux/usr/lib -L/home/mikrostar/fsl-f/build/tmp/sysroots/x86_64-linux/lib -Wl,-rpath-link,/home/mikrostar/fsl-f/build/tmp/sysroots/x86_64-linux/usr/lib -Wl,-rpath-link,/home/mikrostar/fsl-f/build/tmp/sysroots/x86_64-linux/lib -Wl,-rpath,/home/mikrostar/fsl-f/build/tmp/sysroots/x86_64-linux/usr/lib -Wl,-rpath,/home/mikrostar/fsl-f/build/tmp/sysroots/x86_64-linux/lib -Wl,-O1 -fstack-protector -L/usr/local/lib -o miniperl \
|         perlmini.o opmini.o miniperlmain.o  gv.o toke.o perly.o pad.o regcomp.o dump.o util.o mg.o reentr.o mro_core.o keywords.o hv.o av.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o universal.o globals.o perlio.o perlapi.o numeric.o mathoms.o locale.o pp_pack.o pp_sort.o caretx.o   -lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
| opmini.o: In function `Perl_ck_rvconst':
| opmini.c:(.text+0x63e0): undefined reference to `_Static_assert'
| opmini.o: In function `Perl_rpeep':
| opmini.c:(.text+0xe49b): undefined reference to `_Static_assert'
| toke.o: In function `Perl_lex_start':
| toke.c:(.text+0x9593): undefined reference to `_Static_assert'
| pp_hot.o: In function `Perl_pp_padrange':
| pp_hot.c:(.text+0x533b): undefined reference to `_Static_assert'
| sv.o: In function `Perl_newRV_noinc':
| sv.c:(.text+0x183b): undefined reference to `_Static_assert'
| sv.o:sv.c:(.text+0xace8): more undefined references to `_Static_assert' follow
| collect2: ld returned 1 exit status
| make: *** [lib/buildcustomize.pl] Error 1
| WARNING: /home/mikrostar/fsl-f/build/tmp/work/x86_64-linux/perl-native/5.22.1-r0/temp/run.do_compile.13075:1 exit 1 from 'exit 1'
|
ERROR: oe_runmake failed
| ERROR: Function failed: do_compile (log file is located at /home/mikrostar/fsl-f/build/tmp/work/x86_64-linux/perl-native/5.22.1-r0/temp/log.do_compile.13075)

ERROR: Task 3063 (/home/mikrostar/fsl-f/sources/openembedded-core/meta/recipes-devtools/perl/perl-native_5.22.1.bb, do_compile) failed with exit code '1'

NOTE: Tasks Summary: Attempted 1179 tasks of which 1122 didn't need to be rerun and 1 failed.
Waiting for 0 running tasks to finish:

Summary: 1 task failed:
  /home/mikrostar/fsl-f/sources/openembedded-core/meta/recipes-devtools/perl/perl-native_5.22.1.bb, do_compile
Summary: There were 2 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

How can I generate an image for imx6qsabresd?

Could you suggest me something?

5 Replies

1,814 Views
turkersezgin
Contributor III

I got this error now.

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

Build Configuration:
BB_VERSION        = "1.30.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-14.04"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "imx6qsabresd"
DISTRO            = "fsl-imx-x11"
DISTRO_VERSION    = "4.1.30-7ULP_alpha"
TUNE_FEATURES     = "arm armv7a vfp  neon        callconvention-hard        cortexa9"
TARGET_FPU        = "hard"
meta              
meta-yocto        = "HEAD:7e11efef59c3102948d3eafe5b136c493deee3b5"
meta-oe           
meta-multimedia   = "HEAD:247b1267bbe95719cd4877d2d3cfbaf2a2f4865a"
meta-fsl-arm      = "HEAD:a6b95df4d7ab122f1e5b7632e2273b75f853af4b"
meta-fsl-arm-extra = "HEAD:99649b72f60fda4a2cfb2333791fe0f92997fa9e"
meta-fsl-demos    = "HEAD:a165068f8a0d1cf29aabe4b4053f28be1c2aa492"
meta-bsp          
meta-sdk          
meta-nxp-mx7ulp   = "HEAD:65e667a6bb344fc2d06386f34e9060d11705e796"
meta-browser      = "HEAD:ec4459a69ae6f12dc2317111b96c494ab24e6989"
meta-gnome        
meta-networking   
meta-python       
meta-filesystems  = "HEAD:247b1267bbe95719cd4877d2d3cfbaf2a2f4865a"
meta-qt5          = "HEAD:ccae79be69c5268df3b47e4e14cea0591c39a531"

NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: zlib-native-1.2.8-r0 do_fetch: Failed to fetch URL http://www.zlib.net/zlib-1.2.8.tar.xz, attempting MIRRORS if available
WARNING: pigz-native-2.3.3-r0 do_fetch: Failed to fetch URL http://zlib.net/pigz/pigz-2.3.3.tar.gz, attempting MIRRORS if available
WARNING: libpcre-native-8.38-r0 do_fetch: Failed to fetch URL ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.38.tar.bz2, attempting MIRRORS if available
WARNING: libpng-native-1.6.21-r0 do_fetch: Failed to fetch URL http://distfiles.gentoo.org/distfiles/libpng-1.6.21.tar.xz, attempting MIRRORS if available
WARNING: mesa-2_11.1.1-r0 do_fetch: Failed to fetch URL ftp://ftp.freedesktop.org/pub/mesa/11.1.1/mesa-11.1.1.tar.xz, attempting MIRRORS if available
WARNING: linux-imx-4.1.30-r0 do_fetch: Failed to fetch URL git://git.freescale.com/imx/linux-imx.git;protocol=git;branch=imx_4.1.30_7ulp_alpha, attempting MIRRORS if available
ERROR: linux-imx-4.1.30-r0 do_fetch: Fetcher failure: Fetch command failed with exit code 128, output:
Cloning into bare repository '/home/ms/fsl-release-bsp/downloads//git2/git.freescale.com.imx.linux-imx.git'...
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

ERROR: linux-imx-4.1.30-r0 do_fetch: Function failed: Fetcher failure for URL: 'git://git.freescale.com/imx/linux-imx.git;protocol=git;branch=imx_4.1.30_7ulp_alpha'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /home/ms/fsl-release-bsp/bld-x11/tmp/work/imx6qsabresd-poky-linux-gnueabi/linux-imx/4.1.30-r0/temp/log.do_fetch.3725
ERROR: Task 50 (/home/ms/fsl-release-bsp/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-kernel/linux/linux-imx_4.1.30.bb, do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1428 tasks of which 0 didn't need to be rerun and 1 failed.
Waiting for 0 running tasks to finish:

Summary: 1 task failed:
  /home/ms/fsl-release-bsp/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-kernel/linux/linux-imx_4.1.30.bb, do_fetch
Summary: There were 6 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

0 Kudos

1,814 Views
jimmychan
NXP TechSupport
NXP TechSupport

Attached is the Yocto user's guide, please follow it to build the BSP.

The steps like this:

$ repo init -u git://git.freescale.com/imx/fsl-arm-yocto-bsp.git -b imx-4.1-krogoth
$ repo sync

$ DISTRO=fsl-imx-x11 MACHINE=imx6qsabresd source fsl-setup-release.sh -b build-x11
$ bitbake fsl-image-qt5

0 Kudos

1,814 Views
vongocson
Contributor III

sory, i have problem

if i want to change QT version to 5.7.1 .Can you tell me how to do it?

0 Kudos

1,814 Views
jimmychan
NXP TechSupport
NXP TechSupport

I would suggest you to remove all the things then make a new folder to build the BSP again. Also, please download the latest BSP (L4.1.15_2.0.0). 

http://www.nxp.com/products/software-and-tools/software-development-tools/i.mx-software-and-tools/i.... 

Build the QT5 image.

>> bitbake fsl-image-qt5

1,814 Views
turkersezgin
Contributor III

Thanks for your reply.

I followed this document now -> fsl-arm-yocto-bsp.git - i.MX Linux BSP Release Yocto Project manifests 

Also I download this repo -> 4.1.30-7ulp_alpha release

repo init -u git://git.freescale.com/imx/fsl-arm-yocto-bsp.git -b imx-4.1-krogoth -m imx-4.1.30-7ulp_alpha.xml

I setup for X11

$: MACHINE=imx6qsabresd DISTRO=fsl-imx-x11 source ./fsl-setup-release.sh -b bld-x11

and then run this command;

$:bitbake fsl-image-qt5

Now it is running, I will write when it will be finish. thanks.
0 Kudos