jameslittle230 / stork

🔎 Impossibly fast web search, made for static sites.
https://stork-search.net
Apache License 2.0
2.73k stars 56 forks source link

Compile and publish Stork binary for Windows #313

Open Kristinita opened 2 years ago

Kristinita commented 2 years ago

1. Summary

I can’t compile Stork on Windows. I get error:

error: linking with `x86_64-w64-mingw32-gcc` failed: exit code: 1

  = note: ld: cannot find -lntdll

error: could not compile `stork-search` due to previous error
error: failed to compile `stork-search v1.5.0`, intermediate artifacts can be found at `C:\Users\appveyor\AppData\Local\Temp\1\cargo-install0pGCLf`

2. Steps to reproduce

You can see the configuration in the KiraStork branch of my GitHub repository for debugging:

# [INFO] The same error if “choco install rust”:
# https://ci.appveyor.com/project/Kristinita/sashatravis/builds/44531824#L748
scoop install rust
cargo install stork-search --locked
stork --version

3. Behavior

3.1. Current

See AppVeyor output:

error: linking with `x86_64-w64-mingw32-gcc` failed: exit code: 1

  = note: ld: cannot find -lntdll

error: could not compile `stork-search` due to previous error
error: failed to compile `stork-search v1.5.0`, intermediate artifacts can be found at `C:\Users\appveyor\AppData\Local\Temp\1\cargo-install0pGCLf`
Click to see full output ```shell Compiling stork-lib v1.5.0 Compiling stork-search v1.5.0 error: linking with `x86_64-w64-mingw32-gcc` failed: exit code: 1 | = note: "x86_64-w64-mingw32-gcc" "-fno-use-linker-plugin" "-Wl,--dynamicbase" "-Wl,--disable-auto-image-base" "-m64" "-Wl,--high-entropy-va" "C:\\Users\\appveyor\\scoop\\apps\\rust\\1.63.0\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\self-contained\\crt2.o" "C:\\Users\\appveyor\\scoop\\apps\\rust\\1.63.0\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\rsbegin.o" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\rustcguCKl4\\symbols.o" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\stork-15c4e5aa3b815693.stork.02167641-cgu.0.rcgu.o" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\stork-15c4e5aa3b815693.stork.02167641-cgu.1.rcgu.o" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\stork-15c4e5aa3b815693.stork.02167641-cgu.10.rcgu.o" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\stork-15c4e5aa3b815693.stork.02167641-cgu.11.rcgu.o" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\stork-15c4e5aa3b815693.stork.02167641-cgu.12.rcgu.o" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\stork-15c4e5aa3b815693.stork.02167641-cgu.13.rcgu.o" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\stork-15c4e5aa3b815693.stork.02167641-cgu.14.rcgu.o" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\stork-15c4e5aa3b815693.stork.02167641-cgu.15.rcgu.o" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\stork-15c4e5aa3b815693.stork.02167641-cgu.2.rcgu.o" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\stork-15c4e5aa3b815693.stork.02167641-cgu.3.rcgu.o" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\stork-15c4e5aa3b815693.stork.02167641-cgu.4.rcgu.o" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\stork-15c4e5aa3b815693.stork.02167641-cgu.5.rcgu.o" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\stork-15c4e5aa3b815693.stork.02167641-cgu.6.rcgu.o" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\stork-15c4e5aa3b815693.stork.02167641-cgu.7.rcgu.o" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\stork-15c4e5aa3b815693.stork.02167641-cgu.8.rcgu.o" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\stork-15c4e5aa3b815693.stork.02167641-cgu.9.rcgu.o" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\stork-15c4e5aa3b815693.wdwdg7idaax4bfd.rcgu.o" "-L" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps" "-L" "C:\\Users\\appveyor\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\winapi-x86_64-pc-windows-gnu-0.4.0\\lib" "-L" "C:\\Users\\appveyor\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\windows_x86_64_gnu-0.36.1\\lib" "-L" "C:\\Users\\appveyor\\scoop\\apps\\rust\\1.63.0\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib" "-Wl,-Bstatic" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libtextwrap-cdec4ed89cd6ed7f.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libsmawk-0718fca269120995.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libunicode_linebreak-3b4ae3efba703adb.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libstork_lib-7b8c84872071691c.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libsrtparse-5a26278b665475e8.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libreqwest-1f4914a476acfe36.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libhyper_tls-a14c0eb33315a677.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libwinreg-655a51ef17932ca2.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libipnet-a71c23c12141bd60.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libtokio_native_tls-03527a37065ae829.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libserde_urlencoded-2b3d51ebaceb0385.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libencoding_rs-eba461ca01954010.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libbase64-c8983c245fee3564.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libnative_tls-4a468062aea65f17.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libschannel-90a92e0e95341176.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libhyper-79e5702829c4d738.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libwant-457a236d6f478a6f.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libtry_lock-90a1e8cbb267f53a.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libhttparse-1f0d2cdc45d8e371.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libh2-645b52c44a463a60.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libindexmap-3a5ad046fc21e5e9.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libhashbrown-ecea14e1309d369b.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libtokio_util-6420246e3f150c47.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libfutures_sink-2a94f11747cee7e0.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libtower_service-1495ea629beb98be.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libtracing-ce45b98e3f086622.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libtracing_core-44a4d6270fbc97c9.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libfutures_channel-cfa2316fc536b0c7.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libtokio-869b8ca456116482.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libnum_cpus-23f83e2038019c73.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libsocket2-181e8d017df3a642.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libmio-c5987f1b71cafeaf.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libhttp_body-05ed77e7e709f6fe.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libfutures_util-aa5b4ba2fdf8dbda.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libfutures_io-a60b600dfe28156b.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libslab-b7ff89226a4ac06f.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libpin_project_lite-1ca0de282310795f.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libfutures_task-7c11f04a064c5298.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libpin_utils-345f591eb8fe12c0.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libfutures_core-401fea7a4857d26e.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\liburl-965eed8a2d9a57bc.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libidna-501d8ba62e766fe6.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libunicode_normalization-5da61d70ac3d300c.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libtinyvec-f5d4792e8af433d9.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libtinyvec_macros-d7077c1e07cf3bb9.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libunicode_bidi-ab64800285ab72ba.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libform_urlencoded-46502699185b9194.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libpercent_encoding-daffb3140e13e01e.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libhttp-ad10ba4ba9f00801.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libfnv-d75e44becf6c9ef0.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\librmp_serde-c471bc936f754a19.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\librmp-45ad4a5837a86069.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libnum_traits-013068f0ada948bc.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libbincode-cabd0c1c136f51ed.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libserde_json-e252dfc96f86677b.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libryu-312625b299433d43.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libitoa-902e68759d2e4bd0.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libunicode_segmentation-9d8886b13afa118e.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libindicatif-7c1ce89f6203b320.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libregex-02c80d49f10ae602.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libregex_syntax-7020662e9efbd8d7.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libconsole-7e36fd243eac1319.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libterminal_size-61cd8389414f1709.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libencode_unicode-1ea2e73f6eb9a402.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libnumber_prefix-637cbc88dad69a85.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libfrontmatter-9442e7ca00e585d8.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libyaml_rust-756ee72f01baa6b4.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\liblinked_hash_map-bc7d953abcc7a28d.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libpulldown_cmark-a9491f784e9de788.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libmemchr-b2a791bc26405e88.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libunicase-f0bb0332691d6c7d.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libkuchiki-78c15d97e0f7f72b.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libselectors-c9281623d1966623.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libthin_slice-ae0eb51c66289989.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libservo_arc-4ea8a72a5e8555f6.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libstable_deref_trait-d5c13de7d97af74f.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libfxhash-a6764f5c1a856547.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libbyteorder-80fcdba746fb6baf.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libcssparser-02ee23684654eedd.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libdtoa_short-65a2c1fc71efea3c.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libdtoa-0f9cb37f06304fec.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libmatches-8f56eafc11d5f2ab.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libhtml5ever-1c05067c9de68fd7.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\liblog-dfcdc74d789ef2c9.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libmarkup5ever-a9e1f962edf4d5a5.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libstring_cache-16c3bb91db190533.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libprecomputed_hash-cd135733cc66e8e0.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libphf_shared-07830bc2283b44cb.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libparking_lot-94db058a95520ce7.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libparking_lot_core-f98dbfb897ccf3b7.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libwindows_sys-dd1cb8a0e293f978.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libcfg_if-6b3a4c2fc6d392ab.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libsmallvec-20b480c270ccebfd.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\liblock_api-2c9be9e25cb5c033.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libscopeguard-e8a62cff4b41fb04.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libonce_cell-7a64357a9e26f9f2.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libphf-14a3abc81f63490e.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libphf_shared-066e6ce59394b0e7.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libsiphasher-dcb330bc59202e86.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libtendril-93053a2569b9f60c.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libutf8-120ebc0b24a92f2c.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libfutf-33c64fac0f14a14f.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libdebug_unreachable-6ec73664c4c4ca7e.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libmac-3ec6c31621d3337b.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libmime-84f47290796c7812.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libtoml-64216849c4005b4d.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\librust_stemmers-7fdada8e6a2e8ef2.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libserde-ca6c8a00040d1c87.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libnum_format-f4d08c4499deedae.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libitoa-1ee73992a6bf0e28.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libarrayvec-5a42911f2490ffb2.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libnodrop-3c19a710c9508b74.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libthiserror-35b4a7027e2f969a.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libbytes-1e9712401c91c903.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libclap-29b51f3d603e7cdf.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libvec_map-35a5a13a6f90ee13.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libtextwrap-679b49cb204fb4b4.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libunicode_width-6a2b2c6dac50f521.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libstrsim-d6dba86be337b9de.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libbitflags-1f1131ba57771aa6.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libcolored-946fc553bc4d1100.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\liblazy_static-7aee7bc0955d4dfa.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libatty-4e9df8193bfa47df.rlib" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\libwinapi-7585ffa25a54343b.rlib" "-Wl,--start-group" "C:\\Users\\appveyor\\scoop\\apps\\rust\\1.63.0\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libstd-63790cb7e7741ec2.rlib" "C:\\Users\\appveyor\\scoop\\apps\\rust\\1.63.0\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libpanic_unwind-abcb1ca87a57a92a.rlib" "C:\\Users\\appveyor\\scoop\\apps\\rust\\1.63.0\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libobject-0fad8685c6bded4b.rlib" "C:\\Users\\appveyor\\scoop\\apps\\rust\\1.63.0\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libmemchr-3299e57f1789d89d.rlib" "C:\\Users\\appveyor\\scoop\\apps\\rust\\1.63.0\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libaddr2line-46e569780d4cdb16.rlib" "C:\\Users\\appveyor\\scoop\\apps\\rust\\1.63.0\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libgimli-7f2b28079033f1f7.rlib" "C:\\Users\\appveyor\\scoop\\apps\\rust\\1.63.0\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\librustc_demangle-a8f70e26f876b556.rlib" "C:\\Users\\appveyor\\scoop\\apps\\rust\\1.63.0\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libstd_detect-df1b92243550b9d9.rlib" "C:\\Users\\appveyor\\scoop\\apps\\rust\\1.63.0\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libhashbrown-a4978b2adb8ed9b0.rlib" "C:\\Users\\appveyor\\scoop\\apps\\rust\\1.63.0\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libminiz_oxide-2ca1626763a5b906.rlib" "C:\\Users\\appveyor\\scoop\\apps\\rust\\1.63.0\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libadler-1f2ee56578e6e126.rlib" "C:\\Users\\appveyor\\scoop\\apps\\rust\\1.63.0\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\librustc_std_workspace_alloc-c63afc13f98349ad.rlib" "C:\\Users\\appveyor\\scoop\\apps\\rust\\1.63.0\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libunwind-f98069f5498f6844.rlib" "C:\\Users\\appveyor\\scoop\\apps\\rust\\1.63.0\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libcfg_if-760411fe92f24889.rlib" "C:\\Users\\appveyor\\scoop\\apps\\rust\\1.63.0\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\liblibc-de2a474a231ed78a.rlib" "C:\\Users\\appveyor\\scoop\\apps\\rust\\1.63.0\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\liballoc-b868ffdbcdd15814.rlib" "C:\\Users\\appveyor\\scoop\\apps\\rust\\1.63.0\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\librustc_std_workspace_core-ca51229fadfc456b.rlib" "C:\\Users\\appveyor\\scoop\\apps\\rust\\1.63.0\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libcore-bf3f327639d6dfed.rlib" "-Wl,--end-group" "C:\\Users\\appveyor\\scoop\\apps\\rust\\1.63.0\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\libcompiler_builtins-d28d62d9ae273cdf.rlib" "-Wl,-Bdynamic" "-lntdll" "-lwindows" "-lwinapi_advapi32" "-lwinapi_cfgmgr32" "-lwinapi_fwpuclnt" "-lwinapi_gdi32" "-lwinapi_kernel32" "-lwinapi_msimg32" "-lwinapi_mswsock" "-lwinapi_ntdll" "-lwinapi_opengl32" "-lwinapi_user32" "-lwinapi_winspool" "-lwinapi_ws2_32" "-ladvapi32" "-luserenv" "-lkernel32" "-lws2_32" "-lbcrypt" "-lgcc_eh" "-l:libpthread.a" "-lmsvcrt" "-lmingwex" "-lmingw32" "-lgcc" "-lmsvcrt" "-luser32" "-lkernel32" "-Wl,--nxcompat" "-nostartfiles" "-L" "C:\\Users\\appveyor\\scoop\\apps\\rust\\1.63.0\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib" "-L" "C:\\Users\\appveyor\\scoop\\apps\\rust\\1.63.0\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\self-contained" "-o" "C:\\Users\\appveyor\\AppData\\Local\\Temp\\1\\cargo-install3h5Bnf\\release\\deps\\stork-15c4e5aa3b815693.exe" "-Wl,--gc-sections" "-no-pie" "-Wl,-O1" "-nodefaultlibs" "C:\\Users\\appveyor\\scoop\\apps\\rust\\1.63.0\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib\\rsend.o" = note: ld: cannot find -lntdll error: could not compile `stork-search` due to previous error error: failed to compile `stork-search v1.5.0`, intermediate artifacts can be found at `C:\Users\appveyor\AppData\Local\Temp\1\cargo-install3h5Bnf` ```

3.2. Desired

Stork successfully compiled for me on Ubuntu 22.04 LTS (Jammy Jellyfish) on Travis CI:

# [INFO] Non-interactive Rust installation on Ubuntu:
# https://stackoverflow.com/a/57251636/5951529
curl https://sh.rustup.rs -sSf | sh -s -- -y
source "$HOME/.cargo/env"
cargo install stork-search --locked
stork --version

Travis result:

$ stork --version

Stork 1.5.0

So it looks like a compilation bug specific to Windows.

(But I can’t install pre-compiled Stork ubuntu-20-04 binary (option 1 of Stork installation to Ubuntu on the official Stork site) on Travis Ubuntu 22.04)

4. Feature request

I’m not sure that сompiling Stork on user machines for about 10 minutes is good practice. It would be nice if the installation process was much faster.

I hope the creators of impossibly fast web search will not torment Windows users with a slow installation and will release pre-compiled Windows binaries.

5. Environment

  1. Windows Server 2019 on AppVeyor (details about AppVeyor pre-installed software for Visual Studio 2022 image)
  2. cargo 1.63.0 (fd9c4297c 2022-07-01)
  3. Node.js 18.7.0
  4. Stork 1.5.0

Thanks.

jameslittle230 commented 2 years ago

@Kristinita - sorry to hear you're having trouble!

As background information: I use Github Actions to build all the published binaries for different platforms.

I don't use Windows and I don't have any experience debugging Windows linker errors, so I'm not sure I'll be able to find an immediate fix for you. I'd be more than happy to publish a Windows binary, but the last time I looked into this I had trouble getting Rust working on the Github Actions Windows machines. I'm happy to take another look at some point.

I'm not sure how willing you'd be to go back and forth with me to debug these compilation issues, but if you are, let me know and I can suggest some alternate compilation steps to figure out where Stork is failing out of the box.

It looks like Ubuntu 22.04 just recently became available on Github Actions, so the next time I release a Stork version I'll be sure to include a build for Ubuntu 22.04.

Thanks for writing in! -James

Kristinita commented 2 years ago

Type: Reply 💬

@jameslittle230

1. Stork compilation CI problems

I'd be more than happy to publish a Windows binary, but the last time I looked into this I had trouble getting Rust working on the Github Actions Windows machines. I'm happy to take another look at some point.

I was able to compile Stork on my Windows machine. But for the Circle CI Windows environment I also get the bug.

AppVeyor and Circle environments both successfully compile Stork on Ubuntu.

2. My help for Windows debugging

I'm not sure how willing you'd be to go back and forth with me to debug these compilation issues, but if you are, let me know and I can suggest some alternate compilation steps to figure out where Stork is failing out of the box.

I don’t know Rust, I’ve never used GitHub Actions, and I’m not a professional programmer at all. But if there’s anything I can do to help Windows users just install binary without installing Rust and compiling Stork on their own machine (I’m interested in it), please let me know.

Thanks.

Kristinita commented 2 years ago

@jameslittle230 , please let me know if there is anything I can do to help with this issue. I have a lot of debugging experience (more than 1100 issues only for GitHub) and maybe I can be of some help to Stork for Windows.

Thanks.