Skip to content

error: command '/usr/bin/g++' failed with exit code 1,shifts.o: No such file or directory #11

Description

@CodeDevCurry

ython setup.py bdist_wheel
Building wheel torchshifts-3.1+cu11.1torch1.10+218c6be
Building with CUDA
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-38
creating build/lib.linux-x86_64-cpython-38/torchshifts
copying torchshifts/extension.py -> build/lib.linux-x86_64-cpython-38/torchshifts
copying torchshifts/functional.py -> build/lib.linux-x86_64-cpython-38/torchshifts
copying torchshifts/version.py -> build/lib.linux-x86_64-cpython-38/torchshifts
copying torchshifts/init.py -> build/lib.linux-x86_64-cpython-38/torchshifts
creating build/lib.linux-x86_64-cpython-38/torchshifts/quantized
copying torchshifts/quantized/functional.py -> build/lib.linux-x86_64-cpython-38/torchshifts/quantized
copying torchshifts/quantized/init.py -> build/lib.linux-x86_64-cpython-38/torchshifts/quantized
creating build/lib.linux-x86_64-cpython-38/torchshifts/modules
copying torchshifts/modules/shifts.py -> build/lib.linux-x86_64-cpython-38/torchshifts/modules
copying torchshifts/modules/init.py -> build/lib.linux-x86_64-cpython-38/torchshifts/modules
creating build/lib.linux-x86_64-cpython-38/torchshifts/quantized/modules
copying torchshifts/quantized/modules/shifts.py -> build/lib.linux-x86_64-cpython-38/torchshifts/quantized/modules
copying torchshifts/quantized/modules/init.py -> build/lib.linux-x86_64-cpython-38/torchshifts/quantized/modules
running build_ext
building 'torchshifts._C' extension
creating /home/u2208283129/ActiveSparseShifts-PyTorch/build/temp.linux-x86_64-cpython-38
creating /home/u2208283129/ActiveSparseShifts-PyTorch/build/temp.linux-x86_64-cpython-38/home
creating /home/u2208283129/ActiveSparseShifts-PyTorch/build/temp.linux-x86_64-cpython-38/home/u2208283129
creating /home/u2208283129/ActiveSparseShifts-PyTorch/build/temp.linux-x86_64-cpython-38/home/u2208283129/ActiveSparseShifts-PyTorch
creating /home/u2208283129/ActiveSparseShifts-PyTorch/build/temp.linux-x86_64-cpython-38/home/u2208283129/ActiveSparseShifts-PyTorch/torchshifts
creating /home/u2208283129/ActiveSparseShifts-PyTorch/build/temp.linux-x86_64-cpython-38/home/u2208283129/ActiveSparseShifts-PyTorch/torchshifts/csrc
creating /home/u2208283129/ActiveSparseShifts-PyTorch/build/temp.linux-x86_64-cpython-38/home/u2208283129/ActiveSparseShifts-PyTorch/torchshifts/csrc/ops
creating /home/u2208283129/ActiveSparseShifts-PyTorch/build/temp.linux-x86_64-cpython-38/home/u2208283129/ActiveSparseShifts-PyTorch/torchshifts/csrc/ops/autograd
creating /home/u2208283129/ActiveSparseShifts-PyTorch/build/temp.linux-x86_64-cpython-38/home/u2208283129/ActiveSparseShifts-PyTorch/torchshifts/csrc/ops/cpu
creating /home/u2208283129/ActiveSparseShifts-PyTorch/build/temp.linux-x86_64-cpython-38/home/u2208283129/ActiveSparseShifts-PyTorch/torchshifts/csrc/ops/cuda
creating /home/u2208283129/ActiveSparseShifts-PyTorch/build/temp.linux-x86_64-cpython-38/home/u2208283129/ActiveSparseShifts-PyTorch/torchshifts/csrc/ops/quantized
Emitting ninja build file /home/u2208283129/ActiveSparseShifts-PyTorch/build/temp.linux-x86_64-cpython-38/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
1.8.2
g++ -pthread -B /home/u2208283129/.conda/envs/test/compiler_compat -Wl,--sysroot=/ -pthread -shared -B /home/u2208283129/.conda/envs/test/compiler_compat -L/home/u2208283129/.conda/envs/test/lib -Wl,-rpath=/home/u2208283129/.conda/envs/test/lib -Wl,--no-as-needed -Wl,--sysroot=/ /home/u2208283129/ActiveSparseShifts-PyTorch/build/temp.linux-x86_64-cpython-38/home/u2208283129/ActiveSparseShifts-PyTorch/torchshifts/csrc/ops/autograd/shifts_autograd.o /home/u2208283129/ActiveSparseShifts-PyTorch/build/temp.linux-x86_64-cpython-38/home/u2208283129/ActiveSparseShifts-PyTorch/torchshifts/csrc/ops/cpu/shifts_cpu.o /home/u2208283129/ActiveSparseShifts-PyTorch/build/temp.linux-x86_64-cpython-38/home/u2208283129/ActiveSparseShifts-PyTorch/torchshifts/csrc/ops/cuda/shifts_cuda.o /home/u2208283129/ActiveSparseShifts-PyTorch/build/temp.linux-x86_64-cpython-38/home/u2208283129/ActiveSparseShifts-PyTorch/torchshifts/csrc/ops/quantized/shifts_quantized.o /home/u2208283129/ActiveSparseShifts-PyTorch/build/temp.linux-x86_64-cpython-38/home/u2208283129/ActiveSparseShifts-PyTorch/torchshifts/csrc/ops/shifts.o /home/u2208283129/ActiveSparseShifts-PyTorch/build/temp.linux-x86_64-cpython-38/home/u2208283129/ActiveSparseShifts-PyTorch/torchshifts/csrc/torchshifts.o -L/home/u2208283129/.conda/envs/test/lib/python3.8/site-packages/torch/lib -L/usr/local/cuda-11.1/lib64 -lc10 -ltorch -ltorch_cpu -ltorch_python -lcudart -lc10_cuda -ltorch_cuda_cu -ltorch_cuda_cpp -o build/lib.linux-x86_64-cpython-38/torchshifts/_C.so
g++: error: /home/u2208283129/ActiveSparseShifts-PyTorch/build/temp.linux-x86_64-cpython-38/home/u2208283129/ActiveSparseShifts-PyTorch/torchshifts/csrc/ops/autograd/shifts_autograd.o: No such file or directory
g++: error: /home/u2208283129/ActiveSparseShifts-PyTorch/build/temp.linux-x86_64-cpython-38/home/u2208283129/ActiveSparseShifts-PyTorch/torchshifts/csrc/ops/cpu/shifts_cpu.o: No such file or directory
g++: error: /home/u2208283129/ActiveSparseShifts-PyTorch/build/temp.linux-x86_64-cpython-38/home/u2208283129/ActiveSparseShifts-PyTorch/torchshifts/csrc/ops/cuda/shifts_cuda.o: No such file or directory
g++: error: /home/u2208283129/ActiveSparseShifts-PyTorch/build/temp.linux-x86_64-cpython-38/home/u2208283129/ActiveSparseShifts-PyTorch/torchshifts/csrc/ops/quantized/shifts_quantized.o: No such file or directory
g++: error: /home/u2208283129/ActiveSparseShifts-PyTorch/build/temp.linux-x86_64-cpython-38/home/u2208283129/ActiveSparseShifts-PyTorch/torchshifts/csrc/ops/shifts.o: No such file or directory
g++: error: /home/u2208283129/ActiveSparseShifts-PyTorch/build/temp.linux-x86_64-cpython-38/home/u2208283129/ActiveSparseShifts-PyTorch/torchshifts/csrc/torchshifts.o: No such file or directory

error: command '/usr/bin/g++' failed with exit code 1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions