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 #1918

Open
siddharth0998 opened this issue Feb 8, 2025 · 2 comments
Open

Build Error #1918

siddharth0998 opened this issue Feb 8, 2025 · 2 comments
Labels
build Related to build flow, build system, or build macros unsupported-env unsupported OS or compiler, "best effort"

Comments

@siddharth0998
Copy link

I am new to this and i am trying to build this repo from sources in my mac but i am facing below error. anyone can help me with this?
i am runing bazel build -c opt xls/... this command.

Image
@ritikrajput8660
Copy link

Troubleshooting Steps:

1 Check for Missing Files:
Ensure that the file MachineApple.cc exists in the src/sta/util/ directory of your project.

2 Case Sensitivity Issue:
If the file exists but is named differently (like machineApple.cc), correct the include directive or rename the file to match the case exactly.

3 Verify Build Configuration:
Open the BUILD.bazel file and ensure that MachineApple.cc is correctly listed in the srcs attribute of the build rule.

4 Clear Bazel Cache:
Sometimes clearing Bazel's cache helps:

bash
Copy
Edit
bazel clean --expunge
Re-run the Build:
Attempt the build again:

bash
Copy
Edit
bazel build //path_to_target
Check Dependencies:
Ensure all required dependencies are fetched and available:

bash
Copy
Edit
bazel fetch ...

@cdleary
Copy link
Collaborator

cdleary commented Feb 8, 2025

@siddharth0998 I wouldn't start by building the "full wildcard" of xls/..., as you can see it's dragging in some large dependencies that are tripping things up like OpenROAD.

I would start by trying to build particular targets of interest, e.g. particular binaries you wanted to build/try. You may have seen OS X is not a supported platform in google/xls repo CI so nothing is /guaranteed/ to build. In practice, however, a subset of targets can probably be built without too much trouble. If you can say what part of XLS is most interesting to you to I can suggest targets to try.

@cdleary cdleary added build Related to build flow, build system, or build macros unsupported-env unsupported OS or compiler, "best effort" labels Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Related to build flow, build system, or build macros unsupported-env unsupported OS or compiler, "best effort"
Projects
None yet
Development

No branches or pull requests

3 participants