apollo icon indicating copy to clipboard operation
apollo copied to clipboard

bash apollo.sh build failed

Open fenglupeter opened this issue 8 years ago • 4 comments

[INFO] Building on x86_64... INFO: Reading 'startup' options from /apollo/tools/bazel.rc: --batch_cpu_scheduling INFO: Analysed 1470 targets (12 packages loaded). INFO: Found 1470 targets... ERROR: /home/autolab/.cache/bazel/_bazel_autolab/540135163923dd7d5820f3ee4b306b32/external/com_google_protobuf/BUILD:113:1: C++ compilation of rule '@com_google_protobuf//:protobuf' failed (Exit 1) In file included from external/com_google_protobuf/src/google/protobuf/generated_message_table_driven.cc:1:0:

/usr/include/x86_64-linux-gnu/asm/param.h:1: confused by earlier errors, bailing out INFO: Elapsed time: 514.355s, Critical Path: 510.16s FAILED: Build did NOT complete successfully

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

fenglupeter avatar Jul 30 '18 04:07 fenglupeter

We have experienced the same problem, it seems the latest docker image does not come pre-loaded with the bazel/protobuf dependencies under the '/home/tmp/' directory. This leads to bazel runtime not being able to find the packages and therefore failing.

draturi avatar Jul 30 '18 20:07 draturi

Hi, fenglupeter. protobuf must be built with a particular bazel version, because some features in protobuf are not compatible with some bazel version. So, please tell me your docker_dev version, use instruction 'docker images' to show all images; your bazel version, in docker_dev, use instruction 'bazel --version' to show bazel info; your protobuf version, in docker_dev, protobuf file is in directory /home/tmp.

DongAi avatar Aug 04 '18 05:08 DongAi

Closing this issue as it appears to be resolved. Feel free to reopen if the issue persists. Thanks!

natashadsouza avatar Mar 21 '19 00:03 natashadsouza

Please re-open the issue. I suspect issue #10159 is actually another version of this one. Bazel version: 0.5.3.

Logs attached log_tmp.txt

arappazzo avatar Nov 15 '19 10:11 arappazzo