yocto takes too long to compile when building SDK tools

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

yocto takes too long to compile when building SDK tools

5,656件の閲覧回数
2548903578
Contributor III

When I use yocto to build the sdk tool, I have been stuck in do_compile after using the bitbake meta-toolchain-qt5 command. It has been more than ten hours. The picture on the picture is that I started again. I want to ask is this appearance normal? Does normal compilation take so long?090232v8hxbh8oaa8b84j4.png

ラベル(1)
0 件の賞賛
返信
10 返答(返信)

5,216件の閲覧回数
eleven94726
Contributor I
Hi:
  I have the same problem  as you.can you tell me  how you solved it?
 
 
0 件の賞賛
返信

5,192件の閲覧回数
kef2
Senior Contributor V

Make sure you have enough RAM to not keep swapping to HDD, which may take forever. Use htop to check swap usage. Limiting bitbake parallel tasks to be less than CPU threads you may reduce min. RAM requirements. Keep checking swap usage, it should be 0 in the best case.

0 件の賞賛
返信

5,175件の閲覧回数
eleven94726
Contributor I
Thank you very much for your reply.The problem seems to be solved but my virtual machine keeps freezing.
0 件の賞賛
返信

5,201件の閲覧回数
2548903578
Contributor III

如果您使用的是虚拟机,我建议您将虚拟机的配置更改为更高级别,然后重试

0 件の賞賛
返信

5,644件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @2548903578 

This is normal

0 件の賞賛
返信

5,638件の閲覧回数
2548903578
Contributor III

Hi, Qmiller

   Thank you very much for your reply, how long will this process take?

0 件の賞賛
返信

5,635件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

At least 6 hours

0 件の賞賛
返信

5,619件の閲覧回数
2548903578
Contributor III

Hi,Qmiller

Now I have compiled more than 80 hours and still not finished. Is there a problem with this situation?微信截图_20230109082524.png

0 件の賞賛
返信

5,609件の閲覧回数
edwardtyrrell
Senior Contributor I

Hi @2548903578,

To build Yocto in any reasonable time you need a machine with some serious horsepower, and if you're using a VM that doesn't help.. Also the first build does all the package fetching; if your internet connection is slow the build will drag. Good news is future builds are a lot quicker once all the packages are on board. If the build is still creeping along it might just be slow internet speeds between you and the package server.

0 件の賞賛
返信

5,601件の閲覧回数
2548903578
Contributor III

Hi,edwardtyrrell

   Thank you for your reply, now it has been compiled, and it is indeed a problem with the virtual machine. The configuration of the virtual machine needs to be modified.

0 件の賞賛
返信