Skip to content

Conversation

@huydhn
Copy link
Contributor

@huydhn huydhn commented Aug 9, 2023

This is to address the build failure https://github.com/pytorch/executorch/actions/runs/5814461344/job/15764455362?pr=52 where the cmake build expects the repo name in the include path, not /work

@vercel
Copy link

vercel bot commented Aug 9, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
torchci ⬜️ Ignored (Inspect) Visit Preview Aug 9, 2023 11:14pm

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 9, 2023
@huydhn huydhn marked this pull request as ready for review August 9, 2023 23:16
@huydhn huydhn requested a review from a team August 9, 2023 23:17
@malfet malfet merged commit f3f32fc into main Aug 9, 2023
facebook-github-bot pushed a commit to pytorch/executorch that referenced this pull request Aug 16, 2023
Summary:
This adds a build and test workflow using CMake on Linux.  Here are some of my findings:

* The build only works if `executorch` is checked out into a directory called `executorch`.  Otherwise, including `<executorch/...>` would fail (pytorch/test-infra#4465)
* Linking with GNU ld fails with the following error `/usr/bin/ld: -f may not be used without -shared`, which I'm not sure what it means atm, so I switch to LLD by adding `add_link_options("-fuse-ld=lld")` for clang
* I still couldn't make this work on Mac yet because `libprogram_schema.a` is empty and Mac `ar` refuses to link the library.  So that's an issue for another day.

```
/Library/Developer/CommandLineTools/usr/bin/ar qc libprogram_schema.a
ar: no archive members specified
```

Pull Request resolved: #52

Reviewed By: dbort

Differential Revision: D48216923

Pulled By: huydhn

fbshipit-source-id: 0ba751e3e849ec6779b19338253dd73b7ef0f3c8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants