-
Notifications
You must be signed in to change notification settings - Fork 142
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
Example Cmake project fails to build #1284
Comments
Hello @cemevin! Your issue should be fixed after 26a9774. Building BuildXL with And thanks for exploring BuildXL: we appreciate any feedback regarding the CMake frontend as we don't have many users of this feature at the moment. |
Hi, Followed the exact same steps as given in: https://github.com/microsoft/BuildXL/tree/master/Examples/CMakeHelloWorld Still facing an error:
But cmake.exe path is set in the environment variable. Even then, to cross check, I uncommented in config.bc to give the path of CMake in my machine as suggested in to doc: cMakeSearchLocations: [d Still, error is there:
How can I resolve the error? |
I changed the config.bc file to provide absolute addresses even though the paths are mentioned correctly in the environment variables:
Here, the error is:
Any suggestions? |
This message ("Could not find cmake.exe in any of the specified search locations") is about
|
Also, thanks for experimenting and reporting: I fixed an issue with using spaces in f9331ff and added the suggestion of using Additionally, you can try using the Ninja resolver after generating the Ninja specs yourself using |
Implemented the changes. Now my config.bc file looks like:
After running build.bat from the project directory, the error is:
Now, I added a CMAKE_C_COMPILER variable:
How to resolve it? Another question that I wanted to ask is where to get the documentation of steps of how to set up and connect the orchestrator and the workers so that I can do distributed builds using BuildXL? |
This error is thrown by CMake. Can you try to build the example with CMake to see if it works? Are you running this on an environment where CMake succeeds (e.g., the VS Developer Command Prompt)? |
I would also recommend you try the approach I mentioned above of generating the Ninja from CMake and then running BuildXL with the Ninja resolver. |
I have tried building the example with just CMake only and it worked fine. My environment is completely CMake friendly as I have worked with CMake multiple times in the past to build various projects. Could you please share the example that you have added? I found only this https://github.com/microsoft/BuildXL/blob/main/Examples/NinjaHelloWorld/config.dsc but this is purely for Ninja only. |
Any help on this please? I have this doc https://github.com/microsoft/BuildXL/blob/main/Documentation/Wiki/Distributed-Builds.md but this only explains the distributed builds but not on the steps on how to set up and connect to the machines and how to perform distributed build using BuildXL. |
Yes, that is for Ninja only, but the point is that you can generate the Ninja project with CMake (i.e., On your other question, this thread is not the place to discuss it. I saw that you opened another issue for this: I will get back to you and share some information over there. |
Sure. Thanks. As being able to distribute is my top priority, I would be delighted if I could get an answer for my 2nd question so that I could then implement Ninja or CMake over distributed build to have a working solution. Thanks and regards. Here is the link to my 2nd issue: #1310 |
Attaching the error log. I guess cmakerunner.exe is missing, or something along those lines. I built bxl using bxl.cmd -minimal. I also tried with -all but still the same error. Anything else I should do to make it work?
error.log
The text was updated successfully, but these errors were encountered: