Imx7 yocto build error

Hi,
We have our GTK application developed on our Colibri iMX6DL 512MB, but we are now planning to port to Colibri iMX7. As our application was developed by adding several layers in yocto, we need to add the same layers in OS of Colibri iMX7. While doing so, I am facing some issues while bitbake of Colibri iMX7 OS. The error that occurs after 99% completion is

ERROR: lxterminal-git-r0 do_compile: oe_runmake failed ERROR: lxterminal-git-r0 do_compile: Function failed: do_compile (log file is located at /home/nishanth/yocto/build/tmp-glibc/work/armv7at2hf-neon-angstrom-linux-gnueabi/lxterminal/git-r0/temp/log.do_compile.15504) ERROR: Logfile of failure stored in: /home/nishanth/yocto/build/tmp-glibc/work/armv7at2hf-neon-angstrom-linux-gnueabi/lxterminal/git-r0/temp/log.do_compile.15504 Log data follows: | DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'arm-32', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common'] | DEBUG: Executing shell function do_compile | NOTE: make -j 4 | ERROR: oe_runmake failed | make  all-recursive | make[1]: Entering directory '/home/nishanth/yocto/build/tmp-glibc/work/armv7at2hf-neon-angstrom-linux-gnueabi/lxterminal/git-r0/build' | Making all in src | make[2]: Entering directory '/home/nishanth/yocto/build/tmp-glibc/work/armv7at2hf-neon-angstrom-linux-gnueabi/lxterminal/git-r0/build/src' | make[2]: Nothing to be done for 'all'. | make[2]: Leaving directory '/home/nishanth/yocto/build/tmp-glibc/work/armv7at2hf-neon-angstrom-linux-gnueabi/lxterminal/git-r0/build/src' | Making all in po | make[2]: Entering directory '/home/nishanth/yocto/build/tmp-glibc/work/armv7at2hf-neon-angstrom-linux-gnueabi/lxterminal/git-r0/build/po' | make[2]: Nothing to be done for 'all'. | make[2]: Leaving directory '/home/nishanth/yocto/build/tmp-glibc/work/armv7at2hf-neon-angstrom-linux-gnueabi/lxterminal/git-r0/build/po' | Making all in data | make[2]: Entering directory '/home/nishanth/yocto/build/tmp-glibc/work/armv7at2hf-neon-angstrom-linux-gnueabi/lxterminal/git-r0/build/data' | make[2]: Nothing to be done for 'all'. | make[2]: Leaving directory '/home/nishanth/yocto/build/tmp-glibc/work/armv7at2hf-neon-angstrom-linux-gnueabi/lxterminal/git-r0/build/data' | Making all in man | make[2]: Entering directory '/home/nishanth/yocto/build/tmp-glibc/work/armv7at2hf-neon-angstrom-linux-gnueabi/lxterminal/git-r0/build/man' |  | Error: you need to run configure with '--enable-man' |        in order to regenerate man pages. |  | Makefile:535: recipe for target 'lxterminal.1' failed | make[2]: *** [lxterminal.1] Error 1 | make[2]: Leaving directory '/home/nishanth/yocto/build/tmp-glibc/work/armv7at2hf-neon-angstrom-linux-gnueabi/lxterminal/git-r0/build/man' | Makefile:398: recipe for target 'all-recursive' failed | make[1]: *** [all-recursive] Error 1 | make[1]: Leaving directory '/home/nishanth/yocto/build/tmp-glibc/work/armv7at2hf-neon-angstrom-linux-gnueabi/lxterminal/git-r0/build' | Makefile:339: recipe for target 'all' failed | make: *** [all] Error 2 | WARNING: exit code 1 from a shell command. | ERROR: Function failed: do_compile (log file is located at /home/nishanth/yocto/build/tmp-glibc/work/armv7at2hf-neon-angstrom-linux-gnueabi/lxterminal/git-r0/temp/log.do_compile.15504) ERROR: Task (/home/nishanth/yocto/build/../layers/meta-lxde/recipes-lxde/lxterminal/lxterminal_git.bb:do_compile) failed with exit code '1' NOTE: Tasks Summary: Attempted 7035 tasks of which 7034 didn't need to be rerun and 1 failed. NOTE: Writing buildhistory

Summary: 1 task failed:   /home/nishanth/yocto/build/../layers/meta-lxde/recipes-lxde/lxterminal/lxterminal_git.bb:do_compile Summary: There was 1 WARNING message shown. Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

I tried several times but the same error repeats. I have attached the log file.
I also have yocto build of iMX6 in my development PC.Will there be any issues if we keep both yocto build in the same PC?

Thanks for your time.
Regards,
S.Nishanth Kumar

Hi @nishanth1829

Which OpenEmbedded Repo are you using?

Could you share your local.conf, bblayers.conf and the recipe files?

I also have yocto build of iMX6 in my development PC.Will there be any issues if we keep both yocto build in the same PC?

I don’t understand your question. Usually you should be able to compile your application/image for whatever machine you want. The built application/image will be copied to the deploy folder.

Best regards,
Jaski

Hi @jaski.tx ,
Sorry if I am not clear. Actually I have a yocto build of iMX6 in a folder in my development PC and now I created a new folder and initialized repo in it and I did bitbake for iMX7.During bitbake, process was smooth till 99% but it failed after that showing an error that i mentioned in the question. Actually, I am yet to add any layers or recipes in the local.conf and bblayers.conf, I just tried to compile the OS provided my toradex without any changes. ie) I just did . export and the bitbake but I am getting error in this part itself.
So my question is ,

  1. Is the error due to the presence of yocto build of iMX6 in same PC ?
  2. Instead of a new folder, can I try to compile the yocto build of iMX7 in the same folder that has yocto build of iMX6?

Which OpenEmbedded Repo are you using?
I gave repo init with this version “Colibri_iMX7_LinuxImageV2.7Beta1_20170112”
Thanks for your time.
Regards,
S.Nishanth Kumar

HI @nishanth1829

I have a yocto build of iMX6 in a folder in my development PC and now I created a new folder and initialized repo in it and I did bitbake for iMX7

This is correct and should work. The only thing you might to pay attention is if you clone to a new directory, then you should not copy the files but really clone it through repo command and secondly you should open for separate builds separate terminals where the environment settings (exported variables) are valid for one specific build.

So my question is , 1. Is the error due to the presence of yocto build of iMX6 in same PC ?

I cannot say that but I don’t see two different folders appearing in the log. The folder /home/nishanth/yocto/build is new one for iMX7 or old one for iMX6.

  1. Instead of a new folder, can I try to compile the yocto build of iMX7 in the same folder that has yocto build of iMX6?

Yes, this is what we regularly do. You just need to change the machine name in local.conf.

Best regards,
Jaski

Hi @jaski.tx ,

You just need to change the machine name in local.conf

This works perfect.

Thanks and regards,
Nishanth

You are welcome. Thanks for the feedback.