Apolloのビルド 4

昨日の続き。

$ bash apollo.sh build_cpu --local_resources 2048,1.0,1.0

でビルドしていたのですが、以下のようなエラーで終了。

System check passed. Build continue ...
[WARNING] System memory [1.95G] is lower than minimum required memory size [2.0G]. Apollo build could fail.
[WARNING] ESD CAN library supplied by ESD Electronics does not exist. If you need ESD CAN, please refer to third_party/can_card_library/esd_can/README.md.
Running build under CPU mode. No GPU is required to run the build.
[INFO] Start building, please wait ...

…

ERROR: (01-05 15:29:19.282) /apollo/modules/dreamview/backend/simulation_world/BUILD:5:1: C++ compilation of rule '//modules/dreamview/backend/simulation_world:simulation_world_service' failed (Exit 4).
gcc: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
INFO: (01-05 15:29:28.500) Elapsed time: 4699.585s, Critical Path: 745.37s
============================
[ERROR] Build failed!
[INFO] Took 4885 seconds
============================

ググってみると、メモリ不足が原因という記載が見つかります。Dockerの設定を見てみると2.0GiBとなってます。 よくよく、ビルドのメッセージを見ていくと、2GB以上のメモリが必要とあります。 Dockerのメモリ設定を3.0GiBに変更して、再トライします。 なかなか進みませんが、今日はここまで。