Centos6.9+python3.7+pytorch1.12.1 build succeed,but import error

import torch
Traceback (most recent call last):
File “”, line 1, in
File “/meda_home/hongbin/miniconda3/lib/python3.7/site-packages/torch/init .py”, line 202, in
from torch._C import * # noqa: F403
ImportError: /meda_home/hongbin/miniconda3/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined symbol: aligned_alloc

aligned_alloc seems to be introduced in C++17, so you might need to check if your libc.so defines these symbols or which libc.so is used.