Skip to content

Conversation

@dbort
Copy link
Contributor

@dbort dbort commented Mar 15, 2024

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.

Differential Revision: D54966723

@pytorch-bot
Copy link

pytorch-bot bot commented Mar 15, 2024

🔗 Helpful Links

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

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

❌ 2 New Failures

As of commit df097aa with merge base 22707f0 (image):

NEW FAILURES - The following jobs have failed:

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: D54966723

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.

Differential Revision: D54966723
@dbort dbort force-pushed the export-D54966723 branch from e0a3a0e to df097aa Compare March 15, 2024 21:22
@facebook-github-bot
Copy link
Contributor

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

dbort added a commit to dbort/executorch that referenced this pull request Mar 18, 2024
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
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in df254ce.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk 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