pytorch - 💡(How to fix) Fix libtorch msys2 build [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
pytorch/pytorch#181569Fetched 2026-04-28 06:24:39
View on GitHub
Comments
1
Participants
2
Timeline
74
Reactions
0
Participants
Timeline (top)
mentioned ×33subscribed ×33labeled ×6closed ×1
RAW_BUFFERClick to expand / collapse

🚀 The feature, motivation and pitch

Hello! Is it possible to adopt libtorch to build with msys2/mingw for windows gcc? I will be gratefull for this

Alternatives

No response

Additional context

No response

cc @seemethere @malfet @atalman @tinglvv @nWEIdia @peterjc123 @mszhanyi @skyline75489 @nbcsm @iremyux @Blackhex

extent analysis

TL;DR

Investigate using MSYS2/MinGW to build libtorch for Windows GCC compatibility.

Guidance

  • Research libtorch documentation and GitHub issues for existing MSYS2/MinGW build attempts or guides.
  • Check the libtorch build system for potential configuration options or flags that support MSYS2/MinGW.
  • Look into similar projects that have successfully built with MSYS2/MinGW for inspiration or guidance.
  • Verify the compatibility of libtorch dependencies with MSYS2/MinGW.

Notes

The feasibility of building libtorch with MSYS2/MinGW for Windows GCC is uncertain without further investigation.

Recommendation

Apply workaround: Investigate alternative build systems or configurations that support MSYS2/MinGW, as there is no clear indication of a straightforward solution.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING