Skip to content

Failed to remove rcgu: no such file or directory #54042

Closed
@cramertj

Description

@cramertj

Discovered when investigating #53794. When rustc is run, the following errors result:

error: failed to remove /usr/local/google/home/cramertj/src/tmp/link-error-repro/out_bin.2iwg8cehlsr9x4yn.rcgu.o: No such file or directory (os error 2)

error: failed to remove /usr/local/google/home/cramertj/src/tmp/link-error-repro/out_bin.2pkbt36vpf5knaqz.rcgu.o: No such file or directory (os error 2)

error: failed to remove /usr/local/google/home/cramertj/src/tmp/link-error-repro/out_bin.3qtydzyditwwd0wd.rcgu.o: No such file or directory (os error 2)

error: failed to remove /usr/local/google/home/cramertj/src/tmp/link-error-repro/out_bin.52wfm87ulo3v297x.rcgu.o: No such file or directory (os error 2)

error: failed to remove /usr/local/google/home/cramertj/src/tmp/link-error-repro/out_bin.57gef1f2kxtrvbuy.rcgu.o: No such file or directory (os error 2)

error: aborting due to 5 previous errors

To repro, check out cramertj/link-error-repro@b4b055c, grab rustc 1.30.0-nightly (6e0f1cc15 2018-09-05), and run ./clone_sdk.sh && ./build_deps.sh && ./build_bin.sh. If using a different rustc, the hashes in ./build_bin.sh will need to be adjusted to match the suffixes of libstructopt and librand in the target/ dir.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions