Hi! I'm new to Rust and I'm just starting to develop on the near blockchain. I was trying to run this simple hello contract.
But when trying to run cargo build, I'm getting this error:
error: linking with `x86_64-w64-mingw32-gcc` failed: exit code: 1
I'm not sure what it could be. I am using toolchain v1.69 in rust.
I have tried to solve the problem by following the solution to this issue:
But I already updated cargo and gcc (using 13.2.0) and the error persists.
Any ideas? Thanks in advance
Part of the error:
$ cargo build
Compiling hello-near v0.1.0 (C:\Fabri\near\hello-near)
error: linking with `x86_64-w64-mingw32-gcc` failed: exit code: 1
|
= note: "x86_64-w64-mingw32-gcc" "-Wl,C:\\Users\\fabri\\AppData\\Local\\Temp\\rustcYuyOMR\\list.def" "-fno-use-linker-plugin" "-Wl,--dynamicbase" "-Wl,--disable-auto-image-base" "-m64" "-Wl,--high-entropy-va" "C:\\Users\\fabri\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\rsbegin.o" "C:\\Users\\fabri\\AppData\\Local\\Temp\\rustcYuyOMR\\symbols.o" "C:\\Fabri\\near\\hello-near\\target\\debug\\deps\\hello_near.1asevzduyddl41ds.rcgu.o" "C:\\Fabri\\near\\hello-near\\target\\debug\\deps\\hello_near.1ehpbr0jrutzyxfm.rcgu.o" "C:\\Fabri\\near\\hello-near\\target\\debug\\deps\\hello_near.41hrtipjp16w9caq.rcgu.o" "C:\\Fabri\\near\\hello-near\\target\\debug\\deps\\hello_near.46g6qd0lc78jp2xx.rcgu.o" "C:\\Fabri\\near\\hello-near\\target\\debug\\deps\\hello_near.4f18n62bzv0npgkp.rcgu.o" "C:\\Fabri\\near\\hello-near\\target\\debug\\deps\\hello_near.6g61gjxj59r1rkr.rcgu.o" "C:\\Fabri\\near\\hello-near\\target\\debug\\deps\\hello_near.9khq51u6d68qzjg.rcgu.o" "C:\\Fabri\\near\\hello-near\\target\\debug\\deps\\hello_near.gnxzcs38t7w5esk.rcgu.o" "C:\\Fabri\\near\\hello-near\\target\\debug\\deps\\hello_near.r5npy67kg4hwbjt.rcgu.o" "C:\\Fabri\\near\\hello-near\\target\\debug\\deps\\hello_near.1arbh81ldt5satl0.rcgu.o" "-L" "C:\\Fabri\\near\\hello-near\\target\\debug\\deps" "-L" "C:\\Users\\fabri\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib" "-Wl,-Bstatic" "C:\\Fabri\\near\\hello-near\\target\\debug\\deps\\libnear_sdk-25de09177b0d66c9.rlib" "C:\\Fabri\\near\\hello-near\\target\\debug\\deps\\libserde_json-f1e25b35a134045c.rlib" "C:\\Fabri\\near\\hello-near\\target\\debug\\deps\\libitoa-8fce480538205833.rlib" "C:\\Fabri\\near\\hello-near\\target\\debug\\deps\\libryu-ead68ba3151b4264.rlib" "C:\\Fabri\\near\\hello-near\\target\\debug\\deps\\libnear_token-4701448ba743d0b3.rlib" "C:\\Fabri\\near\\hello-near\\target\\debug\\deps\\libnear_gas-6362b5aa0e001e52.rlib" "C:\\Fabri\\near\\hello-near\\target\\debug\\deps\\libnear_account_id-a88f7763326a8193.rlib" "C:\\Fabri\\near\\hello-near\\target\\debug\\deps\\libbase64-0d4f2c6d17a1a8a3.rlib" "C:\\Fabri\\near\\hello-near\\target\\debug\\deps\\libserde-ccf0e6b276748ed5.rlib" "C:\\Fabri\\near\\hello-near\\target\\debug\\deps\\libbs58-1678377c0009477d.rlib" "C:\\Fabri\\near\\hello-near\\target\\debug\\deps\\libnear_sys-78ffe681c373f3c3.rlib" "C:\\Fabri\\near\\hello-near\\target\\debug\\deps\\libonce_cell-a0ac787443f739b8.rlib" "C:\\Fabri\\near\\hello-near\\target\\debug\\deps\\libborsh-aa75b114e06f25f1.rlib" "C:\\Users\\fabri\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libstd-3e14f4bf03bac47e.rlib" "C:\\Users\\fabri\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libpanic_unwind-0902473778f72000.rlib" "C:\\Users\\fabri\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libobject-1b52c822b74fcbd9.rlib" "C:\\Users\\fabri\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libmemchr-7772d0b3d7a42076.rlib" "C:\\Users\\fabri\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libaddr2line-c4d17796ffdb8a64.rlib" "C:\\Users\\fabri\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libgimli-231ca6dff5410129.rlib" "C:\\Users\\fabri\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\librustc_demangle-538065827e97d512.rlib" "C:\\Users\\fabri\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libstd_detect-6cfc059822cc9268.rlib" "C:\\Users\\fabri\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libhashbrown-f2d107dcc77a6f57.rlib" "C:\\Users\\fabri\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\librustc_std_workspace_alloc-79a2ce77960c2d1e.rlib" "C:\\Users\\fabri\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libminiz_oxide-533e07c20e1f803f.rlib" "C:\\Users\\fabri\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libadler-13bc5119a1c7f0d1.rlib" "C:\\Users\\fabri\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libunwind-da22f62c3fb90c0f.rlib" "C:\\Users\\fabri\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libcfg_if-2633f2be5fc303b2.rlib" "C:\\Users\\fabri\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\liblibc-a541fda2cb9d9bba.rlib" "C:\\Users\\fabri\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\liballoc-1ae8a2ec2312c402.rlib" "C:\\Users\\fabri\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\librustc_std_workspace_core-7c0b778b66e448b5.rlib" "C:\\Users\\fabri\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libcore-f0b90fc8b3af3496.rlib" "C:\\Users\\fabri\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libcompiler_builtins-68a81561333edfd5.rlib" "-Wl,-Bdynamic" "-lkernel32" "-ladvapi32" "-lbcrypt" "-lkernel32" "-lntdll" "-luserenv" "-lws2_32" "-lkernel32" "-lws2_32" "-lkernel32" "-lntdll" "-lkernel32" "-lgcc_eh" "-l:libpthread.a" "-lmsvcrt" "-lmingwex" "-lmingw32" "-lgcc" "-lmsvcrt" "-luser32" "-lkernel32" "-Wl,--nxcompat" "-L" "C:\\Users\\fabri\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib" "-o" "C:\\Fabri\\near\\hello-near\\target\\debug\\deps\\hello_near.dll" "-Wl,--gc-sections" "-shared" "-Wl,--out-implib=C:\\Fabri\\near\\hello-near\\target\\debug\\deps\\libhello_near.dll.a" "-nodefaultlibs" "C:\\Users\\fabri\\.rustup\\toolchains\\stable-x86_64-pc-windows-gnu\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\rsend.o"
= note: C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Fabri\near\hello-near\target\debug\deps\libnear_sdk-25de09177b0d66c9.rlib(near_sdk-25de09177b0d66c9.near_sdk.e06c9c61d802ce2d-cgu.0.rcgu.o): in function `near_sdk::environment::env::read_register_fixed_20':
C:\Users\fabri\.cargo\registry\src\index.crates.io-6f17d22bba15001f\near-sdk-5.0.0/src\environment/env.rs:62:(.text+0x3ad0): undefined reference to `read_register'
C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Fabri\near\hello-near\target\debug\deps\libnear_sdk-25de09177b0d66c9.rlib(near_sdk-25de09177b0d66c9.near_sdk.e06c9c61d802ce2d-cgu.0.rcgu.o): in function `near_sdk::environment::env::read_register_fixed_32':
C:\Users\fabri\.cargo\registry\src\index.crates.io-6f17d22bba15001f\near-sdk-5.0.0/src\environment/env.rs:68:(.text+0x3b84): undefined reference to `read_register'
C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Fabri\near\hello-near\target\debug\deps\libnear_sdk-25de09177b0d66c9.rlib(near_sdk-25de09177b0d66c9.near_sdk.e06c9c61d802ce2d-cgu.0.rcgu.o): in function `near_sdk::environment::env::read_register_fixed_64':
C:\Users\fabri\.cargo\registry\src\index.crates.io-6f17d22bba15001f\near-sdk-5.0.0/src\environment/env.rs:74:(.text+0x3c19): undefined reference to `read_register'
C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Fabri\near\hello-near\target\debug\deps\libnear_sdk-25de09177b0d66c9.rlib(near_sdk-25de09177b0d66c9.near_sdk.e06c9c61d802ce2d-cgu.0.rcgu.o): in function `near_sdk::environment::env::read_register':
C:\Users\fabri\.cargo\registry\src\index.crates.io-6f17d22bba15001f\near-sdk-5.0.0/src\environment/env.rs:131:(.text+0x3df8): undefined reference to `read_register'
C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Fabri\near\hello-near\target\debug\deps\libnear_sdk-25de09177b0d66c9.rlib(near_sdk-25de09177b0d66c9.near_sdk.e06c9c61d802ce2d-cgu.0.rcgu.o): in function `near_sdk::environment::env::register_len':
C:\Users\fabri\.cargo\registry\src\index.crates.io-6f17d22bba15001f\near-sdk-5.0.0/src\environment/env.rs:141:(.text+0x3eaa): undefined reference to `register_len'
C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Fabri\near\hello-near\target\debug\deps\libnear_sdk-25de09177b0d66c9.rlib(near_sdk-25de09177b0d66c9.near_sdk.e06c9c61d802ce2d-cgu.0.rcgu.o): in function `near_sdk::environment::env::current_account_id':
C:\Users\fabri\.cargo\registry\src\index.crates.io-6f17d22bba15001f\near-sdk-5.0.0/src\environment/env.rs:154:(.text+0x3f01): undefined reference to `current_account_id'
C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Fabri\near\hello-near\target\debug\deps\libnear_sdk-25de09177b0d66c9.rlib(near_sdk-25de09177b0d66c9.near_sdk.e06c9c61d802ce2d-cgu.0.rcgu.o): in function `near_sdk::environment::env::signer_account_id':
C:\Users\fabri\.cargo\registry\src\index.crates.io-6f17d22bba15001f\near-sdk-5.0.0/src\environment/env.rs:160:(.text+0x3f51): undefined reference to `signer_account_id'
C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Fabri\near\hello-near\target\debug\deps\libnear_sdk-25de09177b0d66c9.rlib(near_sdk-25de09177b0d66c9.near_sdk.e06c9c61d802ce2d-cgu.0.rcgu.o): in function `near_sdk::environment::env::signer_account_pk':
C:\Users\fabri\.cargo\registry\src\index.crates.io-6f17d22bba15001f\near-sdk-5.0.0/src\environment/env.rs:165:(.text+0x3fa6): undefined reference to `signer_account_pk'
C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Fabri\near\hello-near\target\debug\deps\libnear_sdk-25de09177b0d66c9.rlib(near_sdk-25de09177b0d66c9.near_sdk.e06c9c61d802ce2d-cgu.0.rcgu.o): in function `near_sdk::environment::env::predecessor_account_id':
C:\Users\fabri\.cargo\registry\src\index.crates.io-6f17d22bba15001f\near-sdk-5.0.0/src\environment/env.rs:171:(.text+0x4021): undefined reference to `predecessor_account_id'
C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Fabri\near\hello-near\target\debug\deps\libnear_sdk-25de09177b0d66c9.rlib(near_sdk-25de09177b0d66c9.near_sdk.e06c9c61d802ce2d-cgu.0.rcgu.o): in function `near_sdk::environment::env::input':
C:\Users\fabri\.cargo\registry\src\index.crates.io-6f17d22bba15001f\near-sdk-5.0.0/src\environment/env.rs:184:(.text+0x4106): undefined reference to `input'
C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Fabri\near\hello-near\target\debug\deps\libnear_sdk-25de09177b0d66c9.rlib(near_sdk-25de09177b0d66c9.near_sdk.e06c9c61d802ce2d-cgu.0.rcgu.o): in function `near_sdk::environment::env::block_timestamp':
C:\Users\fabri\.cargo\registry\src\index.crates.io-6f17d22bba15001f\near-sdk-5.0.0/src\environment/env.rs:200:(.text+0x4155): undefined reference to `block_timestamp'
C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Fabri\near\hello-near\target\debug\deps\libnear_sdk-25de09177b0d66c9.rlib(near_sdk-25de09177b0d66c9.near_sdk.e06c9c61d802ce2d-cgu.0.rcgu.o): in function `near_sdk::environment::env::epoch_height':
C:\Users\fabri\.cargo\registry\src\index.crates.io-6f17d22bba15001f\near-sdk-5.0.0/src\environment/env.rs:210:(.text+0x4185): undefined reference to `epoch_height'
C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Fabri\near\hello-near\target\debug\deps\libnear_sdk-25de09177b0d66c9.rlib(near_sdk-25de09177b0d66c9.near_sdk.e06c9c61d802ce2d-cgu.0.rcgu.o): in function `near_sdk::environment::env::storage_usage':
C:\Users\fabri\.cargo\registry\src\index.crates.io-6f17d22bba15001f\near-sdk-5.0.0/src\environment/env.rs:215:(.text+0x4195): undefined reference to `storage_usage'
C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Fabri\near\hello-near\target\debug\deps\libnear_sdk-25de09177b0d66c9.rlib(near_sdk-25de09177b0d66c9.near_sdk.e06c9c61d802ce2d-cgu.0.rcgu.o): in function `near_sdk::environment::env::account_balance':
C:\Users\fabri\.cargo\registry\src\index.crates.io-6f17d22bba15001f\near-sdk-5.0.0/src\environment/env.rs:225:(.text+0x41c0): undefined reference to `account_balance'
C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Fabri\near\hello-near\target\debug\deps\libnear_sdk-25de09177b0d66c9.rlib(near_sdk-25de09177b0d66c9.near_sdk.e06c9c61d802ce2d-cgu.0.rcgu.o): in function `near_sdk::environment::env::account_locked_balance':
C:\Users\fabri\.cargo\registry\src\index.crates.io-6f17d22bba15001f\near-sdk-5.0.0/src\environment/env.rs:232:(.text+0x4210): undefined reference to `account_locked_balance'
C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Fabri\near\hello-near\target\debug\deps\libnear_sdk-25de09177b0d66c9.rlib(near_sdk-25de09177b0d66c9.near_sdk.e06c9c61d802ce2d-cgu.0.rcgu.o): in function `near_sdk::environment::env::attached_deposit':
C:\Users\fabri\.cargo\registry\src\index.crates.io-6f17d22bba15001f\near-sdk-5.0.0/src\environment/env.rs:240:(.text+0x4260): undefined reference to `attached_deposit'
C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Fabri\near\hello-near\target\debug\deps\libnear_sdk-25de09177b0d66c9.rlib(near_sdk-25de09177b0d66c9.near_sdk.e06c9c61d802ce2d-cgu.0.rcgu.o): in function `near_sdk::environment::env::prepaid_gas':
C:\Users\fabri\.cargo\registry\src\index.crates.io-6f17d22bba15001f\near-sdk-5.0.0/src\environment/env.rs:246:(.text+0x4295): undefined reference to `prepaid_gas'
C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Fabri\near\hello-near\target\debug\deps\libnear_sdk-25de09177b0d66c9.rlib(near_sdk-25de09177b0d66c9.near_sdk.e06c9c61d802ce2d-cgu.0.rcgu.o): in function `near_sdk::environment::env::used_gas':
C:\Users\fabri\.cargo\registry\src\index.crates.io-6f17d22bba15001f\near-sdk-5.0.0/src\environment/env.rs:251:(.text+0x42b5): undefined reference to `used_gas'
C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Fabri\near\hello-near\target\debug\deps\libnear_sdk-25de09177b0d66c9.rlib(near_sdk-25de09177b0d66c9.near_sdk.e06c9c61d802ce2d-cgu.0.rcgu.o): in function `near_sdk::environment::env::random_seed_array':
C:\Users\fabri\.cargo\registry\src\index.crates.io-6f17d22bba15001f\near-sdk-5.0.0/src\environment/env.rs:319:(.text+0x4326): undefined reference to `random_seed'
C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Fabri\near\hello-near\target\debug\deps\libnear_sdk-25de09177b0d66c9.rlib(near_sdk-25de09177b0d66c9.near_sdk.e06c9c61d802ce2d-cgu.0.rcgu.o): in function `near_sdk::environment::env::sha256_array':
C:\Users\fabri\.cargo\registry\src\index.crates.io-6f17d22bba15001f\near-sdk-5.0.0/src\environment/env.rs:371:(.text+0x4477): undefined reference to `sha256'
C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Fabri\near\hello-near\target\debug\deps\libnear_sdk-25de09177b0d66c9.rlib(near_sdk-25de09177b0d66c9.near_sdk.e06c9c61d802ce2d-cgu.0.rcgu.o): in function `near_sdk::environment::env::keccak256_array':
C:\Users\fabri\.cargo\registry\src\index.crates.io-6f17d22bba15001f\near-sdk-5.0.0/src\environment/env.rs:382:(.text+0x44d7): undefined reference to `keccak256'
C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Fabri\near\hello-near\target\debug\deps\libnear_sdk-25de09177b0d66c9.rlib(near_sdk-25de09177b0d66c9.near_sdk.e06c9c61d802ce2d-cgu.0.rcgu.o): in function `near_sdk::environment::env::keccak512_array':
C:\Users\fabri\.cargo\registry\src\index.crates.io-6f17d22bba15001f\near-sdk-5.0.0/src\environment/env.rs:393:(.text+0x4537): undefined reference to `keccak512'
C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Fabri\near\hello-near\target\debug\deps\libnear_sdk-25de09177b0d66c9.rlib(near_sdk-25de09177b0d66c9.near_sdk.e06c9c61d802ce2d-cgu.0.rcgu.o): in function `near_sdk::environment::env::ripemd160_array':
C:\Users\fabri\.cargo\registry\src\index.crates.io-6f17d22bba15001f\near-sdk-5.0.0/src\environment/env.rs:404:(.text+0x4597): undefined reference to `ripemd160'
C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Fabri\near\hello-near\target\debug\deps\libnear_sdk-25de09177b0d66c9.rlib(near_sdk-25de09177b0d66c9.near_sdk.e06c9c61d802ce2d-cgu.0.rcgu.o): in function `near_sdk::environment::env::ed25519_verify':
C:\Users\fabri\.cargo\registry\src\index.crates.io-6f17d22bba15001f\near-sdk-5.0.0/src\environment/env.rs:444:(.text+0x4621): undefined reference to `ed25519_verify'
C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Fabri\near\hello-near\target\debug\deps\libnear_sdk-25de09177b0d66c9.rlib(near_sdk-25de09177b0d66c9.near_sdk.e06c9c61d802ce2d-cgu.0.rcgu.o): in function `near_sdk::environment::env::alt_bn128_g1_multiexp':
C:\Users\fabri\.cargo\registry\src\index.crates.io-6f17d22bba15001f\near-sdk-5.0.0/src\environment/env.rs:476:(.text+0x46f7): undefined reference to `alt_bn128_g1_sum'
C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Fabri\near\hello-near\target\debug\deps\libnear_sdk-25de09177b0d66c9.rlib(near_sdk-25de09177b0d66c9.near_sdk.e06c9c61d802ce2d-cgu.0.rcgu.o): in function `near_sdk::environment::env::alt_bn128_pairing_check':
C:\Users\fabri\.cargo\registry\src\index.crates.io-6f17d22bba15001f\near-sdk-5.0.0/src\environment/env.rs:488:(.text+0x4766): undefined reference to `alt_bn128_pairing_check'
C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Fabri\near\hello-near\target\debug\deps\libnear_sdk-25de09177b0d66c9.rlib(near_sdk-25de09177b0d66c9.near_sdk.e06c9c61d802ce2d-cgu.0.rcgu.o): in function `near_sdk::environment::env::promise_create':
C:\Users\fabri\.cargo\registry\src\index.crates.io-6f17d22bba15001f\near-sdk-5.0.0/src\environment/env.rs:505:(.text+0x49b9): undefined reference to `promise_create'
C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Fabri\near\hello-near\target\debug\deps\libnear_sdk-25de09177b0d66c9.rlib(near_sdk-25de09177b0d66c9.near_sdk.e06c9c61d802ce2d-cgu.0.rcgu.o): in function `near_sdk::environment::env::promise_then':
C:\Users\fabri\.cargo\registry\src\index.crates.io-6f17d22bba15001f\near-sdk-5.0.0/src\environment/env.rs:529:(.text+0x4c90): undefined reference to `promise_then'
C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Fabri\near\hello-near\target\debug\deps\libnear_sdk-25de09177b0d66c9.rlib(near_sdk-25de09177b0d66c9.near_sdk.e06c9c61d802ce2d-cgu.0.rcgu.o): in function `near_sdk::environment::env::promise_and':
C:\Users\fabri\.cargo\registry\src\index.crates.io-6f17d22bba15001f\near-sdk-5.0.0/src\environment/env.rs:550:(.text+0x4e22): undefined reference to `promise_and'
C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Fabri\near\hello-near\target\debug\deps\libnear_sdk-25de09177b0d66c9.rlib(near_sdk-25de09177b0d66c9.near_sdk.e06c9c61d802ce2d-cgu.0.rcgu.o): in function `near_sdk::environment::env::promise_batch_create':
C:\Users\fabri\.cargo\registry\src\index.crates.io-6f17d22bba15001f\near-sys-0.2.1\src/lib.rs:192:(.text+0x1e85): undefined reference to `block_index'
collect2.exe: error: ld returned 1 exit status
= note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
= note: use the `-l` flag to specify native libraries to link
= note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-link-lib)
error: could not compile `hello-near` (lib) due to 1 previous error