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

Failed to execute any example binary #11

Closed
peddermaster2 opened this issue Feb 24, 2021 · 2 comments
Closed

Failed to execute any example binary #11

peddermaster2 opened this issue Feb 24, 2021 · 2 comments

Comments

@peddermaster2
Copy link

When I try to run any example I get an error window like this:
Error Window
It's in german but it roughly says "Not supported 16 bit binary - You can not run this on a 64bit version of windows"

C:\dev\gits\webview2>rustup show
Default host: x86_64-pc-windows-msvc
rustup home:  C:\Users\[USER_NAME]\.rustup

nightly-x86_64-pc-windows-msvc (default)
rustc 1.52.0-nightly (07194ffcd 2021-02-10)

Windows 10
Version 21H1 (Build 19043.844)

Verbose build log
C:\dev\gits\webview2>cargo run -v --example win32
   Compiling proc-macro2 v1.0.24
   Compiling winapi v0.3.9
   Compiling unicode-xid v0.2.1
   Compiling syn v1.0.60
   Compiling libm v0.1.4
   Compiling bitflags v1.2.1
   Compiling libc v0.2.86
   Compiling log v0.4.14
   Compiling lazy_static v1.4.0
   Compiling webview2-sys v0.1.0-beta.1 (C:\dev\gits\webview2\webview2-sys)
   Compiling cfg-if v1.0.0
   Compiling winapi-build v0.1.1
   Compiling smallvec v1.6.1
   Compiling cfg-if v0.1.10
   Compiling scopeguard v1.1.0
   Compiling muldiv v0.2.1
     Running `rustc --crate-name build_script_build --edition=2018 C:\Users\[USER_NAME]\.cargo\registry\src\github.com-1ecc6299db9ec823\proc-macro2-1.0.24\build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --cfg "feature=\"default\"" --cfg "feature=\"proc-macro\"" -C metadata=a78e3d2cada58873 -C extra-filename=-a78e3d2cada58873 --out-dir C:\dev\gits\webview2\target\debug\build\proc-macro2-a78e3d2cada58873 -L dependency=C:\dev\gits\webview2\target\debug\deps --cap-lints allow`
     Running `rustc --crate-name build_script_build C:\Users\[USER_NAME]\.cargo\registry\src\github.com-1ecc6299db9ec823\winapi-0.3.9\build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --cfg "feature=\"basetsd\"" --cfg "feature=\"combaseapi\"" --cfg "feature=\"commctrl\"" --cfg "feature=\"commdlg\"" --cfg "feature=\"consoleapi\"" --cfg "feature=\"d2d1\"" --cfg "feature=\"dwmapi\"" --cfg "feature=\"dwrite\"" --cfg "feature=\"errhandlingapi\"" --cfg "feature=\"fileapi\"" --cfg "feature=\"handleapi\"" --cfg "feature=\"hidusage\"" --cfg "feature=\"libloaderapi\"" --cfg "feature=\"memoryapi\"" --cfg "feature=\"minwindef\"" --cfg "feature=\"ntstatus\"" --cfg "feature=\"objbase\"" --cfg "feature=\"ole2\"" --cfg "feature=\"processenv\"" --cfg "feature=\"processthreadsapi\"" --cfg "feature=\"shellapi\"" --cfg "feature=\"shellscalingapi\"" --cfg "feature=\"shobjidl\"" --cfg "feature=\"shobjidl_core\"" --cfg "feature=\"std\"" --cfg "feature=\"stringapiset\"" --cfg "feature=\"sysinfoapi\"" --cfg "feature=\"unknwnbase\"" --cfg "feature=\"winbase\"" --cfg "feature=\"wincodec\"" --cfg "feature=\"wincon\"" --cfg "feature=\"windowsx\"" --cfg "feature=\"winerror\"" --cfg "feature=\"wingdi\"" --cfg "feature=\"winnls\"" --cfg "feature=\"winnt\"" --cfg "feature=\"winsock2\"" --cfg "feature=\"winuser\"" --cfg "feature=\"winver\"" --cfg "feature=\"ws2def\"" --cfg "feature=\"ws2ipdef\"" --cfg "feature=\"ws2tcpip\"" -C metadata=3ccabafa10db388c -C extra-filename=-3ccabafa10db388c --out-dir C:\dev\gits\webview2\target\debug\build\winapi-3ccabafa10db388c -L dependency=C:\dev\gits\webview2\target\debug\deps --cap-lints allow`
     Running `rustc --crate-name unicode_xid C:\Users\[USER_NAME]\.cargo\registry\src\github.com-1ecc6299db9ec823\unicode-xid-0.2.1\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg "feature=\"default\"" -C metadata=e015c4de54d96579 -C extra-filename=-e015c4de54d96579 --out-dir C:\dev\gits\webview2\target\debug\deps -L dependency=C:\dev\gits\webview2\target\debug\deps --cap-lints allow`
     Running `rustc --crate-name build_script_build --edition=2018 C:\Users\[USER_NAME]\.cargo\registry\src\github.com-1ecc6299db9ec823\syn-1.0.60\build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --cfg "feature=\"clone-impls\"" --cfg "feature=\"default\"" --cfg "feature=\"derive\"" --cfg "feature=\"full\"" --cfg "feature=\"parsing\"" --cfg "feature=\"printing\"" --cfg "feature=\"proc-macro\"" --cfg "feature=\"quote\"" -C metadata=623c938407446325 -C extra-filename=-623c938407446325 --out-dir C:\dev\gits\webview2\target\debug\build\syn-623c938407446325 -L dependency=C:\dev\gits\webview2\target\debug\deps --cap-lints allow`
     Running `rustc --crate-name build_script_build --edition=2018 C:\Users\[USER_NAME]\.cargo\registry\src\github.com-1ecc6299db9ec823\libm-0.1.4\build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --cfg "feature=\"default\"" --cfg "feature=\"stable\"" -C metadata=0e40e465e08ade5c -C extra-filename=-0e40e465e08ade5c --out-dir C:\dev\gits\webview2\target\debug\build\libm-0e40e465e08ade5c -L dependency=C:\dev\gits\webview2\target\debug\deps --cap-lints allow`
     Running `rustc --crate-name build_script_build C:\Users\[USER_NAME]\.cargo\registry\src\github.com-1ecc6299db9ec823\bitflags-1.2.1\build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --cfg "feature=\"default\"" -C metadata=9e46c060fe5a7cf3 -C extra-filename=-9e46c060fe5a7cf3 --out-dir C:\dev\gits\webview2\target\debug\build\bitflags-9e46c060fe5a7cf3 -L dependency=C:\dev\gits\webview2\target\debug\deps --cap-lints allow`
     Running `rustc --crate-name build_script_build C:\Users\[USER_NAME]\.cargo\registry\src\github.com-1ecc6299db9ec823\libc-0.2.86\build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --cfg "feature=\"default\"" --cfg "feature=\"std\"" -C metadata=4b2d6b98458c09b1 -C extra-filename=-4b2d6b98458c09b1 --out-dir C:\dev\gits\webview2\target\debug\build\libc-4b2d6b98458c09b1 -L dependency=C:\dev\gits\webview2\target\debug\deps --cap-lints allow`
     Running `rustc --crate-name build_script_build C:\Users\[USER_NAME]\.cargo\registry\src\github.com-1ecc6299db9ec823\log-0.4.14\build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C metadata=d5355ac2713332b3 -C extra-filename=-d5355ac2713332b3 --out-dir C:\dev\gits\webview2\target\debug\build\log-d5355ac2713332b3 -L dependency=C:\dev\gits\webview2\target\debug\deps --cap-lints allow`
     Running `rustc --crate-name lazy_static C:\Users\[USER_NAME]\.cargo\registry\src\github.com-1ecc6299db9ec823\lazy_static-1.4.0\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=8fa3d8ae5721accd -C extra-filename=-8fa3d8ae5721accd --out-dir C:\dev\gits\webview2\target\debug\deps -L dependency=C:\dev\gits\webview2\target\debug\deps --cap-lints allow`
     Running `rustc --crate-name build_script_build --edition=2018 webview2-sys\build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C metadata=07aa310e1ed21889 -C extra-filename=-07aa310e1ed21889 --out-dir C:\dev\gits\webview2\target\debug\build\webview2-sys-07aa310e1ed21889 -C incremental=C:\dev\gits\webview2\target\debug\incremental -L dependency=C:\dev\gits\webview2\target\debug\deps`
     Running `rustc --crate-name cfg_if --edition=2018 C:\Users\[USER_NAME]\.cargo\registry\src\github.com-1ecc6299db9ec823\cfg-if-1.0.0\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=a7309519de2cc80c -C extra-filename=-a7309519de2cc80c --out-dir C:\dev\gits\webview2\target\debug\deps -L dependency=C:\dev\gits\webview2\target\debug\deps --cap-lints allow`
     Running `rustc --crate-name build C:\Users\[USER_NAME]\.cargo\registry\src\github.com-1ecc6299db9ec823\winapi-build-0.1.1\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=ffe093dc4b715f34 -C extra-filename=-ffe093dc4b715f34 --out-dir C:\dev\gits\webview2\target\debug\deps -L dependency=C:\dev\gits\webview2\target\debug\deps --cap-lints allow`
     Running `rustc --crate-name smallvec --edition=2018 C:\Users\[USER_NAME]\.cargo\registry\src\github.com-1ecc6299db9ec823\smallvec-1.6.1\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=5be80423043c4973 -C extra-filename=-5be80423043c4973 --out-dir C:\dev\gits\webview2\target\debug\deps -L dependency=C:\dev\gits\webview2\target\debug\deps --cap-lints allow`
     Running `rustc --crate-name cfg_if --edition=2018 C:\Users\[USER_NAME]\.cargo\registry\src\github.com-1ecc6299db9ec823\cfg-if-0.1.10\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=eba8b02bd66b50d0 -C extra-filename=-eba8b02bd66b50d0 --out-dir C:\dev\gits\webview2\target\debug\deps -L dependency=C:\dev\gits\webview2\target\debug\deps --cap-lints allow`
     Running `rustc --crate-name scopeguard C:\Users\[USER_NAME]\.cargo\registry\src\github.com-1ecc6299db9ec823\scopeguard-1.1.0\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=7d58122f9c0c1d3f -C extra-filename=-7d58122f9c0c1d3f --out-dir C:\dev\gits\webview2\target\debug\deps -L dependency=C:\dev\gits\webview2\target\debug\deps --cap-lints allow`
     Running `rustc --crate-name muldiv --edition=2018 C:\Users\[USER_NAME]\.cargo\registry\src\github.com-1ecc6299db9ec823\muldiv-0.2.1\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=b03ac234426990fb -C extra-filename=-b03ac234426990fb --out-dir C:\dev\gits\webview2\target\debug\deps -L dependency=C:\dev\gits\webview2\target\debug\deps --cap-lints allow`
   Compiling widestring v0.4.3
     Running `rustc --crate-name widestring C:\Users\[USER_NAME]\.cargo\registry\src\github.com-1ecc6299db9ec823\widestring-0.4.3\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg "feature=\"alloc\"" --cfg "feature=\"default\"" --cfg "feature=\"std\"" -C metadata=27ac8dde079f52f6 -C extra-filename=-27ac8dde079f52f6 --out-dir C:\dev\gits\webview2\target\debug\deps -L dependency=C:\dev\gits\webview2\target\debug\deps --cap-lints allow`
   Compiling once_cell v1.7.0
     Running `rustc --crate-name once_cell --edition=2018 C:\Users\[USER_NAME]\.cargo\registry\src\github.com-1ecc6299db9ec823\once_cell-1.7.0\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg "feature=\"alloc\"" --cfg "feature=\"default\"" --cfg "feature=\"race\"" --cfg "feature=\"std\"" -C metadata=6d5f6308bd2bf34b -C extra-filename=-6d5f6308bd2bf34b --out-dir C:\dev\gits\webview2\target\debug\deps -L dependency=C:\dev\gits\webview2\target\debug\deps --cap-lints allow`
   Compiling instant v0.1.9
   Compiling lock_api v0.3.4
     Running `rustc --crate-name instant --edition=2018 C:\Users\[USER_NAME]\.cargo\registry\src\github.com-1ecc6299db9ec823\instant-0.1.9\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=073a2a812cca075e -C extra-filename=-073a2a812cca075e --out-dir C:\dev\gits\webview2\target\debug\deps -L dependency=C:\dev\gits\webview2\target\debug\deps --extern cfg_if=C:\dev\gits\webview2\target\debug\deps\libcfg_if-a7309519de2cc80c.rmeta --cap-lints allow`
     Running `rustc --crate-name lock_api --edition=2018 C:\Users\[USER_NAME]\.cargo\registry\src\github.com-1ecc6299db9ec823\lock_api-0.3.4\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=5a4a132d9c661255 -C extra-filename=-5a4a132d9c661255 --out-dir C:\dev\gits\webview2\target\debug\deps -L dependency=C:\dev\gits\webview2\target\debug\deps --extern scopeguard=C:\dev\gits\webview2\target\debug\deps\libscopeguard-7d58122f9c0c1d3f.rmeta --cap-lints allow`
   Compiling native-windows-gui v1.0.10
     Running `rustc --crate-name build_script_build --edition=2018 C:\Users\[USER_NAME]\.cargo\registry\src\github.com-1ecc6299db9ec823\native-windows-gui-1.0.10\build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --cfg "feature=\"all\"" --cfg "feature=\"clipboard\"" --cfg "feature=\"color-dialog\"" --cfg "feature=\"combobox\"" --cfg "feature=\"cursor\"" --cfg "feature=\"datetime-picker\"" --cfg "feature=\"default\"" --cfg "feature=\"dynamic_layout\"" --cfg "feature=\"embed-resource\"" --cfg "feature=\"extern-canvas\"" --cfg "feature=\"fancy-window\"" --cfg "feature=\"file-dialog\"" --cfg "feature=\"flexbox\"" --cfg "feature=\"font-dialog\"" --cfg "feature=\"frame\"" --cfg "feature=\"high-dpi\"" --cfg "feature=\"image-decoder\"" --cfg "feature=\"image-list\"" --cfg "feature=\"list-view\"" --cfg "feature=\"listbox\"" --cfg "feature=\"menu\"" --cfg "feature=\"message-window\"" --cfg "feature=\"muldiv\"" --cfg "feature=\"notice\"" --cfg "feature=\"number-select\"" --cfg "feature=\"progress-bar\"" --cfg "feature=\"rich-textbox\"" --cfg "feature=\"scroll-bar\"" --cfg "feature=\"status-bar\"" --cfg "feature=\"stretch\"" --cfg "feature=\"tabs\"" --cfg "feature=\"textbox\"" --cfg "feature=\"timer\"" --cfg "feature=\"tooltip\"" --cfg "feature=\"trackbar\"" --cfg "feature=\"tray-notification\"" --cfg "feature=\"tree-view\"" --cfg "feature=\"tree-view-iterator\"" --cfg "feature=\"winnls\"" -C metadata=d585890daab28904 -C extra-filename=-d585890daab28904 --out-dir C:\dev\gits\webview2\target\debug\build\native-windows-gui-d585890daab28904 -L dependency=C:\dev\gits\webview2\target\debug\deps --extern build=C:\dev\gits\webview2\target\debug\deps\libbuild-ffe093dc4b715f34.rlib --cap-lints allow`
     Running `C:\dev\gits\webview2\target\debug\build\log-d5355ac2713332b3\build-script-build`
     Running `C:\dev\gits\webview2\target\debug\build\libm-0e40e465e08ade5c\build-script-build`
     Running `C:\dev\gits\webview2\target\debug\build\bitflags-9e46c060fe5a7cf3\build-script-build`
     Running `C:\dev\gits\webview2\target\debug\build\syn-623c938407446325\build-script-build`
     Running `C:\dev\gits\webview2\target\debug\build\webview2-sys-07aa310e1ed21889\build-script-build`
     Running `rustc --crate-name log C:\Users\[USER_NAME]\.cargo\registry\src\github.com-1ecc6299db9ec823\log-0.4.14\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=e2ff318bdc24f4fc -C extra-filename=-e2ff318bdc24f4fc --out-dir C:\dev\gits\webview2\target\debug\deps -L dependency=C:\dev\gits\webview2\target\debug\deps --extern cfg_if=C:\dev\gits\webview2\target\debug\deps\libcfg_if-a7309519de2cc80c.rmeta --cap-lints allow --cfg atomic_cas --cfg has_atomics`
     Running `C:\dev\gits\webview2\target\debug\build\proc-macro2-a78e3d2cada58873\build-script-build`
     Running `C:\dev\gits\webview2\target\debug\build\libc-4b2d6b98458c09b1\build-script-build`
     Running `rustc --crate-name libm --edition=2018 C:\Users\[USER_NAME]\.cargo\registry\src\github.com-1ecc6299db9ec823\libm-0.1.4\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg "feature=\"default\"" --cfg "feature=\"stable\"" -C metadata=da9a5d66bba7abde -C extra-filename=-da9a5d66bba7abde --out-dir C:\dev\gits\webview2\target\debug\deps -L dependency=C:\dev\gits\webview2\target\debug\deps --cap-lints allow`
     Running `C:\dev\gits\webview2\target\debug\build\winapi-3ccabafa10db388c\build-script-build`
     Running `rustc --crate-name bitflags C:\Users\[USER_NAME]\.cargo\registry\src\github.com-1ecc6299db9ec823\bitflags-1.2.1\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg "feature=\"default\"" -C metadata=4691a02cd52b2b39 -C extra-filename=-4691a02cd52b2b39 --out-dir C:\dev\gits\webview2\target\debug\deps -L dependency=C:\dev\gits\webview2\target\debug\deps --cap-lints allow --cfg bitflags_const_fn`
     Running `C:\dev\gits\webview2\target\debug\build\native-windows-gui-d585890daab28904\build-script-build`
     Running `rustc --crate-name winapi C:\Users\[USER_NAME]\.cargo\registry\src\github.com-1ecc6299db9ec823\winapi-0.3.9\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg "feature=\"basetsd\"" --cfg "feature=\"combaseapi\"" --cfg "feature=\"commctrl\"" --cfg "feature=\"commdlg\"" --cfg "feature=\"consoleapi\"" --cfg "feature=\"d2d1\"" --cfg "feature=\"dwmapi\"" --cfg "feature=\"dwrite\"" --cfg "feature=\"errhandlingapi\"" --cfg "feature=\"fileapi\"" --cfg "feature=\"handleapi\"" --cfg "feature=\"hidusage\"" --cfg "feature=\"libloaderapi\"" --cfg "feature=\"memoryapi\"" --cfg "feature=\"minwindef\"" --cfg "feature=\"ntstatus\"" --cfg "feature=\"objbase\"" --cfg "feature=\"ole2\"" --cfg "feature=\"processenv\"" --cfg "feature=\"processthreadsapi\"" --cfg "feature=\"shellapi\"" --cfg "feature=\"shellscalingapi\"" --cfg "feature=\"shobjidl\"" --cfg "feature=\"shobjidl_core\"" --cfg "feature=\"std\"" --cfg "feature=\"stringapiset\"" --cfg "feature=\"sysinfoapi\"" --cfg "feature=\"unknwnbase\"" --cfg "feature=\"winbase\"" --cfg "feature=\"wincodec\"" --cfg "feature=\"wincon\"" --cfg "feature=\"windowsx\"" --cfg "feature=\"winerror\"" --cfg "feature=\"wingdi\"" --cfg "feature=\"winnls\"" --cfg "feature=\"winnt\"" --cfg "feature=\"winsock2\"" --cfg "feature=\"winuser\"" --cfg "feature=\"winver\"" --cfg "feature=\"ws2def\"" --cfg "feature=\"ws2ipdef\"" --cfg "feature=\"ws2tcpip\"" -C metadata=e4ee4b9f30f0733a -C extra-filename=-e4ee4b9f30f0733a --out-dir C:\dev\gits\webview2\target\debug\deps -L dependency=C:\dev\gits\webview2\target\debug\deps --cap-lints allow --cfg "feature=\"commoncontrols\"" --cfg "feature=\"windef\"" --cfg "feature=\"shtypes\"" --cfg "feature=\"qos\"" --cfg "feature=\"oaidl\"" --cfg "feature=\"dxgi\"" --cfg "feature=\"d3dcommon\"" --cfg "feature=\"dcommon\"" --cfg "feature=\"in6addr\"" --cfg "feature=\"oleidl\"" --cfg "feature=\"guiddef\"" --cfg "feature=\"objidlbase\"" --cfg "feature=\"cfg\"" --cfg "feature=\"wtypesbase\"" --cfg "feature=\"wincontypes\"" --cfg "feature=\"propsys\"" --cfg "feature=\"mstcpip\"" --cfg "feature=\"minwinbase\"" --cfg "feature=\"d2d1effectauthor\"" --cfg "feature=\"propidl\"" --cfg "feature=\"excpt\"" --cfg "feature=\"inaddr\"" --cfg "feature=\"limits\"" --cfg "feature=\"rpcndr\"" --cfg "feature=\"dxgiformat\"" --cfg "feature=\"reason\"" --cfg "feature=\"propkeydef\"" --cfg "feature=\"d2d1_1\"" --cfg "feature=\"wtypes\"" --cfg "feature=\"devpropdef\"" --cfg "feature=\"vadefs\"" --cfg "feature=\"ocidl\"" --cfg "feature=\"d2dbasetypes\"" --cfg "feature=\"d3d9types\"" --cfg "feature=\"cfgmgr32\"" --cfg "feature=\"rpcdce\"" --cfg "feature=\"vcruntime\"" --cfg "feature=\"objidl\"" --cfg "feature=\"uxtheme\"" --cfg "feature=\"documenttarget\"" --cfg "feature=\"ntdef\"" --cfg "feature=\"rpc\"" --cfg "feature=\"winreg\"" --cfg "feature=\"dxgitype\"" --cfg "feature=\"ktmtypes\"" --cfg "feature=\"prsht\"" -l dylib=advapi32 -l dylib=cfgmgr32 -l dylib=comctl32 -l dylib=comdlg32 -l dylib=d2d1 -l dylib=dwmapi -l dylib=dwrite -l dylib=dxgi -l dylib=fwpuclnt -l dylib=gdi32 -l dylib=kernel32 -l dylib=msimg32 -l dylib=ntdll -l dylib=ole32 -l dylib=opengl32 -l dylib=shcore -l dylib=shell32 -l dylib=shlwapi -l dylib=user32 -l dylib=uxtheme -l dylib=version -l dylib=windowscodecs -l dylib=winspool -l dylib=ws2_32`
     Running `rustc --crate-name libc C:\Users\[USER_NAME]\.cargo\registry\src\github.com-1ecc6299db9ec823\libc-0.2.86\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg "feature=\"default\"" --cfg "feature=\"std\"" -C metadata=b2f8f9891dfa2324 -C extra-filename=-b2f8f9891dfa2324 --out-dir C:\dev\gits\webview2\target\debug\deps -L dependency=C:\dev\gits\webview2\target\debug\deps --cap-lints allow --cfg freebsd11 --cfg libc_priv_mod_use --cfg libc_union --cfg libc_const_size_of --cfg libc_align --cfg libc_core_cvoid --cfg libc_packedN --cfg libc_cfg_target_vendor`
     Running `rustc --crate-name proc_macro2 --edition=2018 C:\Users\[USER_NAME]\.cargo\registry\src\github.com-1ecc6299db9ec823\proc-macro2-1.0.24\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg "feature=\"default\"" --cfg "feature=\"proc-macro\"" -C metadata=bc5402a5b15feb3d -C extra-filename=-bc5402a5b15feb3d --out-dir C:\dev\gits\webview2\target\debug\deps -L dependency=C:\dev\gits\webview2\target\debug\deps --extern unicode_xid=C:\dev\gits\webview2\target\debug\deps\libunicode_xid-e015c4de54d96579.rmeta --cap-lints allow --cfg lexerror_display --cfg hygiene --cfg use_proc_macro --cfg wrap_proc_macro --cfg proc_macro_span`
   Compiling raw-window-handle v0.3.3
     Running `rustc --crate-name raw_window_handle --edition=2018 C:\Users\[USER_NAME]\.cargo\registry\src\github.com-1ecc6299db9ec823\raw-window-handle-0.3.3\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=4af497726bce9d67 -C extra-filename=-4af497726bce9d67 --out-dir C:\dev\gits\webview2\target\debug\deps -L dependency=C:\dev\gits\webview2\target\debug\deps --extern libc=C:\dev\gits\webview2\target\debug\deps\liblibc-b2f8f9891dfa2324.rmeta --cap-lints allow`
   Compiling quote v1.0.9
     Running `rustc --crate-name quote --edition=2018 C:\Users\[USER_NAME]\.cargo\registry\src\github.com-1ecc6299db9ec823\quote-1.0.9\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg "feature=\"default\"" --cfg "feature=\"proc-macro\"" -C metadata=3e8706aa290d9cb0 -C extra-filename=-3e8706aa290d9cb0 --out-dir C:\dev\gits\webview2\target\debug\deps -L dependency=C:\dev\gits\webview2\target\debug\deps --extern proc_macro2=C:\dev\gits\webview2\target\debug\deps\libproc_macro2-bc5402a5b15feb3d.rmeta --cap-lints allow`
   Compiling stretch v0.3.2
     Running `rustc --crate-name stretch --edition=2018 C:\Users\[USER_NAME]\.cargo\registry\src\github.com-1ecc6299db9ec823\stretch-0.3.2\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg "feature=\"default\"" --cfg "feature=\"std\"" -C metadata=a3e88985f5051da5 -C extra-filename=-a3e88985f5051da5 --out-dir C:\dev\gits\webview2\target\debug\deps -L dependency=C:\dev\gits\webview2\target\debug\deps --extern lazy_static=C:\dev\gits\webview2\target\debug\deps\liblazy_static-8fa3d8ae5721accd.rmeta --extern libm=C:\dev\gits\webview2\target\debug\deps\liblibm-da9a5d66bba7abde.rmeta --cap-lints allow`
     Running `rustc --crate-name syn --edition=2018 C:\Users\[USER_NAME]\.cargo\registry\src\github.com-1ecc6299db9ec823\syn-1.0.60\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg "feature=\"clone-impls\"" --cfg "feature=\"default\"" --cfg "feature=\"derive\"" --cfg "feature=\"full\"" --cfg "feature=\"parsing\"" --cfg "feature=\"printing\"" --cfg "feature=\"proc-macro\"" --cfg "feature=\"quote\"" -C metadata=d6bbfe60f03482ef -C extra-filename=-d6bbfe60f03482ef --out-dir C:\dev\gits\webview2\target\debug\deps -L dependency=C:\dev\gits\webview2\target\debug\deps --extern proc_macro2=C:\dev\gits\webview2\target\debug\deps\libproc_macro2-bc5402a5b15feb3d.rmeta --extern quote=C:\dev\gits\webview2\target\debug\deps\libquote-3e8706aa290d9cb0.rmeta --extern unicode_xid=C:\dev\gits\webview2\target\debug\deps\libunicode_xid-e015c4de54d96579.rmeta --cap-lints allow`
   Compiling com_macros_support v0.2.0
     Running `rustc --crate-name com_macros_support --edition=2018 C:\Users\[USER_NAME]\.cargo\registry\src\github.com-1ecc6299db9ec823\com_macros_support-0.2.0\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=181ddf24edff624d -C extra-filename=-181ddf24edff624d --out-dir C:\dev\gits\webview2\target\debug\deps -L dependency=C:\dev\gits\webview2\target\debug\deps --extern proc_macro2=C:\dev\gits\webview2\target\debug\deps\libproc_macro2-bc5402a5b15feb3d.rmeta --extern quote=C:\dev\gits\webview2\target\debug\deps\libquote-3e8706aa290d9cb0.rmeta --extern syn=C:\dev\gits\webview2\target\debug\deps\libsyn-d6bbfe60f03482ef.rmeta --cap-lints allow`
   Compiling com_macros v0.2.0
     Running `rustc --crate-name com_macros --edition=2018 C:\Users\[USER_NAME]\.cargo\registry\src\github.com-1ecc6299db9ec823\com_macros-0.2.0\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type proc-macro --emit=dep-info,link -C prefer-dynamic -C embed-bitcode=no -C debuginfo=2 -C metadata=d99b6c2d29af935f -C extra-filename=-d99b6c2d29af935f --out-dir C:\dev\gits\webview2\target\debug\deps -L dependency=C:\dev\gits\webview2\target\debug\deps --extern com_macros_support=C:\dev\gits\webview2\target\debug\deps\libcom_macros_support-181ddf24edff624d.rlib --extern proc_macro2=C:\dev\gits\webview2\target\debug\deps\libproc_macro2-bc5402a5b15feb3d.rlib --extern syn=C:\dev\gits\webview2\target\debug\deps\libsyn-d6bbfe60f03482ef.rlib --extern proc_macro --cap-lints allow`
   Compiling com v0.2.0
     Running `rustc --crate-name com --edition=2018 C:\Users\[USER_NAME]\.cargo\registry\src\github.com-1ecc6299db9ec823\com-0.2.0\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=46ab6dfc9d26542c -C extra-filename=-46ab6dfc9d26542c --out-dir C:\dev\gits\webview2\target\debug\deps -L dependency=C:\dev\gits\webview2\target\debug\deps --extern com_macros=C:\dev\gits\webview2\target\debug\deps\com_macros-d99b6c2d29af935f.dll --cap-lints allow`
   Compiling parking_lot_core v0.7.2
     Running `rustc --crate-name parking_lot_core --edition=2018 C:\Users\[USER_NAME]\.cargo\registry\src\github.com-1ecc6299db9ec823\parking_lot_core-0.7.2\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=3f76bd2b033c5e54 -C extra-filename=-3f76bd2b033c5e54 --out-dir C:\dev\gits\webview2\target\debug\deps -L dependency=C:\dev\gits\webview2\target\debug\deps --extern cfg_if=C:\dev\gits\webview2\target\debug\deps\libcfg_if-eba8b02bd66b50d0.rmeta --extern smallvec=C:\dev\gits\webview2\target\debug\deps\libsmallvec-5be80423043c4973.rmeta --extern winapi=C:\dev\gits\webview2\target\debug\deps\libwinapi-e4ee4b9f30f0733a.rmeta --cap-lints allow`
     Running `rustc --crate-name webview2_sys --edition=2018 webview2-sys\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=cf06ca01f998d20a -C extra-filename=-cf06ca01f998d20a --out-dir C:\dev\gits\webview2\target\debug\deps -C incremental=C:\dev\gits\webview2\target\debug\incremental -L dependency=C:\dev\gits\webview2\target\debug\deps --extern com=C:\dev\gits\webview2\target\debug\deps\libcom-46ab6dfc9d26542c.rmeta --extern winapi=C:\dev\gits\webview2\target\debug\deps\libwinapi-e4ee4b9f30f0733a.rmeta -L C:\dev\gits\webview2\webview2-sys\Microsoft.Web.WebView2.1.0.622.22\build\native\x64 -l WebView2LoaderStatic`
     Running `rustc --crate-name native_windows_gui --edition=2018 C:\Users\[USER_NAME]\.cargo\registry\src\github.com-1ecc6299db9ec823\native-windows-gui-1.0.10\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg "feature=\"all\"" --cfg "feature=\"clipboard\"" --cfg "feature=\"color-dialog\"" --cfg "feature=\"combobox\"" --cfg "feature=\"cursor\"" --cfg "feature=\"datetime-picker\"" --cfg "feature=\"default\"" --cfg "feature=\"dynamic_layout\"" --cfg "feature=\"embed-resource\"" --cfg "feature=\"extern-canvas\"" --cfg "feature=\"fancy-window\"" --cfg "feature=\"file-dialog\"" --cfg "feature=\"flexbox\"" --cfg "feature=\"font-dialog\"" --cfg "feature=\"frame\"" --cfg "feature=\"high-dpi\"" --cfg "feature=\"image-decoder\"" --cfg "feature=\"image-list\"" --cfg "feature=\"list-view\"" --cfg "feature=\"listbox\"" --cfg "feature=\"menu\"" --cfg "feature=\"message-window\"" --cfg "feature=\"muldiv\"" --cfg "feature=\"notice\"" --cfg "feature=\"number-select\"" --cfg "feature=\"progress-bar\"" --cfg "feature=\"rich-textbox\"" --cfg "feature=\"scroll-bar\"" --cfg "feature=\"status-bar\"" --cfg "feature=\"stretch\"" --cfg "feature=\"tabs\"" --cfg "feature=\"textbox\"" --cfg "feature=\"timer\"" --cfg "feature=\"tooltip\"" --cfg "feature=\"trackbar\"" --cfg "feature=\"tray-notification\"" --cfg "feature=\"tree-view\"" --cfg "feature=\"tree-view-iterator\"" --cfg "feature=\"winnls\"" -C metadata=9cffb8953dcb33c9 -C extra-filename=-9cffb8953dcb33c9 --out-dir C:\dev\gits\webview2\target\debug\deps -L dependency=C:\dev\gits\webview2\target\debug\deps --extern bitflags=C:\dev\gits\webview2\target\debug\deps\libbitflags-4691a02cd52b2b39.rmeta --extern lazy_static=C:\dev\gits\webview2\target\debug\deps\liblazy_static-8fa3d8ae5721accd.rmeta --extern muldiv=C:\dev\gits\webview2\target\debug\deps\libmuldiv-b03ac234426990fb.rmeta --extern stretch=C:\dev\gits\webview2\target\debug\deps\libstretch-a3e88985f5051da5.rmeta --extern winapi=C:\dev\gits\webview2\target\debug\deps\libwinapi-e4ee4b9f30f0733a.rmeta --cap-lints allow -l dylib=shell32`
   Compiling parking_lot v0.10.2
     Running `rustc --crate-name parking_lot --edition=2018 C:\Users\[USER_NAME]\.cargo\registry\src\github.com-1ecc6299db9ec823\parking_lot-0.10.2\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg "feature=\"default\"" -C metadata=eaaf71f8e171d19d -C extra-filename=-eaaf71f8e171d19d --out-dir C:\dev\gits\webview2\target\debug\deps -L dependency=C:\dev\gits\webview2\target\debug\deps --extern lock_api=C:\dev\gits\webview2\target\debug\deps\liblock_api-5a4a132d9c661255.rmeta --extern parking_lot_core=C:\dev\gits\webview2\target\debug\deps\libparking_lot_core-3f76bd2b033c5e54.rmeta --cap-lints allow`
   Compiling winit v0.20.0
     Running `rustc --crate-name winit --edition=2018 C:\Users\[USER_NAME]\.cargo\registry\src\github.com-1ecc6299db9ec823\winit-0.20.0\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=376192e7021a9393 -C extra-filename=-376192e7021a9393 --out-dir C:\dev\gits\webview2\target\debug\deps -L dependency=C:\dev\gits\webview2\target\debug\deps --extern bitflags=C:\dev\gits\webview2\target\debug\deps\libbitflags-4691a02cd52b2b39.rmeta --extern instant=C:\dev\gits\webview2\target\debug\deps\libinstant-073a2a812cca075e.rmeta --extern lazy_static=C:\dev\gits\webview2\target\debug\deps\liblazy_static-8fa3d8ae5721accd.rmeta --extern libc=C:\dev\gits\webview2\target\debug\deps\liblibc-b2f8f9891dfa2324.rmeta --extern log=C:\dev\gits\webview2\target\debug\deps\liblog-e2ff318bdc24f4fc.rmeta --extern parking_lot=C:\dev\gits\webview2\target\debug\deps\libparking_lot-eaaf71f8e171d19d.rmeta --extern raw_window_handle=C:\dev\gits\webview2\target\debug\deps\libraw_window_handle-4af497726bce9d67.rmeta --extern winapi=C:\dev\gits\webview2\target\debug\deps\libwinapi-e4ee4b9f30f0733a.rmeta --cap-lints allow`
   Compiling webview2 v0.1.0-beta.1 (C:\dev\gits\webview2)
     Running `rustc --crate-name webview2 --edition=2018 src\lib.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 -C metadata=8d06a58e360242a9 -C extra-filename=-8d06a58e360242a9 --out-dir C:\dev\gits\webview2\target\debug\deps -C incremental=C:\dev\gits\webview2\target\debug\incremental -L dependency=C:\dev\gits\webview2\target\debug\deps --extern com=C:\dev\gits\webview2\target\debug\deps\libcom-46ab6dfc9d26542c.rmeta --extern once_cell=C:\dev\gits\webview2\target\debug\deps\libonce_cell-6d5f6308bd2bf34b.rmeta --extern webview2_sys=C:\dev\gits\webview2\target\debug\deps\libwebview2_sys-cf06ca01f998d20a.rmeta --extern widestring=C:\dev\gits\webview2\target\debug\deps\libwidestring-27ac8dde079f52f6.rmeta --extern winapi=C:\dev\gits\webview2\target\debug\deps\libwinapi-e4ee4b9f30f0733a.rmeta -L C:\dev\gits\webview2\webview2-sys\Microsoft.Web.WebView2.1.0.622.22\build\native\x64`
     Running `rustc --crate-name win32 --edition=2018 examples\win32.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C metadata=827bd2d72b3fb60b --out-dir C:\dev\gits\webview2\target\debug\examples -C incremental=C:\dev\gits\webview2\target\debug\incremental -L dependency=C:\dev\gits\webview2\target\debug\deps --extern com=C:\dev\gits\webview2\target\debug\deps\libcom-46ab6dfc9d26542c.rlib --extern native_windows_gui=C:\dev\gits\webview2\target\debug\deps\libnative_windows_gui-9cffb8953dcb33c9.rlib --extern once_cell=C:\dev\gits\webview2\target\debug\deps\libonce_cell-6d5f6308bd2bf34b.rlib --extern webview2=C:\dev\gits\webview2\target\debug\deps\libwebview2-8d06a58e360242a9.rlib --extern webview2_sys=C:\dev\gits\webview2\target\debug\deps\libwebview2_sys-cf06ca01f998d20a.rlib --extern widestring=C:\dev\gits\webview2\target\debug\deps\libwidestring-27ac8dde079f52f6.rlib --extern winapi=C:\dev\gits\webview2\target\debug\deps\libwinapi-e4ee4b9f30f0733a.rlib --extern winit=C:\dev\gits\webview2\target\debug\deps\libwinit-376192e7021a9393.rlib -L C:\dev\gits\webview2\webview2-sys\Microsoft.Web.WebView2.1.0.622.22\build\native\x64`
    Finished dev [unoptimized + debuginfo] target(s) in 11.25s
     Running `target\debug\examples\win32.exe`
error: could not execute process `target\debug\examples\win32.exe` (never executed)

Caused by:
  Die Version von %1 ist mit der ausgeführten Windows-Version nicht kompatibel. Überprüfen Sie die Systeminformationen des Computers, und wenden Sie sich anschließend an den Herausgeber der Software. (os error 216)
@blckngm
Copy link
Owner

blckngm commented Feb 25, 2021

Never have encountered this myself...

My guess would be it's a linker issue. Which version of link.exe or visual studio do you have?

Maybe try lld? rust-lang/rust#71520 (comment)

@peddermaster2
Copy link
Author

I tried it with Microsoft (R) Incremental Linker Version 14.16.27045.0 from Visual Studio 2014 (I did not even knew this was installed) but this resulted in the error in the first post.

I now tried it the your recommendation and that worked.
I also updated my Visual Studio to 2019 (Community) and with it's linker Microsoft (R) Incremental Linker Version 14.28.29337.0 it also works.

Thanks for the help.

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

No branches or pull requests

2 participants