Skip to content

build: bazel fails with target 'install' not declared in package '' #4101

@tampler

Description

@tampler

Subject

[Build] for compilation-related issues.

Describe the bug

Hello I'm new to OR and trying to build it for the first time. Followed your docs for bazel build.

Unfortunately, bazel build fails. See details below

OpenROAD-flow-scripts git rev: dbf7e2b

Expected Behavior

Bazel build suceeds

Environment

Ubuntu 24.04.4
bazel 9.0.1
gcc 13.3.0
g++ 13.3.0
git rev dbf7e2bc2

To Reproduce

git clone --recursive https://github.com/The-OpenROAD-Project/OpenROAD-flow-scripts
git submodule update --init --recursive
bazelisk run //:install_for_bazel

Relevant log output

bku@test:~/work/eda/OpenROAD-flow-scripts$ bazelisk run //:install_for_bazel           
INFO: Analyzed target //:install_for_bazel (32 packages loaded, 158 targets configured).
INFO: Found 1 target...                                                               
Target //:install_for_bazel up-to-date:                                                                                                                                      
  bazel-bin/install_for_bazel                                                                                                                                                
INFO: Elapsed time: 0.671s, Critical Path: 0.00s                                                                                                                             
INFO: 1 process: 1 internal.                                                          
INFO: Build completed successfully, 1 total action
INFO: Running command line: bazel-bin/install_for_bazel                                                                                                                      
=== Building OpenROAD with GUI support ===                                            
Starting local Bazel server (8.6.0) and connecting to it...
INFO: Invocation ID: ed7c8e6b-03bc-4728-ba30-f9bd97ba56b4
Computing main repo mapping: 
Computing main repo mapping: 
WARNING: Target pattern parsing failed.
ERROR: Skipping '//:install': no such target '//:install': target 'install' not declared in package '' defined by /home/bku/work/eda/OpenROAD-flow-scripts/tools/OpenROAD/BUI
LD.bazel
ERROR: no such target '//:install': target 'install' not declared in package '' defined by /home/bku/work/eda/OpenROAD-flow-scripts/tools/OpenROAD/BUILD.bazel
INFO: Elapsed time: 26.320s

Screenshots

No response

Additional Context

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions