Exporting and Populating the SDK toolchain in 4.19-warrior for iMX8MM EVK Fails with Error

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Exporting and Populating the SDK toolchain in 4.19-warrior for iMX8MM EVK Fails with Error

2,666 次查看
sreedhar_appala
Contributor IV

Hi,

I have downloaded the Yocto distribution, i have built the distribution by executing the below commands

 

DISTRO=fsl-imx-xwayland MACHINE=imx8mmevk source fsl-setup-release.sh -b build-xwayland

bitbake imx-image-multimedia

 

Build Configuration:
BB_VERSION = "1.42.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-16.04"
TARGET_SYS = "aarch64-poky-linux"
MACHINE = "imx8mmevk"
DISTRO = "fsl-imx-xwayland"
DISTRO_VERSION = "4.19-warrior"
TUNE_FEATURES = "aarch64"
TARGET_FPU = ""

For  building the application in standalone environment,  I tried to extract the SDK toolchain using the below command:

DISTRO=fsl-imx-xwayland MACHINE=imx8mmevk bitbake imx-image-multimedia -c populate_sdk

instead of core-image-minimal i tried imx-image-multimedia. I am getting errors. i have attached the complete error log as an attachment. below are the last few lines of error messsage:

combine.o: In function `recog_for_combine_1(rtx_def**, rtx_insn*, rtx_def**)':
combine.c:(.text+0x1f4d): undefined reference to `add_clobbers(rtx_def*, int)'
tree-vect-patterns.o: In function `vect_pattern_recog_1(vect_recog_func*, gimple_stmt_iterator, vec<gimple*, va_heap, vl_ptr>*) [clone .isra.65]':
tree-vect-patterns.c:(.text+0xcc3): undefined reference to `insn_data'
collect2: error: ld returned 1 exit status
../../../../../../../work-shared/gcc-8.3.0-r0/gcc-8.3.0/gcc/c/Make-lang.in:85: recipe for target 'cc1' failed
make[1]: *** [cc1] Error 1
collect2: error: ld returned 1 exit status
../../../../../../../work-shared/gcc-8.3.0-r0/gcc-8.3.0/gcc/lto/Make-lang.in:81: recipe for target 'lto1' failed
make[1]: *** [lto1] Error 1
make[1]: Leaving directory '/home/ubuntu/workspace/imx-yocto-bsp/build-xwayland/tmp/work/x86_64-linux/gcc-crosssdk-x86_64-pokysdk-linux/8.3.0-r0/gcc-8.3.0/build.x86_64-linux.x86_64-pokysdk-linux/gcc'
Makefile:4279: recipe for target 'all-gcc' failed
make: *** [all-gcc] 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/ubuntu/workspace/imx-yocto-bsp/build-xwayland/tmp/work/x86_64-linux/gcc-crosssdk-x86_64-pokysdk-linux/8.3.0-r0/temp/log.do_compile.14938)

Please let me know how to resolve this error.

Thank you, Sreedhar

0 项奖励
回复
3 回复数

1,456 次查看
thompson
Contributor I

Hi,

I had the same issue. I could solve it by cleaning the gcc recipe before rebuilding, try:

 

DISTRO=fsl-imx-xwayland MACHINE=imx8mmevk source fsl-setup-release.sh -b build-xwayland

bitbake -c clean gcc
bitbake gcc

 

If this has been successfull you can try again:

 

bitbake imx-image-multimedia
DISTRO=fsl-imx-xwayland MACHINE=imx8mmevk bitbake imx-image-multimedia -c populate_sdk

 

Cheers!

 

 

0 项奖励
回复

2,582 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello Sreedhar,

The populate_sdk option extracts the toolchain for the configuration of the distro, machine and image selected. For building the bootloader and kernel, the core-image-minimal alternative should be enough. But it won’t include libraries related to graphics.

 

If you would be working with qt5, for example, you would need to use the imx-image-full image. I think your image has a problem with the compiler.

Regards

0 项奖励
回复

2,582 次查看
sreedhar_appala
Contributor IV

Hi Bio_TICFSL,

Thank you for the reply.

GCC version on the build system is:

ubuntu@IN:~/workspace/imx-yocto-bsp/build-xwayland$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.5.0-12ubuntu1~16.04' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 5.5.0 20171010 (Ubuntu 5.5.0-12ubuntu1~16.04)

Could you please suggest, what i am missing and any thing to upgrade or install dependencies.

Thank you,

Sreedhar

0 项奖励
回复