Skip to content

bazel: After install, openroad still reads file openroad.repo_mapping from build location #9635

@fredowski

Description

@fredowski

Describe the bug

I moved the openroad exe and the openroad runtime directory to another location to have the applicaton standalone. After deleting the build environment, starting the application results in a crash for the gui. For the cli, the tcl.init is not found - indicating a wrong access to the runtime.

I traced this with strace and found that still the openroad.repo_mapping file is accessed in the build directory.

When I delete the MANIFEST file in the runtime, then it works.

I opened an issue in rules_cc: bazelbuild/rules_cc#620

Expected Behavior

No remaining files in the build directory needed.

Environment

debian 13 aarch64

To Reproduce

  • Build openroad with bazel
  • Copy the exe and the runtime out of the bazel-bin directory to /tmp/install with cp -r -L openroad.runtime /tmp/install/and cp openroad /tmp/install/
  • run bazelisk clean or rename ~/.cache
  • run /tmp/install/openroad -gui => crash

Relevant log output

Screenshots

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    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