Closed junque1r4 closed 1 year ago
https://github.com/Wilfred/difftastic/issues/187
They are getting the same error before fixed at https://github.com/Wilfred/difftastic/issues/187#issuecomment-1094408726
Looking at the error message, there is a reference to the det_lu_based_helper
function which has disappeared in libtorch 1.13. Is it possible that you're using a version of tch
that is for libtorch 1.12 or earlier? (the github tip or crate version 0.9.0 should work with 1.13)
@LaurentMazare IDK why the the isn't version ^0.9.
But I downloaded version 1.12 of lib torch and it's all working ( Only with sudo for some reason ), thanks!
So I'm trying to build but I'm getting some error... I already added to my environments the libtorch but still getting the error: https://app.warp.dev/block/ZOFX2CGP3VPxZMi4ThfgqG Output error:
Fresh cfg-if v1.0.0 Fresh autocfg v1.1.0 Fresh version_check v0.9.4 Fresh pkg-config v0.3.26 Fresh libc v0.2.138 Fresh unicode-ident v1.0.5 Fresh itoa v1.0.4 Fresh jobserver v0.1.25 Fresh typenum v1.16.0 Fresh getrandom v0.2.8 Fresh memchr v2.5.0 Fresh proc-macro2 v1.0.47 Fresh cc v1.0.77 Fresh generic-array v0.14.6 Fresh subtle v2.4.1 Fresh quote v1.0.21 Fresh cpufeatures v0.2.5 Fresh syn v1.0.105 Fresh crypto-common v0.1.6 Fresh block-buffer v0.10.3 Fresh once_cell v1.16.0 Fresh adler v1.0.2 Fresh digest v0.10.6 Fresh crc32fast v1.3.2 Fresh miniz_oxide v0.6.2 Fresh num_cpus v1.14.0 Fresh lazy_static v1.4.0 Fresh pin-project-lite v0.2.9 Fresh bzip2-sys v0.1.11+1.0.8 Fresh log v0.4.17 Fresh base64ct v1.5.3 Fresh bytes v1.3.0 Fresh bzip2 v0.4.3 Fresh byteorder v1.4.3 Fresh ahash v0.7.6 Fresh futures-core v0.3.25 Fresh serde_derive v1.0.149 Fresh core-foundation-sys v0.8.3 Fresh mio v0.8.5 Fresh zstd-sys v2.0.4+zstd.1.5.2 Fresh hmac v0.12.1 Fresh time-core v0.1.0 Fresh serde v1.0.149 Fresh tokio v1.23.0 Fresh zstd-safe v5.0.2+zstd.1.5.2 Fresh time-macros v0.2.6 Fresh hashbrown v0.12.3 Fresh tracing-core v0.1.30 Fresh cipher v0.3.0 Fresh tinyvec_macros v0.1.0 Fresh opaque-debug v0.3.0 Fresh fnv v1.0.7 Fresh rand_core v0.6.4 Fresh tinyvec v1.6.0 Fresh http v0.2.8 Fresh aes v0.7.5 Fresh futures-task v0.3.25 Fresh crossbeam-utils v0.8.14 Fresh slab v0.4.7 Fresh time v0.3.17 Fresh tracing v0.1.37 Fresh zstd v0.11.2+zstd.1.5.2 Fresh core-foundation v0.9.3 Fresh security-framework-sys v2.6.1 Fresh libz-sys v1.1.8 Fresh sha1 v0.10.5 Fresh thiserror-impl v1.0.37 Fresh futures-sink v0.3.25 Fresh bitflags v1.3.2 Fresh pin-utils v0.1.0 Fresh ryu v1.0.11 Fresh constant_time_eq v0.1.5 Fresh futures-io v0.3.25 Fresh remove_dir_all v0.5.3 Fresh fastrand v1.8.0 Fresh futures-util v0.3.25 Fresh tempfile v3.3.0 Fresh security-framework v2.7.0 Fresh tokio-util v0.7.4 Fresh thiserror v1.0.37 Fresh curl-sys v0.4.59+curl-7.86.0 Fresh num-traits v0.2.15 Fresh memoffset v0.7.1 Fresh indexmap v1.9.2 Fresh unicode-normalization v0.1.22 Fresh flate2 v1.0.25 Fresh socket2 v0.4.7 Fresh scopeguard v1.1.0 Fresh try-lock v0.2.3 Fresh percent-encoding v2.2.0 Fresh h2 v0.3.15 Fresh curl v0.4.44 Fresh anyhow v1.0.66 Fresh native-tls v0.2.11 Fresh form_urlencoded v1.1.0 Fresh crossbeam-epoch v0.9.13 Fresh want v0.3.0 Fresh futures-channel v0.3.25 Fresh httparse v1.8.0 Fresh http-body v0.4.5 Fresh sha2 v0.10.6 Fresh aho-corasick v0.7.20 Fresh tower-service v0.3.2 Fresh regex-syntax v0.6.28 Fresh unicode-bidi v0.3.8 Fresh httpdate v1.0.2 Fresh ppv-lite86 v0.2.17 Fresh hyper v0.14.23 Fresh idna v0.3.0 Fresh regex v1.7.0 Fresh rand_chacha v0.3.1 Fresh crossbeam-deque v0.8.2 Fresh tokio-native-tls v0.3.0 Fresh crossbeam-channel v0.5.6 Fresh password-hash v0.4.2 Fresh terminal_size v0.1.17 Fresh time v0.1.45 Fresh either v1.8.0 Fresh regex-automata v0.1.10 Fresh rawpointer v0.2.1 Fresh pbkdf2 v0.11.0 Compiling torch-sys v0.8.0 Fresh rayon-core v1.10.1 Fresh rand v0.8.5 Running
/Users/joaojunqueira/codes/mila/target/debug/build/torch-sys-a1e06b9e1e59b8a6/build-script-build` Fresh matrixmultiply v0.3.2 Fresh bstr v0.2.17 Fresh console v0.15.2 Fresh zip v0.5.13 Fresh hyper-tls v0.5.0 Fresh num-integer v0.1.45 Fresh encoding_rs v0.8.31 Fresh url v2.3.1 Fresh serde_json v1.0.89 Fresh serde_urlencoded v0.7.1 Fresh num-complex v0.4.2 Fresh csv-core v0.1.10 Fresh filetime v0.2.19 Fresh xattr v0.2.3 Fresh ipnet v2.6.0 Fresh mime v0.3.16 Fresh base64 v0.13.1 Fresh smallvec v1.10.0 Fresh itoa v0.4.8 Fresh number_prefix v0.4.0 Fresh csv v1.1.6 Fresh tar v0.4.38 Fresh unicode-normalization-alignments v0.1.12 Fresh reqwest v0.11.13 Fresh ndarray v0.15.6 Fresh indicatif v0.16.2 Fresh zip-extensions v0.6.1 Fresh protobuf v2.27.1 Fresh zip v0.6.3 Fresh rayon v1.6.1 Fresh itertools v0.10.5 Fresh fs2 v0.4.3 Fresh dirs-sys v0.3.7 Fresh glob v0.3.0 Fresh half v1.8.2 Fresh rust_tokenizers v7.0.2 Fresh ordered-float v3.4.0 Fresh uuid v1.2.2 Fresh half v2.1.0 Fresh dirs v4.0.0 Fresh cached-path v0.5.3 The following warnings were emitted during compilation:warning: clang: warning: -Wl,-rpath=/usr/local/Cellar/pytorch/1.13.0/lib: 'linker' input unused [-Wunused-command-line-argument] warning: clang: warning: -Wl,-rpath=/usr/local/Cellar/pytorch/1.13.0/lib: 'linker' input unused [-Wunused-command-line-argument] warning: In file included from libtch/torch_api.cpp:18: warning: libtch/stb_image_write.h:742:13: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations] warning: len = sprintf(buffer, "EXPOSURE= 1.0000000000000\n\n-Y %d +X %d\n", y, x); warning: ^ warning: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here warning: deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.") warning: ^ warning: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg' warning: #define deprecated_msg(_msg) attribute((deprecated(_msg))) warning: ^ warning: In file included from libtch/torch_api.cpp:1434: warning: libtch/torch_api_generated.cpp.h:294:29: error: no member named '_amp_update_scale_functional' in namespace 'torch' warning: auto outputs = torch::_amp_update_scale_functional(self, growth_tracker, found_inf, scale_growth_factor, scale_backoff_factor, growth_interval); warning: & bias={});
warning: ^
warning: In file included from libtch/torch_api.cpp:1434:
warning: libtch/torch_api_generated.cpp.h:1195:29: error: no member named '_mps_linear_backward_input' in namespace 'torch'; did you mean 'mkldnn_linear_backward_input'?
warning: auto outputs = torch::_mps_linear_backward_input(torch::IntArrayRef(input_size_data, input_size_len), grad_output, weight);
warning: ' could not bind to an lvalue of type 'int64_t' (aka 'long long')
warning: auto outputs = torch::_segment_reduce_backward(grad, output, data, std::string(reduce_ptr, reduce_len), (lengths ? lengths : torch::Tensor()), axis);
warning: ^~~~
warning: libtch/torch_api.h:16:5: note: expanded from macro 'PROTECT'
warning: x \
warning: ^
warning: /usr/local/Cellar/pytorch/1.13.0/include/ATen/ops/_segment_reduce_backward.h:26:226: note: passing argument to parameter 'offsets' here
warning: inline at::Tensor _segment_reduce_backward(const at::Tensor & grad, const at::Tensor & output, const at::Tensor & data, c10::string_view reduce, const c10::optional & lengths={}, const c10::optional & offsets={}, int64_t axis=0, const c10::optional & initial=c10::nullopt) {
warning: ^
warning: In file included from libtch/torch_api.cpp:1434:
warning: libtch/torch_api_generated.cpp.h:2796:22: error: no matching function for call to 'arange_out'
warning: auto outputs = torch::arange_out(out, start, end);
warning: ^ = torch::binary_cross_entropy_with_logits_backward(grad_output, self, target, (weight ? weight : torch::Tensor()), (pos_weight ? pos_weight : torch::Tensor()), reduction);
warning: & weight={}, const c10::optional & pos_weight={}, int64_t reduction=at::Reduction::Mean) {
warning: ^
warning: In file included from libtch/torch_api.cpp:1434:
warning: libtch/torch_api_generated.cpp.h:3842:29: error: no member named 'cauchy_functional' in namespace 'torch'; did you mean 'normal_functional'?
warning: auto outputs__ = torch::cauchy_functional( self, median, sigma);
warning: generator=c10::nullopt) {
warning: ^
warning: In file included from libtch/torch_api.cpp:1434:
warning: libtch/torch_api_generated.cpp.h:4185:29: error: no member named 'col2im_backward' in namespace 'torch'
warning: auto outputs__ = torch::col2im_backward(*grad_output, torch::IntArrayRef(kernel_size_data, kernel_size_len), torch::IntArrayRef(dilation_data, dilation_len), torch::IntArrayRef(padding_data, padding_len), torch::IntArrayRef(stride_data, stride_len));
warning:
~~~^ warning: libtch/torch_api.h:16:5: note: expanded from macro 'PROTECT' warning: x \ warning: ^ warning: In file included from libtch/torch_api.cpp:1434: warning: libtch/torch_api_generated.cpp.h:407:29: error: no member named '_coalesced_functional' in namespace 'torch' warning: auto outputs__ = torch::_coalesced_functional(self, (bool)coalesced); warning:~~~^ warning: libtch/torch_api.h:16:5: note: expanded from macro 'PROTECT' warning: x \ warning: ^ warning: In file included from libtch/torch_api.cpp:1434: warning: libtch/torch_api_generated.cpp.h:602:29: error: no member named '_det_lu_based_helper' in namespace 'torch' warning: auto outputs = torch::_det_lu_based_helper(*self); warning:~~~^ warning: libtch/torch_api.h:16:5: note: expanded from macro 'PROTECT' warning: x \ warning: ^ warning: In file included from libtch/torch_api.cpp:1434: warning: libtch/torch_api_generated.cpp.h:611:29: error: no member named '_det_lu_based_helper_backward_helper' in namespace 'torch' warning: auto outputs = torch::_det_lu_based_helper_backward_helper(det_grad, det, self, lu, *pivs); warning:~~~^ warning: libtch/torch_api.h:16:5: note: expanded from macro 'PROTECT' warning: x \ warning: ^ warning: In file included from libtch/torch_api.cpp:1434: warning: libtch/torch_api_generated.cpp.h:938:29: error: no member named '_index_put_impl_functional' in namespace 'torch' warning: auto outputs = torch::_index_put_impl_functional(self, of_carray_tensor_opt(indices_data, indices_len), values, (bool)accumulate, (bool)unsafe); warning:~~~^ warning: libtch/torch_api.h:16:5: note: expanded from macro 'PROTECT' warning: x \ warning: ^ warning: In file included from libtch/torch_api.cpp:1434: warning: libtch/torch_api_generated.cpp.h:979:29: error: no member named '_linalg_inv_out_helper_out' in namespace 'torch' warning: auto outputs = torch::_linalg_inv_out_helper_out(out, self, infos_lu, infos_getri); warning:~~~^ warning: libtch/torch_api.h:16:5: note: expanded from macro 'PROTECT' warning: x \ warning: ^ warning: In file included from libtch/torch_api.cpp:1434: warning: libtch/torch_api_generated.cpp.h:986:29: error: no member named '_linalg_inv_outhelper' in namespace 'torch' warning: auto outputs = torch::_linalg_inv_outhelper(self, infos_lu, infos_getri); warning:~~~^ warning: libtch/torch_api.h:16:5: note: expanded from macro 'PROTECT' warning: x \ warning: ^ warning: In file included from libtch/torch_api.cpp:1434: warning: libtch/torch_api_generated.cpp.h:993:29: error: no member named '_linalg_inv_out_helper_functional' in namespace 'torch' warning: auto outputs__ = torch::_linalg_inv_out_helper_functional(self, infos_lu, infos_getri); warning:~~~^ warning: libtch/torch_api.h:16:5: note: expanded from macro 'PROTECT' warning: x \ warning: ^ warning: In file included from libtch/torch_api.cpp:1434: warning: libtch/torch_api_generated.cpp.h:1002:29: error: no member named '_linalg_qr_helper' in namespace 'torch' warning: auto outputs = torch::_linalg_qr_helper(self, std::string(mode_ptr, mode_len)); warning:~~~^ warning: libtch/torch_api.h:16:5: note: expanded from macro 'PROTECT' warning: x \ warning: ^ warning: In file included from libtch/torch_api.cpp:1434: warning: libtch/torch_api_generated.cpp.h:1188:22: error: no member named '_mps_linear' in namespace 'torch'; did you mean 'at::native::_mps_linear'? warning: auto outputs__ = torch::_mps_linear(self, weight, (bias ? bias : torch::Tensor())); warning: ^~~~~~ warning: at::native::_mps_linear warning: libtch/torch_api.h:16:5: note: expanded from macro 'PROTECT' warning: x \ warning: ^ warning: /usr/local/Cellar/pytorch/1.13.0/include/ATen/ops/linear_native.h:22:22: note: 'at::native::_mps_linear' declared here warning: TORCH_API at::Tensor _mps_linear(const at::Tensor & input, const at::Tensor & weight, const c10::optional~^~~~~~~~ warning: mkldnn_linear_backward_input warning: libtch/torch_api.h:16:5: note: expanded from macro 'PROTECT' warning: x \ warning: ^ warning: /usr/local/Cellar/pytorch/1.13.0/include/ATen/ops/mkldnn_linear_backward_input.h:26:19: note: 'mkldnn_linear_backward_input' declared here warning: inline at::Tensor mkldnn_linear_backward_input(at::IntArrayRef input_size, const at::Tensor & grad_output, const at::Tensor & weight) { warning: ^ warning: In file included from libtch/torch_api.cpp:1434: warning: libtch/torch_api_generated.cpp.h:1202:29: error: no member named '_mps_linear_backward_weights' in namespace 'torch'; did you mean 'mkldnn_linear_backward_weights'? warning: auto outputs = torch::_mps_linear_backward_weights(grad_output, input, weight, (bool)bias_defined); warning:~^~~~~~warning: mkldnn_linear_backward_weights warning: libtch/torch_api.h:16:5: note: expanded from macro 'PROTECT' warning: x \ warning: ^ warning: /usr/local/Cellar/pytorch/1.13.0/include/ATen/ops/mkldnn_linear_backward_weights.h:26:44: note: 'mkldnn_linear_backward_weights' declared here warning: inline ::std::tuple<at::Tensor,at::Tensor> mkldnn_linear_backward_weights(const at::Tensor & grad_output, const at::Tensor & input, const at::Tensor & weight, bool bias_defined) { warning: ^ warning: In file included from libtch/torch_api.cpp:1434: warning: libtch/torch_api_generated.cpp.h:1402:29: error: no member named '_resize_output_functional' in namespace 'torch' warning: auto outputs__ = torch::_resize_output_functional(self, torch::IntArrayRef(size_data, size_len), device_of_int(device)); warning:~~~^ warning: libtch/torch_api.h:16:5: note: expanded from macro 'PROTECT' warning: x \ warning: ^ warning: In file included from libtch/torch_api.cpp:1434: warning: libtch/torch_api_generated.cpp.h:1452:154: error: reference to type 'const c10::optional~~~~ warning: libtch/torch_api.h:16:5: note: expanded from macro 'PROTECT' warning: x \ warning: ^ warning: /usr/local/Cellar/pytorch/1.13.0/include/ATen/ops/arange.h:56:21: note: candidate function not viable: requires 2 arguments, but 3 were provided warning: inline at::Tensor & arange_out(at::Tensor & out, const at::Scalar & end) { warning: ^ warning: /usr/local/Cellar/pytorch/1.13.0/include/ATen/ops/arange.h:66:21: note: candidate function not viable: requires 4 arguments, but 3 were provided warning: inline at::Tensor & arange_out(at::Tensor & out, const at::Scalar & start, const at::Scalar & end, const at::Scalar & step) { warning: ^ warning: In file included from libtch/torch_api.cpp:1434: warning: libtch/torch_api_generated.cpp.h:3388:29: error: no member named 'bernoulli_functional' in namespace 'torch' warning: auto outputs__ = torch::bernoulli_functional(self, *p); warning:~~~^ warning: libtch/torch_api.h:16:5: note: expanded from macro 'PROTECT' warning: x \ warning: ^ warning: In file included from libtch/torch_api.cpp:1434: warning: libtch/torch_api_generated.cpp.h:3437:29: error: no member named 'binary_cross_entropy_with_logits_backward' in namespace 'torch'; did you mean 'binary_cross_entropy_with_logits_out'? warning: auto outputs~^~~~~~~~~~~ warning: binary_cross_entropy_with_logits_out warning: libtch/torch_api.h:16:5: note: expanded from macro 'PROTECT' warning: x \ warning: ^ warning: /usr/local/Cellar/pytorch/1.13.0/include/ATen/ops/binary_cross_entropy_with_logits.h:31:21: note: 'binary_cross_entropy_with_logits_out' declared here warning: inline at::Tensor & binary_cross_entropy_with_logits_out(at::Tensor & out, const at::Tensor & self, const at::Tensor & target, const c10::optional~^~~~~~~ warning: normal_functional warning: libtch/torch_api.h:16:5: note: expanded from macro 'PROTECT' warning: x \ warning: ^ warning: /usr/local/Cellar/pytorch/1.13.0/include/ATen/ops/normal.h:26:19: note: 'normal_functional' declared here warning: inline at::Tensor normal_functional(const at::Tensor & self, double mean=0, double std=1, c10::optional~~~^ warning: libtch/torch_api.h:16:5: note: expanded from macro 'PROTECT' warning: x \ warning: ^ warning: fatal error: too many errors emitted, stopping now [-ferror-limit=] warning: 1 warning and 20 errors generated.error: failed to run custom build command for
torch-sys v0.8.0
Caused by: process didn't exit successfully: & bias={});
cargo:warning= ^
cargo:warning=In file included from libtch/torch_api.cpp:1434:
cargo:warning=libtch/torch_api_generated.cpp.h:1195:29: error: no member named '_mps_linear_backward_input' in namespace 'torch'; did you mean 'mkldnn_linear_backward_input'?
cargo:warning= auto outputs = torch::_mps_linear_backward_input(torch::IntArrayRef(input_size_data, input_size_len), grad_output, weight);
cargo:warning= ' could not bind to an lvalue of type 'int64_t' (aka 'long long')
cargo:warning= auto outputs = torch::_segment_reduce_backward(grad, output, data, std::string(reduce_ptr, reduce_len), (lengths ? lengths : torch::Tensor()), axis);
cargo:warning= ^~~~
cargo:warning=libtch/torch_api.h:16:5: note: expanded from macro 'PROTECT'
cargo:warning= x \
cargo:warning= ^
cargo:warning=/usr/local/Cellar/pytorch/1.13.0/include/ATen/ops/_segment_reduce_backward.h:26:226: note: passing argument to parameter 'offsets' here
cargo:warning=inline at::Tensor _segment_reduce_backward(const at::Tensor & grad, const at::Tensor & output, const at::Tensor & data, c10::string_view reduce, const c10::optional & lengths={}, const c10::optional & offsets={}, int64_t axis=0, const c10::optional & initial=c10::nullopt) {
cargo:warning= ^
cargo:warning=In file included from libtch/torch_api.cpp:1434:
cargo:warning=libtch/torch_api_generated.cpp.h:2796:22: error: no matching function for call to 'arange_out'
cargo:warning= auto outputs = torch::arange_out(out, start, end);
cargo:warning= ^ = torch::binary_cross_entropy_with_logits_backward(grad_output, self, target, (weight ? weight : torch::Tensor()), (pos_weight ? pos_weight : torch::Tensor()), reduction);
cargo:warning= & weight={}, const c10::optional & pos_weight={}, int64_t reduction=at::Reduction::Mean) {
cargo:warning= ^
cargo:warning=In file included from libtch/torch_api.cpp:1434:
cargo:warning=libtch/torch_api_generated.cpp.h:3842:29: error: no member named 'cauchy_functional' in namespace 'torch'; did you mean 'normal_functional'?
cargo:warning= auto outputs__ = torch::cauchy_functional( self, median, sigma);
cargo:warning= generator=c10::nullopt) {
cargo:warning= ^
cargo:warning=In file included from libtch/torch_api.cpp:1434:
cargo:warning=libtch/torch_api_generated.cpp.h:4185:29: error: no member named 'col2im_backward' in namespace 'torch'
cargo:warning= auto outputs__ = torch::col2im_backward(*grad_output, torch::IntArrayRef(kernel_size_data, kernel_size_len), torch::IntArrayRef(dilation_data, dilation_len), torch::IntArrayRef(padding_data, padding_len), torch::IntArrayRef(stride_data, stride_len));
cargo:warning=
/Users/joaojunqueira/codes/mila/target/debug/build/torch-sys-a1e06b9e1e59b8a6/build-script-build
(exit status: 1) --- stdout cargo:rerun-if-env-changed=TORCH_CUDA_VERSION cargo:rerun-if-env-changed=LIBTORCH cargo:rustc-link-search=native=/usr/local/Cellar/pytorch/1.13.0/lib cargo:rerun-if-changed=libtch/torch_api.cpp cargo:rerun-if-changed=libtch/torch_api.h cargo:rerun-if-changed=libtch/torch_api_generated.cpp.h cargo:rerun-if-changed=libtch/torch_api_generated.h cargo:rerun-if-changed=libtch/stb_image_write.h cargo:rerun-if-changed=libtch/stb_image_resize.h cargo:rerun-if-changed=libtch/stb_image.h cargo:rerun-if-env-changed=LIBTORCH_CXX11_ABI TARGET = Some("x86_64-apple-darwin") OPT_LEVEL = Some("0") HOST = Some("x86_64-apple-darwin") cargo:rerun-if-env-changed=CXX_x86_64-apple-darwin CXX_x86_64-apple-darwin = None cargo:rerun-if-env-changed=CXX_x86_64_apple_darwin CXX_x86_64_apple_darwin = None cargo:rerun-if-env-changed=HOST_CXX HOST_CXX = None cargo:rerun-if-env-changed=CXX CXX = None cargo:rerun-if-env-changed=CXXFLAGS_x86_64-apple-darwin CXXFLAGS_x86_64-apple-darwin = None cargo:rerun-if-env-changed=CXXFLAGS_x86_64_apple_darwin CXXFLAGS_x86_64_apple_darwin = None cargo:rerun-if-env-changed=HOST_CXXFLAGS HOST_CXXFLAGS = None cargo:rerun-if-env-changed=CXXFLAGS CXXFLAGS = None cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None DEBUG = Some("true") CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2,sse3,ssse3") running: "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-m64" "-arch" "x86_64" "-I" "/usr/local/Cellar/pytorch/1.13.0/include" "-I" "/usr/local/Cellar/pytorch/1.13.0/include/torch/csrc/api/include" "-Wl,-rpath=/usr/local/Cellar/pytorch/1.13.0/lib" "-std=c++14" "-D_GLIBCXX_USE_CXX11_ABI=1" "-o" "/Users/joaojunqueira/codes/mila/target/debug/build/torch-sys-a8f8ee08c205e286/out/libtch/torch_api.o" "-c" "libtch/torch_api.cpp" running: "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-m64" "-arch" "x86_64" "-I" "/usr/local/Cellar/pytorch/1.13.0/include" "-I" "/usr/local/Cellar/pytorch/1.13.0/include/torch/csrc/api/include" "-Wl,-rpath=/usr/local/Cellar/pytorch/1.13.0/lib" "-std=c++14" "-D_GLIBCXX_USE_CXX11_ABI=1" "-o" "/Users/joaojunqueira/codes/mila/target/debug/build/torch-sys-a8f8ee08c205e286/out/libtch/fake_cuda_dependency.o" "-c" "libtch/fake_cuda_dependency.cpp" cargo:warning=clang: warning: -Wl,-rpath=/usr/local/Cellar/pytorch/1.13.0/lib: 'linker' input unused [-Wunused-command-line-argument] cargo:warning=clang: warning: -Wl,-rpath=/usr/local/Cellar/pytorch/1.13.0/lib: 'linker' input unused [-Wunused-command-line-argument] exit status: 0 cargo:warning=In file included from libtch/torch_api.cpp:18: cargo:warning=libtch/stb_image_write.h:742:13: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations] cargo:warning= len = sprintf(buffer, "EXPOSURE= 1.0000000000000\n\n-Y %d +X %d\n", y, x); cargo:warning= ^ cargo:warning=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here cargo:warning=deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.") cargo:warning=^ cargo:warning=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg' cargo:warning= #define deprecated_msg(_msg) attribute((deprecated(_msg))) cargo:warning= ^ cargo:warning=In file included from libtch/torch_api.cpp:1434: cargo:warning=libtch/torch_api_generated.cpp.h:294:29: error: no member named '_amp_update_scale_functional' in namespace 'torch' cargo:warning= auto outputs = torch::_amp_update_scale_functional(self, growth_tracker, found_inf, scale_growth_factor, scale_backoff_factor, growth_interval); cargo:warning=~~~^ cargo:warning=libtch/torch_api.h:16:5: note: expanded from macro 'PROTECT' cargo:warning= x \ cargo:warning= ^ cargo:warning=In file included from libtch/torch_api.cpp:1434: cargo:warning=libtch/torch_api_generated.cpp.h:407:29: error: no member named '_coalesced_functional' in namespace 'torch' cargo:warning= auto outputs__ = torch::_coalesced_functional(self, (bool)coalesced); cargo:warning=~~~^ cargo:warning=libtch/torch_api.h:16:5: note: expanded from macro 'PROTECT' cargo:warning= x \ cargo:warning= ^ cargo:warning=In file included from libtch/torch_api.cpp:1434: cargo:warning=libtch/torch_api_generated.cpp.h:602:29: error: no member named '_det_lu_based_helper' in namespace 'torch' cargo:warning= auto outputs = torch::_det_lu_based_helper(*self); cargo:warning=~~~^ cargo:warning=libtch/torch_api.h:16:5: note: expanded from macro 'PROTECT' cargo:warning= x \ cargo:warning= ^ cargo:warning=In file included from libtch/torch_api.cpp:1434: cargo:warning=libtch/torch_api_generated.cpp.h:611:29: error: no member named '_det_lu_based_helper_backward_helper' in namespace 'torch' cargo:warning= auto outputs = torch::_det_lu_based_helper_backward_helper(det_grad, det, self, lu, *pivs); cargo:warning=~~~^ cargo:warning=libtch/torch_api.h:16:5: note: expanded from macro 'PROTECT' cargo:warning= x \ cargo:warning= ^ cargo:warning=In file included from libtch/torch_api.cpp:1434: cargo:warning=libtch/torch_api_generated.cpp.h:938:29: error: no member named '_index_put_impl_functional' in namespace 'torch' cargo:warning= auto outputs = torch::_index_put_impl_functional(self, of_carray_tensor_opt(indices_data, indices_len), values, (bool)accumulate, (bool)unsafe); cargo:warning=~~~^ cargo:warning=libtch/torch_api.h:16:5: note: expanded from macro 'PROTECT' cargo:warning= x \ cargo:warning= ^ cargo:warning=In file included from libtch/torch_api.cpp:1434: cargo:warning=libtch/torch_api_generated.cpp.h:979:29: error: no member named '_linalg_inv_out_helper_out' in namespace 'torch' cargo:warning= auto outputs = torch::_linalg_inv_out_helper_out(out, self, infos_lu, infos_getri); cargo:warning=~~~^ cargo:warning=libtch/torch_api.h:16:5: note: expanded from macro 'PROTECT' cargo:warning= x \ cargo:warning= ^ cargo:warning=In file included from libtch/torch_api.cpp:1434: cargo:warning=libtch/torch_api_generated.cpp.h:986:29: error: no member named '_linalg_inv_outhelper' in namespace 'torch' cargo:warning= auto outputs = torch::_linalg_inv_outhelper(self, infos_lu, infos_getri); cargo:warning=~~~^ cargo:warning=libtch/torch_api.h:16:5: note: expanded from macro 'PROTECT' cargo:warning= x \ cargo:warning= ^ cargo:warning=In file included from libtch/torch_api.cpp:1434: cargo:warning=libtch/torch_api_generated.cpp.h:993:29: error: no member named '_linalg_inv_out_helper_functional' in namespace 'torch' cargo:warning= auto outputs__ = torch::_linalg_inv_out_helper_functional(self, infos_lu, infos_getri); cargo:warning=~~~^ cargo:warning=libtch/torch_api.h:16:5: note: expanded from macro 'PROTECT' cargo:warning= x \ cargo:warning= ^ cargo:warning=In file included from libtch/torch_api.cpp:1434: cargo:warning=libtch/torch_api_generated.cpp.h:1002:29: error: no member named '_linalg_qr_helper' in namespace 'torch' cargo:warning= auto outputs = torch::_linalg_qr_helper(self, std::string(mode_ptr, mode_len)); cargo:warning=~~~^ cargo:warning=libtch/torch_api.h:16:5: note: expanded from macro 'PROTECT' cargo:warning= x \ cargo:warning= ^ cargo:warning=In file included from libtch/torch_api.cpp:1434: cargo:warning=libtch/torch_api_generated.cpp.h:1188:22: error: no member named '_mps_linear' in namespace 'torch'; did you mean 'at::native::_mps_linear'? cargo:warning= auto outputs__ = torch::_mps_linear(self, weight, (bias ? bias : torch::Tensor())); cargo:warning= ^~~~~~ cargo:warning= at::native::_mps_linear cargo:warning=libtch/torch_api.h:16:5: note: expanded from macro 'PROTECT' cargo:warning= x \ cargo:warning= ^ cargo:warning=/usr/local/Cellar/pytorch/1.13.0/include/ATen/ops/linear_native.h:22:22: note: 'at::native::_mps_linear' declared here cargo:warning=TORCH_API at::Tensor _mps_linear(const at::Tensor & input, const at::Tensor & weight, const c10::optional~^~~~~~~~ cargo:warning= mkldnn_linear_backward_input cargo:warning=libtch/torch_api.h:16:5: note: expanded from macro 'PROTECT' cargo:warning= x \ cargo:warning= ^ cargo:warning=/usr/local/Cellar/pytorch/1.13.0/include/ATen/ops/mkldnn_linear_backward_input.h:26:19: note: 'mkldnn_linear_backward_input' declared here cargo:warning=inline at::Tensor mkldnn_linear_backward_input(at::IntArrayRef input_size, const at::Tensor & grad_output, const at::Tensor & weight) { cargo:warning= ^ cargo:warning=In file included from libtch/torch_api.cpp:1434: cargo:warning=libtch/torch_api_generated.cpp.h:1202:29: error: no member named '_mps_linear_backward_weights' in namespace 'torch'; did you mean 'mkldnn_linear_backward_weights'? cargo:warning= auto outputs = torch::_mps_linear_backward_weights(grad_output, input, weight, (bool)bias_defined); cargo:warning=~^~~~~~cargo:warning= mkldnn_linear_backward_weights cargo:warning=libtch/torch_api.h:16:5: note: expanded from macro 'PROTECT' cargo:warning= x \ cargo:warning= ^ cargo:warning=/usr/local/Cellar/pytorch/1.13.0/include/ATen/ops/mkldnn_linear_backward_weights.h:26:44: note: 'mkldnn_linear_backward_weights' declared here cargo:warning=inline ::std::tuple<at::Tensor,at::Tensor> mkldnn_linear_backward_weights(const at::Tensor & grad_output, const at::Tensor & input, const at::Tensor & weight, bool bias_defined) { cargo:warning= ^ cargo:warning=In file included from libtch/torch_api.cpp:1434: cargo:warning=libtch/torch_api_generated.cpp.h:1402:29: error: no member named '_resize_output_functional' in namespace 'torch' cargo:warning= auto outputs__ = torch::_resize_output_functional(self, torch::IntArrayRef(size_data, size_len), device_of_int(device)); cargo:warning=~~~^ cargo:warning=libtch/torch_api.h:16:5: note: expanded from macro 'PROTECT' cargo:warning= x \ cargo:warning= ^ cargo:warning=In file included from libtch/torch_api.cpp:1434: cargo:warning=libtch/torch_api_generated.cpp.h:1452:154: error: reference to type 'const c10::optional~~~~ cargo:warning=libtch/torch_api.h:16:5: note: expanded from macro 'PROTECT' cargo:warning= x \ cargo:warning= ^ cargo:warning=/usr/local/Cellar/pytorch/1.13.0/include/ATen/ops/arange.h:56:21: note: candidate function not viable: requires 2 arguments, but 3 were provided cargo:warning=inline at::Tensor & arange_out(at::Tensor & out, const at::Scalar & end) { cargo:warning= ^ cargo:warning=/usr/local/Cellar/pytorch/1.13.0/include/ATen/ops/arange.h:66:21: note: candidate function not viable: requires 4 arguments, but 3 were provided cargo:warning=inline at::Tensor & arange_out(at::Tensor & out, const at::Scalar & start, const at::Scalar & end, const at::Scalar & step) { cargo:warning= ^ cargo:warning=In file included from libtch/torch_api.cpp:1434: cargo:warning=libtch/torch_api_generated.cpp.h:3388:29: error: no member named 'bernoulli_functional' in namespace 'torch' cargo:warning= auto outputs__ = torch::bernoulli_functional(self, *p); cargo:warning=~~~^ cargo:warning=libtch/torch_api.h:16:5: note: expanded from macro 'PROTECT' cargo:warning= x \ cargo:warning= ^ cargo:warning=In file included from libtch/torch_api.cpp:1434: cargo:warning=libtch/torch_api_generated.cpp.h:3437:29: error: no member named 'binary_cross_entropy_with_logits_backward' in namespace 'torch'; did you mean 'binary_cross_entropy_with_logits_out'? cargo:warning= auto outputs~^~~~~~~~~~~ cargo:warning= binary_cross_entropy_with_logits_out cargo:warning=libtch/torch_api.h:16:5: note: expanded from macro 'PROTECT' cargo:warning= x \ cargo:warning= ^ cargo:warning=/usr/local/Cellar/pytorch/1.13.0/include/ATen/ops/binary_cross_entropy_with_logits.h:31:21: note: 'binary_cross_entropy_with_logits_out' declared here cargo:warning=inline at::Tensor & binary_cross_entropy_with_logits_out(at::Tensor & out, const at::Tensor & self, const at::Tensor & target, const c10::optional~^~~~~~~ cargo:warning= normal_functional cargo:warning=libtch/torch_api.h:16:5: note: expanded from macro 'PROTECT' cargo:warning= x \ cargo:warning= ^ cargo:warning=/usr/local/Cellar/pytorch/1.13.0/include/ATen/ops/normal.h:26:19: note: 'normal_functional' declared here cargo:warning=inline at::Tensor normal_functional(const at::Tensor & self, double mean=0, double std=1, c10::optional~~~^ cargo:warning=libtch/torch_api.h:16:5: note: expanded from macro 'PROTECT' cargo:warning= x \ cargo:warning= ^ cargo:warning=fatal error: too many errors emitted, stopping now [-ferror-limit=] cargo:warning=1 warning and 20 errors generated. exit status: 1--- stderr
error occurred: Command "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-m64" "-arch" "x86_64" "-I" "/usr/local/Cellar/pytorch/1.13.0/include" "-I" "/usr/local/Cellar/pytorch/1.13.0/include/torch/csrc/api/include" "-Wl,-rpath=/usr/local/Cellar/pytorch/1.13.0/lib" "-std=c++14" "-D_GLIBCXX_USE_CXX11_ABI=1" "-o" "/Users/joaojunqueira/codes/mila/target/debug/build/torch-sys-a8f8ee08c205e286/out/libtch/torch_api.o" "-c" "libtch/torch_api.cpp" with args "c++" did not execute successfully (status code exit status: 1).
`
I tried to install lib torch locally and I getting the same error, can someone help me please?