Pytorch from source for CPU

Hi, I’ve installed pytorch nightly for CPU (no CUDA) with no MLKDNN and am having trouble importing torch:

>>> import torch
terminate called after throwing an instance of 'c10::Error'
  what():  Couldn't find an operator for aten::gesv(Tensor self, Tensor A) -> (Tensor, Tensor) (lookupByLiteral at /home/mlgroup/PYTORCH-2.7/pytorch/torch/csrc/jit/operator.cpp:396)
frame #0: c10::Error::Error(c10::SourceLocation, std::string const&) + 0x45 (0x7fa701477a45 in /home/mlgroup/.conda/envs/PYTORCH-2.7/lib/python2.7/site-packages/torch/lib/libc10.so)
frame #1: <unknown function> + 0x5e34bc (0x7fa69c7a54bc in /home/mlgroup/.conda/envs/PYTORCH-2.7/lib/python2.7/site-packages/torch/lib/libtorch.so.1)
frame #2: torch::jit::OperatorSet::OperatorSet(std::initializer_list<char const*>) + 0x13f (0x7fa69c7a571f in /home/mlgroup/.conda/envs/PYTORCH-2.7/lib/python2.7/site-packages/torch/lib/libtorch.so.1)
frame #3: <unknown function> + 0x6167a4 (0x7fa69c7d87a4 in /home/mlgroup/.conda/envs/PYTORCH-2.7/lib/python2.7/site-packages/torch/lib/libtorch.so.1)
frame #4: <unknown function> + 0x857506 (0x7fa69ca19506 in /home/mlgroup/.conda/envs/PYTORCH-2.7/lib/python2.7/site-packages/torch/lib/libtorch.so.1)


Aborted (core dumped)

I have used GDB to trace the crash

#0  0x00007ffff71cd495 in raise () from /lib64/libc.so.6
#1  0x00007ffff71cec75 in abort () from /lib64/libc.so.6
#2  0x00007fffee4133df in __gnu_cxx::__verbose_terminate_handler ()
    at /opt/conda/conda-bld/compilers_linux-64_1534514838838/work/.build/x86_64-conda_cos6-linux-gnu/src/gcc/libstdc++-v3/libsupc++/vterminate.cc:95
#3  0x00007fffee411b16 in __cxxabiv1::__terminate (handler=<optimized out>)
    at /opt/conda/conda-bld/compilers_linux-64_1534514838838/work/.build/x86_64-conda_cos6-linux-gnu/src/gcc/libstdc++-v3/libsupc++/eh_terminate.cc:47
#4  0x00007fffee411b4c in std::terminate ()
    at /opt/conda/conda-bld/compilers_linux-64_1534514838838/work/.build/x86_64-conda_cos6-linux-gnu/src/gcc/libstdc++-v3/libsupc++/eh_terminate.cc:57
#5  0x00007fffee411d28 in __cxxabiv1::__cxa_throw (obj=0x7ffff875a8e0, tinfo=0x7fffef0f92e0 <typeinfo for c10::Error>, dest=
    0x7fffeebd7bb0 <c10::Error::~Error()>)
    at /opt/conda/conda-bld/compilers_linux-64_1534514838838/work/.build/x86_64-conda_cos6-linux-gnu/src/gcc/libstdc++-v3/libsupc++/eh_throw.cc:95
#6  0x00007fffe42164f4 in torch::jit::(anonymous namespace)::OperatorRegistry::lookupByLiteral(char const*) ()
   from /home/mlgroup/.conda/envs/PYTORCH-2.7/lib/python2.7/site-packages/torch/lib/libtorch.so.1
#7  0x00007fffe421671f in torch::jit::OperatorSet::OperatorSet(std::initializer_list<char const*>) ()
   from /home/mlgroup/.conda/envs/PYTORCH-2.7/lib/python2.7/site-packages/torch/lib/libtorch.so.1
#8  0x00007fffe42497a4 in _GLOBAL__sub_I_shape_analysis.cpp ()
   from /home/mlgroup/.conda/envs/PYTORCH-2.7/lib/python2.7/site-packages/torch/lib/libtorch.so.1
#9  0x00007fffe448a506 in __do_global_ctors_aux ()
   from /home/mlgroup/.conda/envs/PYTORCH-2.7/lib/python2.7/site-packages/torch/lib/libtorch.so.1
#10 0x00007fffe3e1342b in _init () from /home/mlgroup/.conda/envs/PYTORCH-2.7/lib/python2.7/site-packages/torch/lib/libtorch.so.1
#11 0x00007ffff84bdb20 in ?? ()
#12 0x00007ffff7de5985 in _dl_init_internal () from /lib64/ld-linux-x86-64.so.2
#13 0x00007ffff7dea1f5 in dl_open_worker () from /lib64/ld-linux-x86-64.so.2
#14 0x00007ffff7de55e6 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2
#15 0x00007ffff7de999a in _dl_open () from /lib64/ld-linux-x86-64.so.2
#16 0x00007ffff79b6f66 in dlopen_doit () from /lib64/libdl.so.2
#17 0x00007ffff7de55e6 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2
#18 0x00007ffff79b729c in _dlerror_run () from /lib64/libdl.so.2
#19 0x00007ffff79b6ee1 in dlopen@@GLIBC_2.2.5 () from /lib64/libdl.so.2
#20 0x00007ffff7f27971 in _PyImport_GetDynLoadFunc () from /home/mlgroup/.conda/envs/PYTORCH-2.7/bin/../lib/libpython2.7.so.1.0
#21 0x00007ffff7f0f162 in _PyImport_LoadDynamicModule () from /home/mlgroup/.conda/envs/PYTORCH-2.7/bin/../lib/libpython2.7.so.1.0
#22 0x00007ffff7f0d323 in import_submodule () from /home/mlgroup/.conda/envs/PYTORCH-2.7/bin/../lib/libpython2.7.so.1.0
#23 0x00007ffff7f0d578 in load_next () from /home/mlgroup/.conda/envs/PYTORCH-2.7/bin/../lib/libpython2.7.so.1.0
#24 0x00007ffff7f0decc in PyImport_ImportModuleLevel () from /home/mlgroup/.conda/envs/PYTORCH-2.7/bin/../lib/libpython2.7.so.1.0
#25 0x00007ffff7ef1006 in builtin___import__ () from /home/mlgroup/.conda/envs/PYTORCH-2.7/bin/../lib/libpython2.7.so.1.0
#26 0x00007ffff7e60973 in PyObject_Call () from /home/mlgroup/.conda/envs/PYTORCH-2.7/bin/../lib/libpython2.7.so.1.0
#27 0x00007ffff7ef2c38 in PyEval_CallObjectWithKeywords () from /home/mlgroup/.conda/envs/PYTORCH-2.7/bin/../lib/libpython2.7.so.1.0
#28 0x00007ffff7ef8638 in PyEval_EvalFrameEx () from /home/mlgroup/.conda/envs/PYTORCH-2.7/bin/../lib/libpython2.7.so.1.0
#29 0x00007ffff7efc6c9 in PyEval_EvalCodeEx () from /home/mlgroup/.conda/envs/PYTORCH-2.7/bin/../lib/libpython2.7.so.1.0
#30 0x00007ffff7efc8ea in PyEval_EvalCode () from /home/mlgroup/.conda/envs/PYTORCH-2.7/bin/../lib/libpython2.7.so.1.0
#31 0x00007ffff7f0c41e in PyImport_ExecCodeModuleEx () from /home/mlgroup/.conda/envs/PYTORCH-2.7/bin/../lib/libpython2.7.so.1.0
#32 0x00007ffff7f0c69d in load_source_module () from /home/mlgroup/.conda/envs/PYTORCH-2.7/bin/../lib/libpython2.7.so.1.0
#33 0x00007ffff7f0db1f in load_package () from /home/mlgroup/.conda/envs/PYTORCH-2.7/bin/../lib/libpython2.7.so.1.0
#34 0x00007ffff7f0d323 in import_submodule () from /home/mlgroup/.conda/envs/PYTORCH-2.7/bin/../lib/libpython2.7.so.1.0
#35 0x00007ffff7f0d578 in load_next () from /home/mlgroup/.conda/envs/PYTORCH-2.7/bin/../lib/libpython2.7.so.1.0
#36 0x00007ffff7f0de8c in PyImport_ImportModuleLevel () from /home/mlgroup/.conda/envs/PYTORCH-2.7/bin/../lib/libpython2.7.so.1.0
#37 0x00007ffff7ef1006 in builtin___import__ () from /home/mlgroup/.conda/envs/PYTORCH-2.7/bin/../lib/libpython2.7.so.1.0
#38 0x00007ffff7e60973 in PyObject_Call () from /home/mlgroup/.conda/envs/PYTORCH-2.7/bin/../lib/libpython2.7.so.1.0
#39 0x00007ffff7ef2c38 in PyEval_CallObjectWithKeywords () from /home/mlgroup/.conda/envs/PYTORCH-2.7/bin/../lib/libpython2.7.so.1.0
#40 0x00007ffff7ef8638 in PyEval_EvalFrameEx () from /home/mlgroup/.conda/envs/PYTORCH-2.7/bin/../lib/libpython2.7.so.1.0
#41 0x00007ffff7efc6c9 in PyEval_EvalCodeEx () from /home/mlgroup/.conda/envs/PYTORCH-2.7/bin/../lib/libpython2.7.so.1.0
#42 0x00007ffff7efc8ea in PyEval_EvalCode () from /home/mlgroup/.conda/envs/PYTORCH-2.7/bin/../lib/libpython2.7.so.1.0
#43 0x00007ffff7f15bad in run_mod () from /home/mlgroup/.conda/envs/PYTORCH-2.7/bin/../lib/libpython2.7.so.1.0
#44 0x00007ffff7f16d28 in PyRun_FileExFlags () from /home/mlgroup/.conda/envs/PYTORCH-2.7/bin/../lib/libpython2.7.so.1.0
#45 0x00007ffff7f17f48 in PyRun_SimpleFileExFlags () from /home/mlgroup/.conda/envs/PYTORCH-2.7/bin/../lib/libpython2.7.so.1.0
#46 0x00007ffff7f2a16c in Py_Main () from /home/mlgroup/.conda/envs/PYTORCH-2.7/bin/../lib/libpython2.7.so.1.0
#47 0x00007ffff71b9d1d in __libc_start_main () from /lib64/libc.so.6
#48 0x00007ffff7ffb07f in _start () at ../sysdeps/x86_64/elf/start.S:103

Any ideas?