nvim-pack/nvim-spectre

Error building spectre_oxi

theoribeiro opened this issue · 26 comments

Now that lazy automatically tries to build oxi, I keep getting an error every time I update spectre.

The error has to do with Rust not being able to find certain symbols, which apparently happens due to a missing .cargo/config file, according to this issue: noib3/nvim-oxi#12

Here's the error I got:

  = note: ld: Undefined symbols:
            _luaL_ref, referenced from:
                spectre_oxi::spectre_oxi::h63639254137c451f in spectre_oxi.spectre_oxi.c0c66e81533aab0b-cgu.0.rcgu.o
                spectre_oxi::spectre_oxi::h63639254137c451f in spectre_oxi.spectre_oxi.c0c66e81533aab0b-cgu.0.rcgu.o
                spectre_oxi::spectre_oxi::h63639254137c451f in spectre_oxi.spectre_oxi.c0c66e81533aab0b-cgu.0.rcgu.o
            _lua_createtable, referenced from:
                nvim_oxi::entrypoint::entrypoint::h4073e58e2ccd7147 in spectre_oxi.spectre_oxi.c0c66e81533aab0b-cgu.6.rcgu.o
                _$LT$oxi_types..object..Object$u20$as$u20$oxi_luajit..pushable..Pushable$GT$::push::h5f6a06ec22d7ca67 in liboxi_types-6abf5ea3837b11c0.rlib[4](oxi_types-6abf5ea3837b11c0.oxi_types.edb8fca150f620d7-cgu.1.rcgu.o)
                _$LT$oxi_types..object..Object$u20$as$u20$oxi_luajit..pushable..Pushable$GT$::push::h5f6a06ec22d7ca67 in liboxi_types-6abf5ea3837b11c0.rlib[4](oxi_types-6abf5ea3837b11c0.oxi_types.edb8fca150f620d7-cgu.1.rcgu.o)
            _lua_error, referenced from:
                oxi_luajit::utils::handle_error::h8c7c566a905d9982 in spectre_oxi.spectre_oxi.c0c66e81533aab0b-cgu.6.rcgu.o
                oxi_luajit::utils::handle_error::h9154f836ac73b698 in liboxi_luajit-b184111165f191a0.rlib[5](oxi_luajit-b184111165f191a0.oxi_luajit.47f79b5817adf8fb-cgu.2.rcgu.o)
            _lua_gettop, referenced from:
                _$LT$i32$u20$as$u20$oxi_luajit..poppable..Poppable$GT$::pop::h044e9263fa4bf364 in liboxi_luajit-b184111165f191a0.rlib[3](oxi_luajit-b184111165f191a0.oxi_luajit.47f79b5817adf8fb-cgu.0.rcgu.o)
                _$LT$alloc..string..String$u20$as$u20$oxi_luajit..poppable..Poppable$GT$::pop::h85a337a1157c92c5 in liboxi_luajit-b184111165f191a0.rlib[4](oxi_luajit-b184111165f191a0.oxi_luajit.47f79b5817adf8fb-cgu.1.rcgu.o)
                oxi_luajit::utils::grow_stack::hf473c933c04104e4 in liboxi_luajit-b184111165f191a0.rlib[5](oxi_luajit-b184111165f191a0.oxi_luajit.47f79b5817adf8fb-cgu.2.rcgu.o)
            _lua_newuserdata, referenced from:
                spectre_oxi::spectre_oxi::h63639254137c451f in spectre_oxi.spectre_oxi.c0c66e81533aab0b-cgu.0.rcgu.o
                spectre_oxi::spectre_oxi::h63639254137c451f in spectre_oxi.spectre_oxi.c0c66e81533aab0b-cgu.0.rcgu.o
                spectre_oxi::spectre_oxi::h63639254137c451f in spectre_oxi.spectre_oxi.c0c66e81533aab0b-cgu.0.rcgu.o
            _lua_pushboolean, referenced from:
                _$LT$bool$u20$as$u20$oxi_luajit..pushable..Pushable$GT$::push::h68805daf728dbb42 in liboxi_luajit-b184111165f191a0.rlib[6](oxi_luajit-b184111165f191a0.oxi_luajit.47f79b5817adf8fb-cgu.3.rcgu.o)
            _lua_pushcclosure, referenced from:
                spectre_oxi::spectre_oxi::h63639254137c451f in spectre_oxi.spectre_oxi.c0c66e81533aab0b-cgu.0.rcgu.o
                spectre_oxi::spectre_oxi::h63639254137c451f in spectre_oxi.spectre_oxi.c0c66e81533aab0b-cgu.0.rcgu.o
                spectre_oxi::spectre_oxi::h63639254137c451f in spectre_oxi.spectre_oxi.c0c66e81533aab0b-cgu.0.rcgu.o
            _lua_pushinteger, referenced from:
                _$LT$i64$u20$as$u20$oxi_luajit..pushable..Pushable$GT$::push::he4b0fd00907278de in liboxi_luajit-b184111165f191a0.rlib[6](oxi_luajit-b184111165f191a0.oxi_luajit.47f79b5817adf8fb-cgu.3.rcgu.o)
            _lua_pushlstring, referenced from:
                oxi_luajit::utils::handle_error::h8c7c566a905d9982 in spectre_oxi.spectre_oxi.c0c66e81533aab0b-cgu.6.rcgu.o
                nvim_oxi::entrypoint::entrypoint::h4073e58e2ccd7147 in spectre_oxi.spectre_oxi.c0c66e81533aab0b-cgu.6.rcgu.o
                _$LT$oxi_types..object..Object$u20$as$u20$oxi_luajit..pushable..Pushable$GT$::push::h5f6a06ec22d7ca67 in liboxi_types-6abf5ea3837b11c0.rlib[4](oxi_types-6abf5ea3837b11c0.oxi_types.edb8fca150f620d7-cgu.1.rcgu.o)
                _$LT$oxi_types..object..Object$u20$as$u20$oxi_luajit..pushable..Pushable$GT$::push::h5f6a06ec22d7ca67 in liboxi_types-6abf5ea3837b11c0.rlib[4](oxi_types-6abf5ea3837b11c0.oxi_types.edb8fca150f620d7-cgu.1.rcgu.o)
                _$LT$alloc..string..String$u20$as$u20$oxi_luajit..pushable..Pushable$GT$::push::hcd64c8b1c2cd8ecf in liboxi_luajit-b184111165f191a0.rlib[4](oxi_luajit-b184111165f191a0.oxi_luajit.47f79b5817adf8fb-cgu.1.rcgu.o)
                oxi_luajit::utils::handle_error::h9154f836ac73b698 in liboxi_luajit-b184111165f191a0.rlib[5](oxi_luajit-b184111165f191a0.oxi_luajit.47f79b5817adf8fb-cgu.2.rcgu.o)
            _lua_pushnil, referenced from:
                _$LT$$LP$$RP$$u20$as$u20$oxi_luajit..pushable..Pushable$GT$::push::h0f7d904745023ae7 in liboxi_luajit-b184111165f191a0.rlib[6](oxi_luajit-b184111165f191a0.oxi_luajit.47f79b5817adf8fb-cgu.3.rcgu.o)
            _lua_pushnumber, referenced from:
                _$LT$f64$u20$as$u20$oxi_luajit..pushable..Pushable$GT$::push::h7cb5c3566e70659f in liboxi_luajit-b184111165f191a0.rlib[6](oxi_luajit-b184111165f191a0.oxi_luajit.47f79b5817adf8fb-cgu.3.rcgu.o)
            _lua_rawgeti, referenced from:
                _$LT$oxi_types..object..Object$u20$as$u20$oxi_luajit..pushable..Pushable$GT$::push::h5f6a06ec22d7ca67 in liboxi_types-6abf5ea3837b11c0.rlib[4](oxi_types-6abf5ea3837b11c0.oxi_types.edb8fca150f620d7-cgu.1.rcgu.o)
            _lua_rawset, referenced from:
                nvim_oxi::entrypoint::entrypoint::h4073e58e2ccd7147 in spectre_oxi.spectre_oxi.c0c66e81533aab0b-cgu.6.rcgu.o
                _$LT$oxi_types..object..Object$u20$as$u20$oxi_luajit..pushable..Pushable$GT$::push::h5f6a06ec22d7ca67 in liboxi_types-6abf5ea3837b11c0.rlib[4](oxi_types-6abf5ea3837b11c0.oxi_types.edb8fca150f620d7-cgu.1.rcgu.o)
            _lua_rawseti, referenced from:
                _$LT$oxi_types..object..Object$u20$as$u20$oxi_luajit..pushable..Pushable$GT$::push::h5f6a06ec22d7ca67 in liboxi_types-6abf5ea3837b11c0.rlib[4](oxi_types-6abf5ea3837b11c0.oxi_types.edb8fca150f620d7-cgu.1.rcgu.o)
            _lua_settop, referenced from:
                _$LT$i32$u20$as$u20$oxi_luajit..poppable..Poppable$GT$::pop::h044e9263fa4bf364 in liboxi_luajit-b184111165f191a0.rlib[3](oxi_luajit-b184111165f191a0.oxi_luajit.47f79b5817adf8fb-cgu.0.rcgu.o)
                _$LT$alloc..string..String$u20$as$u20$oxi_luajit..poppable..Poppable$GT$::pop::h85a337a1157c92c5 in liboxi_luajit-b184111165f191a0.rlib[4](oxi_luajit-b184111165f191a0.oxi_luajit.47f79b5817adf8fb-cgu.1.rcgu.o)
                oxi_luajit::utils::grow_stack::hf473c933c04104e4 in liboxi_luajit-b184111165f191a0.rlib[5](oxi_luajit-b184111165f191a0.oxi_luajit.47f79b5817adf8fb-cgu.2.rcgu.o)
            _lua_tointeger, referenced from:
                _$LT$i32$u20$as$u20$oxi_luajit..poppable..Poppable$GT$::pop::h044e9263fa4bf364 in liboxi_luajit-b184111165f191a0.rlib[3](oxi_luajit-b184111165f191a0.oxi_luajit.47f79b5817adf8fb-cgu.0.rcgu.o)
            _lua_tolstring, referenced from:
                _$LT$alloc..string..String$u20$as$u20$oxi_luajit..poppable..Poppable$GT$::pop::h85a337a1157c92c5 in liboxi_luajit-b184111165f191a0.rlib[4](oxi_luajit-b184111165f191a0.oxi_luajit.47f79b5817adf8fb-cgu.1.rcgu.o)
            _lua_touserdata, referenced from:
                oxi_luajit::function::store::c_fun::he4946a33dd28f545 in liboxi_luajit-b184111165f191a0.rlib[3](oxi_luajit-b184111165f191a0.oxi_luajit.47f79b5817adf8fb-cgu.0.rcgu.o)
            _lua_type, referenced from:
                _$LT$i32$u20$as$u20$oxi_luajit..poppable..Poppable$GT$::pop::h044e9263fa4bf364 in liboxi_luajit-b184111165f191a0.rlib[3](oxi_luajit-b184111165f191a0.oxi_luajit.47f79b5817adf8fb-cgu.0.rcgu.o)
                _$LT$alloc..string..String$u20$as$u20$oxi_luajit..poppable..Poppable$GT$::pop::h85a337a1157c92c5 in liboxi_luajit-b184111165f191a0.rlib[4](oxi_luajit-b184111165f191a0.oxi_luajit.47f79b5817adf8fb-cgu.1.rcgu.o)
          clang: error: linker command failed with exit code 1 (use -v to see invocation)


error: could not compile `spectre_oxi` (lib) due to previous error
cp: target/release/libspectre_oxi.dylib: No such file or directory
Build Done

And the fix is to simply create a spectre_oxi/.cargo/config file with the following content:

[build]
rustflags = [
  "-C", "link-arg=-undefined",
  "-C", "link-arg=dynamic_lookup",
]

This makes it compile correctly. I'm happy to open a PR to solve this if it makes sense.

I do believe that the build step should somehow be optional, instead of building every time lazy installs the plugin, though.

@theoribeiro can you check tests on #188 (cc: error: dynamic_lookup: No such file or directory)? Do I need to update ubuntu on CI? Or make this flags windows and mac only?
Honestly I don't understand what cause this problem.

@EpsilonKu my bad! I completely ignored that this will probably not work for other linkers. If linking was working on linux, the best option would be to set cargo/config to something like

[target.x86_64-apple-darwin]
rustflags = [
  "-C", "link-arg=-undefined",
  "-C", "link-arg=dynamic_lookup",
]

[target.aarch64-apple-darwin]
rustflags = [
  "-C", "link-arg=-undefined",
  "-C", "link-arg=dynamic_lookup",
]

[target.x86_64-pc-windows-msvc]
rustflags = [
  "-C", "link-arg=-undefined",
  "-C", "link-arg=dynamic_lookup",
]

[target.aarch64-pc-windows-msvc]
rustflags = [
  "-C", "link-arg=-undefined",
  "-C", "link-arg=dynamic_lookup",
]

@theoribeiro I merged to master. Can you confirm that it works?

Met the same issue. Waiting for the PR is merged.

@tan-wei PR is merged. Can you update plugin and confirm that it's working?

Unfortunately not:

   Compiling proc-macro2 v1.0.69
   Compiling unicode-ident v1.0.12
   Compiling thiserror v1.0.50
   Compiling libc v0.2.150
   Compiling serde v1.0.192
   Compiling once_cell v1.18.0
   Compiling memchr v2.6.4
   Compiling nvim-oxi v0.3.0
   Compiling regex-syntax v0.8.2
error: linking with `link.exe` failed: exit code: 1181
  |
  = note: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX64\\x64\\link.exe" "/NOLOGO" "C:\\Users\\WINTER~1\\AppData\\Local\\Temp\\rustcxm5mkB\\symbols.o" "C:\\Users\\Winterreise\\AppData\\Local\\nvim-data\\lazy\\nvim-spectre\\spectre_oxi\\target\\release\\build\\nvim-oxi-f750299d278731ee\\build_script_build-f750299d278731ee.build_script_build.59d283a8dd21c11f-cgu.0.rcgu.o" "C:\\Users\\Winterreise\\AppData\\Local\\nvim-data\\lazy\\nvim-spectre\\spectre_oxi\\target\\release\\build\\nvim-oxi-f750299d278731ee\\build_script_build-f750299d278731ee.20dlibrerhr301ji.rcgu.o" "/LIBPATH:C:\\Users\\Winterreise\\AppData\\Local\\nvim-data\\lazy\\nvim-spectre\\spectre_oxi\\target\\release\\deps" "/LIBPATH:C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd-5a4aac4b2cd4ff41.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libpanic_unwind-e340a5e8908c7529.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_demangle-fdf9fb6cf4e81109.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd_detect-e69fa3eee02c54a0.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libhashbrown-fab259a51b0964e5.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_alloc-0f32565f081356f1.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libunwind-51e10326d334b70c.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcfg_if-6ff672e2205e01ba.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liblibc-977079263e47efdc.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liballoc-fa89d85bc9ed894d.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_core-f117a9417935b51d.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcore-b86a9ba077d96bbb.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcompiler_builtins-6856e76ba99f7e60.rlib" "kernel32.lib" "advapi32.lib" "bcrypt.lib" "kernel32.lib" "ntdll.lib" "userenv.lib" "ws2_32.lib" "kernel32.lib" "ws2_32.lib" "kernel32.lib" "msvcrt.lib" "/NXCOMPAT" "/LIBPATH:C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "/OUT:C:\\Users\\Winterreise\\AppData\\Local\\nvim-data\\lazy\\nvim-spectre\\spectre_oxi\\target\\release\\build\\nvim-oxi-f750299d278731ee\\build_script_build-f750299d278731ee.exe" "/OPT:REF,NOICF" "/DEBUG" "/NATVIS:C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\intrinsic.natvis" "/NATVIS:C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\liballoc.natvis" "/NATVIS:C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libcore.natvis" "/NATVIS:C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libstd.natvis" "-undefined" "dynamic_lookup"
  = note: LINK : warning LNK4044: unrecognized option '/undefined'; ignored
          LINK : fatal error LNK1181: cannot open input file 'dynamic_lookup.obj'


error: could not compile `nvim-oxi` (build script) due to previous error
warning: build failed, waiting for other jobs to finish...
error: linking with `link.exe` failed: exit code: 1181
  |
  = note: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX64\\x64\\link.exe" "/NOLOGO" "C:\\Users\\WINTER~1\\AppData\\Local\\Temp\\rustcc6pC7A\\symbols.o" "C:\\Users\\Winterreise\\AppData\\Local\\nvim-data\\lazy\\nvim-spectre\\spectre_oxi\\target\\release\\build\\serde-a38312e96a198904\\build_script_build-a38312e96a198904.build_script_build.45ca0bc144e1bcc9-cgu.0.rcgu.o" "C:\\Users\\Winterreise\\AppData\\Local\\nvim-data\\lazy\\nvim-spectre\\spectre_oxi\\target\\release\\build\\serde-a38312e96a198904\\build_script_build-a38312e96a198904.build_script_build.45ca0bc144e1bcc9-cgu.1.rcgu.o" "C:\\Users\\Winterreise\\AppData\\Local\\nvim-data\\lazy\\nvim-spectre\\spectre_oxi\\target\\release\\build\\serde-a38312e96a198904\\build_script_build-a38312e96a198904.2z7j83gmrg7bb6eb.rcgu.o" "/LIBPATH:C:\\Users\\Winterreise\\AppData\\Local\\nvim-data\\lazy\\nvim-spectre\\spectre_oxi\\target\\release\\deps" "/LIBPATH:C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd-5a4aac4b2cd4ff41.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libpanic_unwind-e340a5e8908c7529.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_demangle-fdf9fb6cf4e81109.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd_detect-e69fa3eee02c54a0.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libhashbrown-fab259a51b0964e5.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_alloc-0f32565f081356f1.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libunwind-51e10326d334b70c.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcfg_if-6ff672e2205e01ba.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liblibc-977079263e47efdc.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liballoc-fa89d85bc9ed894d.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_core-f117a9417935b51d.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcore-b86a9ba077d96bbb.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcompiler_builtins-6856e76ba99f7e60.rlib" "kernel32.lib" "advapi32.lib" "bcrypt.lib" "kernel32.lib" "ntdll.lib" "userenv.lib" "ws2_32.lib" "kernel32.lib" "ws2_32.lib" "kernel32.lib" "msvcrt.lib" "/NXCOMPAT" "/LIBPATH:C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "/OUT:C:\\Users\\Winterreise\\AppData\\Local\\nvim-data\\lazy\\nvim-spectre\\spectre_oxi\\target\\release\\build\\serde-a38312e96a198904\\build_script_build-a38312e96a198904.exe" "/OPT:REF,NOICF" "/DEBUG" "/NATVIS:C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\intrinsic.natvis" "/NATVIS:C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\liballoc.natvis" "/NATVIS:C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libcore.natvis" "/NATVIS:C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libstd.natvis" "-undefined" "dynamic_lookup"
  = note: LINK : warning LNK4044: unrecognized option '/undefined'; ignored
          LINK : fatal error LNK1181: cannot open input file 'dynamic_lookup.obj'


error: linking with `link.exe` failed: exit code: 1181
  |
  = note: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX64\\x64\\link.exe" "/NOLOGO" "C:\\Users\\WINTER~1\\AppData\\Local\\Temp\\rustcL8ejK8\\symbols.o" "C:\\Users\\Winterreise\\AppData\\Local\\nvim-data\\lazy\\nvim-spectre\\spectre_oxi\\target\\release\\build\\thiserror-59da7545682a9d45\\build_script_build-59da7545682a9d45.build_script_build.f2ac80b328bf3cd7-cgu.0.rcgu.o" "C:\\Users\\Winterreise\\AppData\\Local\\nvim-data\\lazy\\nvim-spectre\\spectre_oxi\\target\\release\\build\\thiserror-59da7545682a9d45\\build_script_build-59da7545682a9d45.build_script_build.f2ac80b328bf3cd7-cgu.1.rcgu.o" "C:\\Users\\Winterreise\\AppData\\Local\\nvim-data\\lazy\\nvim-spectre\\spectre_oxi\\target\\release\\build\\thiserror-59da7545682a9d45\\build_script_build-59da7545682a9d45.4z6owjmz6xgfsgcz.rcgu.o" "/LIBPATH:C:\\Users\\Winterreise\\AppData\\Local\\nvim-data\\lazy\\nvim-spectre\\spectre_oxi\\target\\release\\deps" "/LIBPATH:C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd-5a4aac4b2cd4ff41.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libpanic_unwind-e340a5e8908c7529.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_demangle-fdf9fb6cf4e81109.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd_detect-e69fa3eee02c54a0.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libhashbrown-fab259a51b0964e5.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_alloc-0f32565f081356f1.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libunwind-51e10326d334b70c.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcfg_if-6ff672e2205e01ba.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liblibc-977079263e47efdc.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liballoc-fa89d85bc9ed894d.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_core-f117a9417935b51d.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcore-b86a9ba077d96bbb.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcompiler_builtins-6856e76ba99f7e60.rlib" "kernel32.lib" "advapi32.lib" "bcrypt.lib" "kernel32.lib" "ntdll.lib" "userenv.lib" "ws2_32.lib" "kernel32.lib" "ws2_32.lib" "kernel32.lib" "msvcrt.lib" "/NXCOMPAT" "/LIBPATH:C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "/OUT:C:\\Users\\Winterreise\\AppData\\Local\\nvim-data\\lazy\\nvim-spectre\\spectre_oxi\\target\\release\\build\\thiserror-59da7545682a9d45\\build_script_build-59da7545682a9d45.exe" "/OPT:REF,NOICF" "/DEBUG" "/NATVIS:C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\intrinsic.natvis" "/NATVIS:C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\liballoc.natvis" "/NATVIS:C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libcore.natvis" "/NATVIS:C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libstd.natvis" "-undefined" "dynamic_lookup"
  = note: LINK : warning LNK4044: unrecognized option '/undefined'; ignored
          LINK : fatal error LNK1181: cannot open input file 'dynamic_lookup.obj'


error: could not compile `serde` (build script) due to previous error
error: could not compile `thiserror` (build script) due to previous error
error: linking with `link.exe` failed: exit code: 1181
  |
  = note: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX64\\x64\\link.exe" "/NOLOGO" "C:\\Users\\WINTER~1\\AppData\\Local\\Temp\\rustcfsmHyQ\\symbols.o" "C:\\Users\\Winterreise\\AppData\\Local\\nvim-data\\lazy\\nvim-spectre\\spectre_oxi\\target\\release\\build\\proc-macro2-a6848fdc461232fd\\build_script_build-a6848fdc461232fd.build_script_build.b30124c5a082f066-cgu.0.rcgu.o" "C:\\Users\\Winterreise\\AppData\\Local\\nvim-data\\lazy\\nvim-spectre\\spectre_oxi\\target\\release\\build\\proc-macro2-a6848fdc461232fd\\build_script_build-a6848fdc461232fd.build_script_build.b30124c5a082f066-cgu.1.rcgu.o" "C:\\Users\\Winterreise\\AppData\\Local\\nvim-data\\lazy\\nvim-spectre\\spectre_oxi\\target\\release\\build\\proc-macro2-a6848fdc461232fd\\build_script_build-a6848fdc461232fd.build_script_build.b30124c5a082f066-cgu.2.rcgu.o" "C:\\Users\\Winterreise\\AppData\\Local\\nvim-data\\lazy\\nvim-spectre\\spectre_oxi\\target\\release\\build\\proc-macro2-a6848fdc461232fd\\build_script_build-a6848fdc461232fd.1otalhyoiltvmjkd.rcgu.o" "/LIBPATH:C:\\Users\\Winterreise\\AppData\\Local\\nvim-data\\lazy\\nvim-spectre\\spectre_oxi\\target\\release\\deps" "/LIBPATH:C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd-5a4aac4b2cd4ff41.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libpanic_unwind-e340a5e8908c7529.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_demangle-fdf9fb6cf4e81109.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd_detect-e69fa3eee02c54a0.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libhashbrown-fab259a51b0964e5.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_alloc-0f32565f081356f1.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libunwind-51e10326d334b70c.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcfg_if-6ff672e2205e01ba.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liblibc-977079263e47efdc.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liballoc-fa89d85bc9ed894d.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_core-f117a9417935b51d.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcore-b86a9ba077d96bbb.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcompiler_builtins-6856e76ba99f7e60.rlib" "kernel32.lib" "advapi32.lib" "bcrypt.lib" "kernel32.lib" "ntdll.lib" "userenv.lib" "ws2_32.lib" "kernel32.lib" "ws2_32.lib" "kernel32.lib" "msvcrt.lib" "/NXCOMPAT" "/LIBPATH:C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "/OUT:C:\\Users\\Winterreise\\AppData\\Local\\nvim-data\\lazy\\nvim-spectre\\spectre_oxi\\target\\release\\build\\proc-macro2-a6848fdc461232fd\\build_script_build-a6848fdc461232fd.exe" "/OPT:REF,NOICF" "/DEBUG" "/NATVIS:C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\intrinsic.natvis" "/NATVIS:C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\liballoc.natvis" "/NATVIS:C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libcore.natvis" "/NATVIS:C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libstd.natvis" "-undefined" "dynamic_lookup"
  = note: LINK : warning LNK4044: unrecognized option '/undefined'; ignored
          LINK : fatal error LNK1181: cannot open input file 'dynamic_lookup.obj'


error: could not compile `proc-macro2` (build script) due to previous error
error: linking with `link.exe` failed: exit code: 1181
  |
  = note: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX64\\x64\\link.exe" "/NOLOGO" "C:\\Users\\WINTER~1\\AppData\\Local\\Temp\\rustcAGyiQ7\\symbols.o" "C:\\Users\\Winterreise\\AppData\\Local\\nvim-data\\lazy\\nvim-spectre\\spectre_oxi\\target\\release\\build\\libc-30697be805cad5f6\\build_script_build-30697be805cad5f6.build_script_build.44ea895da09660f8-cgu.0.rcgu.o" "C:\\Users\\Winterreise\\AppData\\Local\\nvim-data\\lazy\\nvim-spectre\\spectre_oxi\\target\\release\\build\\libc-30697be805cad5f6\\build_script_build-30697be805cad5f6.build_script_build.44ea895da09660f8-cgu.1.rcgu.o" "C:\\Users\\Winterreise\\AppData\\Local\\nvim-data\\lazy\\nvim-spectre\\spectre_oxi\\target\\release\\build\\libc-30697be805cad5f6\\build_script_build-30697be805cad5f6.build_script_build.44ea895da09660f8-cgu.2.rcgu.o" "C:\\Users\\Winterreise\\AppData\\Local\\nvim-data\\lazy\\nvim-spectre\\spectre_oxi\\target\\release\\build\\libc-30697be805cad5f6\\build_script_build-30697be805cad5f6.build_script_build.44ea895da09660f8-cgu.3.rcgu.o" "C:\\Users\\Winterreise\\AppData\\Local\\nvim-data\\lazy\\nvim-spectre\\spectre_oxi\\target\\release\\build\\libc-30697be805cad5f6\\build_script_build-30697be805cad5f6.1xqkd76t42lp7gle.rcgu.o" "/LIBPATH:C:\\Users\\Winterreise\\AppData\\Local\\nvim-data\\lazy\\nvim-spectre\\spectre_oxi\\target\\release\\deps" "/LIBPATH:C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd-5a4aac4b2cd4ff41.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libpanic_unwind-e340a5e8908c7529.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_demangle-fdf9fb6cf4e81109.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd_detect-e69fa3eee02c54a0.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libhashbrown-fab259a51b0964e5.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_alloc-0f32565f081356f1.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libunwind-51e10326d334b70c.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcfg_if-6ff672e2205e01ba.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liblibc-977079263e47efdc.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liballoc-fa89d85bc9ed894d.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_core-f117a9417935b51d.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcore-b86a9ba077d96bbb.rlib" "C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcompiler_builtins-6856e76ba99f7e60.rlib" "kernel32.lib" "advapi32.lib" "bcrypt.lib" "kernel32.lib" "ntdll.lib" "userenv.lib" "ws2_32.lib" "kernel32.lib" "ws2_32.lib" "kernel32.lib" "msvcrt.lib" "/NXCOMPAT" "/LIBPATH:C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "/OUT:C:\\Users\\Winterreise\\AppData\\Local\\nvim-data\\lazy\\nvim-spectre\\spectre_oxi\\target\\release\\build\\libc-30697be805cad5f6\\build_script_build-30697be805cad5f6.exe" "/OPT:REF,NOICF" "/DEBUG" "/NATVIS:C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\intrinsic.natvis" "/NATVIS:C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\liballoc.natvis" "/NATVIS:C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libcore.natvis" "/NATVIS:C:\\Users\\Winterreise\\scoop\\persist\\rustup\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libstd.natvis" "-undefined" "dynamic_lookup"
  = note: LINK : warning LNK4044: unrecognized option '/undefined'; ignored
          LINK : fatal error LNK1181: cannot open input file 'dynamic_lookup.obj'


error: could not compile `libc` (build script) due to previous error
cp: 'target/release/libspectre_oxi.dll' -> '../lua/spectre_oxi.dll': 系统找不到指定的文件。 (os error 2)
Build Done

Is that because my MSVC is not updated?

I read carefully noib3/nvim-oxi#12 . Seems like fix is combining noib3/nvim-oxi@6adfc34 for windows and @theoribeiro fix for mac only. Will do.

So want should we do now?

My target is target.x86_64-unknown-linux-gnu which likewise doesn't understand dynamic_lookup it seems.

P.s. Where can find the build logs as those in the posts above? :messages only seems to contain a single line here.

So would this work for windows, mac and linux?

[target.x86_64-apple-darwin]
rustflags = [
  "-C", "link-arg=-undefined",
  "-C", "link-arg=dynamic_lookup",
]

[target.aarch64-apple-darwin]
rustflags = [
  "-C", "link-arg=-undefined",
  "-C", "link-arg=dynamic_lookup",
]


[target.x86_64-pc-windows-msvc]
rustflags = [
  "-C", "link-arg=/FORCE:UNRESOLVED",
]

[target.aarch64-pc-windows-msvc]
rustflags = [
  "-C", "link-arg=/FORCE:UNRESOLVED",
]

I hope so. @adrian5 @tan-wei @theoribeiro Can you guys send ur operation systems versions to figure out the problem.

For me that's x86 Arch Linux which in Cargo corresponds to:

[target.x86_64-unknown-linux-gnu]

I don't need to do anything config-wise about oxi, right? I saw this section in the README, but never did those things and avoided the oxi dependency until it became (apparently) a default recently.

I hope so. @adrian5 @tan-wei @theoribeiro Can you guys send ur operation systems versions to figure out the problem.

Windows 11, rustc 1.75.0-nightly (cae0791da 2023-10-05)

Ok, I will revert commits until it will be fixed.

I reverted changes. If you want to help me use https://github.com/EpsilonKu/nvim-spectre .

Does your error logs looks same as @theoribeiro . The issue is related only MacOS and Windows. Weird that it appears on Linux.

I arrived here via #187 as per your hint. My issue is just the constant rebuilds on each update, which didn't happen until recently. Assuming oxi and its API haven't changed, it would be good if the library didn't recompile.

I reverted changes. If you want to help me use https://github.com/EpsilonKu/nvim-spectre.

Done.

Same problem here with the latest version, mac:

$ cd /Users/$USER/.local/share/nvim/lazy/nvim-spectre
$ ./build.sh
error: linking with `cc` failed: exit status: 1
...
  = note: ld: warning: no platform load command found in '/private/var/folders/mz/h2f5yv294tn5pw8_mmhrs0w4ly09rq/T/rustcgSwdJ5/symbols.o', assuming: macOS
          ld: Undefined symbols:
            _luaL_ref, referenced from:
...
error: could not compile `spectre_oxi` (lib) due to previous error
...

I arrived here via #187 as per your hint. My issue is just the constant rebuilds on each update, which didn't happen until recently. Assuming oxi and its API haven't changed, it would be good if the library didn't recompile.

Or even better, since the plugin works with sed and rg, there could be a command specifically to build oxi if the user wanted to. :SpectreBuildTools or something like that

I hope so. @adrian5 @tan-wei @theoribeiro Can you guys send ur operation systems versions to figure out the problem.

I'm on MacOS 14.0 ARM. With the windows and mac builds targeted specifically like my previous comment, this should be good to go for now, no?

windwp commented

i think we only need to rename it from build.lua to build_oxi.lua so that lazy.nvim will not trigger build. the oxi is just an option and it need rust is install on system to build that

Ok, I renamed build.lua to build_oxi.lua. Can you check it guys>(https://github.com/EpsilonKu/nvim-spectre )?

@EpsilonKu As for my issue (#187), I didn't get a rebuild with your most recent update. So maybe that fixed it. spectre still works as well, just tested.

@EpsilonKu So the issue is fixed now? Thanks.

Alr, it's hard to undo undo commits. I will open PR by myself