I was trying to upgrade to SDK 2.7 (linux 4.19) for my p2041rdb board
1. Yocto layers were downloaded, build environment was successfully setup.
2. All steps including '. ./setup-env -m p2041rdb' were successfully executed and I proceeded to building image using bitbake command.
3. 'bitbake fsl-image-networking' command when executed returned failure, with following error (bitbake core-image-minimal also returned same error)
| make[1]: Leaving directory '/release/build_p2041rdb/tmp/work/x86_64-linux/gcc-cross-initial-powerpc/4.9.2-r0/gcc-4.9.2/build.x86_64-linux.powerpc-fsl-linux/gcc'
" | make[1]: Leaving directory '/release/build_p2041rdb/tmp/work/x86_64-linux/gcc-cross-initial-powerpc/4.9.2-r0/gcc-4.9.2/build.x86_64-linux.powerpc-fsl-linux/gcc'
| Makefile:3957: 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 /release/build_p2041rdb/tmp/work/x86_64-linux/gcc-cross-initial-powerpc/4.9.2-r0/temp/log.do_compile.24229)
ERROR: Task (/release/sources/meta-qoriq-demos/recipes-devtools/gcc/gcc-cross-initial_4.9.bb:do_compile) failed with exit code '1'
In Yocto SDK 2.7, the gcc version is 8.3, GCC related recipes are located in sources/poky/meta/recipes-devtools/gcc/. However, in your log, GCC recipes are in sources/meta-qoriq-demos/recipes-devtools/gcc/, version is 4.9.
Please download Yocto SDK 2.7 following the steps in https://source.codeaurora.org/external/qoriq/qoriq-components/yocto-sdk/tree/readme?h=warrior
Please refer to the following procedure to get the Yocto layers from repo manifest.
Install the repo utility: $: mkdir ~/bin $: curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo $: chmod a+x ~/bin/repo Download the Yocto layers: $: export PATH=${PATH}:~/bin $: mkdir yocto-sdk $: cd yocto-sdk $: repo init -u https://source.codeaurora.org/external/qoriq/qoriq-components/yocto-sdk -b warrior $: repo sync --no-clone-bundle
=> We executed the steps with branch- "warrior" in Ubuntu 18.04, but returned following error
$: repo init -u https://source.codeaurora.org/external/qoriq/qoriq-components/yocto-sdk -b warrior
ERROR: Failed to spawn fakeroot worker to run /release/sources/poky/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_5.0.bb:do_install: [Errno 32] Broken pipe
=> Then we tried with branch- "warrior" Ubuntu 20.04, but got a different error
WARNING: Host distribution "ubuntu-20.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
ERROR: Task (/yocto-sdk/sources/poky/meta/recipes-devtools/qemu/qemu-native_3.1.0.bb:do_compile) failed with exit code '1'
=> However with Ubuntu 16.04 we could progress further with branch-sumo
I confirmed with Yocto SDK integration team, please use Ubuntu 16.04 to build
Yocto SDK 2.7(warrior).