Skip to content

rustc_driver link errors: unresolved external symbol (mostly __std_rotate) #71

Description

@eltrevii

Summary

i was trying to build rust9x following the instructions provided in the docs, inside a vs developer command prompt (vs 2022), and the build is failing

Command used

python x.py build --config bootstrap.rust9x.toml --stage 1

Expected behaviour

rust9x compiles successfully

Actual behaviour

the build fails for rust_driver_impl, with a lot of errors mentioning unresolved external symbols

Bootstrap configuration (bootstrap.toml)

# See bootstrap.example.toml for documentation of available options
#
change-id = 158169

[llvm]
# Will download LLVM from CI if available on your platform.
download-ci-llvm = true
# NOTE: if you set ↑ to false, disable other LLVM targets to save lots of build time!
# targets = "X86"
# experimental-targets = ""

[build]
build = "x86_64-pc-windows-msvc"
target = [
    "i586-rust9x-windows-msvc",
    "i686-rust9x-windows-msvc",
    "x86_64-rust9x-windows-msvc",
    "x86_64-pc-windows-msvc",
]
docs = false

extended = true
tools = [
    "cargo",
    #    "clippy",
    "rustdoc",
    #    "rustfmt",
    #    "rust-analyzer",
    "rust-analyzer-proc-macro-srv",
    #    "analysis",
    "src",
    #    "wasm-component-ld",
    #    "miri", "cargo-miri" # for dev/nightly channels
]

[install]
# for creating a downloadable package: python x.py install, then create and archive this
prefix = "../dist/rust9x"
sysconfdir = "."

[rust]
# enable rust-lld.exe so we don't need editbin.exe
lld = true
dist-src = false

# you can override this with -i/--incremental
# incremental = false
# incremental = true

[dist]
src-tarball = false

Operating system

windows 11 25h2 (26200.7171)

HEAD

1a05306

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions