binaries/dump_operator_names.cc missing iostream include #125134
Labels
module: build
Build system issues
module: windows
Windows support for PyTorch
module: wsl
Related to Windows Subsystem for Linux
triaged
This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Issue description
When compiling the
v2.3.0
checkout using the below (can't attach)build-libtorch-2.3.0.sh
script on WSL1 Ubuntu 22.04 with GCC 11.3.0, whereBUILD_BINARY
CMake flag is set toON
, compilingbinaries/dump_operator_names.cc
errors out.Code example
The GCC compilation error is as follows (leading directories and subsequent "not a member" complaints removed for brevity):
Just adding
#include <iostream>
is enough to allow thedump_operator_names
target to be successfully built. For completeness, the missing<string>
,<unordered_set>
headers should also be included, e.g. this sample Git diff:Seems simple enough to fix since it's just a few missing includes. However, issue exists even in the
HEAD
source checkout.Addendum on
run_plan_mpi.cc
There's also an issue with
binaries/run_plan_mpi.cc
not being able to find thempi.h
header despite the MPI include path being correctly determined and it being possible for me to compile some C test program likeThis is something that I think is better left to a different issue however.
System Info
Output from running
torch/utils/collect_env.py
using thetorch_venv
virtual env created usingbuild-libtorch-2.3.0.sh
.cc @malfet @seemethere @peterjc123 @mszhanyi @skyline75489 @nbcsm @vladimir-aubrecht @iremyux @Blackhex @cristianPanaite
The text was updated successfully, but these errors were encountered: