BUILD error when build apollo 2.0 from source using "bash apollo.sh build"
The error log as below: root@in_dev_docker:/apollo# bash apollo.sh build System check passed. Build continue ... [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. [INFO] Start building, please wait ... INFO: Reading 'startup' options from /apollo/tools/bazel.rc: --batch_cpu_scheduling [INFO] Building on x86_64... INFO: Reading 'startup' options from /apollo/tools/bazel.rc: --batch_cpu_scheduling INFO: Analysed 1212 targets (8 packages loaded). INFO: Found 1212 targets... ERROR: /apollo/modules/calibration/lidar_ex_checker/BUILD:5:1: C++ compilation of rule '//modules/calibration/lidar_ex_checker:lidar_ex_checker_lib' 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: Elapsed time: 430.035s, Critical Path: 423.58s FAILED: Build did NOT complete successfully
[ERROR] Build failed! [INFO] Took 435 seconds
GCC版本如下 root@in_dev_docker:/apollo# gcc --version gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4 Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
It would be very nice of you to format the log with Markdown syntax for others' convenince. This could be done with inline code tag, place the triple backticks ``` before and after the code block.
;-)
Since the error is : cc1plus was killed (by system), additional info list below would help,
- docker stats --no-stream
- docker ps
If it has enough available memory, then try to rebuild with:
- Make sure you have the full clean sources ; and 2, Make sure you have the full clean docker env.
To achieve 1, Attention: the following command will DELETE all your local changes and all the the files not in vcs.
git pull && git reset --hard origin/master && git clean -dfx
To achieve 2: just re-run
docker/scripts/dev_start.sh
Good luck!
Thanks for your advice. It's been fixed. Thanks for your help again.
@liupanpan could you please share your solution to help other people who has the same problem?@lakeprince
Closing this issue as there has been no communication in a while.