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

fatal error: crypt.h: No such file or directory #28

Open
rhmaaa opened this issue Mar 29, 2024 · 0 comments
Open

fatal error: crypt.h: No such file or directory #28

rhmaaa opened this issue Mar 29, 2024 · 0 comments

Comments

@rhmaaa
Copy link

rhmaaa commented Mar 29, 2024

python setup.py install
running install
/opt/conda/envs/smoothquant/lib/python3.8/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

    ********************************************************************************
    Please avoid running ``setup.py`` directly.
    Instead, use pypa/build, pypa/installer or other
    standards-based tools.

    See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
    ********************************************************************************

!!
self.initialize_options()
/opt/conda/envs/smoothquant/lib/python3.8/site-packages/setuptools/_distutils/cmd.py:66: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!

    ********************************************************************************
    Please avoid running ``setup.py`` and ``easy_install``.
    Instead, use pypa/build, pypa/installer or other
    standards-based tools.

    See https://github.com/pypa/setuptools/issues/917 for details.
    ********************************************************************************

!!
self.initialize_options()
running bdist_egg
running egg_info
writing torch_int.egg-info/PKG-INFO
writing dependency_links to torch_int.egg-info/dependency_links.txt
writing top-level names to torch_int.egg-info/top_level.txt
reading manifest file 'torch_int.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'torch_int.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
copying torch_int/init.py -> build/lib.linux-x86_64-cpython-38/torch_int
copying torch_int/nn/fused.py -> build/lib.linux-x86_64-cpython-38/torch_int/nn
copying torch_int/nn/linear.py -> build/lib.linux-x86_64-cpython-38/torch_int/nn
copying torch_int/nn/bmm.py -> build/lib.linux-x86_64-cpython-38/torch_int/nn
copying torch_int/nn/init.py -> build/lib.linux-x86_64-cpython-38/torch_int/nn
copying torch_int/utils/init.py -> build/lib.linux-x86_64-cpython-38/torch_int/utils
copying torch_int/functional/fused.py -> build/lib.linux-x86_64-cpython-38/torch_int/functional
copying torch_int/functional/bmm.py -> build/lib.linux-x86_64-cpython-38/torch_int/functional
copying torch_int/functional/quantization.py -> build/lib.linux-x86_64-cpython-38/torch_int/functional
copying torch_int/functional/init.py -> build/lib.linux-x86_64-cpython-38/torch_int/functional
copying torch_int/models/opt.py -> build/lib.linux-x86_64-cpython-38/torch_int/models
copying torch_int/models/init.py -> build/lib.linux-x86_64-cpython-38/torch_int/models
running build_ext
/opt/conda/envs/smoothquant/lib/python3.8/site-packages/torch/utils/cpp_extension.py:813: UserWarning: The detected CUDA version (11.8) has a minor version mismatch with the version that was used to compile PyTorch (11.3). Most likely this shouldn't be a problem.
warnings.warn(CUDA_MISMATCH_WARN.format(cuda_str_version, torch.version.cuda))
/opt/conda/envs/smoothquant/lib/python3.8/site-packages/torch/utils/cpp_extension.py:820: UserWarning: There are no /opt/conda/envs/smoothquant/bin/x86_64-conda-linux-gnu-c++ version bounds defined for CUDA version 11.8
warnings.warn(f'There are no {compiler_name} version bounds defined for CUDA version {cuda_str_version}')
building 'torch_int.CUDA' extension
/opt/conda/envs/smoothquant/bin/x86_64-conda-linux-gnu-cc -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/conda/envs/smoothquant/include -fPIC -O2 -isystem /opt/conda/envs/smoothquant/include -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /opt/conda/envs/smoothquant/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /opt/conda/envs/smoothquant/include -fPIC -Itorch_int/kernels/include -I/opt/conda/envs/smoothquant/lib/python3.8/site-packages/torch/include -I/opt/conda/envs/smoothquant/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/opt/conda/envs/smoothquant/lib/python3.8/site-packages/torch/include/TH -I/opt/conda/envs/smoothquant/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/opt/conda/envs/smoothquant/include/python3.8 -c torch_int/kernels/bindings.cpp -o build/temp.linux-x86_64-cpython-38/torch_int/kernels/bindings.o -std=c++14 -O3 -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="gcc" -DPYBIND11_STDLIB="libstdcpp" -DPYBIND11_BUILD_ABI="cxxabi1011" -DTORCH_EXTENSION_NAME=CUDA -D_GLIBCXX_USE_CXX11_ABI=0
/usr/local/cuda-11.8/bin/nvcc -Itorch_int/kernels/include -I/opt/conda/envs/smoothquant/lib/python3.8/site-packages/torch/include -I/opt/conda/envs/smoothquant/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/opt/conda/envs/smoothquant/lib/python3.8/site-packages/torch/include/TH -I/opt/conda/envs/smoothquant/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/opt/conda/envs/smoothquant/include/python3.8 -c torch_int/kernels/bmm.cu -o build/temp.linux-x86_64-cpython-38/torch_int/kernels/bmm.o -D__CUDA_NO_HALF_OPERATORS
-D__CUDA_NO_HALF_CONVERSIONS
-D__CUDA_NO_BFLOAT16_CONVERSIONS
_ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options '-fPIC' -O3 -std=c++14 -U__CUDA_NO_HALF_OPERATORS__ -U__CUDA_NO_HALF_CONVERSIONS__ -U__CUDA_NO_HALF2_OPERATORS__ -DCUDA_ARCH=800 -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="_gcc" -DPYBIND11_STDLIB="_libstdcpp" -DPYBIND11_BUILD_ABI="_cxxabi1011" -DTORCH_EXTENSION_NAME=_CUDA -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_80,code=compute_80 -gencode=arch=compute_80,code=sm_80 -ccbin /opt/conda/envs/smoothquant/bin/x86_64-conda-linux-gnu-cc
/opt/conda/envs/smoothquant/lib/python3.8/site-packages/torch/include/c10/core/SymInt.h(84): warning #68-D: integer conversion resulted in a change of sign

/opt/conda/envs/smoothquant/lib/python3.8/site-packages/torch/include/c10/core/SymInt.h(84): warning #68-D: integer conversion resulted in a change of sign

/usr/local/cuda-11.8/bin/nvcc -Itorch_int/kernels/include -I/opt/conda/envs/smoothquant/lib/python3.8/site-packages/torch/include -I/opt/conda/envs/smoothquant/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/opt/conda/envs/smoothquant/lib/python3.8/site-packages/torch/include/TH -I/opt/conda/envs/smoothquant/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/opt/conda/envs/smoothquant/include/python3.8 -c torch_int/kernels/fused.cu -o build/temp.linux-x86_64-cpython-38/torch_int/kernels/fused.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options '-fPIC' -O3 -std=c++14 -U__CUDA_NO_HALF_OPERATORS__ -U__CUDA_NO_HALF_CONVERSIONS__ -U__CUDA_NO_HALF2_OPERATORS__ -DCUDA_ARCH=800 -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="_gcc" -DPYBIND11_STDLIB="_libstdcpp" -DPYBIND11_BUILD_ABI="_cxxabi1011" -DTORCH_EXTENSION_NAME=_CUDA -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_80,code=compute_80 -gencode=arch=compute_80,code=sm_80 -ccbin /opt/conda/envs/smoothquant/bin/x86_64-conda-linux-gnu-cc
In file included from /opt/conda/envs/smoothquant/lib/python3.8/site-packages/torch/include/torch/csrc/python_headers.h:10,
from /opt/conda/envs/smoothquant/lib/python3.8/site-packages/torch/include/torch/csrc/Device.h:3,
from /opt/conda/envs/smoothquant/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/python.h:8,
from /opt/conda/envs/smoothquant/lib/python3.8/site-packages/torch/include/torch/extension.h:6,
from /opt/conda/envs/smoothquant/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:6,
from torch_int/kernels/include/common.h:8,
from torch_int/kernels/fused.cu:2:
/opt/conda/envs/smoothquant/include/python3.8/Python.h:44:10: fatal error: crypt.h: No such file or directory
44 | #include <crypt.h>
| ^~~~~~~~~
compilation terminated.
error: command '/usr/local/cuda-11.8/bin/nvcc' failed with exit code 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant