FSL Community BSP: error during image genration

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

FSL Community BSP: error during image genration

1,970 Views
fabio_poiatti
Contributor III

I tried to generate a BSP image from the instruction found here:

GitHub - Freescale/fsl-community-bsp-platform: BSP platform manifest 

but I have some problem .... any suggestions?

thanks

Build Configuration:
BB_VERSION = "1.40.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "arm-poky-linux-gnueabi"
MACHINE = "imx6ullevk"
DISTRO = "poky"
DISTRO_VERSION = "2.6.2"
TUNE_FEATURES = "arm armv7ve vfp thumb neon callconvention-hard cortexa7"
TARGET_FPU = "hard"
meta
meta-poky = "HEAD:faeb366bc3eb322f5f203cfe08dc4cf529a822e9"
meta-oe
meta-multimedia = "HEAD:4cd3a39f22a2712bfa8fc657d09fe2c7765a4005"
meta-freescale = "HEAD:aa710b8af81ca103903d8b66c227589510e2416f"
meta-freescale-3rdparty = "HEAD:98cbd732cf3103fa61e9de4300c686eaef4461b2"
meta-freescale-distro = "HEAD:ef7e7ec8141c5099ba87c766108f698b9cc2e9a0"

Initialising tasks: 100% |##################################################################| Time: 0:00:03
Sstate summary: Wanted 414 Found 0 Missed 414 Current 754 (0% match, 64% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: imx-lib-1_5.8+AUTOINC+3f777974c0-r0 do_compile: oe_runmake failed
ERROR: imx-lib-1_5.8+AUTOINC+3f777974c0-r0 do_compile: Function failed: do_compile (log file is located at /home/fabio/fsl-community-bsp/build/tmp/work/cortexa7t2hf-neon-mx6ul-poky-linux-gnueabi/imx-lib/1_5.8+AUTOINC+3f777974c0-r0/temp/log.do_compile.14454)
ERROR: Logfile of failure stored in: /home/fabio/fsl-community-bsp/build/tmp/work/cortexa7t2hf-neon-mx6ul-poky-linux-gnueabi/imx-lib/1_5.8+AUTOINC+3f777974c0-r0/temp/log.do_compile.14454
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 1 CROSS_COMPILE=arm-poky-linux-gnueabi- PLATFORM= INCLUDE=-I/home/fabio/fsl-community-bsp/build/tmp/work/cortexa7t2hf-neon-mx6ul-poky-linux-gnueabi/imx-lib/1_5.8+AUTOINC+3f777974c0-r0/recipe-sysroot/usr/include/imx all
| make -C pxp all
| make[1]: Entering directory '/home/fabio/fsl-community-bsp/build/tmp/work/cortexa7t2hf-neon-mx6ul-poky-linux-gnueabi/imx-lib/1_5.8+AUTOINC+3f777974c0-r0/git/pxp'
| arm-poky-linux-gnueabi-gcc -march=armv7ve -mthumb -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a7 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/fabio/fsl-community-bsp/build/tmp/work/cortexa7t2hf-neon-mx6ul-poky-linux-gnueabi/imx-lib/1_5.8+AUTOINC+3f777974c0-r0/recipe-sysroot -D -I/home/fabio/fsl-community-bsp/build/tmp/work/cortexa7t2hf-neon-mx6ul-poky-linux-gnueabi/imx-lib/1_5.8+AUTOINC+3f777974c0-r0/recipe-sysroot/usr/include/imx -Wall -fPIC -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/fabio/fsl-community-bsp/build/tmp/work/cortexa7t2hf-neon-mx6ul-poky-linux-gnueabi/imx-lib/1_5.8+AUTOINC+3f777974c0-r0=/usr/src/debug/imx-lib/1_5.8+AUTOINC+3f777974c0-r0 -fdebug-prefix-map=/home/fabio/fsl-community-bsp/build/tmp/work/cortexa7t2hf-neon-mx6ul-poky-linux-gnueabi/imx-lib/1_5.8+AUTOINC+3f777974c0-r0/recipe-sysroot= -fdebug-prefix-map=/home/fabio/fsl-community-bsp/build/tmp/work/cortexa7t2hf-neon-mx6ul-poky-linux-gnueabi/imx-lib/1_5.8+AUTOINC+3f777974c0-r0/recipe-sysroot-native= -c pxp_lib.c -o pxp_lib.o
| <command-line>: error: macro names must be identifiers
| In file included from pxp_lib.c:26:
| pxp_lib.h:19:10: fatal error: linux/pxp_device.h: No such file or directory
| #include <linux/pxp_device.h>
| ^~~~~~~~~~~~~~~~~~~~
| compilation terminated.
| Makefile:30: recipe for target 'pxp_lib.o' failed
| make[1]: *** [pxp_lib.o] Error 1
| make[1]: Leaving directory '/home/fabio/fsl-community-bsp/build/tmp/work/cortexa7t2hf-neon-mx6ul-poky-linux-gnueabi/imx-lib/1_5.8+AUTOINC+3f777974c0-r0/git/pxp'
| Makefile:17: recipe for target 'pxp' failed
| make: *** [pxp] 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/fabio/fsl-community-bsp/build/tmp/work/cortexa7t2hf-neon-mx6ul-poky-linux-gnueabi/imx-lib/1_5.8+AUTOINC+3f777974c0-r0/temp/log.do_compile.14454)
ERROR: Task (/home/fabio/fsl-community-bsp/sources/meta-freescale/recipes-bsp/imx-lib/imx-lib_git.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1995 tasks of which 1987 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/fabio/fsl-community-bsp/sources/meta-freescale/recipes-bsp/imx-lib/imx-lib_git.bb:do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

0 Kudos
4 Replies

1,635 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Fabio Mario Poiatti,

Are you using Ubuntu 18.04 in both cases? I would recommend using Ubuntu 16.04 as it’s a more tested configuration for the Community BSP.

You are not mentioning which branch you are currently using but it seems you are using Thud. I would recommend using Rocko which has been around for a little longer and has more fixes. You may also try Sumo although I could go to Rocko for now.

I hope this helps!

Regards,

0 Kudos

1,635 Views
fabio_poiatti
Contributor III

The problem seems to be related to imx-test libray ...

With Ubuntu 18.04 LTS I have the sumo branch working with poky and fslc-x11 distro ... both are working (which is better? I'm little confused about the distro ..)

Adding in conf/local.con the line 

IMAGE_INSTALL_append+="imx-test"

the bitbake command give to me a similar error as thud branch

fabio@fabio-HP:~/imx-yocto-bsp/build$ bitbake core-image-base
Parsing recipes: 100% |#########################################################################################################| Time: 0:01:34
Parsing of 2547 .bb files complete (0 cached, 2547 parsed). 3463 targets, 250 skipped, 5 masked, 0 errors.
Removing 5 recipes from the allarch sysroot: 100% |#############################################################################| Time: 0:00:02
Removing 157 recipes from the imx6ullevk sysroot: 100% |########################################################################| Time: 0:01:51
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "1.38.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "arm-fslc-linux-gnueabi"
MACHINE = "imx6ullevk"
DISTRO = "fslc-x11"
DISTRO_VERSION = "2.5"
TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard"
TARGET_FPU = "hard"
meta
meta-poky = "HEAD:64a257fa22126c4a40ff7e03424a404e360ebe1e"
meta-oe
meta-multimedia = "HEAD:2bb21ef27c4b0c9d52d30b3b2c5a0160fd02b966"
meta-freescale = "HEAD:407c6cf408969445031a492e2d25e0e2749582ea"
meta-freescale-3rdparty = "HEAD:88a29631809d1af0df618245430db29f2a7012b5"
meta-freescale-distro = "HEAD:f7e2216e93aff14ac32728a13637a48df436b7f4"
meta-bsp
meta-sdk = "HEAD:52ac01eee49b9f2f3ffec4c4037b7928d968115b"
meta-browser = "HEAD:75640e14e325479c076b6272b646be7a239c18aa"
meta-gnome
meta-networking
meta-python
meta-filesystems = "HEAD:2bb21ef27c4b0c9d52d30b3b2c5a0160fd02b966"
meta-qt5 = "HEAD:d4e7f73d04e8448d326b6f89908701e304e37d65"

Initialising tasks: 100% |######################################################################################################| Time: 0:00:02
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: libdrm-2.4.91.imx-r0 do_patch:
Some of the context lines in patches were ignored. This can lead to incorrectly applied patches.
The context lines in the patches can be updated with devtool:

devtool modify <recipe>
devtool finish --force-patch-refresh <recipe> <layer_path>

Then the updated patches and the source tree (in devtool's workspace)
should be reviewed to make sure the patches apply in the correct place
and don't introduce duplicate lines (which can, and does happen
when some of the context is ignored). Further information:
http://lists.openembedded.org/pipermail/openembedded-core/2018-March/148675.html
https://bugzilla.yoctoproject.org/show_bug.cgi?id=10450
Details:
Applying patch 0001-configure.ac-Allow-explicit-enabling-of-cunit-tests.patch
patching file configure.ac
Hunk #1 succeeded at 168 (offset 31 lines).
Hunk #2 succeeded at 422 with fuzz 1 (offset 44 lines).
Hunk #3 succeeded at 447 with fuzz 2 (offset 42 lines).

Now at patch 0001-configure.ac-Allow-explicit-enabling-of-cunit-tests.patch
ERROR: imx-lib-1_git-r0 do_compile: oe_runmake failed
ERROR: imx-lib-1_git-r0 do_compile: Function failed: do_compile (log file is located at /home/fabio/imx-yocto-bsp/build/tmp/work/imx6ullevk-fslc-linux-gnueabi/imx-lib/1_git-r0/temp/log.do_compile.28971)
ERROR: Logfile of failure stored in: /home/fabio/imx-yocto-bsp/build/tmp/work/imx6ullevk-fslc-linux-gnueabi/imx-lib/1_git-r0/temp/log.do_compile.28971
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 1 CROSS_COMPILE=arm-fslc-linux-gnueabi- PLATFORM= INCLUDE=-I/home/fabio/imx-yocto-bsp/build/tmp/work-shared/imx6ullevk/kernel-source/include/uapi -I/home/fabio/imx-yocto-bsp/build/tmp/work-shared/imx6ullevk/kernel-source/include all
| make -C pxp all
| make[1]: Entering directory '/home/fabio/imx-yocto-bsp/build/tmp/work/imx6ullevk-fslc-linux-gnueabi/imx-lib/1_git-r0/git/pxp'
| arm-fslc-linux-gnueabi-gcc -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard --sysroot=/home/fabio/imx-yocto-bsp/build/tmp/work/imx6ullevk-fslc-linux-gnueabi/imx-lib/1_git-r0/recipe-sysroot -D -I/home/fabio/imx-yocto-bsp/build/tmp/work-shared/imx6ullevk/kernel-source/include/uapi -I/home/fabio/imx-yocto-bsp/build/tmp/work-shared/imx6ullevk/kernel-source/include -Wall -fPIC -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/fabio/imx-yocto-bsp/build/tmp/work/imx6ullevk-fslc-linux-gnueabi/imx-lib/1_git-r0=/usr/src/debug/imx-lib/1_git-r0 -fdebug-prefix-map=/home/fabio/imx-yocto-bsp/build/tmp/work/imx6ullevk-fslc-linux-gnueabi/imx-lib/1_git-r0/recipe-sysroot= -fdebug-prefix-map=/home/fabio/imx-yocto-bsp/build/tmp/work/imx6ullevk-fslc-linux-gnueabi/imx-lib/1_git-r0/recipe-sysroot-native= -c pxp_lib.c -o pxp_lib.o
| <command-line>:0:1: error: macro names must be identifiers
| In file included from /home/fabio/imx-yocto-bsp/build/tmp/work-shared/imx6ullevk/kernel-source/include/linux/radix-tree.h:24:0,
| from /home/fabio/imx-yocto-bsp/build/tmp/work-shared/imx6ullevk/kernel-source/include/linux/idr.h:15,
| from /home/fabio/imx-yocto-bsp/build/tmp/work-shared/imx6ullevk/kernel-source/include/linux/pxp_device.h:22,
| from pxp_lib.h:19,
| from pxp_lib.c:26:
| /home/fabio/imx-yocto-bsp/build/tmp/work-shared/imx6ullevk/kernel-source/include/linux/bitops.h:38:10: fatal error: asm/bitops.h: No such file or directory
| #include <asm/bitops.h>
| ^~~~~~~~~~~~~~
| compilation terminated.
| Makefile:30: recipe for target 'pxp_lib.o' failed
| make[1]: *** [pxp_lib.o] Error 1
| make[1]: Leaving directory '/home/fabio/imx-yocto-bsp/build/tmp/work/imx6ullevk-fslc-linux-gnueabi/imx-lib/1_git-r0/git/pxp'
| Makefile:17: recipe for target 'pxp' failed
| make: *** [pxp] 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/fabio/imx-yocto-bsp/build/tmp/work/imx6ullevk-fslc-linux-gnueabi/imx-lib/1_git-r0/temp/log.do_compile.28971)
ERROR: Task (/home/fabio/imx-yocto-bsp/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-bsp/imx-lib/imx-lib_git.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2879 tasks of which 1182 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory

Summary: 1 task failed:
/home/fabio/imx-yocto-bsp/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-bsp/imx-lib/imx-lib_git.bb:do_compile
Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

0 Kudos

1,635 Views
fabio_poiatti
Contributor III

Yes,

your information are very usefull.

I'm working with Ubuntu 18.04 with Thud branch ...... Sumo is already working.

I will try Ubuntu 16.04 with last Thud branch

Thanks

Fabio

0 Kudos

1,635 Views
fabio_poiatti
Contributor III

another build process from scratch generate this error:

Parsing recipes: 100% |#####################################################################| Time: 0:01:03
Parsing of 1704 .bb files complete (0 cached, 1704 parsed). 2368 targets, 220 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "1.40.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-18.04"
TARGET_SYS = "arm-poky-linux-gnueabi"
MACHINE = "imx6ullevk"
DISTRO = "poky"
DISTRO_VERSION = "2.6.2"
TUNE_FEATURES = "arm armv7ve vfp thumb neon callconvention-hard cortexa7"
TARGET_FPU = "hard"
meta
meta-poky = "HEAD:faeb366bc3eb322f5f203cfe08dc4cf529a822e9"
meta-oe
meta-multimedia = "HEAD:4cd3a39f22a2712bfa8fc657d09fe2c7765a4005"
meta-freescale = "HEAD:aa710b8af81ca103903d8b66c227589510e2416f"
meta-freescale-3rdparty = "HEAD:98cbd732cf3103fa61e9de4300c686eaef4461b2"
meta-freescale-distro = "HEAD:ef7e7ec8141c5099ba87c766108f698b9cc2e9a0"

Initialising tasks: 100% |##################################################################| Time: 0:00:05
Sstate summary: Wanted 1138 Found 0 Missed 1138 Current 0 (0% match, 0% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: u-boot-imx-2017.03-r0 do_compile: oe_runmake failed
ERROR: u-boot-imx-2017.03-r0 do_compile: Function failed: do_compile (log file is located at /home/fabio/fsl-community-bsp/build/tmp/work/imx6ullevk-poky-linux-gnueabi/u-boot-imx/2017.03-r0/temp/log.do_compile.2640)
ERROR: Logfile of failure stored in: /home/fabio/fsl-community-bsp/build/tmp/work/imx6ullevk-poky-linux-gnueabi/u-boot-imx/2017.03-r0/temp/log.do_compile.2640
Log data follows:
| DEBUG: Executing shell function do_compile

...

...

...

...

| gcc -isystem/home/fabio/fsl-community-bsp/build/tmp/work/imx6ullevk-poky-linux-gnueabi/u-boot-imx/2017.03-r0/recipe-sysroot-native/usr/include -O2 -pipe -L/home/fabio/fsl-community-bsp/build/tmp/work/imx6ullevk-poky-linux-gnueabi/u-boot-imx/2017.03-r0/recipe-sysroot-native/usr/lib -L/home/fabio/fsl-community-bsp/build/tmp/work/imx6ullevk-poky-linux-gnueabi/u-boot-imx/2017.03-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/home/fabio/fsl-community-bsp/build/tmp/work/imx6ullevk-poky-linux-gnueabi/u-boot-imx/2017.03-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/fabio/fsl-community-bsp/build/tmp/work/imx6ullevk-poky-linux-gnueabi/u-boot-imx/2017.03-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/fabio/fsl-community-bsp/build/tmp/work/imx6ullevk-poky-linux-gnueabi/u-boot-imx/2017.03-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/fabio/fsl-community-bsp/build/tmp/work/imx6ullevk-poky-linux-gnueabi/u-boot-imx/2017.03-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/fabio/fsl-community-bsp/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 -o tools/mkimage tools/aisimage.o tools/atmelimage.o tools/common/bootm.o tools/lib/crc32.o tools/default_image.o tools/lib/fdtdec_common.o tools/lib/fdtdec.o tools/fit_common.o tools/fit_image.o tools/common/image-fit.o tools/image-host.o tools/common/image.o tools/imagetool.o tools/imximage.o tools/kwbimage.o tools/lib/md5.o tools/lpc32xximage.o tools/mxsimage.o tools/omapimage.o tools/os_support.o tools/pblimage.o tools/pbl_crc32.o tools/vybridimage.o tools/lib/rc4.o tools/rkcommon.o tools/rkimage.o tools/rksd.o tools/rkspi.o tools/socfpgaimage.o tools/lib/sha1.o tools/lib/sha256.o tools/common/hash.o tools/ublimage.o tools/zynqimage.o tools/zynqmpimage.o tools/lib/libfdt/fdt.o tools/lib/libfdt/fdt_ro.o tools/lib/libfdt/fdt_rw.o tools/lib/libfdt/fdt_strerror.o tools/lib/libfdt/fdt_wip.o tools/lib/libfdt/fdt_region.o tools/lib/libfdt/fdt_sw.o tools/gpimage.o tools/gpimage-common.o tools/mkimage.o
| unable to execute 'x86_64-linux-gnu-gcc': No such file or directory
| error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
| /home/fabio/fsl-community-bsp/build/tmp/work/imx6ullevk-poky-linux-gnueabi/u-boot-imx/2017.03-r0/git/tools/Makefile:123: recipe for target 'tools/_libfdt.so' failed
| make[2]: *** [tools/_libfdt.so] Error 1
| ERROR: oe_runmake failed
| /home/fabio/fsl-community-bsp/build/tmp/work/imx6ullevk-poky-linux-gnueabi/u-boot-imx/2017.03-r0/git/Makefile:1257: recipe for target 'tools' failed
| make[1]: *** [tools] Error 2
| make[1]: Leaving directory '/home/fabio/fsl-community-bsp/build/tmp/work/imx6ullevk-poky-linux-gnueabi/u-boot-imx/2017.03-r0/build/mx6ull_14x14_evk_config'
| Makefile:150: recipe for target 'sub-make' failed
| make: *** [sub-make] Error 2
| make: Leaving directory '/home/fabio/fsl-community-bsp/build/tmp/work/imx6ullevk-poky-linux-gnueabi/u-boot-imx/2017.03-r0/git'
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/fabio/fsl-community-bsp/build/tmp/work/imx6ullevk-poky-linux-gnueabi/u-boot-imx/2017.03-r0/temp/log.do_compile.2640)
ERROR: Task (/home/fabio/fsl-community-bsp/sources/meta-freescale/recipes-bsp/u-boot/u-boot-imx_2017.03.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2176 tasks of which 0 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/fabio/fsl-community-bsp/sources/meta-freescale/recipes-bsp/u-boot/u-boot-imx_2017.03.bb:do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

0 Kudos