(base) ubuntu@ubuntu-virtual-machine:~$ conda info --envs
conda environments:
base * /home/ubuntu/miniforge3
deca_env /home/ubuntu/miniforge3/envs/deca_env
(base) ubuntu@ubuntu-virtual-machine:condaactivatedeca git clone
cd pytorch3d
git checkout v0.4.0
fatal: destination path 'pytorch3d' already exists and is not an empty directory.
HEAD is now at 3c15a6c version number for 0.4.0
(deca_env) ubuntu@ubuntu-virtual-machine:/pytorch3d$ python setup.py install
running install
/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/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()
/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/setuptools/_distutils/cmd.py:66: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!
code
********************************************************************************
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 pytorch3d.egg-info/PKG-INFO
writing dependency_links to pytorch3d.egg-info/dependency_links.txt
writing requirements to pytorch3d.egg-info/requires.txt
writing top-level names to pytorch3d.egg-info/top_level.txt
reading manifest file 'pytorch3d.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'pytorch3d.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-aarch64/egg
running install_lib
running build_py
copying pytorch3d/init.py -> build/lib.linux-aarch64-cpython-37/pytorch3d
copying pytorch3d/datasets/shapenet_base.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/datasets
copying pytorch3d/datasets/utils.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/datasets
copying pytorch3d/datasets/init.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/datasets
copying pytorch3d/structures/volumes.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/structures
copying pytorch3d/structures/meshes.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/structures
copying pytorch3d/structures/pointclouds.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/structures
copying pytorch3d/structures/utils.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/structures
copying pytorch3d/structures/init.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/structures
copying pytorch3d/io/obj_io.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/io
copying pytorch3d/io/ply_io.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/io
copying pytorch3d/io/utils.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/io
copying pytorch3d/io/mtl_io.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/io
copying pytorch3d/io/pluggable.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/io
copying pytorch3d/io/init.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/io
copying pytorch3d/io/pluggable_formats.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/io
copying pytorch3d/vis/plotly_vis.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/vis
copying pytorch3d/vis/init.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/vis
copying pytorch3d/vis/texture_vis.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/vis
copying pytorch3d/utils/ico_sphere.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/utils
copying pytorch3d/utils/torus.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/utils
copying pytorch3d/utils/init.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/utils
copying pytorch3d/transforms/transform3d.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/transforms
copying pytorch3d/transforms/rotation_conversions.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/transforms
copying pytorch3d/transforms/so3.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/transforms
copying pytorch3d/transforms/init.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/transforms
copying pytorch3d/renderer/lighting.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/renderer
copying pytorch3d/renderer/compositing.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/renderer
copying pytorch3d/renderer/materials.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/renderer
copying pytorch3d/renderer/utils.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/renderer
copying pytorch3d/renderer/blending.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/renderer
copying pytorch3d/renderer/camera_utils.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/renderer
copying pytorch3d/renderer/cameras.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/renderer
copying pytorch3d/renderer/init.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/renderer
copying pytorch3d/loss/mesh_edge_loss.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/loss
copying pytorch3d/loss/point_mesh_distance.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/loss
copying pytorch3d/loss/mesh_normal_consistency.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/loss
copying pytorch3d/loss/chamfer.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/loss
copying pytorch3d/loss/init.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/loss
copying pytorch3d/loss/mesh_laplacian_smoothing.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/loss
copying pytorch3d/ops/points_normals.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/ops
copying pytorch3d/ops/graph_conv.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/ops
copying pytorch3d/ops/perspective_n_points.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/ops
copying pytorch3d/ops/subdivide_meshes.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/ops
copying pytorch3d/ops/knn.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/ops
copying pytorch3d/ops/marching_cubes_data.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/ops
copying pytorch3d/ops/vert_align.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/ops
copying pytorch3d/ops/points_alignment.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/ops
copying pytorch3d/ops/mesh_filtering.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/ops
copying pytorch3d/ops/utils.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/ops
copying pytorch3d/ops/cubify.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/ops
copying pytorch3d/ops/marching_cubes.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/ops
copying pytorch3d/ops/packed_to_padded.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/ops
copying pytorch3d/ops/cameras_alignment.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/ops
copying pytorch3d/ops/interp_face_attrs.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/ops
copying pytorch3d/ops/points_to_volumes.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/ops
copying pytorch3d/ops/sample_points_from_meshes.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/ops
copying pytorch3d/ops/init.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/ops
copying pytorch3d/ops/mesh_face_areas_normals.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/ops
copying pytorch3d/datasets/shapenet/shapenet_core.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/datasets/shapenet
copying pytorch3d/datasets/shapenet/init.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/datasets/shapenet
copying pytorch3d/datasets/r2n2/r2n2.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/datasets/r2n2
copying pytorch3d/datasets/r2n2/utils.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/datasets/r2n2
copying pytorch3d/datasets/r2n2/init.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/datasets/r2n2
copying pytorch3d/renderer/mesh/renderer.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/renderer/mesh
copying pytorch3d/renderer/mesh/rasterize_meshes.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/renderer/mesh
copying pytorch3d/renderer/mesh/textures.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/renderer/mesh
copying pytorch3d/renderer/mesh/shading.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/renderer/mesh
copying pytorch3d/renderer/mesh/clip.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/renderer/mesh
copying pytorch3d/renderer/mesh/utils.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/renderer/mesh
copying pytorch3d/renderer/mesh/rasterizer.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/renderer/mesh
copying pytorch3d/renderer/mesh/init.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/renderer/mesh
copying pytorch3d/renderer/mesh/shader.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/renderer/mesh
copying pytorch3d/renderer/implicit/renderer.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/renderer/implicit
copying pytorch3d/renderer/implicit/raysampling.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/renderer/implicit
copying pytorch3d/renderer/implicit/utils.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/renderer/implicit
copying pytorch3d/renderer/implicit/raymarching.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/renderer/implicit
copying pytorch3d/renderer/implicit/init.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/renderer/implicit
copying pytorch3d/renderer/points/renderer.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/renderer/points
copying pytorch3d/renderer/points/rasterize_points.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/renderer/points
copying pytorch3d/renderer/points/compositor.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/renderer/points
copying pytorch3d/renderer/points/rasterizer.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/renderer/points
copying pytorch3d/renderer/points/init.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/renderer/points
copying pytorch3d/renderer/points/pulsar/renderer.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/renderer/points/pulsar
copying pytorch3d/renderer/points/pulsar/unified.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/renderer/points/pulsar
copying pytorch3d/renderer/points/pulsar/init.py -> build/lib.linux-aarch64-cpython-37/pytorch3d/renderer/points/pulsar
running build_ext
building 'pytorch3d._C' extension
Emitting ninja build file /home/ubuntu/pytorch3d/build/temp.linux-aarch64-cpython-37/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
[1/29] /home/ubuntu/miniforge3/envs/deca_env/bin/x86_64-conda-linux-gnu-c++ -MMD -MF /home/ubuntu/pytorch3d/build/temp.linux-aarch64-cpython-37/home/ubuntu/pytorch3d/pytorch3d/csrc/compositing/weighted_sum_cpu.o.d -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -Wstrict-prototypes -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/ubuntu/miniforge3/envs/deca_env/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/ubuntu/miniforge3/envs/deca_env/include -fPIC -I/home/ubuntu/pytorch3d/pytorch3d/csrc -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/TH -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/THC -I/home/ubuntu/miniforge3/envs/deca_env/include/python3.7m -c -c /home/ubuntu/pytorch3d/pytorch3d/csrc/compositing/weighted_sum_cpu.cpp -o /home/ubuntu/pytorch3d/build/temp.linux-aarch64-cpython-37/home/ubuntu/pytorch3d/pytorch3d/csrc/compositing/weighted_sum_cpu.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1013"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0
FAILED: /home/ubuntu/pytorch3d/build/temp.linux-aarch64-cpython-37/home/ubuntu/pytorch3d/pytorch3d/csrc/compositing/weighted_sum_cpu.o
/home/ubuntu/miniforge3/envs/deca_env/bin/x86_64-conda-linux-gnu-c++ -MMD -MF /home/ubuntu/pytorch3d/build/temp.linux-aarch64-cpython-37/home/ubuntu/pytorch3d/pytorch3d/csrc/compositing/weighted_sum_cpu.o.d -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -Wstrict-prototypes -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/ubuntu/miniforge3/envs/deca_env/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/ubuntu/miniforge3/envs/deca_env/include -fPIC -I/home/ubuntu/pytorch3d/pytorch3d/csrc -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/TH -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/THC -I/home/ubuntu/miniforge3/envs/deca_env/include/python3.7m -c -c /home/ubuntu/pytorch3d/pytorch3d/csrc/compositing/weighted_sum_cpu.cpp -o /home/ubuntu/pytorch3d/build/temp.linux-aarch64-cpython-37/home/ubuntu/pytorch3d/pytorch3d/csrc/compositing/weighted_sum_cpu.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1013"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0
cc1plus: warning: command-line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
In file included from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/ATen/Parallel.h:140,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:13,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from /home/ubuntu/pytorch3d/pytorch3d/csrc/compositing/weighted_sum_cpu.cpp:3:
/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/ATen/ParallelOpenMP.h:83: warning: ignoring '#pragma omp parallel' [-Wunknown-pragmas]
83 | #pragma omp parallel for if ((end - begin) >= grain_size)
In file included from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/python_headers.h:10,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/Device.h:3,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/python.h:8,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/extension.h:6:
/home/ubuntu/miniforge3/envs/deca_env/include/python3.7m/Python.h:44:10: fatal error: crypt.h: No such file or directory
44 | #include <crypt.h>
| ^~~~~~~~~
compilation terminated.
[2/29] /home/ubuntu/miniforge3/envs/deca_env/bin/x86_64-conda-linux-gnu-c++ -MMD -MF /home/ubuntu/pytorch3d/build/temp.linux-aarch64-cpython-37/home/ubuntu/pytorch3d/pytorch3d/csrc/face_areas_normals/face_areas_normals_cpu.o.d -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -Wstrict-prototypes -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/ubuntu/miniforge3/envs/deca_env/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/ubuntu/miniforge3/envs/deca_env/include -fPIC -I/home/ubuntu/pytorch3d/pytorch3d/csrc -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/TH -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/THC -I/home/ubuntu/miniforge3/envs/deca_env/include/python3.7m -c -c /home/ubuntu/pytorch3d/pytorch3d/csrc/face_areas_normals/face_areas_normals_cpu.cpp -o /home/ubuntu/pytorch3d/build/temp.linux-aarch64-cpython-37/home/ubuntu/pytorch3d/pytorch3d/csrc/face_areas_normals/face_areas_normals_cpu.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1013"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0
FAILED: /home/ubuntu/pytorch3d/build/temp.linux-aarch64-cpython-37/home/ubuntu/pytorch3d/pytorch3d/csrc/face_areas_normals/face_areas_normals_cpu.o
/home/ubuntu/miniforge3/envs/deca_env/bin/x86_64-conda-linux-gnu-c++ -MMD -MF /home/ubuntu/pytorch3d/build/temp.linux-aarch64-cpython-37/home/ubuntu/pytorch3d/pytorch3d/csrc/face_areas_normals/face_areas_normals_cpu.o.d -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -Wstrict-prototypes -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/ubuntu/miniforge3/envs/deca_env/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/ubuntu/miniforge3/envs/deca_env/include -fPIC -I/home/ubuntu/pytorch3d/pytorch3d/csrc -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/TH -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/THC -I/home/ubuntu/miniforge3/envs/deca_env/include/python3.7m -c -c /home/ubuntu/pytorch3d/pytorch3d/csrc/face_areas_normals/face_areas_normals_cpu.cpp -o /home/ubuntu/pytorch3d/build/temp.linux-aarch64-cpython-37/home/ubuntu/pytorch3d/pytorch3d/csrc/face_areas_normals/face_areas_normals_cpu.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1013"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0
cc1plus: warning: command-line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
In file included from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/ATen/Parallel.h:140,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:13,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from /home/ubuntu/pytorch3d/pytorch3d/csrc/face_areas_normals/face_areas_normals_cpu.cpp:3:
/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/ATen/ParallelOpenMP.h:83: warning: ignoring '#pragma omp parallel' [-Wunknown-pragmas]
83 | #pragma omp parallel for if ((end - begin) >= grain_size)
In file included from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/python_headers.h:10,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/Device.h:3,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/python.h:8,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/extension.h:6:
/home/ubuntu/miniforge3/envs/deca_env/include/python3.7m/Python.h:44:10: fatal error: crypt.h: No such file or directory
44 | #include <crypt.h>
| ^~~~~~~~~
compilation terminated.
[3/29] /home/ubuntu/miniforge3/envs/deca_env/bin/x86_64-conda-linux-gnu-c++ -MMD -MF /home/ubuntu/pytorch3d/build/temp.linux-aarch64-cpython-37/home/ubuntu/pytorch3d/pytorch3d/csrc/compositing/alpha_composite_cpu.o.d -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -Wstrict-prototypes -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/ubuntu/miniforge3/envs/deca_env/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/ubuntu/miniforge3/envs/deca_env/include -fPIC -I/home/ubuntu/pytorch3d/pytorch3d/csrc -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/TH -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/THC -I/home/ubuntu/miniforge3/envs/deca_env/include/python3.7m -c -c /home/ubuntu/pytorch3d/pytorch3d/csrc/compositing/alpha_composite_cpu.cpp -o /home/ubuntu/pytorch3d/build/temp.linux-aarch64-cpython-37/home/ubuntu/pytorch3d/pytorch3d/csrc/compositing/alpha_composite_cpu.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1013"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0
FAILED: /home/ubuntu/pytorch3d/build/temp.linux-aarch64-cpython-37/home/ubuntu/pytorch3d/pytorch3d/csrc/compositing/alpha_composite_cpu.o
/home/ubuntu/miniforge3/envs/deca_env/bin/x86_64-conda-linux-gnu-c++ -MMD -MF /home/ubuntu/pytorch3d/build/temp.linux-aarch64-cpython-37/home/ubuntu/pytorch3d/pytorch3d/csrc/compositing/alpha_composite_cpu.o.d -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -Wstrict-prototypes -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/ubuntu/miniforge3/envs/deca_env/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/ubuntu/miniforge3/envs/deca_env/include -fPIC -I/home/ubuntu/pytorch3d/pytorch3d/csrc -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/TH -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/THC -I/home/ubuntu/miniforge3/envs/deca_env/include/python3.7m -c -c /home/ubuntu/pytorch3d/pytorch3d/csrc/compositing/alpha_composite_cpu.cpp -o /home/ubuntu/pytorch3d/build/temp.linux-aarch64-cpython-37/home/ubuntu/pytorch3d/pytorch3d/csrc/compositing/alpha_composite_cpu.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1013"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0
cc1plus: warning: command-line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
In file included from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/ATen/Parallel.h:140,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:13,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from /home/ubuntu/pytorch3d/pytorch3d/csrc/compositing/alpha_composite_cpu.cpp:3:
/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/ATen/ParallelOpenMP.h:83: warning: ignoring '#pragma omp parallel' [-Wunknown-pragmas]
83 | #pragma omp parallel for if ((end - begin) >= grain_size)
In file included from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/python_headers.h:10,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/Device.h:3,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/python.h:8,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/extension.h:6:
/home/ubuntu/miniforge3/envs/deca_env/include/python3.7m/Python.h:44:10: fatal error: crypt.h: No such file or directory
44 | #include <crypt.h>
| ^~~~~~~~~
compilation terminated.
[4/29] /home/ubuntu/miniforge3/envs/deca_env/bin/x86_64-conda-linux-gnu-c++ -MMD -MF /home/ubuntu/pytorch3d/build/temp.linux-aarch64-cpython-37/home/ubuntu/pytorch3d/pytorch3d/csrc/ext.o.d -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -Wstrict-prototypes -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/ubuntu/miniforge3/envs/deca_env/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/ubuntu/miniforge3/envs/deca_env/include -fPIC -I/home/ubuntu/pytorch3d/pytorch3d/csrc -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/TH -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/THC -I/home/ubuntu/miniforge3/envs/deca_env/include/python3.7m -c -c /home/ubuntu/pytorch3d/pytorch3d/csrc/ext.cpp -o /home/ubuntu/pytorch3d/build/temp.linux-aarch64-cpython-37/home/ubuntu/pytorch3d/pytorch3d/csrc/ext.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1013"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0
FAILED: /home/ubuntu/pytorch3d/build/temp.linux-aarch64-cpython-37/home/ubuntu/pytorch3d/pytorch3d/csrc/ext.o
/home/ubuntu/miniforge3/envs/deca_env/bin/x86_64-conda-linux-gnu-c++ -MMD -MF /home/ubuntu/pytorch3d/build/temp.linux-aarch64-cpython-37/home/ubuntu/pytorch3d/pytorch3d/csrc/ext.o.d -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -Wstrict-prototypes -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/ubuntu/miniforge3/envs/deca_env/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/ubuntu/miniforge3/envs/deca_env/include -fPIC -I/home/ubuntu/pytorch3d/pytorch3d/csrc -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/TH -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/THC -I/home/ubuntu/miniforge3/envs/deca_env/include/python3.7m -c -c /home/ubuntu/pytorch3d/pytorch3d/csrc/ext.cpp -o /home/ubuntu/pytorch3d/build/temp.linux-aarch64-cpython-37/home/ubuntu/pytorch3d/pytorch3d/csrc/ext.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1013"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0
cc1plus: warning: command-line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
In file included from /home/ubuntu/pytorch3d/pytorch3d/csrc/ext.cpp:4:
/home/ubuntu/pytorch3d/pytorch3d/csrc/./pulsar/global.h:39: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas]
39 | #pragma clang diagnostic push
/home/ubuntu/pytorch3d/pytorch3d/csrc/./pulsar/global.h:40: warning: ignoring '#pragma clang diagnostic' [-Wunknown-pragmas]
40 | #pragma clang diagnostic ignored "-Weverything"
In file included from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/ATen/Parallel.h:140,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:13,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from /home/ubuntu/pytorch3d/pytorch3d/csrc/./pulsar/global.h:41:
/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/ATen/ParallelOpenMP.h:83: warning: ignoring '#pragma omp parallel' [-Wunknown-pragmas]
83 | #pragma omp parallel for if ((end - begin) >= grain_size)
In file included from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/python_headers.h:10,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/Device.h:3,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/python.h:8,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/extension.h:6:
/home/ubuntu/miniforge3/envs/deca_env/include/python3.7m/Python.h:44:10: fatal error: crypt.h: No such file or directory
44 | #include <crypt.h>
| ^~~~~~~~~
compilation terminated.
[5/29] /home/ubuntu/miniforge3/envs/deca_env/bin/x86_64-conda-linux-gnu-c++ -MMD -MF /home/ubuntu/pytorch3d/build/temp.linux-aarch64-cpython-37/home/ubuntu/pytorch3d/pytorch3d/csrc/blending/sigmoid_alpha_blend_cpu.o.d -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -Wstrict-prototypes -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/ubuntu/miniforge3/envs/deca_env/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/ubuntu/miniforge3/envs/deca_env/include -fPIC -I/home/ubuntu/pytorch3d/pytorch3d/csrc -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/TH -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/THC -I/home/ubuntu/miniforge3/envs/deca_env/include/python3.7m -c -c /home/ubuntu/pytorch3d/pytorch3d/csrc/blending/sigmoid_alpha_blend_cpu.cpp -o /home/ubuntu/pytorch3d/build/temp.linux-aarch64-cpython-37/home/ubuntu/pytorch3d/pytorch3d/csrc/blending/sigmoid_alpha_blend_cpu.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1013"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0
FAILED: /home/ubuntu/pytorch3d/build/temp.linux-aarch64-cpython-37/home/ubuntu/pytorch3d/pytorch3d/csrc/blending/sigmoid_alpha_blend_cpu.o
/home/ubuntu/miniforge3/envs/deca_env/bin/x86_64-conda-linux-gnu-c++ -MMD -MF /home/ubuntu/pytorch3d/build/temp.linux-aarch64-cpython-37/home/ubuntu/pytorch3d/pytorch3d/csrc/blending/sigmoid_alpha_blend_cpu.o.d -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -Wstrict-prototypes -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/ubuntu/miniforge3/envs/deca_env/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/ubuntu/miniforge3/envs/deca_env/include -fPIC -I/home/ubuntu/pytorch3d/pytorch3d/csrc -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/TH -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/THC -I/home/ubuntu/miniforge3/envs/deca_env/include/python3.7m -c -c /home/ubuntu/pytorch3d/pytorch3d/csrc/blending/sigmoid_alpha_blend_cpu.cpp -o /home/ubuntu/pytorch3d/build/temp.linux-aarch64-cpython-37/home/ubuntu/pytorch3d/pytorch3d/csrc/blending/sigmoid_alpha_blend_cpu.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1013"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0
cc1plus: warning: command-line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
In file included from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/ATen/Parallel.h:140,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:13,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from /home/ubuntu/pytorch3d/pytorch3d/csrc/blending/sigmoid_alpha_blend_cpu.cpp:3:
/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/ATen/ParallelOpenMP.h:83: warning: ignoring '#pragma omp parallel' [-Wunknown-pragmas]
83 | #pragma omp parallel for if ((end - begin) >= grain_size)
In file included from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/python_headers.h:10,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/Device.h:3,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/python.h:8,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/extension.h:6:
/home/ubuntu/miniforge3/envs/deca_env/include/python3.7m/Python.h:44:10: fatal error: crypt.h: No such file or directory
44 | #include <crypt.h>
| ^~~~~~~~~
compilation terminated.
[6/29] /home/ubuntu/miniforge3/envs/deca_env/bin/x86_64-conda-linux-gnu-c++ -MMD -MF /home/ubuntu/pytorch3d/build/temp.linux-aarch64-cpython-37/home/ubuntu/pytorch3d/pytorch3d/csrc/compositing/norm_weighted_sum_cpu.o.d -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -Wstrict-prototypes -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/ubuntu/miniforge3/envs/deca_env/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/ubuntu/miniforge3/envs/deca_env/include -fPIC -I/home/ubuntu/pytorch3d/pytorch3d/csrc -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/TH -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/THC -I/home/ubuntu/miniforge3/envs/deca_env/include/python3.7m -c -c /home/ubuntu/pytorch3d/pytorch3d/csrc/compositing/norm_weighted_sum_cpu.cpp -o /home/ubuntu/pytorch3d/build/temp.linux-aarch64-cpython-37/home/ubuntu/pytorch3d/pytorch3d/csrc/compositing/norm_weighted_sum_cpu.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1013"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0
FAILED: /home/ubuntu/pytorch3d/build/temp.linux-aarch64-cpython-37/home/ubuntu/pytorch3d/pytorch3d/csrc/compositing/norm_weighted_sum_cpu.o
/home/ubuntu/miniforge3/envs/deca_env/bin/x86_64-conda-linux-gnu-c++ -MMD -MF /home/ubuntu/pytorch3d/build/temp.linux-aarch64-cpython-37/home/ubuntu/pytorch3d/pytorch3d/csrc/compositing/norm_weighted_sum_cpu.o.d -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -Wstrict-prototypes -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -pipe -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/ubuntu/miniforge3/envs/deca_env/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/ubuntu/miniforge3/envs/deca_env/include -fPIC -I/home/ubuntu/pytorch3d/pytorch3d/csrc -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/TH -I/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/THC -I/home/ubuntu/miniforge3/envs/deca_env/include/python3.7m -c -c /home/ubuntu/pytorch3d/pytorch3d/csrc/compositing/norm_weighted_sum_cpu.cpp -o /home/ubuntu/pytorch3d/build/temp.linux-aarch64-cpython-37/home/ubuntu/pytorch3d/pytorch3d/csrc/compositing/norm_weighted_sum_cpu.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1013"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0
cc1plus: warning: command-line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
In file included from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/ATen/Parallel.h:140,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:13,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from /home/ubuntu/pytorch3d/pytorch3d/csrc/compositing/norm_weighted_sum_cpu.cpp:3:
/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/ATen/ParallelOpenMP.h:83: warning: ignoring '#pragma omp parallel' [-Wunknown-pragmas]
83 | #pragma omp parallel for if ((end - begin) >= grain_size)
In file included from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/python_headers.h:10,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/Device.h:3,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/python.h:8,
from /home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/include/torch/extension.h:6:
/home/ubuntu/miniforge3/envs/deca_env/include/python3.7m/Python.h:44:10: fatal error: crypt.h: No such file or directory
44 | #include <crypt.h>
| ^~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1673, in _run_ninja_build
env=env)
File "/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/subprocess.py", line 512, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "setup.py", line 144, in
cmdclass={"build_ext": BuildExtension},
File "/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/setuptools/init.py", line 103, in setup
return distutils.core.setup(**attrs)
File "/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/setuptools/dist.py", line 963, in run_command
super().run_command(command)
File "/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/setuptools/command/install.py", line 84, in run
self.do_egg_install()
File "/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/setuptools/command/install.py", line 132, in do_egg_install
self.run_command('bdist_egg')
File "/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/setuptools/dist.py", line 963, in run_command
super().run_command(command)
File "/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/setuptools/command/bdist_egg.py", line 167, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/setuptools/command/bdist_egg.py", line 153, in call_command
self.run_command(cmdname)
File "/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/setuptools/dist.py", line 963, in run_command
super().run_command(command)
File "/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/setuptools/command/install_lib.py", line 11, in run
self.build()
File "/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/setuptools/_distutils/command/install_lib.py", line 111, in build
self.run_command('build_ext')
File "/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/setuptools/dist.py", line 963, in run_command
super().run_command(command)
File "/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 88, in run
_build_ext.run(self)
File "/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
self.build_extensions()
File "/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 708, in build_extensions
build_ext.build_extensions(self)
File "/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 467, in build_extensions
self._build_extensions_serial()
File "/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 493, in _build_extensions_serial
self.build_extension(ext)
File "/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 249, in build_extension
_build_ext.build_extension(self, ext)
File "/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/setuptools/_distutils/command/build_ext.py", line 555, in build_extension
depends=ext.depends,
File "/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 538, in unix_wrap_ninja_compile
with_cuda=with_cuda)
File "/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1359, in _write_ninja_file_and_compile_objects
error_prefix='Error compiling objects for extension')
File "/home/ubuntu/miniforge3/envs/deca_env/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1683, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension
The error you're encountering—fatal error: crypt.h: No such file or directory—indicates that the crypt.h header file is missing from your system. This file is essential for compiling certain C++ extensions, including parts of PyTorch3D. Here's how you can resolve this issue and successfully install PyTorch3D on your arm64 Ubuntu (aarch64) system.
Step 1: Update Your Package List
Before installing new packages, it's a good practice to update your package list to ensure you get the latest versions.
bash
sudo apt-get update
Step 2: Install Required Development Libraries
Install libcrypt-dev
The crypt.h header is provided by the libcrypt-dev package in Ubuntu. Install it using the following command:
bash
sudo apt-get install libcrypt-dev
Install libc6-dev (If Necessary)
If installing libcrypt-dev does not resolve the issue, you might also need to install libc6-dev, which provides the GNU C library development files.
bash
sudo apt-get install libc6-dev
Install Build Essentials
Ensure that you have the essential build tools installed. These are necessary for compiling C++ extensions.
bash
sudo apt-get install build-essential
Install Python Development Headers
Since you're using Python 3.7, install the corresponding development headers. However, since you're using a Conda environment, this step is often handled by Conda itself. If you encounter further issues, you can install them manually:
bash
sudo apt-get install python3.7-dev
Note: If you're using a newer version of Python, adjust the version number accordingly.
Step 3: Verify Installation of crypt.h
After installing the necessary packages, verify that crypt.h is present:
bash
find /usr/include -name crypt.h
You should see an output similar to:
code
/usr/include/crypt.h
If the file is still missing, double-check that libcrypt-dev or libc6-dev was installed correctly.
Step 4: Clean Previous Build Attempts
Before retrying the installation, clean any previous build attempts to avoid conflicts.
bash
cd ~/pytorch3d
git pull origin v0.4.0 # Ensure you're on the correct version
git reset --hard v0.4.0 # Reset any changes
rm -rf build/ # Remove the build directory
Step 5: Install PyTorch3D
Now, attempt to install PyTorch3D again. There are two primary methods to do this: using setup.py or pip. It's recommended to use pip for better dependency management and easier troubleshooting.
Method 1: Using pip
bash
cd ~/pytorch3d
pip install .
Method 2: Using setup.py
bash
cd ~/pytorch3d
python setup.py install
Note: Given the deprecation warnings you've encountered, using pip is the preferred method.
Additional Recommendations
Ensure Compatible PyTorch Version:
PyTorch3D requires a specific version of PyTorch. Make sure that your PyTorch installation is compatible with PyTorch3D v0.4.0. You can install a compatible version using Conda or Pip.
Adjust the version numbers as necessary based on PyTorch3D's requirements.
Use Conda-forge for Dependencies:
Sometimes, using packages from conda-forge can resolve compatibility issues, especially on arm64 architectures.
bash
conda install -c conda-forge libcrypt-dev
Check for Pre-built Binaries:
For arm64, pre-built binaries might not always be available. If they are, using them can save you from compiling from source.
bash
pip install pytorch3d
If pip doesn't find a compatible wheel, it will attempt to build from source, necessitating the steps above.
Consider Upgrading Python:
Python 3.7 is reaching the end of its life and might not be supported by newer packages. Consider upgrading to Python 3.8 or later within your Conda environment.
Then, reinstall your dependencies and attempt to install PyTorch3D again.
Summary
The primary issue stems from the missing crypt.h file, which is resolved by installing the libcrypt-dev package (and potentially libc6-dev). After ensuring all necessary development libraries and build tools are in place, you should be able to compile and install PyTorch3D successfully.
If you continue to encounter errors after following these steps, please provide additional error logs, and I'll be happy to assist further.