Ubuntu 在 bitbake 构建过程中冻结 do_compile

Ubuntu freezes during bitbake build do_compile

我是 yocto 项目的新手,正在尝试为我的 hmi 面板构建图像。当构建到达 qtwebengine-5.15.4+gitAUTOINC+be49f438d6_6c7b4ffb3f-r0 do_compile

时,整个系统 (ubuntu 20.04) 总是冻结

航站楼:

Build Configuration:
BB_VERSION           = "1.46.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "aarch64-guf-linux"
MACHINE              = "imx8mguf"
DISTRO               = "guf-wayland"
DISTRO_VERSION       = "dunfell-11.0-18-gb644b1d"
TUNE_FEATURES        = "aarch64 cortexa53 crc crypto"
TARGET_FPU           = ""
meta                 
meta-poky            = "HEAD:13f4ddf50eccaeed96a40a5f1a1d4173e677e98a"
meta-oe              
meta-multimedia      
meta-python          
meta-networking      
meta-filesystems     = "HEAD:2915810edbb6599051e30efb3b7f805665ddcc23"
meta-python2         = "HEAD:b901080cf57d9a7f5476ab4d96e56c30db8170a8"
meta-guf-machine     = "HEAD:eea8d9ca63c767ad6168a6e34314d58b96ea6ed2"
meta-guf-distro      = "HEAD:f36401f59b27972c076f2093c98b4f6ac25a7941"
meta-qt5             = "HEAD:a2882fecc96019781880c38fc6a81a9b71c944ad"
meta-freescale       = "HEAD:0173d3f8d0cbf7844a4d23bc3fb30144abc914bb"
meta-freescale-distro = "HEAD:5d882cdf079b3bde0bd9869ce3ca3db411acbf3b"

Initialising tasks: 100% |########################################################| Time: 0:00:05
Sstate summary: Wanted 2352 Found 0 Missed 2352 Current 1190 (0% match, 33% complete)
NOTE: Executing Tasks
NOTE: Set DISTRO_VERSION='dunfell-11.0-18-gb644b1d' for distro guf-wayland (matches tags with dunfell[-/]*)
Currently  1 running tasks (3945 of 8508)  46% |######################                          |
0: qtwebengine-5.15.4+gitAUTOINC+be49f438d6_6c7b4ffb3f-r0 do_compile (pid 3551)   0% |          |

我尝试通过设置 BB_NUMBER_THREADS = "1"PARALLEL_MAKE = "-j 1" 来禁用并行生成,但这并没有改变任何东西。

你知道是什么原因导致的吗?我该如何解决?

提前致谢

我之前遇到过同样的问题,这是 RAM 相关的问题。

我以前在8Go RAM PC上工作,我添加了8Go RAM并且编译没有错误。

所以我切换到 Ubuntu 18.04,它只卡住了一次。如果是这样,我只需要清理配方并重新启动构建