Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link.exe Error Exit Code 1120 #251

Closed
oojo12 opened this issue Oct 24, 2022 · 4 comments
Closed

Link.exe Error Exit Code 1120 #251

oojo12 opened this issue Oct 24, 2022 · 4 comments

Comments

@oojo12
Copy link
Contributor

oojo12 commented Oct 24, 2022

Tried tackling #228 and got the following error when I ran

cargo bench -F "blas"

Compiling linfa-clustering v0.6.0 (C:\Users\femio\OneDrive\Documents\Rust\linfa\algorithms\linfa-clustering)
error: linking with `link.exe` failed: exit code: 1120
 |
 = note: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.33.31629\\bin\\HostX64\\x64\\link.exe" "/NOLOGO" "C:\\Users\\femio\\AppData\\Local\\Temp\\rustcmEtKJE\\symbols.o" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\gaussian_mixture-b1ffb7943a7f824f.gaussian_mixture.f558ee8d-cgu.0.rcgu.o" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\gaussian_mixture-b1ffb7943a7f824f.gaussian_mixture.f558ee8d-cgu.1.rcgu.o" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\gaussian_mixture-b1ffb7943a7f824f.gaussian_mixture.f558ee8d-cgu.10.rcgu.o" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\gaussian_mixture-b1ffb7943a7f824f.gaussian_mixture.f558ee8d-cgu.11.rcgu.o" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\gaussian_mixture-b1ffb7943a7f824f.gaussian_mixture.f558ee8d-cgu.12.rcgu.o" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\gaussian_mixture-b1ffb7943a7f824f.gaussian_mixture.f558ee8d-cgu.13.rcgu.o" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\gaussian_mixture-b1ffb7943a7f824f.gaussian_mixture.f558ee8d-cgu.14.rcgu.o" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\gaussian_mixture-b1ffb7943a7f824f.gaussian_mixture.f558ee8d-cgu.15.rcgu.o" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\gaussian_mixture-b1ffb7943a7f824f.gaussian_mixture.f558ee8d-cgu.2.rcgu.o" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\gaussian_mixture-b1ffb7943a7f824f.gaussian_mixture.f558ee8d-cgu.3.rcgu.o" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\gaussian_mixture-b1ffb7943a7f824f.gaussian_mixture.f558ee8d-cgu.4.rcgu.o" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\gaussian_mixture-b1ffb7943a7f824f.gaussian_mixture.f558ee8d-cgu.5.rcgu.o" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\gaussian_mixture-b1ffb7943a7f824f.gaussian_mixture.f558ee8d-cgu.6.rcgu.o" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\gaussian_mixture-b1ffb7943a7f824f.gaussian_mixture.f558ee8d-cgu.7.rcgu.o" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\gaussian_mixture-b1ffb7943a7f824f.gaussian_mixture.f558ee8d-cgu.8.rcgu.o" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\gaussian_mixture-b1ffb7943a7f824f.gaussian_mixture.f558ee8d-cgu.9.rcgu.o" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\gaussian_mixture-b1ffb7943a7f824f.2jiwmvx15g8giwhj.rcgu.o" "/LIBPATH:C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps" "/LIBPATH:C:\\Users\\femio\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\liblinfa_datasets-79839b5568fa90ed.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\liblinfa_clustering-0db3a66b2a247219.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\librand_xoshiro-6c9e161257ab667e.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libndarray_rand-681f3a196da54067.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\librand_distr-8d73ea1df244a823.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libpartitions-a877e7b90918260c.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libbit_vec-45d011513f1ee570.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\liblinfa_nn-dce5fd6660ec9244.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libkdtree-1a462e769eec2c13.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\liborder_stat-93b9314c9f1399d6.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libndarray_stats-0e180653461e6a67.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libindexmap-3e9692dadd3c3d57.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libhashbrown-255b12b49a99ae9a.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libnoisy_float-1587087b122d7b56.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\liblinfa-29fe19e1ab96efaf.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libndarray_linalg-2679e3bfcfc84f30.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\liblax-2faf32235d378a6f.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\liblapack-a6e07e5fd2a25dce.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\liblapack_sys-2906ff4614deee3c.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libcauchy-51ae10a69430bec1.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libthiserror-3e6edd381a04b734.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libndarray-b89c328f310ce2b8.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libmatrixmultiply-ecc6db1511d34307.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libapprox-4ae3254d5d3f85f4.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libnum_complex-587ec9397ed88d3d.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\librand-3ee68ee287ab2a3e.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\librand_chacha-1e2cb08a04a674d2.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libppv_lite86-b3e03d956c8e9f21.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\librand_core-004a4b219dcdece7.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libgetrandom-085176849c25f3ee.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libnum_integer-9147173675f373f4.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\librawpointer-f5c49c9b50ba3718.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libcblas_sys-09e4951459aec856.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\liblibc-336eb9ba7b5ed84b.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libcriterion-e0f1cb411d3d4c0e.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libatty-5504625675092a8e.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libserde_cbor-a5f0d0800bfd0257.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libhalf-d2db689aa3cebd5e.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\liboorandom-0923cd3de415ad54.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\librayon-06e2346d54d5c0f1.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\librayon_core-017245bc41869f8d.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libnum_cpus-37fecbc7039179f2.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libcrossbeam_deque-85d8775054b08808.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libcrossbeam_epoch-2c6f2592e85d7d62.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libmemoffset-838cc49b0eec3042.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libscopeguard-59af7e2dc451f6a8.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libcrossbeam_channel-207d71930637e27f.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libcrossbeam_utils-c9f901d799d9f7a5.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libcfg_if-94f129e85b6df23d.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libplotters-304c14baa8e9d743.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libplotters_svg-67368f2ddf59ef41.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libnum_traits-b2bbbc022c4fe6b2.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libplotters_backend-107ceb4575254b2d.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libtinytemplate-33cf0871ed1d4138.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libcriterion_plot-98024f32c0597bf6.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libitertools-a6af7df4d7a7d25d.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libeither-c1acbf678edbad56.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libcast-81283a9d1f7c324c.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libwalkdir-0780d4067b67be0b.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libsame_file-5fd71b4ce898ad3a.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libwinapi_util-1be8519995b8bda6.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libwinapi-e2d5b818199f0d38.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libserde_json-739d55b2db1d1083.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libitoa-4584ff1ff4c9848a.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libcsv-a17e95c333e0f06f.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libryu-9845380a1b3ba6ca.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libitoa-09cdfb263072626f.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libcsv_core-ad2e132e59d76d9e.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libbstr-7e59399b4e0f0d1c.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libregex_automata-e0aa1c524bd83388.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libmemchr-487101fc5e9ad33a.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libserde-c33dfbbbad5663bb.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libregex-5e9b60b9511851f9.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libregex_syntax-08b3da89fa1c9416.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libclap-5de5c3435b5fdeb7.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libtextwrap-1fd1fdc519f95379.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libunicode_width-b2567815f19776c3.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\libbitflags-c59f221320647813.rlib" "C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\liblazy_static-a1c70cd192dcd898.rlib" "C:\\Users\\femio\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd-4a00450d169b6eb7.rlib" "C:\\Users\\femio\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libpanic_unwind-aebdd47781a8ded3.rlib" "C:\\Users\\femio\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_demangle-75d00692298b803c.rlib" "C:\\Users\\femio\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd_detect-212d184ebbb3da0c.rlib" "C:\\Users\\femio\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libhashbrown-bb2ae27a3860a710.rlib" "C:\\Users\\femio\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libminiz_oxide-aebeb1235b6ade9b.rlib" "C:\\Users\\femio\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libadler-8d905bd195def6d5.rlib" "C:\\Users\\femio\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_alloc-cdd36af8506e2d87.rlib" "C:\\Users\\femio\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libunwind-57642f47c953f1ca.rlib" "C:\\Users\\femio\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcfg_if-ddc101acd19cf3dd.rlib" "C:\\Users\\femio\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liblibc-304d7f6977c84a4b.rlib" "C:\\Users\\femio\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liballoc-32d7ee0be9e46c85.rlib" "C:\\Users\\femio\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_core-015e9ae63a74e3a1.rlib" "C:\\Users\\femio\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcore-15d7d0533432428b.rlib" "C:\\Users\\femio\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcompiler_builtins-cfe8447efe28cb1e.rlib" "bcrypt.lib" "legacy_stdio_definitions.lib" "advapi32.lib" "cfgmgr32.lib" "gdi32.lib" "kernel32.lib" "msimg32.lib" "opengl32.lib" "user32.lib" "winspool.lib" "advapi32.lib" "userenv.lib" "kernel32.lib" "ws2_32.lib" "bcrypt.lib" "msvcrt.lib" "/NXCOMPAT" "/LIBPATH:C:\\Users\\femio\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "/OUT:C:\\Users\\femio\\OneDrive\\Documents\\Rust\\linfa\\target\\release\\deps\\gaussian_mixture-b1ffb7943a7f824f.exe" "/OPT:REF,ICF" "/DEBUG" "/NATVIS:C:\\Users\\femio\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\intrinsic.natvis" "/NATVIS:C:\\Users\\femio\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\liballoc.natvis" "/NATVIS:C:\\Users\\femio\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libcore.natvis" "/NATVIS:C:\\Users\\femio\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libstd.natvis"
 = note: gaussian_mixture-b1ffb7943a7f824f.gaussian_mixture.f558ee8d-cgu.10.rcgu.o : error LNK2019: unresolved external symbol cblas_dgemm referenced in function _ZN7ndarray6linalg11impl_linalg12mat_mul_impl17h1de5a0d7faed2cc6E
         liblax-2faf32235d378a6f.rlib(lax-2faf32235d378a6f.lax.e5e575c7-cgu.14.rcgu.o) : error LNK2019: unresolved external symbol dpotrf_ referenced in function _ZN48_$LT$f64$u20$as$u20$lax..cholesky..Cholesky_$GT$8cholesky17h51c9f78d6d1e31b4E
         liblax-2faf32235d378a6f.rlib(lax-2faf32235d378a6f.lax.e5e575c7-cgu.14.rcgu.o) : error LNK2019: unresolved external symbol dpotri_ referenced in function _ZN48_$LT$f64$u20$as$u20$lax..cholesky..Cholesky_$GT$12inv_cholesky17h140959c850e1624eE
         liblax-2faf32235d378a6f.rlib(lax-2faf32235d378a6f.lax.e5e575c7-cgu.14.rcgu.o) : error LNK2019: unresolved external symbol dpotrs_ referenced in function _ZN48_$LT$f64$u20$as$u20$lax..cholesky..Cholesky_$GT$14solve_cholesky17h7606fbe3b9b89c77E
         liblax-2faf32235d378a6f.rlib(lax-2faf32235d378a6f.lax.e5e575c7-cgu.14.rcgu.o) : error LNK2019: unresolved external symbol spotrf_ referenced in function _ZN48_$LT$f32$u20$as$u20$lax..cholesky..Cholesky_$GT$8cholesky17h66c06139233419c7E
         liblax-2faf32235d378a6f.rlib(lax-2faf32235d378a6f.lax.e5e575c7-cgu.14.rcgu.o) : error LNK2019: unresolved external symbol spotri_ referenced in function _ZN48_$LT$f32$u20$as$u20$lax..cholesky..Cholesky_$GT$12inv_cholesky17h2f19d14c568a64a1E
         liblax-2faf32235d378a6f.rlib(lax-2faf32235d378a6f.lax.e5e575c7-cgu.14.rcgu.o) : error LNK2019: unresolved external symbol spotrs_ referenced in function _ZN48_$LT$f32$u20$as$u20$lax..cholesky..Cholesky_$GT$14solve_cholesky17h2aea0330e5c37329E
         liblax-2faf32235d378a6f.rlib(lax-2faf32235d378a6f.lax.e5e575c7-cgu.15.rcgu.o) : error LNK2019: unresolved external symbol sgecon_ referenced in function _ZN42_$LT$f32$u20$as$u20$lax..rcond..Rcond_$GT$5rcond17h9855cc16804797ebE
         liblax-2faf32235d378a6f.rlib(lax-2faf32235d378a6f.lax.e5e575c7-cgu.15.rcgu.o) : error LNK2019: unresolved external symbol dgecon_ referenced in function _ZN42_$LT$f64$u20$as$u20$lax..rcond..Rcond_$GT$5rcond17hb7e2fb55918a2ad3E
         liblax-2faf32235d378a6f.rlib(lax-2faf32235d378a6f.lax.e5e575c7-cgu.15.rcgu.o) : error LNK2019: unresolved external symbol dtrtrs_ referenced in function _ZN52_$LT$f64$u20$as$u20$lax..triangular..Triangular_$GT$16solve_triangular17hdad3d06bd97553c4E
         liblax-2faf32235d378a6f.rlib(lax-2faf32235d378a6f.lax.e5e575c7-cgu.15.rcgu.o) : error LNK2019: unresolved external symbol strtrs_ referenced in function _ZN52_$LT$f32$u20$as$u20$lax..triangular..Triangular_$GT$16solve_triangular17hbdbf0b07664fe05eE
         liblax-2faf32235d378a6f.rlib(lax-2faf32235d378a6f.lax.e5e575c7-cgu.13.rcgu.o) : error LNK2019: unresolved external symbol dlange_ referenced in function _ZN50_$LT$f64$u20$as$u20$lax..opnorm..OperatorNorm_$GT$6opnorm17h2678c1b392d68863E
         liblax-2faf32235d378a6f.rlib(lax-2faf32235d378a6f.lax.e5e575c7-cgu.13.rcgu.o) : error LNK2019: unresolved external symbol slange_ referenced in function _ZN50_$LT$f32$u20$as$u20$lax..opnorm..OperatorNorm_$GT$6opnorm17he9cc3f1e542cccbbE
         C:\Users\femio\OneDrive\Documents\Rust\linfa\target\release\deps\gaussian_mixture-b1ffb7943a7f824f.exe : fatal error LNK1120: 13 unresolved externals      


error: could not compile `linfa-clustering` due to previous error
warning: build failed, waiting for other jobs to finish...
error: linking with `link.exe` failed: exit code: 1120

also tried

cargo bench -F "linfa/intel-mkl-system"

   Compiling intel-mkl-src v0.7.0+mkl2020.1
error: failed to run custom build command for `intel-mkl-src v0.7.0+mkl2020.1`

Caused by:
  process didn't exit successfully: `C:\Users\femio\OneDrive\Documents\Rust\linfa\target\release\build\intel-mkl-src-b56e3b7b1f74861e\build-script-build` (exit code: 1)
  --- stdout
  cargo:rerun-if-env-changed=MKL_DYNAMIC_LP64_SEQ_NO_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=MKL_DYNAMIC_LP64_SEQ_STATIC
  cargo:rerun-if-env-changed=MKL_DYNAMIC_LP64_SEQ_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-pc-windows-msvc
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_pc_windows_msvc
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR

  --- stderr
  Error: No MKL found, and download flag is off.

I am not sure what the resolution is for this, but this is my context:

  1. Windows machine
  2. Have C++ build tools installed
  3. Running rustc 1.64.0
  4. tried installing MKL with these instructions
  5. cargo build -F "blas" and cargo build -F "linfa/intel-mkl-system"
@oojo12
Copy link
Contributor Author

oojo12 commented Oct 24, 2022

trying to download OneMKL directly from intel will update later

Update: Still failed

@relf
Copy link
Member

relf commented Oct 24, 2022

I suggest to try with intel-mkl-static. For me, the following command (run in linfa top directory) works :

cargo bench -p linfa-clustering --features intel-mkl-static

@oojo12
Copy link
Contributor Author

oojo12 commented Oct 24, 2022

thank you that works. However, still fails in the root directory if I use cargo bench -p linfa-clustering -F blas. I will leave this issue open in case this is not intended behavior.

Note:
this feature record is in the root level Cargo.toml
blas = ["ndarray/blas"]

@YuhanLiin
Copy link
Collaborator

The intention is to use one of the BLAS library features like intel-mkl-static, not blas.

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

No branches or pull requests

3 participants