Skip to content

Instantly share code, notes, and snippets.

@jonringer
Created July 31, 2020 08:14
Show Gist options
  • Save jonringer/5bffe6be2bdbaa8d2b92688c1a3b528f to your computer and use it in GitHub Desktop.
Save jonringer/5bffe6be2bdbaa8d2b92688c1a3b528f to your computer and use it in GitHub Desktop.
In file included from aten/src/ATen/native/cpu/UnaryOpsKernel.cpp.DEFAULT.cpp:4:0:
aten/src/ATen/native/cpu/UnaryOpsKernel.cpp.DEFAULT.cpp: In lambda function:
aten/src/ATen/native/cpu/UnaryOpsKernel.cpp.DEFAULT.cpp:413:31: note: The ABI for passing parameters with 32-byte alignment has changed in GCC 4.6
[=](Vec256<scalar_t> a) { return a.rsqrt(); });
^
../aten/src/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__(); \
^~~~~~~~~~~
aten/src/ATen/native/cpu/UnaryOpsKernel.cpp.DEFAULT.cpp:407:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_AND_COMPLEX_TYPES’
AT_DISPATCH_FLOATING_AND_COMPLEX_TYPES(iter.dtype(), "rsqrt_cpu", [&] {
^
^M[3456/4918] Building CXX object caffe2/CMakeFiles/torch_cpu.dir/__/torch/csrc/autograd/autograd.cpp.o^M[3457/4918] Building CXX object caffe2/CMakeFiles/torch_cpu.dir/queue/queue_ops.cc.o^M[3457/4918] Building CXX object caffe2/CMakeFiles/torch_cpu.dir/>
FAILED: caffe2/CMakeFiles/torch_cpu.dir/sgd/adadelta_op.cc.o
/nix/store/4l40p4dwsm0r4zkz5h6vhnz0rbpnc73d-gcc-wrapper-7.5.0/bin/g++ -DCPUINFO_SUPPORTED_PLATFORM=1 -DFMT_HEADER_ONLY=1 -DFXDIV_USE_INLINE_ASSEMBLY=0 -DHAVE_MALLOC_USABLE_SIZE=1 -DHAVE_MMAP=1 -DHAVE_SHM_OPEN=1 -DHAVE_SHM_UNLINK=1 -DMAGMA_V2 -DMINIZ_DISA>
In file included from /nix/store/4d26w890rrga50q4mpll8lp3yj82r868-gcc-7.5.0/include/c++/7.5.0/memory:80:0,
from ../c10/util/Registry.h:16,
from ../caffe2/core/operator.h:17,
from ../caffe2/sgd/adadelta_op.h:1,
from ../caffe2/sgd/adadelta_op.cc:1:
/nix/store/4d26w890rrga50q4mpll8lp3yj82r868-gcc-7.5.0/include/c++/7.5.0/bits/unique_ptr.h: In instantiation of ‘std::unique_ptr<_Tp, _Dp>::unique_ptr(std::unique_ptr<_Tp, _Dp>::pointer) [with _Up = std::default_delete<caffe2::OperatorBase>; <template-para>
../c10/util/Registry.h:186:12: required from ‘static ObjectPtrType c10::Registerer<SrcType, ObjectPtrType, Args>::DefaultCreator(Args ...) [with DerivedType = caffe2::AdadeltaOp<caffe2::CPUContext>; SrcType = std::__cxx11::basic_string<char>; ObjectPtrT>
../caffe2/sgd/adadelta_op.cc:5:1: required from here
/nix/store/4d26w890rrga50q4mpll8lp3yj82r868-gcc-7.5.0/include/c++/7.5.0/bits/unique_ptr.h:198:11: internal compiler error: Segmentation fault
{ }
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
^M[3481/4918] Building CXX object caffe2/CMakeFiles/torch_cpu.dir/quantization/server/lstm_unit_dnnlowp_op.cc.o^M[3482/4918] Building CXX object caffe2/CMakeFiles/torch_cpu.dir/quantization/server/dnnlowp.cc.o^M[3483/4918] Building CXX object caffe2/CMake>
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "nix_run_setup", line 8, in <module>
exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))
File "setup.py", line 732, in <module>
build_deps()
File "setup.py", line 316, in build_deps
cmake=cmake)
File "/build/source/tools/build_pytorch_libs.py", line 62, in build_caffe2
cmake.build(my_env)
File "/build/source/tools/setup_helpers/cmake.py", line 345, in build
self.run(build_args, my_env)
File "/build/source/tools/setup_helpers/cmake.py", line 141, in run
check_call(command, cwd=self.build_dir, env=env)
File "/nix/store/wpw6qdjbrv7s72kk81n1lwf3vj6fldk2-python3-3.7.8/lib/python3.7/subprocess.py", line 363, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--target', 'install', '--config', 'Release', '--', '-j', '128']' returned non-zero exit status 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment