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

LocalErrorResultStatus: path is not under exec_root #23

Closed
kschzt opened this issue Nov 27, 2023 · 6 comments
Closed

LocalErrorResultStatus: path is not under exec_root #23

kschzt opened this issue Nov 27, 2023 · 6 comments
Assignees

Comments

@kschzt
Copy link

kschzt commented Nov 27, 2023

Trying to cross-compile Chromium on Linux for Windows, with buildbarn as RBE.

My clang-cl config is:

platform=OSFamily=Linux
labels=type=compile,compiler=clang-cl,lang=cpp
exec_strategy=remote
canonicalize_working_dir=true
remote_wrapper=/home/goma/bin/wrapper-win.sh
service_no_auth=true
service_no_security=true

The build fails (and wrapper is never called) with:

reclient[0e87d98a-887e-4286-bbda-43679fbb76de]: LocalErrorResultStatus: path C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\include is not under C:\src\chromium\src\

When building with goma, goma moves the SDK among other dependencies to the CAS before running the action. What am I missing? TIA

@kschzt kschzt changed the title Path is not under exec_root LocalErrorResultStatus: path is not under exec_root Nov 27, 2023
@gkousik
Copy link
Collaborator

gkousik commented Dec 13, 2023

@MikeS-rec has been looking into cross compilation for Chrome. Mike - thoughts?

@MikeS-rec
Copy link
Contributor

MikeS-rec commented Jan 3, 2024

Can you try adding this to your gn.args?

rbe_exec_root="C:\"

It's not an ideal solution (it might make getting remote cache hits less likely due to differences in paths to the chromium checkout across machines), but it would set the execution root to the root of the drive, so the build should be able to pick up the stuff in the visual studio directories.

Edit: And sorry for the long delay in responding!

@gkousik
Copy link
Collaborator

gkousik commented Jan 5, 2024

Reassigning to you @kschzt to confirm if Mike's suggestion above works.

@gkousik
Copy link
Collaborator

gkousik commented Feb 28, 2024

Closing this out due to lack of response. Feel free to reopen if you are still blocked by this.

@ekamwalia
Copy link

Hello @gkousik @MikeS-rec !

I am currently facing a similar problem. Since this one is closed, I filed a new issue here - #34. Would you be able to help out? Thank you!

@yehia996
Copy link

Thank you

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

5 participants