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

[Bug] error LNK2001: 无法解析的外部符号 #887

Open
1 of 2 tasks
LuyaoCoding opened this issue Jan 12, 2025 · 0 comments
Open
1 of 2 tasks

[Bug] error LNK2001: 无法解析的外部符号 #887

LuyaoCoding opened this issue Jan 12, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@LuyaoCoding
Copy link

Search before asking

  • 我在 issues 列表中搜索,没有找到类似的内容。
    I searched in the issues and found nothing similar.

Pake version

3.1.1

System version

image

Node.js version

v20.12.2

Minimal reproduce step

安装rust
image

npm install -g pake-cli

pake https://www.yuque.com/dashboard --name YuQue --hide-title-bar

What did you expect to see?

pake completed

What did you see instead?

✦ Building app...

[email protected] build
npm run tauri build --release
✦ Building app...

[email protected] tauri
tauri build
Compiling webview2-com-sys v0.34.0
Compiling tauri-runtime v2.3.0
Compiling tao v0.31.1
Compiling pake v3.1.0 (C:\Users\luyao\AppData\Roaming\npm\node_modules\pake-cli\src-tauri)
error: linking with link.exe failed: exit code: 1120
|
= note: "D:\softs\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\bin\HostX64\x64\link.exe" "/NOLOGO" "C:\Users\luyao\AppData\Local\Temp\rustcTuwsk3\symbols.o" "D:\Cache\.rust\release\build\pake-351192ecf1e144cc\build_script_build-351192ecf1e144cc.build_script_build.bf5ec5c6e8f29727-cgu.0.rcgu.o" "D:\Cache\.rust\release\build\pake-351192ecf1e144cc\build_script_build-351192ecf1e144cc.6focv660jmmcc5xmbspwxe3ak.rcgu.o" "D:\Cache\.rust\release\deps\libtauri_build-ab27eac70772535c.rlib" "D:\Cache\.rust\release\deps\libdirs-c6fad3702c2fb16b.rlib" "D:\Cache\.rust\release\deps\libdirs_sys-d8540dc82387e98b.rlib" "D:\Cache\.rust\release\deps\liboption_ext-94d9819c44345378.rlib" "D:\Cache\.rust\release\deps\libtauri_winres-3562b1716a6d3907.rlib" "D:\Cache\.rust\release\deps\libembed_resource-09773d35d76b9cdb.rlib" "D:\Cache\.rust\release\deps\librustc_version-87f06dd303c5713d.rlib" "D:\Cache\.rust\release\deps\libwinreg-2632ce7bab0aa7e0.rlib" "D:\Cache\.rust\release\deps\libwindows_sys-cc9c2bbaef74f1ac.rlib" "D:\Cache\.rust\release\deps\libwindows_targets-e467c79fb79bc305.rlib" "D:\Cache\.rust\release\deps\libvswhom-0e3f2238d38acafb.rlib" "D:\Cache\.rust\release\deps\libvswhom_sys-9cbd809c947726e0.rlib" "D:\Cache\.rust\release\deps\liblibc-13b216082a6ed74b.rlib" "D:\Cache\.rust\release\deps\libcc-f3198099d929cdb6.rlib" "D:\Cache\.rust\release\deps\libshlex-2ccfc52307e24893.rlib" "D:\Cache\.rust\release\deps\libtoml-f9025ed215e1cb5a.rlib" "D:\Cache\.rust\release\deps\libtoml_edit-ae45e6b573dbaec9.rlib" "D:\Cache\.rust\release\deps\libtauri_utils-3f65337c1c95dcd3.rlib" "D:\Cache\.rust\release\deps\libinfer-74787057a67c375d.rlib" "D:\Cache\.rust\release\deps\libcfb-160a0e081c4a5406.rlib" "D:\Cache\.rust\release\deps\libbrotli-52da8b61cb875080.rlib" "D:\Cache\.rust\release\deps\libbrotli_decompressor-96a311f86523d3a3.rlib" "D:\Cache\.rust\release\deps\liballoc_stdlib-cc0de19592f8241f.rlib" "D:\Cache\.rust\release\deps\liballoc_no_stdlib-86747699aff140f0.rlib" "D:\Cache\.rust\release\deps\liburlpattern-e23834d551c909b4.rlib" "D:\Cache\.rust\release\deps\libunic_ucd_ident-b02680893c88300b.rlib" "D:\Cache\.rust\release\deps\libunic_ucd_version-20fef98c006cc033.rlib" "D:\Cache\.rust\release\deps\libunic_common-51c92a60c6e97c2b.rlib" "D:\Cache\.rust\release\deps\libunic_char_property-db458b95532b216b.rlib" "D:\Cache\.rust\release\deps\libunic_char_range-d9f16efb147ea5d4.rlib" "D:\Cache\.rust\release\deps\libregex-154c31293c52e304.rlib" "D:\Cache\.rust\release\deps\libregex_automata-552a95f67474c72a.rlib" "D:\Cache\.rust\release\deps\libaho_corasick-b00260fde7d21f45.rlib" "D:\Cache\.rust\release\deps\libregex_syntax-b4645a379507076f.rlib" "D:\Cache\.rust\release\deps\libcargo_metadata-158a7530b1c3b97d.rlib" "D:\Cache\.rust\release\deps\libcargo_platform-7501211afe75bd0c.rlib" "D:\Cache\.rust\release\deps\libcamino-e1f5c9302b168024.rlib" "D:\Cache\.rust\release\deps\libdunce-88f64494aa689985.rlib" "D:\Cache\.rust\release\deps\libglob-7e0ed3281455f1ae.rlib" "D:\Cache\.rust\release\deps\libwalkdir-609af24b410b0a4c.rlib" "D:\Cache\.rust\release\deps\libsame_file-798d537adcc6198b.rlib" "D:\Cache\.rust\release\deps\libwinapi_util-9d14a0238a187381.rlib" "D:\Cache\.rust\release\deps\libwindows_sys-b63426287eea2d52.rlib" "D:\Cache\.rust\release\deps\libkuchikiki-f3bc438aa20d2c95.rlib" "D:\Cache\.rust\release\deps\libselectors-5ef56ae9e598a386.rlib" "D:\Cache\.rust\release\deps\libthin_slice-6fa2d5ad9d95f542.rlib" "D:\Cache\.rust\release\deps\libservo_arc-173e61bae88585d8.rlib" "D:\Cache\.rust\release\deps\libnodrop-929ca479b30d4930.rlib" "D:\Cache\.rust\release\deps\libfxhash-47509c8372acc754.rlib" "D:\Cache\.rust\release\deps\libbyteorder-17c35e3a1dd18152.rlib" "D:\Cache\.rust\release\deps\libbitflags-f5b2fea92f39c596.rlib" "D:\Cache\.rust\release\deps\libcssparser-19b26ed66a8904f6.rlib" "D:\Cache\.rust\release\deps\libitoa-b845b570b1b75d05.rlib" "D:\Cache\.rust\release\deps\libdtoa_short-1e1c0a40668edc61.rlib" "D:\Cache\.rust\release\deps\libdtoa-290d290dfd131512.rlib" "D:\Cache\.rust\release\deps\libphf-bcf122ea59b1217c.rlib" "D:\Cache\.rust\release\deps\libphf_shared-6fd24f6e1bd7b133.rlib" "D:\Cache\.rust\release\deps\libmatches-cb2742d7d6ac152b.rlib" "D:\Cache\.rust\release\deps\libhtml5ever-e7e9043aa8f3962a.rlib" "D:\Cache\.rust\release\deps\liblog-0e8f4f23de864989.rlib" "D:\Cache\.rust\release\deps\libmarkup5ever-56bf2c38e92c5aab.rlib" "D:\Cache\.rust\release\deps\libstring_cache-998d25b7d1ebab16.rlib" "D:\Cache\.rust\release\deps\libprecomputed_hash-6ca4b57ae974bce5.rlib" "D:\Cache\.rust\release\deps\libparking_lot-abbd29f9fbc1c899.rlib" "D:\Cache\.rust\release\deps\libparking_lot_core-7385e4daedd60c04.rlib" "D:\Cache\.rust\release\deps\libwindows_targets-23aa2f4b16859406.rlib" "D:\Cache\.rust\release\deps\liblock_api-b7b0503c53039796.rlib" "D:\Cache\.rust\release\deps\libscopeguard-2b4d63e8172949cc.rlib" "D:\Cache\.rust\release\deps\libonce_cell-13057eb417b72b35.rlib" "D:\Cache\.rust\release\deps\libphf-011e0f5b34f0ffbd.rlib" "D:\Cache\.rust\release\deps\libphf_shared-370f0598eec5fadc.rlib" "D:\Cache\.rust\release\deps\libtendril-9cc2f5486b79e3dc.rlib" "D:\Cache\.rust\release\deps\libutf8-d062adce70c96a91.rlib" "D:\Cache\.rust\release\deps\libfutf-31fe49df5fd2f02b.rlib" "D:\Cache\.rust\release\deps\libdebug_unreachable-e7a0b0be2fdb86fb.rlib" "D:\Cache\.rust\release\deps\libmac-29d65ee830175cc1.rlib" "D:\Cache\.rust\release\deps\libjson_patch-8842b17e25e5ba39.rlib" "D:\Cache\.rust\release\deps\libthiserror-690d6e144745bc9b.rlib" "D:\Cache\.rust\release\deps\libjsonptr-f0bb414e58f185af.rlib" "D:\Cache\.rust\release\deps\libserde_with-16133024cbcc81c3.rlib" "D:\Cache\.rust\release\deps\libhttp-ee3d2bae94a2f277.rlib" "D:\Cache\.rust\release\deps\libbytes-9f964f095f955840.rlib" "D:\Cache\.rust\release\deps\libfnv-34401f70875969bc.rlib" "D:\Cache\.rust\release\deps\libphf-8014648865e4d55b.rlib" "D:\Cache\.rust\release\deps\libphf_shared-b30aaeda6a61532c.rlib" "D:\Cache\.rust\release\deps\libsiphasher-819f7c5023c4c730.rlib" "D:\Cache\.rust\release\deps\libquote-8f5ea5fcb9a16137.rlib" "D:\Cache\.rust\release\deps\libproc_macro2-6a13ee02b901b910.rlib" "D:\Cache\.rust\release\deps\libunicode_ident-eacbc9015a7f4082.rlib" "D:\Cache\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\libproc_macro-3b404a48c0831a7b.rlib" "D:\Cache\.rust\release\deps\libschemars-f2b6e8f034238181.rlib" "D:\Cache\.rust\release\deps\libdyn_clone-98d6b4571595d949.rlib" "D:\Cache\.rust\release\deps\libuuid-86ef49fa72f86acd.rlib" "D:\Cache\.rust\release\deps\libgetrandom-c9ea966bf17ad57b.rlib" "D:\Cache\.rust\release\deps\libcfg_if-77be4f01b753d683.rlib" "D:\Cache\.rust\release\deps\libindexmap-830bd6a30655147c.rlib" "D:\Cache\.rust\release\deps\libhashbrown-afdda41ac8a8ef28.rlib" "D:\Cache\.rust\release\deps\libserde_json-228992d589948595.rlib" "D:\Cache\.rust\release\deps\libmemchr-b84504812e455784.rlib" "D:\Cache\.rust\release\deps\libitoa-584d3ebc0489511d.rlib" "D:\Cache\.rust\release\deps\libryu-a5354555b82c132d.rlib" "D:\Cache\.rust\release\deps\libserde_untagged-05a55dd098c8d28e.rlib" "D:\Cache\.rust\release\deps\liberased_serde-fa0686d1572e8fa8.rlib" "D:\Cache\.rust\release\deps\libtypeid-0a70c720bd8d783a.rlib" "D:\Cache\.rust\release\deps\liburl-6a0744a875d053a3.rlib" "D:\Cache\.rust\release\deps\libidna-e7a2fa5897fa1ac0.rlib" "D:\Cache\.rust\release\deps\libidna_adapter-f242d33b7af4014d.rlib" "D:\Cache\.rust\release\deps\libicu_normalizer-7b6a2a2dbdda94f5.rlib" "D:\Cache\.rust\release\deps\libicu_normalizer_data-eaf0df2c339f9991.rlib" "D:\Cache\.rust\release\deps\libwrite16-fb9f1732eb952585.rlib" "D:\Cache\.rust\release\deps\libutf8_iter-06c102b0747b84c3.rlib" "D:\Cache\.rust\release\deps\libutf16_iter-f7bebe521898102c.rlib" "D:\Cache\.rust\release\deps\libsmallvec-c32f0de4565d7a49.rlib" "D:\Cache\.rust\release\deps\libicu_properties-c1708ec2600decca.rlib" "D:\Cache\.rust\release\deps\libicu_properties_data-b527e5218649b5f2.rlib" "D:\Cache\.rust\release\deps\libicu_locid_transform-e4d43f22b664db6f.rlib" "D:\Cache\.rust\release\deps\libicu_locid_transform_data-6d3885faa630aac1.rlib" "D:\Cache\.rust\release\deps\libicu_collections-45028471ef19f15f.rlib" "D:\Cache\.rust\release\deps\libicu_provider-2f409c074a5d8574.rlib" "D:\Cache\.rust\release\deps\libicu_locid-01b9f63a9efee437.rlib" "D:\Cache\.rust\release\deps\liblitemap-f07c23f9e4a39c20.rlib" "D:\Cache\.rust\release\deps\libtinystr-a830037e7ca97a2a.rlib" "D:\Cache\.rust\release\deps\libzerovec-431d7e4e668d1fa6.rlib" "D:\Cache\.rust\release\deps\libwriteable-0b03851eb4330a98.rlib" "D:\Cache\.rust\release\deps\libyoke-8d7c035aa002fb17.rlib" "D:\Cache\.rust\release\deps\libzerofrom-3c14b4ffca0e867c.rlib" "D:\Cache\.rust\release\deps\libstable_deref_trait-385f0030f1754069.rlib" "D:\Cache\.rust\release\deps\libform_urlencoded-f808081a8e92fc72.rlib" "D:\Cache\.rust\release\deps\libpercent_encoding-ed6c83c1da69ad93.rlib" "D:\Cache\.rust\release\deps\libthiserror-b9044bd378f2dff6.rlib" "D:\Cache\.rust\release\deps\libsemver-87e91b556a622f99.rlib" "D:\Cache\.rust\release\deps\libcargo_toml-3b030894cf031837.rlib" "D:\Cache\.rust\release\deps\libtoml-6c2206fba3b27902.rlib" "D:\Cache\.rust\release\deps\libtoml_edit-ecd10c78defab8c1.rlib" "D:\Cache\.rust\release\deps\libserde_spanned-c7823d8b93b85fb2.rlib" "D:\Cache\.rust\release\deps\libindexmap-b599c69e62425194.rlib" "D:\Cache\.rust\release\deps\libequivalent-7c94d4f9630f998b.rlib" "D:\Cache\.rust\release\deps\libhashbrown-83475fc0ada884f7.rlib" "D:\Cache\.rust\release\deps\libwinnow-d6b6bf5753dceefb.rlib" "D:\Cache\.rust\release\deps\libtoml_datetime-3f4a6a5fdb66285a.rlib" "D:\Cache\.rust\release\deps\libserde-0560993c513a3f05.rlib" "D:\Cache\.rust\release\deps\libanyhow-2416304bc054f9a9.rlib" "D:\Cache\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\libstd-aec24404b15c3c54.rlib" "D:\Cache\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\libpanic_unwind-8e52735c93d3b097.rlib" "D:\Cache\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\libwindows_targets-46cdc683cf841d12.rlib" "D:\Cache\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\librustc_demangle-e0c4332b1db8f848.rlib" "D:\Cache\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\libstd_detect-1561f4fbd30a7826.rlib" "D:\Cache\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\libhashbrown-0ab8c567eb16b630.rlib" "D:\Cache\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\librustc_std_workspace_alloc-b29c3a0b7f4215ee.rlib" "D:\Cache\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\libunwind-81a2c9a51d188835.rlib" "D:\Cache\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\libcfg_if-22483c46553cde00.rlib" "D:\Cache\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\liballoc-76c313b73eb78a2e.rlib" "D:\Cache\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\librustc_std_workspace_core-dcc1ef4077fe6130.rlib" "D:\Cache\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\libcore-202ff8cf8905719e.rlib" "D:\Cache\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\libcompiler_builtins-4867bdd705ffd9c0.rlib" "D:\Cache\.cargo\registry\src\index.crates.io-6f17d22bba15001f\windows_x86_64_msvc-0.48.5\lib\windows.0.48.5.lib" "OleAut32.lib" "Ole32.lib" "legacy_stdio_definitions.lib" "kernel32.lib" "advapi32.lib" "ole32.lib" "oleaut32.lib" "D:\Cache\.cargo\registry\src\index.crates.io-6f17d22bba15001f\windows_x86_64_msvc-0.52.6\lib\windows.0.52.0.lib" "D:\Cache\.cargo\registry\src\index.crates.io-6f17d22bba15001f\windows_x86_64_msvc-0.52.6\lib\windows.0.52.0.lib" "bcrypt.lib" "advapi32.lib" "kernel32.lib" "kernel32.lib" "advapi32.lib" "ntdll.lib" "userenv.lib" "ws2_32.lib" "dbghelp.lib" "/defaultlib:msvcrt" "/NXCOMPAT" "/LIBPATH:D:\Cache\.cargo\registry\src\index.crates.io-6f17d22bba15001f\windows_x86_64_msvc-0.48.5\lib" "/LIBPATH:D:\Cache\.cargo\registry\src\index.crates.io-6f17d22bba15001f\windows_x86_64_msvc-0.52.6\lib" "/LIBPATH:D:\Cache\.rust\release\build\vswhom-sys-ab8a52bc9f6a0bf4\out" "/OUT:D:\Cache\.rust\release\build\pake-351192ecf1e144cc\build_script_build-351192ecf1e144cc.exe" "/OPT:REF,NOICF" "/DEBUG" "/PDBALTPATH:%_PDB%" "/NATVIS:D:\Cache\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\etc\intrinsic.natvis" "/NATVIS:D:\Cache\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\etc\liballoc.natvis" "/NATVIS:D:\Cache\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\etc\libcore.natvis" "/NATVIS:D:\Cache\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\etc\libstd.natvis"
= note: libvswhom_sys-9cbd809c947726e0.rlib(71b29add3157f200-vswhom.o) : error LNK2001: 无法解析的外部符号 __gxx_personality_seh0␍
libvswhom_sys-9cbd809c947726e0.rlib(71b29add3157f200-vswhom.o) : error LNK2019: 无法解析的外部符号 _Unwind_Resume,函数 _ZL13visit_files_wPwP12Version_DataPFvS_S_S1_E 中引用了该符号␍
D:\Cache.rust\release\build\pake-351192ecf1e144cc\build_script_build-351192ecf1e144cc.exe : fatal error LNK1120: 2 个无法解析的外部命令␍

error: could not compile pake (build script) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
failed to build app: failed to build app
Error failed to build app: failed to build app
file:///C:/Users/luyao/AppData/Roaming/npm/node_modules/pake-cli/dist/cli.js:322
reject(new Error(Error occurred while executing command "${command}". Exit code: ${code}));
^

Error: Error occurred while executing command "cd "C:\Users\luyao\AppData\Roaming\npm\node_modules\pake-cli" && npm run build". Exit code: 1
at file:///C:/Users/luyao/AppData/Roaming/npm/node_modules/pake-cli/dist/cli.js:322:24
at C:\Users\luyao\AppData\Roaming\npm\node_modules\pake-cli\node_modules\shelljs\src\exec.js:145:9
at ChildProcess.exithandler (node:child_process:430:5)
at ChildProcess.emit (node:events:518:28)
at maybeClose (node:internal/child_process:1105:16)
at ChildProcess._handle.onexit (node:internal/child_process:305:5)

Node.js v20.12.2

Anything else?

试过安装vc运行时库,没有用

Are you willing to submit a PR?

  • I'm willing to submit a PR!
@LuyaoCoding LuyaoCoding added the bug Something isn't working label Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant