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

[Build.rs] Failure linking build script using GCC (windows-gnu) #2861

Open
RivenSkaye opened this issue Nov 21, 2024 · 2 comments
Open

[Build.rs] Failure linking build script using GCC (windows-gnu) #2861

RivenSkaye opened this issue Nov 21, 2024 · 2 comments

Comments

@RivenSkaye
Copy link

RivenSkaye commented Nov 21, 2024

Building serde = "1.0" currently fails on windows-gnu targets with a linker error with the rest of the settings being all defaults. Noticed this trying to install cargo-update which has it rather early in the deps for fast failures.

Setting the env vars for a full Clang setup compiles successfully (but breaks zerofrom-derive and yoke-derive atm)

Log with cargo verbosity cranked up

Installing cargo-update v16.0.0
    Updating crates.io index
     Locking 121 packages to latest compatible versions
      Adding clap v3.2.25 (available: v4.5.21)
      Adding embed-resource v2.5.1 (available: v3.0.1)
   Compiling proc-macro2 v1.0.91
   Compiling unicode-ident v1.0.14
   Compiling shlex v1.3.0
   Compiling jobserver v0.1.32
     Running `set CARGO='\\?\D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\bin\cargo.exe'&& set CARGO_CRATE_NAME=unicode_ident&& set CARGO_MANIFEST_DIR='C:/msys64/home/martin/.rust/.cargo\registry\src\index.crates.io-6f17d22bba15001f\unicode-ident-1.0.14'&& set CARGO_MANIFEST_PATH='C:/msys64/home/martin/.rust/.cargo\registry\src\index.crates.io-6f17d22bba15001f\unicode-ident-1.0.14\Cargo.toml'&& set CARGO_PKG_AUTHORS='David Tolnay '&& set CARGO_PKG_DESCRIPTION='Determine whether characters have the XID_Start or XID_Continue properties according to Unicode Standard Annex #31'&& set CARGO_PKG_HOMEPAGE=''&& set CARGO_PKG_LICENSE='(MIT OR Apache-2.0) AND Unicode-3.0'&& set CARGO_PKG_LICENSE_FILE=''&& set CARGO_PKG_NAME=unicode-ident&& set CARGO_PKG_README=README.md&& set CARGO_PKG_REPOSITORY='https://github.com/dtolnay/unicode-ident'&& set CARGO_PKG_RUST_VERSION=1.31&& set CARGO_PKG_VERSION=1.0.14&& set CARGO_PKG_VERSION_MAJOR=1&& set CARGO_PKG_VERSION_MINOR=0&& set CARGO_PKG_VERSION_PATCH=14&& set CARGO_PKG_VERSION_PRE=''&& set PATH='C:\Users\Martin\AppData\Local\Temp\cargo-installBKm5iy\release\deps;C:\msys64\home\Martin\.bin\vim90;C:\msys64\home\martin\.rust\.cargo\bin;C:\msys64\mingw64\bin;C:\msys64\usr\local\bin;C:\msys64\usr\bin;C:\msys64\usr\bin;C:\Program Files\Lapce;C:\msys64\home\Martin\.rust\.cargo\bin;C:\Program Files\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\dotnet;C:\Utils;C:\Utils\php;C:\Program Files\PuTTY;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\160\DTS\Binn;C:\Program Files\Graphviz\bin;C:\Program Files (x86)\cloudflared;C:\Users\Martin\AppData\Local\Programs\Python\Python311\Scripts;C:\Users\Martin\AppData\Local\Programs\Python\Python311;C:\Users\Martin\AppData\Local\Programs\Python\Launcher;C:\msys64\home\Martin\.rust\.cargo\bin;C:\Utils\zig;C:\Utils\media;C:\Utils;C:\Utils\Nirsoft;C:\Users\Martin\.dotnet\tools;C:\Users\Martin\AppData\Local\Microsoft\WindowsApps;C:\Users\Martin\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\Martin\.lua;C:\Users\Martin\AppData\Local\gitkraken\bin;C:\Users\Martin\AppData\Local\Microsoft\WinGet\Links;C:\msys64\usr\bin;C:\msys64\mingw64\bin;C:\msys64\usr\bin\site_perl;C:\msys64\usr\bin\vendor_perl;C:\msys64\usr\bin\core_perl;C:\msys64\home\Martin\.go\bin'&& C:/msys64/home/martin/.rust\toolchains\nightly-x86_64-pc-windows-gnu\bin\rustc.exe --crate-name unicode_ident --edition=2018 'C:/msys64/home/martin/.rust/.cargo\registry\src\index.crates.io-6f17d22bba15001f\unicode-ident-1.0.14\src\lib.rs' --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=149 --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debug-assertions=off --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values())' -C metadata=4e4aaf50c37182d4 -C extra-filename=-4e4aaf50c37182d4 --out-dir 'C:\Users\Martin\AppData\Local\Temp\cargo-installBKm5iy\release\deps' -C strip=debuginfo -L 'dependency=C:\Users\Martin\AppData\Local\Temp\cargo-installBKm5iy\release\deps' --cap-lints warn`
     Running `set CARGO='\\?\D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\bin\cargo.exe'&& set CARGO_CRATE_NAME=build_script_build&& set CARGO_MANIFEST_DIR='C:/msys64/home/martin/.rust/.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.91'&& set CARGO_MANIFEST_PATH='C:/msys64/home/martin/.rust/.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.91\Cargo.toml'&& set CARGO_PKG_AUTHORS='David Tolnay :Alex Crichton '&& set CARGO_PKG_DESCRIPTION='A substitute implementation of the compiler'\''s `proc_macro` API to decouple token-based libraries from the procedural macro use case.'&& set CARGO_PKG_HOMEPAGE=''&& set CARGO_PKG_LICENSE='MIT OR Apache-2.0'&& set CARGO_PKG_LICENSE_FILE=''&& set CARGO_PKG_NAME=proc-macro2&& set CARGO_PKG_README=README.md&& set CARGO_PKG_REPOSITORY='https://github.com/dtolnay/proc-macro2'&& set CARGO_PKG_RUST_VERSION=1.56&& set CARGO_PKG_VERSION=1.0.91&& set CARGO_PKG_VERSION_MAJOR=1&& set CARGO_PKG_VERSION_MINOR=0&& set CARGO_PKG_VERSION_PATCH=91&& set CARGO_PKG_VERSION_PRE=''&& set PATH='C:\Users\Martin\AppData\Local\Temp\cargo-installBKm5iy\release\deps;C:\msys64\home\Martin\.bin\vim90;C:\msys64\home\martin\.rust\.cargo\bin;C:\msys64\mingw64\bin;C:\msys64\usr\local\bin;C:\msys64\usr\bin;C:\msys64\usr\bin;C:\Program Files\Lapce;C:\msys64\home\Martin\.rust\.cargo\bin;C:\Program Files\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\dotnet;C:\Utils;C:\Utils\php;C:\Program Files\PuTTY;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\160\DTS\Binn;C:\Program Files\Graphviz\bin;C:\Program Files (x86)\cloudflared;C:\Users\Martin\AppData\Local\Programs\Python\Python311\Scripts;C:\Users\Martin\AppData\Local\Programs\Python\Python311;C:\Users\Martin\AppData\Local\Programs\Python\Launcher;C:\msys64\home\Martin\.rust\.cargo\bin;C:\Utils\zig;C:\Utils\media;C:\Utils;C:\Utils\Nirsoft;C:\Users\Martin\.dotnet\tools;C:\Users\Martin\AppData\Local\Microsoft\WindowsApps;C:\Users\Martin\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\Martin\.lua;C:\Users\Martin\AppData\Local\gitkraken\bin;C:\Users\Martin\AppData\Local\Microsoft\WinGet\Links;C:\msys64\usr\bin;C:\msys64\mingw64\bin;C:\msys64\usr\bin\site_perl;C:\msys64\usr\bin\vendor_perl;C:\msys64\usr\bin\core_perl;C:\msys64\home\Martin\.go\bin'&& C:/msys64/home/martin/.rust\toolchains\nightly-x86_64-pc-windows-gnu\bin\rustc.exe --crate-name build_script_build --edition=2021 'C:/msys64/home/martin/.rust/.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.91\build.rs' --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=149 --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off --cfg 'feature="default"' --cfg 'feature="proc-macro"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "nightly", "proc-macro", "span-locations"))' -C metadata=54e84f0e732778f7 -C extra-filename=-54e84f0e732778f7 --out-dir 'C:\Users\Martin\AppData\Local\Temp\cargo-installBKm5iy\release\build\proc-macro2-54e84f0e732778f7' -C strip=debuginfo -L 'dependency=C:\Users\Martin\AppData\Local\Temp\cargo-installBKm5iy\release\deps' --cap-lints warn`
     Running `set CARGO='\\?\D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\bin\cargo.exe'&& set CARGO_CRATE_NAME=shlex&& set CARGO_MANIFEST_DIR='C:/msys64/home/martin/.rust/.cargo\registry\src\index.crates.io-6f17d22bba15001f\shlex-1.3.0'&& set CARGO_MANIFEST_PATH='C:/msys64/home/martin/.rust/.cargo\registry\src\index.crates.io-6f17d22bba15001f\shlex-1.3.0\Cargo.toml'&& set CARGO_PKG_AUTHORS='comex :Fenhl :Adrian Taylor :Alex Touchet :Daniel Parks :Garrett Berg '&& set CARGO_PKG_DESCRIPTION='Split a string into shell words, like Python'\''s shlex.'&& set CARGO_PKG_HOMEPAGE=''&& set CARGO_PKG_LICENSE='MIT OR Apache-2.0'&& set CARGO_PKG_LICENSE_FILE=''&& set CARGO_PKG_NAME=shlex&& set CARGO_PKG_README=README.md&& set CARGO_PKG_REPOSITORY='https://github.com/comex/rust-shlex'&& set CARGO_PKG_RUST_VERSION=1.46.0&& set CARGO_PKG_VERSION=1.3.0&& set CARGO_PKG_VERSION_MAJOR=1&& set CARGO_PKG_VERSION_MINOR=3&& set CARGO_PKG_VERSION_PATCH=0&& set CARGO_PKG_VERSION_PRE=''&& set PATH='C:\Users\Martin\AppData\Local\Temp\cargo-installBKm5iy\release\deps;C:\msys64\home\Martin\.bin\vim90;C:\msys64\home\martin\.rust\.cargo\bin;C:\msys64\mingw64\bin;C:\msys64\usr\local\bin;C:\msys64\usr\bin;C:\msys64\usr\bin;C:\Program Files\Lapce;C:\msys64\home\Martin\.rust\.cargo\bin;C:\Program Files\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\dotnet;C:\Utils;C:\Utils\php;C:\Program Files\PuTTY;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\160\DTS\Binn;C:\Program Files\Graphviz\bin;C:\Program Files (x86)\cloudflared;C:\Users\Martin\AppData\Local\Programs\Python\Python311\Scripts;C:\Users\Martin\AppData\Local\Programs\Python\Python311;C:\Users\Martin\AppData\Local\Programs\Python\Launcher;C:\msys64\home\Martin\.rust\.cargo\bin;C:\Utils\zig;C:\Utils\media;C:\Utils;C:\Utils\Nirsoft;C:\Users\Martin\.dotnet\tools;C:\Users\Martin\AppData\Local\Microsoft\WindowsApps;C:\Users\Martin\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\Martin\.lua;C:\Users\Martin\AppData\Local\gitkraken\bin;C:\Users\Martin\AppData\Local\Microsoft\WinGet\Links;C:\msys64\usr\bin;C:\msys64\mingw64\bin;C:\msys64\usr\bin\site_perl;C:\msys64\usr\bin\vendor_perl;C:\msys64\usr\bin\core_perl;C:\msys64\home\Martin\.go\bin'&& C:/msys64/home/martin/.rust\toolchains\nightly-x86_64-pc-windows-gnu\bin\rustc.exe --crate-name shlex --edition=2015 'C:/msys64/home/martin/.rust/.cargo\registry\src\index.crates.io-6f17d22bba15001f\shlex-1.3.0\src\lib.rs' --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=149 --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debug-assertions=off --cfg 'feature="default"' --cfg 'feature="std"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "std"))' -C metadata=98ab9a85b545b8f9 -C extra-filename=-98ab9a85b545b8f9 --out-dir 'C:\Users\Martin\AppData\Local\Temp\cargo-installBKm5iy\release\deps' -C strip=debuginfo -L 'dependency=C:\Users\Martin\AppData\Local\Temp\cargo-installBKm5iy\release\deps' --cap-lints warn`
     Running `set CARGO='\\?\D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\bin\cargo.exe'&& set CARGO_CRATE_NAME=jobserver&& set CARGO_MANIFEST_DIR='C:/msys64/home/martin/.rust/.cargo\registry\src\index.crates.io-6f17d22bba15001f\jobserver-0.1.32'&& set CARGO_MANIFEST_PATH='C:/msys64/home/martin/.rust/.cargo\registry\src\index.crates.io-6f17d22bba15001f\jobserver-0.1.32\Cargo.toml'&& set CARGO_PKG_AUTHORS='Alex Crichton '&& set CARGO_PKG_DESCRIPTION='An implementation of the GNU Make jobserver for Rust.
'&& set CARGO_PKG_HOMEPAGE='https://github.com/rust-lang/jobserver-rs'&& set CARGO_PKG_LICENSE='MIT OR Apache-2.0'&& set CARGO_PKG_LICENSE_FILE=''&& set CARGO_PKG_NAME=jobserver&& set CARGO_PKG_README=README.md&& set CARGO_PKG_REPOSITORY='https://github.com/rust-lang/jobserver-rs'&& set CARGO_PKG_RUST_VERSION=1.63&& set CARGO_PKG_VERSION=0.1.32&& set CARGO_PKG_VERSION_MAJOR=0&& set CARGO_PKG_VERSION_MINOR=1&& set CARGO_PKG_VERSION_PATCH=32&& set CARGO_PKG_VERSION_PRE=''&& set PATH='C:\Users\Martin\AppData\Local\Temp\cargo-installBKm5iy\release\deps;C:\msys64\home\Martin\.bin\vim90;C:\msys64\home\martin\.rust\.cargo\bin;C:\msys64\mingw64\bin;C:\msys64\usr\local\bin;C:\msys64\usr\bin;C:\msys64\usr\bin;C:\Program Files\Lapce;C:\msys64\home\Martin\.rust\.cargo\bin;C:\Program Files\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\dotnet;C:\Utils;C:\Utils\php;C:\Program Files\PuTTY;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\160\DTS\Binn;C:\Program Files\Graphviz\bin;C:\Program Files (x86)\cloudflared;C:\Users\Martin\AppData\Local\Programs\Python\Python311\Scripts;C:\Users\Martin\AppData\Local\Programs\Python\Python311;C:\Users\Martin\AppData\Local\Programs\Python\Launcher;C:\msys64\home\Martin\.rust\.cargo\bin;C:\Utils\zig;C:\Utils\media;C:\Utils;C:\Utils\Nirsoft;C:\Users\Martin\.dotnet\tools;C:\Users\Martin\AppData\Local\Microsoft\WindowsApps;C:\Users\Martin\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\Martin\.lua;C:\Users\Martin\AppData\Local\gitkraken\bin;C:\Users\Martin\AppData\Local\Microsoft\WinGet\Links;C:\msys64\usr\bin;C:\msys64\mingw64\bin;C:\msys64\usr\bin\site_perl;C:\msys64\usr\bin\vendor_perl;C:\msys64\usr\bin\core_perl;C:\msys64\home\Martin\.go\bin'&& C:/msys64/home/martin/.rust\toolchains\nightly-x86_64-pc-windows-gnu\bin\rustc.exe --crate-name jobserver --edition=2021 'C:/msys64/home/martin/.rust/.cargo\registry\src\index.crates.io-6f17d22bba15001f\jobserver-0.1.32\src\lib.rs' --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=149 --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debug-assertions=off --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values())' -C metadata=fe1f6f7684d851a6 -C extra-filename=-fe1f6f7684d851a6 --out-dir 'C:\Users\Martin\AppData\Local\Temp\cargo-installBKm5iy\release\deps' -C strip=debuginfo -L 'dependency=C:\Users\Martin\AppData\Local\Temp\cargo-installBKm5iy\release\deps' --cap-lints warn`
   Compiling serde v1.0.215
     Running `set CARGO='\\?\D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\bin\cargo.exe'&& set CARGO_CRATE_NAME=build_script_build&& set CARGO_MANIFEST_DIR='C:/msys64/home/martin/.rust/.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.215'&& set CARGO_MANIFEST_PATH='C:/msys64/home/martin/.rust/.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.215\Cargo.toml'&& set CARGO_PKG_AUTHORS='Erick Tryzelaar :David Tolnay '&& set CARGO_PKG_DESCRIPTION='A generic serialization/deserialization framework'&& set CARGO_PKG_HOMEPAGE='https://serde.rs'&& set CARGO_PKG_LICENSE='MIT OR Apache-2.0'&& set CARGO_PKG_LICENSE_FILE=''&& set CARGO_PKG_NAME=serde&& set CARGO_PKG_README=crates-io.md&& set CARGO_PKG_REPOSITORY='https://github.com/serde-rs/serde'&& set CARGO_PKG_RUST_VERSION=1.31&& set CARGO_PKG_VERSION=1.0.215&& set CARGO_PKG_VERSION_MAJOR=1&& set CARGO_PKG_VERSION_MINOR=0&& set CARGO_PKG_VERSION_PATCH=215&& set CARGO_PKG_VERSION_PRE=''&& set PATH='C:\Users\Martin\AppData\Local\Temp\cargo-installBKm5iy\release\deps;C:\msys64\home\Martin\.bin\vim90;C:\msys64\home\martin\.rust\.cargo\bin;C:\msys64\mingw64\bin;C:\msys64\usr\local\bin;C:\msys64\usr\bin;C:\msys64\usr\bin;C:\Program Files\Lapce;C:\msys64\home\Martin\.rust\.cargo\bin;C:\Program Files\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\dotnet;C:\Utils;C:\Utils\php;C:\Program Files\PuTTY;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\160\DTS\Binn;C:\Program Files\Graphviz\bin;C:\Program Files (x86)\cloudflared;C:\Users\Martin\AppData\Local\Programs\Python\Python311\Scripts;C:\Users\Martin\AppData\Local\Programs\Python\Python311;C:\Users\Martin\AppData\Local\Programs\Python\Launcher;C:\msys64\home\Martin\.rust\.cargo\bin;C:\Utils\zig;C:\Utils\media;C:\Utils;C:\Utils\Nirsoft;C:\Users\Martin\.dotnet\tools;C:\Users\Martin\AppData\Local\Microsoft\WindowsApps;C:\Users\Martin\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\Martin\.lua;C:\Users\Martin\AppData\Local\gitkraken\bin;C:\Users\Martin\AppData\Local\Microsoft\WinGet\Links;C:\msys64\usr\bin;C:\msys64\mingw64\bin;C:\msys64\usr\bin\site_perl;C:\msys64\usr\bin\vendor_perl;C:\msys64\usr\bin\core_perl;C:\msys64\home\Martin\.go\bin'&& C:/msys64/home/martin/.rust\toolchains\nightly-x86_64-pc-windows-gnu\bin\rustc.exe --crate-name build_script_build --edition=2018 'C:/msys64/home/martin/.rust/.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.215\build.rs' --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=149 --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off --cfg 'feature="default"' --cfg 'feature="std"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("alloc", "default", "derive", "rc", "serde_derive", "std", "unstable"))' -C metadata=402257152472d897 -C extra-filename=-402257152472d897 --out-dir 'C:\Users\Martin\AppData\Local\Temp\cargo-installBKm5iy\release\build\serde-402257152472d897' -C strip=debuginfo -L 'dependency=C:\Users\Martin\AppData\Local\Temp\cargo-installBKm5iy\release\deps' --cap-lints warn`
warning: unexpected `cfg` condition name: `manual_codegen_check`
   --> C:/msys64/home/martin/.rust/.cargo\registry\src\index.crates.io-6f17d22bba15001f\shlex-1.3.0\src\bytes.rs:353:12
    |
353 | #[cfg_attr(manual_codegen_check, inline(never))]
    |            ^^^^^^^^^^^^^^^^^^^^
    |
    = help: expected names are: `clippy`, `debug_assertions`, `doc`, `docsrs`, `doctest`, `feature`, `fmt_debug`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows`
    = help: consider using a Cargo feature instead
    = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
             [lints.rust]
             unexpected_cfgs = { level = "warn", check-cfg = ['cfg(manual_codegen_check)'] }
    = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(manual_codegen_check)");` to the top of the `build.rs`
    = note: see  for more information about checking conditional configuration
    = note: `#[warn(unexpected_cfgs)]` on by default

warning: shlex (lib) generated 1 warning
Compiling cc v1.2.1
Running set CARGO='\\?\D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\bin\cargo.exe'&& set CARGO_CRATE_NAME=cc&& set CARGO_MANIFEST_DIR='C:/msys64/home/martin/.rust/.cargo\registry\src\index.crates.io-6f17d22bba15001f\cc-1.2.1'&& set CARGO_MANIFEST_PATH='C:/msys64/home/martin/.rust/.cargo\registry\src\index.crates.io-6f17d22bba15001f\cc-1.2.1\Cargo.toml'&& set CARGO_PKG_AUTHORS='Alex Crichton <[email protected]>'&& set CARGO_PKG_DESCRIPTION='A build-time dependency for Cargo build scripts to assist in invoking the native C compiler to compile native C code into a static archive to be linked into Rust code. '&& set CARGO_PKG_HOMEPAGE='https://github.com/rust-lang/cc-rs'&& set CARGO_PKG_LICENSE='MIT OR Apache-2.0'&& set CARGO_PKG_LICENSE_FILE=''&& set CARGO_PKG_NAME=cc&& set CARGO_PKG_README=README.md&& set CARGO_PKG_REPOSITORY='https://github.com/rust-lang/cc-rs'&& set CARGO_PKG_RUST_VERSION=1.63&& set CARGO_PKG_VERSION=1.2.1&& set CARGO_PKG_VERSION_MAJOR=1&& set CARGO_PKG_VERSION_MINOR=2&& set CARGO_PKG_VERSION_PATCH=1&& set CARGO_PKG_VERSION_PRE=''&& set PATH='C:\Users\Martin\AppData\Local\Temp\cargo-installBKm5iy\release\deps;C:\msys64\home\Martin\.bin\vim90;C:\msys64\home\martin\.rust\.cargo\bin;C:\msys64\mingw64\bin;C:\msys64\usr\local\bin;C:\msys64\usr\bin;C:\msys64\usr\bin;C:\Program Files\Lapce;C:\msys64\home\Martin\.rust\.cargo\bin;C:\Program Files\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\dotnet;C:\Utils;C:\Utils\php;C:\Program Files\PuTTY;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\160\DTS\Binn;C:\Program Files\Graphviz\bin;C:\Program Files (x86)\cloudflared;C:\Users\Martin\AppData\Local\Programs\Python\Python311\Scripts;C:\Users\Martin\AppData\Local\Programs\Python\Python311;C:\Users\Martin\AppData\Local\Programs\Python\Launcher;C:\msys64\home\Martin\.rust\.cargo\bin;C:\Utils\zig;C:\Utils\media;C:\Utils;C:\Utils\Nirsoft;C:\Users\Martin\.dotnet\tools;C:\Users\Martin\AppData\Local\Microsoft\WindowsApps;C:\Users\Martin\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\Martin\.lua;C:\Users\Martin\AppData\Local\gitkraken\bin;C:\Users\Martin\AppData\Local\Microsoft\WinGet\Links;C:\msys64\usr\bin;C:\msys64\mingw64\bin;C:\msys64\usr\bin\site_perl;C:\msys64\usr\bin\vendor_perl;C:\msys64\usr\bin\core_perl;C:\msys64\home\Martin\.go\bin'&& C:/msys64/home/martin/.rust\toolchains\nightly-x86_64-pc-windows-gnu\bin\rustc.exe --crate-name cc --edition=2018 'C:/msys64/home/martin/.rust/.cargo\registry\src\index.crates.io-6f17d22bba15001f\cc-1.2.1\src\lib.rs' --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=149 --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debug-assertions=off --cfg 'feature="parallel"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("jobserver", "parallel"))' -C metadata=e0b4017c68f45691 -C extra-filename=-e0b4017c68f45691 --out-dir 'C:\Users\Martin\AppData\Local\Temp\cargo-installBKm5iy\release\deps' -C strip=debuginfo -L 'dependency=C:\Users\Martin\AppData\Local\Temp\cargo-installBKm5iy\release\deps' --extern 'jobserver=C:\Users\Martin\AppData\Local\Temp\cargo-installBKm5iy\release\deps\libjobserver-fe1f6f7684d851a6.rmeta' --extern 'shlex=C:\Users\Martin\AppData\Local\Temp\cargo-installBKm5iy\release\deps\libshlex-98ab9a85b545b8f9.rmeta' --cap-lints warn
Compiling pkg-config v0.3.31
Running set CARGO='\\?\D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\bin\cargo.exe'&& set CARGO_CRATE_NAME=pkg_config&& set CARGO_MANIFEST_DIR='C:/msys64/home/martin/.rust/.cargo\registry\src\index.crates.io-6f17d22bba15001f\pkg-config-0.3.31'&& set CARGO_MANIFEST_PATH='C:/msys64/home/martin/.rust/.cargo\registry\src\index.crates.io-6f17d22bba15001f\pkg-config-0.3.31\Cargo.toml'&& set CARGO_PKG_AUTHORS='Alex Crichton <[email protected]>'&& set CARGO_PKG_DESCRIPTION='A library to run the pkg-config system tool at build time in order to be used in Cargo build scripts. '&& set CARGO_PKG_HOMEPAGE=''&& set CARGO_PKG_LICENSE='MIT OR Apache-2.0'&& set CARGO_PKG_LICENSE_FILE=''&& set CARGO_PKG_NAME=pkg-config&& set CARGO_PKG_README=README.md&& set CARGO_PKG_REPOSITORY='https://github.com/rust-lang/pkg-config-rs'&& set CARGO_PKG_RUST_VERSION=1.31&& set CARGO_PKG_VERSION=0.3.31&& set CARGO_PKG_VERSION_MAJOR=0&& set CARGO_PKG_VERSION_MINOR=3&& set CARGO_PKG_VERSION_PATCH=31&& set CARGO_PKG_VERSION_PRE=''&& set PATH='C:\Users\Martin\AppData\Local\Temp\cargo-installBKm5iy\release\deps;C:\msys64\home\Martin\.bin\vim90;C:\msys64\home\martin\.rust\.cargo\bin;C:\msys64\mingw64\bin;C:\msys64\usr\local\bin;C:\msys64\usr\bin;C:\msys64\usr\bin;C:\Program Files\Lapce;C:\msys64\home\Martin\.rust\.cargo\bin;C:\Program Files\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\dotnet;C:\Utils;C:\Utils\php;C:\Program Files\PuTTY;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\160\DTS\Binn;C:\Program Files\Graphviz\bin;C:\Program Files (x86)\cloudflared;C:\Users\Martin\AppData\Local\Programs\Python\Python311\Scripts;C:\Users\Martin\AppData\Local\Programs\Python\Python311;C:\Users\Martin\AppData\Local\Programs\Python\Launcher;C:\msys64\home\Martin\.rust\.cargo\bin;C:\Utils\zig;C:\Utils\media;C:\Utils;C:\Utils\Nirsoft;C:\Users\Martin\.dotnet\tools;C:\Users\Martin\AppData\Local\Microsoft\WindowsApps;C:\Users\Martin\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\Martin\.lua;C:\Users\Martin\AppData\Local\gitkraken\bin;C:\Users\Martin\AppData\Local\Microsoft\WinGet\Links;C:\msys64\usr\bin;C:\msys64\mingw64\bin;C:\msys64\usr\bin\site_perl;C:\msys64\usr\bin\vendor_perl;C:\msys64\usr\bin\core_perl;C:\msys64\home\Martin\.go\bin'&& C:/msys64/home/martin/.rust\toolchains\nightly-x86_64-pc-windows-gnu\bin\rustc.exe --crate-name pkg_config --edition=2018 'C:/msys64/home/martin/.rust/.cargo\registry\src\index.crates.io-6f17d22bba15001f\pkg-config-0.3.31\src\lib.rs' --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=149 --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debug-assertions=off --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values())' -C metadata=f5cc2fe027230af6 -C extra-filename=-f5cc2fe027230af6 --out-dir 'C:\Users\Martin\AppData\Local\Temp\cargo-installBKm5iy\release\deps' -C strip=debuginfo -L 'dependency=C:\Users\Martin\AppData\Local\Temp\cargo-installBKm5iy\release\deps' --cap-lints warn
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" "D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\rsbegin.o" "C:\Users\Martin\AppData\Local\Temp\rustcLZgkcG\symbols.o" "C:\Users\Martin\AppData\Local\Temp\cargo-installBKm5iy\release\build\serde-402257152472d897\build_script_build-402257152472d897.build_script_build.9be1bfcbd009d12f-cgu.0.rcgu.o" "C:\Users\Martin\AppData\Local\Temp\cargo-installBKm5iy\release\build\serde-402257152472d897\build_script_build-402257152472d897.build_script_build.9be1bfcbd009d12f-cgu.1.rcgu.o" "C:\Users\Martin\AppData\Local\Temp\cargo-installBKm5iy\release\build\serde-402257152472d897\build_script_build-402257152472d897.6ebwh6fjsluhdpss306dey5y8.rcgu.o" "-Wl,-Bstatic" "D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libstd-3dcf551baca76b0f.rlib" "D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libpanic_unwind-b594b7450c87dbef.rlib" "D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libobject-2e48dadb3f57a08e.rlib" "D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libmemchr-7480f6983a7c92b6.rlib" "D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libaddr2line-fd011c7233c90508.rlib" "D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libgimli-069f27c5e9a4b980.rlib" "D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libwindows_targets-68c34c486f022a95.rlib" "D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\librustc_demangle-0cf715f2f44e918e.rlib" "D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libstd_detect-0b04f031456589c6.rlib" "D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libhashbrown-f944b3f85da6d344.rlib" "D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\librustc_std_workspace_alloc-a84e94ad50859b00.rlib" "D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libminiz_oxide-04ff9e66359c3d1f.rlib" "D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libadler-baf0dd3f07570116.rlib" "D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libunwind-f70480f5df42f81c.rlib" "D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libcfg_if-15a68b4551877f04.rlib" "D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\liblibc-bef3fd1fb56263d0.rlib" "D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\liballoc-f10c30f8bde1c57a.rlib" "D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\librustc_std_workspace_core-1c5cd63971e2f9ce.rlib" "D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libcore-63e0ef39cf5c75c3.rlib" "D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libcompiler_builtins-44cf90ec8a5e9b86.rlib" "-Wl,-Bdynamic" "-lkernel32" "-lkernel32" "-ladvapi32" "-lntdll" "-luserenv" "-lws2_32" "-ldbghelp" "-lgcc_eh" "-l:libpthread.a" "-lmsvcrt" "-lmingwex" "-lmingw32" "-lgcc" "-lmsvcrt" "-lmingwex" "-luser32" "-lkernel32" "-Wl,--nxcompat" "-o" "C:\Users\Martin\AppData\Local\Temp\cargo-installBKm5iy\release\build\serde-402257152472d897\build_script_build-402257152472d897.exe" "-Wl,--gc-sections" "-no-pie" "-Wl,--strip-debug" "-nodefaultlibs" "D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\rsend.o"
= note: collect2.exe: error: ld returned 57 exit status

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" "D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\rsbegin.o" "C:\Users\Martin\AppData\Local\Temp\rustcoMbLr2\symbols.o" "C:\Users\Martin\AppData\Local\Temp\cargo-installBKm5iy\release\build\proc-macro2-54e84f0e732778f7\build_script_build-54e84f0e732778f7.build_script_build.2940262f52e11a56-cgu.0.rcgu.o" "C:\Users\Martin\AppData\Local\Temp\cargo-installBKm5iy\release\build\proc-macro2-54e84f0e732778f7\build_script_build-54e84f0e732778f7.build_script_build.2940262f52e11a56-cgu.1.rcgu.o" "C:\Users\Martin\AppData\Local\Temp\cargo-installBKm5iy\release\build\proc-macro2-54e84f0e732778f7\build_script_build-54e84f0e732778f7.cpus8jgd06hj4k1f2n31ton1i.rcgu.o" "-Wl,-Bstatic" "D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libstd-3dcf551baca76b0f.rlib" "D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libpanic_unwind-b594b7450c87dbef.rlib" "D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libobject-2e48dadb3f57a08e.rlib" "D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libmemchr-7480f6983a7c92b6.rlib" "D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libaddr2line-fd011c7233c90508.rlib" "D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libgimli-069f27c5e9a4b980.rlib" "D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libwindows_targets-68c34c486f022a95.rlib" "D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\librustc_demangle-0cf715f2f44e918e.rlib" "D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libstd_detect-0b04f031456589c6.rlib" "D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libhashbrown-f944b3f85da6d344.rlib" "D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\librustc_std_workspace_alloc-a84e94ad50859b00.rlib" "D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libminiz_oxide-04ff9e66359c3d1f.rlib" "D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libadler-baf0dd3f07570116.rlib" "D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libunwind-f70480f5df42f81c.rlib" "D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libcfg_if-15a68b4551877f04.rlib" "D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\liblibc-bef3fd1fb56263d0.rlib" "D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\liballoc-f10c30f8bde1c57a.rlib" "D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\librustc_std_workspace_core-1c5cd63971e2f9ce.rlib" "D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libcore-63e0ef39cf5c75c3.rlib" "D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libcompiler_builtins-44cf90ec8a5e9b86.rlib" "-Wl,-Bdynamic" "-lkernel32" "-lkernel32" "-ladvapi32" "-lntdll" "-luserenv" "-lws2_32" "-ldbghelp" "-lgcc_eh" "-l:libpthread.a" "-lmsvcrt" "-lmingwex" "-lmingw32" "-lgcc" "-lmsvcrt" "-lmingwex" "-luser32" "-lkernel32" "-Wl,--nxcompat" "-o" "C:\Users\Martin\AppData\Local\Temp\cargo-installBKm5iy\release\build\proc-macro2-54e84f0e732778f7\build_script_build-54e84f0e732778f7.exe" "-Wl,--gc-sections" "-no-pie" "-Wl,--strip-debug" "-nodefaultlibs" "D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\rsend.o"
= note: collect2.exe: error: ld returned 57 exit status

error: could not compile serde (build script) due to 1 previous error

Caused by:
process didn't exit successfully: set CARGO='\\?\D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\bin\cargo.exe'&& set CARGO_CRATE_NAME=build_script_build&& set CARGO_MANIFEST_DIR='C:/msys64/home/martin/.rust/.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.215'&& set CARGO_MANIFEST_PATH='C:/msys64/home/martin/.rust/.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.215\Cargo.toml'&& set CARGO_PKG_AUTHORS='Erick Tryzelaar <[email protected]>:David Tolnay <[email protected]>'&& set CARGO_PKG_DESCRIPTION='A generic serialization/deserialization framework'&& set CARGO_PKG_HOMEPAGE='https://serde.rs'&& set CARGO_PKG_LICENSE='MIT OR Apache-2.0'&& set CARGO_PKG_LICENSE_FILE=''&& set CARGO_PKG_NAME=serde&& set CARGO_PKG_README=crates-io.md&& set CARGO_PKG_REPOSITORY='https://github.com/serde-rs/serde'&& set CARGO_PKG_RUST_VERSION=1.31&& set CARGO_PKG_VERSION=1.0.215&& set CARGO_PKG_VERSION_MAJOR=1&& set CARGO_PKG_VERSION_MINOR=0&& set CARGO_PKG_VERSION_PATCH=215&& set CARGO_PKG_VERSION_PRE=''&& set PATH='C:\Users\Martin\AppData\Local\Temp\cargo-installBKm5iy\release\deps;C:\msys64\home\Martin\.bin\vim90;C:\msys64\home\martin\.rust\.cargo\bin;C:\msys64\mingw64\bin;C:\msys64\usr\local\bin;C:\msys64\usr\bin;C:\msys64\usr\bin;C:\Program Files\Lapce;C:\msys64\home\Martin\.rust\.cargo\bin;C:\Program Files\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\dotnet;C:\Utils;C:\Utils\php;C:\Program Files\PuTTY;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\160\DTS\Binn;C:\Program Files\Graphviz\bin;C:\Program Files (x86)\cloudflared;C:\Users\Martin\AppData\Local\Programs\Python\Python311\Scripts;C:\Users\Martin\AppData\Local\Programs\Python\Python311;C:\Users\Martin\AppData\Local\Programs\Python\Launcher;C:\msys64\home\Martin\.rust\.cargo\bin;C:\Utils\zig;C:\Utils\media;C:\Utils;C:\Utils\Nirsoft;C:\Users\Martin\.dotnet\tools;C:\Users\Martin\AppData\Local\Microsoft\WindowsApps;C:\Users\Martin\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\Martin\.lua;C:\Users\Martin\AppData\Local\gitkraken\bin;C:\Users\Martin\AppData\Local\Microsoft\WinGet\Links;C:\msys64\usr\bin;C:\msys64\mingw64\bin;C:\msys64\usr\bin\site_perl;C:\msys64\usr\bin\vendor_perl;C:\msys64\usr\bin\core_perl;C:\msys64\home\Martin\.go\bin'&& C:/msys64/home/martin/.rust\toolchains\nightly-x86_64-pc-windows-gnu\bin\rustc.exe --crate-name build_script_build --edition=2018 'C:/msys64/home/martin/.rust/.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.215\build.rs' --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=149 --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off --cfg 'feature="default"' --cfg 'feature="std"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("alloc", "default", "derive", "rc", "serde_derive", "std", "unstable"))' -C metadata=402257152472d897 -C extra-filename=-402257152472d897 --out-dir 'C:\Users\Martin\AppData\Local\Temp\cargo-installBKm5iy\release\build\serde-402257152472d897' -C strip=debuginfo -L 'dependency=C:\Users\Martin\AppData\Local\Temp\cargo-installBKm5iy\release\deps' --cap-lints warn (exit code: 1)
warning: build failed, waiting for other jobs to finish...
error: could not compile proc-macro2 (build script) due to 1 previous error

Caused by:
process didn't exit successfully: set CARGO='\\?\D:\Martin-msys-home\.rust\toolchains\nightly-x86_64-pc-windows-gnu\bin\cargo.exe'&& set CARGO_CRATE_NAME=build_script_build&& set CARGO_MANIFEST_DIR='C:/msys64/home/martin/.rust/.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.91'&& set CARGO_MANIFEST_PATH='C:/msys64/home/martin/.rust/.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.91\Cargo.toml'&& set CARGO_PKG_AUTHORS='David Tolnay <[email protected]>:Alex Crichton <[email protected]>'&& set CARGO_PKG_DESCRIPTION='A substitute implementation of the compiler'\''s proc_macro API to decouple token-based libraries from the procedural macro use case.'&& set CARGO_PKG_HOMEPAGE=''&& set CARGO_PKG_LICENSE='MIT OR Apache-2.0'&& set CARGO_PKG_LICENSE_FILE=''&& set CARGO_PKG_NAME=proc-macro2&& set CARGO_PKG_README=README.md&& set CARGO_PKG_REPOSITORY='https://github.com/dtolnay/proc-macro2'&& set CARGO_PKG_RUST_VERSION=1.56&& set CARGO_PKG_VERSION=1.0.91&& set CARGO_PKG_VERSION_MAJOR=1&& set CARGO_PKG_VERSION_MINOR=0&& set CARGO_PKG_VERSION_PATCH=91&& set CARGO_PKG_VERSION_PRE=''&& set PATH='C:\Users\Martin\AppData\Local\Temp\cargo-installBKm5iy\release\deps;C:\msys64\home\Martin\.bin\vim90;C:\msys64\home\martin\.rust\.cargo\bin;C:\msys64\mingw64\bin;C:\msys64\usr\local\bin;C:\msys64\usr\bin;C:\msys64\usr\bin;C:\Program Files\Lapce;C:\msys64\home\Martin\.rust\.cargo\bin;C:\Program Files\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\dotnet;C:\Utils;C:\Utils\php;C:\Program Files\PuTTY;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\160\DTS\Binn;C:\Program Files\Graphviz\bin;C:\Program Files (x86)\cloudflared;C:\Users\Martin\AppData\Local\Programs\Python\Python311\Scripts;C:\Users\Martin\AppData\Local\Programs\Python\Python311;C:\Users\Martin\AppData\Local\Programs\Python\Launcher;C:\msys64\home\Martin\.rust\.cargo\bin;C:\Utils\zig;C:\Utils\media;C:\Utils;C:\Utils\Nirsoft;C:\Users\Martin\.dotnet\tools;C:\Users\Martin\AppData\Local\Microsoft\WindowsApps;C:\Users\Martin\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\Martin\.lua;C:\Users\Martin\AppData\Local\gitkraken\bin;C:\Users\Martin\AppData\Local\Microsoft\WinGet\Links;C:\msys64\usr\bin;C:\msys64\mingw64\bin;C:\msys64\usr\bin\site_perl;C:\msys64\usr\bin\vendor_perl;C:\msys64\usr\bin\core_perl;C:\msys64\home\Martin\.go\bin'&& C:/msys64/home/martin/.rust\toolchains\nightly-x86_64-pc-windows-gnu\bin\rustc.exe --crate-name build_script_build --edition=2021 'C:/msys64/home/martin/.rust/.cargo\registry\src\index.crates.io-6f17d22bba15001f\proc-macro2-1.0.91\build.rs' --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=149 --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off --cfg 'feature="default"' --cfg 'feature="proc-macro"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", "nightly", "proc-macro", "span-locations"))' -C metadata=54e84f0e732778f7 -C extra-filename=-54e84f0e732778f7 --out-dir 'C:\Users\Martin\AppData\Local\Temp\cargo-installBKm5iy\release\build\proc-macro2-54e84f0e732778f7' -C strip=debuginfo -L 'dependency=C:\Users\Martin\AppData\Local\Temp\cargo-installBKm5iy\release\deps' --cap-lints warn (exit code: 1)
error: failed to compile cargo-update v16.0.0, intermediate artifacts can be found at C:\Users\Martin\AppData\Local\Temp\cargo-installBKm5iy.
To reuse those artifacts with a future compilation, set the environment variable CARGO_TARGET_DIR to that path.

@RivenSkaye RivenSkaye changed the title [Build.rs] Failure cargo install-update --help [Build.rs] Failure linking build script Nov 21, 2024
@RivenSkaye RivenSkaye changed the title [Build.rs] Failure linking build script [Build.rs] Failure linking build script using GCC (windows-gnu) Nov 21, 2024
@oli-obk
Copy link
Member

oli-obk commented Nov 21, 2024

Do other build scripts work for you?

@RivenSkaye
Copy link
Author

RivenSkaye commented Nov 21, 2024

I tried a few more, seems like the issue is in proc-macro2. Will move it there come morning.

Notably, all builds not depending on either one work. And rerunning this gives alternating Serde and proc-macro2 failures

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

No branches or pull requests

2 participants