Skip to content

Don't build unnecessary flatbuffs/flatcc targets #2466

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

Closed
wants to merge 2 commits into from

Conversation

dbort
Copy link
Contributor

@dbort dbort commented Mar 15, 2024

Summary:
We're currently building unnecessary pieces of the flatbuffers and flatcc submodules. I had tried disabling them before for flatbuffers, but didn't do it the right way.

Now do it the right way, saving us some time during the build.

Differential Revision: D54966722

Copy link

pytorch-bot bot commented Mar 15, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/2466

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 98736c6 with merge base 1d852ed (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@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 Mar 15, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D54966722

dbort added 2 commits March 18, 2024 11:05
Summary:

On some linux systems, the pybindings build would fail with

`relocation R_X86_64_32 against '.rodata' can not be used when making a shared object; recompile with -fPIC`

Digging into it further, I also noticed that etdump was depending on `libflatcc` (the compiler) instead of `libflatccrt` (the runtime).

Fix that dep, then mark `flatccrt` as positition-independent (thus adding `-fPIC` on appropriate systems) to fix the pybindings build.

Reviewed By: larryliu0820

Differential Revision: D54966723
Summary:

We're currently building unnecessary pieces of the flatbuffers and flatcc submodules. I had tried disabling them before for flatbuffers, but didn't do it the right way.

Now do it the right way, saving us some time during the build.

Differential Revision: D54966722
@dbort dbort force-pushed the export-D54966722 branch from c0b0605 to 98736c6 Compare March 18, 2024 18:05
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D54966722

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 8b6f5d7.

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. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants