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

executorch doesn't build if the top-level checkout isn't called exactly executorch #7544

Closed
swolchok opened this issue Jan 7, 2025 · 3 comments
Labels
module: build/install Issues related to the cmake and buck2 builds, and to installing ExecuTorch

Comments

@swolchok
Copy link
Contributor

swolchok commented Jan 7, 2025

🐛 Describe the bug

Attempt to checkout executorch into a directory with a different name for purposes of cleanly reproing a bug -- git clone -b release/0.4 https://github.com/pytorch/executorch.git executorchinstall && cd executorchinstall. Result: build fails with error about being unable to find headers, because the project makes includes work by adding .. to include directories.

Versions

N/A

@swolchok swolchok added the module: build/install Issues related to the cmake and buck2 builds, and to installing ExecuTorch label Jan 7, 2025
@lucylq
Copy link
Contributor

lucylq commented Jan 7, 2025

I think this is a known issue, though couldn't find the previous discussions. cc @dbort if you have more context?

@dbort dbort closed this as completed Jan 13, 2025
@dbort
Copy link
Contributor

dbort commented Jan 13, 2025

It's definitely a pain. Tracked by issue #6475. PR #6480 tries to make the issue more transparent-- did you see that message when you built from the non-executorch path?

CMake Error at CMakeLists.txt:332 (message):
  The ExecuTorch repo must be cloned into a directory named exactly
  `executorch`; found `not-executorch`.  See
  https://github.com/pytorch/executorch/issues/6475 for progress on a fix for
  this restriction.

If not then we should figure out why it didn't show up

@swolchok
Copy link
Contributor Author

did you see that message when you built from the non-executorch path?

wasn't paying attention, just wanted to flag this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: build/install Issues related to the cmake and buck2 builds, and to installing ExecuTorch
Projects
None yet
Development

No branches or pull requests

3 participants