apollo icon indicating copy to clipboard operation
apollo copied to clipboard

./apollo.sh build_no_perception dbg build failed

Open adderllyer opened this issue 8 years ago • 4 comments

platform: ubuntu 16.04 without GPU

steps: bash docker/scripts/install_docker.sh docker ps
bash docker/scripts/dev_start.sh bash docker/scripts/dev_into.sh ./apollo.sh build_no_perception dbg

build failed with error:

ros@in_dev_docker:/apollo$ ./apollo.sh build_no_perception dbg
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] Skip building perception module!
INFO: Reading 'startup' options from /apollo/tools/bazel.rc: --batch_cpu_scheduling
ERROR: error loading package 'query/540135163923dd7d5820f3ee4b306b32/install/_embedded_binaries/embedded_tools/third_party/checker_framework_javacutil': Extension file not found. Unable to load package for '//tools/build_rules:java_rules_skylark.bzl': BUILD file not found on package path
============================
[ERROR] Build failed!
[INFO] Took 1 seconds
============================

adderllyer avatar Mar 23 '18 03:03 adderllyer

I cannot reproduce it.

Could you run

bazel clean
bazel query //...

and paste all the output here?

xiaoxq avatar Mar 25 '18 04:03 xiaoxq

following is the output

star@in_dev_docker:/apollo$ bazel clean INFO: Reading 'startup' options from /apollo/tools/bazel.rc: --batch_cpu_scheduling ............ INFO: Starting clean (this may take a while). Consider using --async if the clean takes more than several minutes. star@in_dev_docker:/apollo$ bazel query //... INFO: Reading 'startup' options from /apollo/tools/bazel.rc: --batch_cpu_scheduling ERROR: error loading package 'install/_embedded_binaries/embedded_tools/third_party/checker_framework_javacutil': Extension file not found. Unable to load package for '//tools/build_rules:java_rules_skylark.bzl': BUILD file not found on package path Building: no action running

adderllyer avatar Mar 27 '18 08:03 adderllyer

From the output, I can only tell that it's not about GPU or perception. It looks like a fundamental bazel environment problem, and unfortunately we cannot reproduce it.

I suggest you to start a new container from scratch and try it again.

xiaoxq avatar Mar 29 '18 04:03 xiaoxq

Closing this issue as it seems to be resolved.

natashadsouza avatar Aug 27 '18 23:08 natashadsouza