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

C++/CMake / Only link gcc_s library when making a shared library build (caffe only) #126621

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

bsergean
Copy link

@bsergean bsergean commented May 18, 2024

We are making a static build of libtorch for a static executable, and this is getting in our way.

The link fails with "gcc_s not found". I just found out that the _s version of libgcc is a shared library, so we can't bring in in a static build.

This fix just add a conditional to bring in gcc_s. The existing code only affect the caffe build.

cc @malfet @seemethere

Copy link

pytorch-bot bot commented May 18, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit 615423f with merge base 173b1d8 (image):
💚 Looks good so far! There are no failures yet. 💚

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

Copy link

linux-foundation-easycla bot commented May 18, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

@pytorch-bot pytorch-bot bot added the topic: not user facing topic category label May 18, 2024
@cyyever
Copy link
Collaborator

cyyever commented May 19, 2024

Sounds convincing.

@drisspg drisspg added the module: build Build system issues label May 20, 2024
@drisspg drisspg requested a review from a team May 20, 2024 20:41
@drisspg drisspg added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label May 20, 2024
@bsergean
Copy link
Author

Does this change make sense ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: build Build system issues open source topic: not user facing topic category triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants