ODYSSEY-STM32MP157 bitbake st-image-weston NOT Building

Hi all! I have been trying to build the Linux image for the ODYSSEY-STM32MP157C, using the meta-st-odyssey layer for bitbake.

The problem is that it does not build. No image is generated at all.

Used this procedure as described here: meta-st-odyssey

Upon execution of bitbake st-image-weston, the result is the following:

| {standard input}:246329: Warning: end of file not at end of a line; newline inserted
| {standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive
| g++: fatal error: Killed signal terminated program cc1plus
| compilation terminated.
| make[1]: *** [Makefile:1117: gimple-match.o] Error 1
| make[1]: *** Waiting for unfinished jobs....
| rm gcc.pod
| make[1]: Leaving directory '/home/user/Desktop/STM32/build-openstlinuxweston-stm32mp1/tmp-glibc/work/x86_64-linux/gcc-cross-arm/9.3.0-r0/gcc-9.3.0/build.x86_64-linux.arm-ostl-linux-gnueabi/gcc'
| make: *** [Makefile:4328: all-gcc] Error 2
| WARNING: exit code 1 from a shell command.
| 
ERROR: Task (/home/user/Desktop/STM32/layers/openembedded-core/meta/recipes-devtools/gcc/gcc-cross_9.3.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 564 tasks of which 0 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 5 seconds

Summary: 1 task failed:
  /home/user/Desktop/STM32/layers/openembedded-core/meta/recipes-devtools/gcc/gcc-cross_9.3.bb:do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

How can I get this working? Thanks in advance. I really appreciate your help.

The error g++: fatal error: Killed signal terminated program cc1plus often indicates that the system ran out of memory during compilation.: Add swap space to prevent memory exhaustion. You can add a 4-8GB swap file as follows:

sudo fallocate -l 8G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile

Thank you so much @liaifat85 ! I manged to move on on the process. However there are still some stoppers.

ERROR: libiio-0.15+gitAUTOINC+6ecff5d46e-r0 do_fetch: Fetcher failure: Unable to find revision 6ecff5d46e1b12c2859f0b63a73282940e3402bb in branch master even from upstream ERROR: libiio-0.15+gitAUTOINC+6ecff5d46e-r0 do_fetch: Fetcher failure for URL: 'git://github.com/analogdevicesinc/libiio.git;protocol=https'. Unable to fetch URL from any source. ERROR: Logfile of failure stored in: /home/build/build-openstlinuxweston-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/libiio/0.15+gitAUTOINC+6ecff5d46e-r0/temp/log.do_fetch.3182647 ERROR: Task (/home/build/layers/meta-openembedded/meta-oe/recipes-support/libiio/libiio_git.bb:do_fetch) failed with exit code '1'

I check the Logfile and retrieve this:

--2024-11-11 08:20:49--  http://sources.openembedded.org/git2_github.com.analogdevicesinc.libiio.git.tar.gz
Resolving sources.openembedded.org (sources.openembedded.org)... 198.145.29.27
Connecting to sources.openembedded.org (sources.openembedded.org)|198.145.29.27|:80... failed: Connection timed out.
Retrying.

--2024-11-11 08:21:20--  (try: 2)  http://sources.openembedded.org/git2_github.com.analogdevicesinc.libiio.git.tar.gz
Connecting to sources.openembedded.org (sources.openembedded.org)|198.145.29.27|:80... failed: Connection timed out.
Giving up.


ERROR: Fetcher failure: Unable to find revision 6ecff5d46e1b12c2859f0b63a73282940e3402bb in branch master even from upstream
ERROR: Fetcher failure for URL: 'git://github.com/analogdevicesinc/libiio.git;protocol=https'. Unable to fetch URL from any source.
DEBUG: Python function base_do_fetch finished
DEBUG: Python function do_fetch finished

I can access the gits but cannot access the webpage of sources_openembedded_org… Is there any config that can be modified to get an alternative?

Thanks a lot!!!