Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build error: no such target '//modules/planning/planning_base:planning_block' #15379

Open
yangzhengjin opened this issue Apr 17, 2024 · 1 comment

Comments

@yangzhengjin
Copy link

Describe the bug
build apollo, when GPU is disabled, report error:no such target '//modules/planning/planning_base:planning_block': target 'planning_block' not declared in package 'modules/planning/planning_base' defined by /apollo/modules/planning/planning_base/BUILD

To Reproduce
./apollo.sh build

log detail:
[INFO] Apollo Environment Settings:
[INFO] APOLLO_ROOT_DIR: /apollo
[INFO] APOLLO_CACHE_DIR: /apollo/.cache
[INFO] APOLLO_IN_DOCKER: true
[INFO] APOLLO_VERSION: master-2024-04-16-22cb4d8f98
[INFO] DOCKER_IMG: dev-x86_64-18.04-20240326_1453
[INFO] APOLLO_ENV: STAGE=dev USE_ESD_CAN=false
[INFO] USE_GPU_HOST: 0
[INFO] USE_GPU_TARGET: 0
[INFO] GPU_PLATFORM: UNKNOWN
[INFO] Configure .apollo.bazelrc in non-interactive mode
[INFO] You have bazel 5.2.0 installed.
[INFO] Found possible Python library paths:
/usr/lib/python3/dist-packages
/usr/local/lib/python3.6/dist-packages
[INFO] Found CUDA 11.1 in:
/usr/local/cuda-11.1/targets/x86_64-linux/lib
/usr/local/cuda-11.1/targets/x86_64-linux/include
[INFO] Found cuDNN 8 in:
/usr/lib/x86_64-linux-gnu
/usr/include
[ OK ] Successfully configured .apollo.bazelrc in non-interactive mode.
[ OK ] Running CPU build on x86_64 platform.
[WARNING] ESD CAN library supplied by ESD Electronics doesn't exist.
[WARNING] If you need ESD CAN, please refer to third_party/can_card_library/esd_can/README.md
[INFO] Build Overview:
[INFO] USE_GPU: 0 [ 0 for CPU, 1 for GPU ]
[INFO] CPU arch: x86_64
[INFO] Bazel Options: --config=cpu --define ENABLE_PROFILER=true
[INFO] Build Targets: //modules/... union //cyber/...
[INFO] Disabled: except //modules/perception/... except //modules/planning/planning_base:planning_block

  • [[ Build == \T\e\s\t ]]
  • bazel build --config=cpu --define ENABLE_PROFILER=true --copt=-mavx2 --host_copt=-mavx2 --jobs=16 '--local_ram_resources=HOST_RAM*0.7' -- //modules/... //cyber/... -//modules/perception/... -//modules/planning/planning_base:planning_block
    Extracting Bazel installation...
    Starting local Bazel server and connecting to it...
    (02:46:52) INFO: Invocation ID: 6e691a28-66f5-49bd-89c4-e63d7c31ea6f
    (02:46:52) INFO: Current date is 2024-04-17
    (02:46:57) ERROR: Skipping '//modules/planning/planning_base:planning_block': no such target '//modules/planning/planning_base:planning_block': target 'planning_block' not declared in package 'modules/planning/planning_base' defined by /apollo/modules/planning/planning_base/BUILD
    (02:46:57) ERROR: no such target '//modules/planning/planning_base:planning_block': target 'planning_block' not declared in package 'modules/planning/planning_base' defined by /apollo/modules/planning/planning_base/BUILD
    (02:46:57) INFO: Elapsed time: 7.735s
    (02:46:57) INFO: 0 processes.
    (02:46:57) FAILED: Build did NOT complete successfully (348 packages loaded)
@yangzhengjin
Copy link
Author

yangzhengjin commented Apr 17, 2024

修改方案:
scripts/apollo_base.sh

--- a/scripts/apollo_base.sh
+++ b/scripts/apollo_base.sh
@@ -577,7 +577,7 @@ function _determine_localization_disabled() {
function _determine_planning_disabled() {
if [ "${USE_GPU}" -eq 0 ]; then
DISABLED_TARGETS="${DISABLED_TARGETS} \

  •    except //modules/planning/planning_base:planning_block"
    
  •    except //modules/planning/planning_open_space:planning_block"
    
    fi
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant