rust-lang / rust-lang/rust

Absolute path needed for dlltool

Open
#157,344 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-docs C-bug O-windows-gnu T-compiler
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

Problem

I tried to build Rust v1.96.0 from sources and got the error

error: error calling dlltool 'prebuilts/clang/host/linux-x86/clang-r584948b/bin/
llvm-dlltool': No such file or directory (os error 2)
Possible Solution(s)

The error when away when I changed the relative path to an absolute path to dlltool. I wonder if this was an intentional side-effect. If so should the documentation be updated to say an absolute path is needed.

Notes

No response

Version
v1.96.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the rustc dlltool codegen-option documentation and reproduce the v1.96.0 build using the reported relative and absolute paths to prebuilts/clang/host/linux-x86/clang-r584948b/bin/llvm-dlltool. Determine whether relative paths are intended to work; done means either relative paths work correctly or the documentation clearly states the absolute-path requirement, with coverage for the behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system, compilers
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.