【エラー】【bbb】beaglebone black用のandroidがコンパイルできない

スポンサーリンク

エラーが出た、コンパイルしたのはVirtualBOX内のUbuntu13.04(64bit)。
sola : BeagleBone Black 向けの Android をビルドして起動確認してみたさんのブログを見ながら、初めてのandroidコンパイル。

コンパイル時のエラー

collect2: error: ld terminated with signal 9 [Killed]
make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/libwebcore_intermediates/LINKED/libwebcore.so] エラー 1
make: *** 未完了のジョブを待っています….
DroidDoc took 52 sec. to write docs to out/target/common/docs/api-stubs
DroidDoc took 220 sec. to write docs to out/target/common/docs/doc-comment-check

いみわからないよ! とりあえずエラーメッセージでググると
[SOLVED]Compile Memory Req? – Solved Issues – TrinityCore
dmesgになんか出てたらしい

そのときのdmesg

[19254.327801] Out of memory: Kill process 19451 (ld) score 218 or sacrifice child
[19254.327804] Killed process 19451 (ld) total-vm:2377612kB, anon-rss:178908kB, file-rss:20kB

メモリ不足…だと…?
Ubuntu13.04(64bit)は使ってなかったからVirtualBOXにメモリ2ギガ、スワップ2ギガ、HDD100ギガとって作ったけどこれじゃ足りないってことか(´・ω・`)

ビルドなんてメモリ1ギガあればいい、と思っていたらさすがはgoogleさんのOSだけあって超大物ソフトだった…
64bit版でしかコンパイルできないのは、メモリを4ギガ以上使うからということか
うちにあるPCでtx100s3でしかコンパイルできなさそうとは、恐るべしandroid…

また今度試してみようっと