ApolloAuto / apollo

An open autonomous driving platform
Apache License 2.0
25.12k stars 9.7k forks source link

ERROR: /apollo/modules/dreamview/backend/BUILD:5:1: C++ compilation of rule '//modules/dreamview/backend:backend' failed (Exit 4) #5675

Closed lvxin0805 closed 6 years ago

lvxin0805 commented 6 years ago

Hi guys, Now I install ubuntu16.04 virtual machine on Mac, and do the software installation followings Appllo docs, then I try to build apollo sourcecodes and encounter build failed as follow : bash apollo.sh build --local_resources 2048,1.0,1.0

� 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. Running build under GPU mode. GPU is required to run the build. [INFO] Start building, please wait ... INFO: Reading 'startup' options from /apollo/tools/bazel.rc: --batch_cpu_scheduling Extracting Bazel installation... . Loading package: modules/prediction/container/obstacles Loading package: modules/control Loading package: modules/perception/obstacle/camera/detector/common Loading package: modules/perception/obstacle/camera/interface Loading package: third_party/can_card_library/hermes_can Loading package: modules/planning/toolkits/optimizers/qp_spline_path Loading package: modules/localization/msf/local_tool/data_extraction Loading package: modules/monitor/hardware/can Loading package: modules/perception/tool/offline_visualizer_tool Loading package: modules/planning/common __Loading package: modules/perception/traffic_light/reviser __Loading package: modules/drivers/camera/common Loading package: modules/planning/toolkits/optimizers Loading package: modules/guardian/common Loading package: modules/perception/proto Loading package: modules/planning/planner/navi [INFO] Building on x86_64... [INFO] Building with --jobs=2 for x86_64 INFO: Reading 'startup' options from /apollo/tools/bazel.rc: --batch_cpu_scheduling INFO: Found 1811 targets... ERROR: Error during action cache initialization: Failed to load filename index data. Corrupted files were renamed to '/home/lx/.cache/bazel/_bazel_lx/540135163923dd7d5820f3ee4b306b32/action_cache/*.bad'. Blaze will now reset action cache data, causing a full rebuild. ERROR: /apollo/modules/dreamview/backend/BUILD:5:1: C++ compilation of rule '//modules/dreamview/backend:backend' 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: 1054.926s, Critical Path: 56.50s

[ERROR] Build failed! [INFO] Took 1082 seconds

lx@in_dev_docker:/apollo$ cd modules/dreamview/backend/

muleisheng commented 6 years ago

try to replace --local_resources 2048,1.0,1.0 with --local_resources 2048,.5,1.0

lvxin0805 commented 6 years ago

@muleisheng Thanks for your help, build successed by your suggestion