apollo icon indicating copy to clipboard operation
apollo copied to clipboard

bazel cache error build

Open gutsy-robot opened this issue 9 years ago • 11 comments

Hi,

I am trying to build the package using the given instructions. On doing bash apollo.sh build , I get the following error :

ERROR: /home/siddharth/.cache/bazel/_bazel_siddharth/540135163923dd7d5820f3ee4b306b32/external/boringssl/boringssl-chromium-stable-with-bazel/BUILD:92:1: undeclared inclusion(s) in rule '@boringssl//boringssl-chromium-stable-with-bazel:crypto': this rule is missing dependency declarations for the following files included by 'external/boringssl/boringssl-chromium-stable-with-bazel/src/crypto/fipsmodule/bcm.c': '/home/siddharth/.cache/bazel/_bazel_siddharth/540135163923dd7d5820f3ee4b306b32/external/boringssl/boringssl-chromium-stable-with-bazel/src/crypto/fipsmodule/aes/aes.c' '/home/siddharth/.cache/bazel/_bazel_siddharth/540135163923dd7d5820f3ee4b306b32/external/boringssl/boringssl-chromium-stable-with-bazel/src/crypto/fipsmodule/aes/key_wrap.c' '/home/siddharth/.cache/bazel/_bazel_siddharth/540135163923dd7d5820f3ee4b306b32/external/boringssl/boringssl-chromium-stable-with-bazel/src/crypto/fipsmodule/aes/mode_wrappers.c' '/home/siddharth/.cache/bazel/_bazel_siddharth/540135163923dd7d5820f3ee4b306b32/external/boringssl/boringssl-chromium-stable-with-bazel/src/crypto/fipsmodule/bn/add.c' '/home/siddharth/.cache/bazel/_bazel_siddharth/540135163923dd7d5820f3ee4b306b32/external/boringssl/boringssl-chromium-stable-with-bazel/src/crypto/fipsmodule/bn/asm/x86_64-gcc.c' '/home/siddharth/.cache/bazel/_bazel_siddharth/540135163923dd7d5820f3ee4b306b32/external/boringssl/boringssl-chromium-stable-with-bazel/src/crypto/fipsmodule/bn/bn.c' '/home/siddharth/.cache/bazel/_bazel_siddharth/540135163923dd7d5820f3ee4b306b32/external/boringssl/boringssl-chromium-stable-with-bazel/src/crypto/fipsmodule/bn/bytes.c' '/home/siddharth/.cache/bazel/_bazel_siddharth/540135163923dd7d5820f3ee4b306b32/external/boringssl/boringssl-chromium-stable-with-bazel/src/crypto/fipsmodule/bn/cmp.c' '/home/siddharth/.cache/bazel/_bazel_siddharth/540135163923dd7d5820f3ee4b306b32/external/boringssl/boringssl-chromium-stable-with-bazel/src/crypto/fipsmodule/bn/ctx.c' '/home/siddharth/.cache/bazel/_bazel_siddharth/540135163923dd7d5820f3ee4b306b32/external/boringssl/boringssl-chromium-stable-with-bazel/src/crypto/fipsmodule/bn/div.c' '/home/siddharth/.cache/bazel/_bazel_siddharth/540135163923dd7d5820f3ee4b306b32/external/boringssl/boringssl-chromium-stable-with-bazel/src/crypto/fipsmodule/bn/exponentiation.c'

I have tried clearing the cache and then re-running build. Can someone help me figure out what might be the issue.

Thanks in advance!

gutsy-robot avatar Aug 02 '17 00:08 gutsy-robot

Oh , I have the same issue. HOPE SOMEONE TO SOLVE IT!!!

WintonHuang avatar Aug 02 '17 00:08 WintonHuang

One of our dependencies is broken by its most recent change. We are working on it and will have a solution soon, probably by hosting a stable version in apollo itself.

siyangy avatar Aug 02 '17 01:08 siyangy

Expect the lastest version. If UPDATE, please tell us! THANKS

WintonHuang avatar Aug 02 '17 01:08 WintonHuang

It should have been fixed now. Please run bazel clean --expunge and ./apollo.sh build.

siyangy avatar Aug 02 '17 03:08 siyangy

I have the same issue. BUT run bazel clean -expunge and ./apollo.sh build can't solve it。

GerberaTetra1991 avatar Aug 02 '17 06:08 GerberaTetra1991

@GerberaTetra1991 Have you pulled the latest code? Make sure https://github.com/ApolloAuto/apollo/commit/39d91c875675f55a01f60385a06faca97f8ef370 is included.

siyangy avatar Aug 02 '17 06:08 siyangy

@siyangy Thanks for your help. I am able to build the project now.

Although on viewing dreamview at the localhost, I can't see the car. problem

gutsy-robot avatar Aug 02 '17 08:08 gutsy-robot

You need to play the demo rosbag to see the car. See README.md for more details.

siyangy avatar Aug 02 '17 08:08 siyangy

Thanks for your help! @siyangy I am able to build now! I have tried jump into the docker container.

GerberaTetra1991 avatar Aug 03 '17 01:08 GerberaTetra1991

The dependency bug in docker has been fixed.

jinghaomiao avatar Aug 04 '17 18:08 jinghaomiao

Possibly related to #9927, I'm having troubles with sha 540135163923dd7d5820f3ee4b306b32 too (see first line of the error of this issue). I'm not sure the dependency bug in docker is entirely fixed

arappazzo avatar Oct 16 '19 15:10 arappazzo