Skip to content

Conversation

@mikebenfield
Copy link
Contributor

No description provided.

@rustbot
Copy link
Collaborator

rustbot commented Dec 21, 2022

r? @jyn514

(rustbot has picked a reviewer for you, use r? to override)

@rustbot rustbot added T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Dec 21, 2022
@mikebenfield
Copy link
Contributor Author

I don't know if this is the correct thing to do, but I do know the vendoring/config setup I had that used to work was broken at some point in the recent past and this fixes it.

@rust-log-analyzer
Copy link
Collaborator

The job mingw-check failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
configure: rust.debug-assertions := True configure: rust.overflow-checks := True configure: llvm.assertions := True configure: dist.missing-tools := True configure: build.configure-args := ['--enable-sccache', '--disable-manage-submodu ... configure: writing `config.toml` in current directory configure: configure: run `python /checkout/x.py --help` Attempting with retry: make prepare Attempting with retry: make prepare Traceback (most recent call last): File "/checkout/src/bootstrap/bootstrap.py", line 961, in <module> main() File "/checkout/src/bootstrap/bootstrap.py", line 944, in main bootstrap(help_triggered) File "/checkout/src/bootstrap/bootstrap.py", line 901, in bootstrap build.check_vendored_status() File "/checkout/src/bootstrap/bootstrap.py", line 839, in check_vendored_status shutil.rmtree(cargo_dir) File "/usr/lib/python3.6/shutil.py", line 490, in rmtree onerror(os.rmdir, path, sys.exc_info()) File "/usr/lib/python3.6/shutil.py", line 488, in rmtree os.rmdir(path) PermissionError: [Errno 13] Permission denied: '/cargo' Makefile:58: recipe for target 'prepare' failed Command failed. Attempt 2/5: Traceback (most recent call last): Traceback (most recent call last): File "/checkout/src/bootstrap/bootstrap.py", line 961, in <module> main() File "/checkout/src/bootstrap/bootstrap.py", line 944, in main bootstrap(help_triggered) File "/checkout/src/bootstrap/bootstrap.py", line 901, in bootstrap build.check_vendored_status() File "/checkout/src/bootstrap/bootstrap.py", line 839, in check_vendored_status shutil.rmtree(cargo_dir) File "/usr/lib/python3.6/shutil.py", line 490, in rmtree onerror(os.rmdir, path, sys.exc_info()) File "/usr/lib/python3.6/shutil.py", line 488, in rmtree os.rmdir(path) PermissionError: [Errno 13] Permission denied: '/cargo' Makefile:58: recipe for target 'prepare' failed Command failed. Attempt 3/5: Traceback (most recent call last): Traceback (most recent call last): File "/checkout/src/bootstrap/bootstrap.py", line 961, in <module> main() File "/checkout/src/bootstrap/bootstrap.py", line 944, in main bootstrap(help_triggered) File "/checkout/src/bootstrap/bootstrap.py", line 901, in bootstrap build.check_vendored_status() File "/checkout/src/bootstrap/bootstrap.py", line 839, in check_vendored_status shutil.rmtree(cargo_dir) File "/usr/lib/python3.6/shutil.py", line 490, in rmtree onerror(os.rmdir, path, sys.exc_info()) File "/usr/lib/python3.6/shutil.py", line 488, in rmtree os.rmdir(path) PermissionError: [Errno 13] Permission denied: '/cargo' Makefile:58: recipe for target 'prepare' failed Command failed. Attempt 4/5: Traceback (most recent call last): Traceback (most recent call last): File "/checkout/src/bootstrap/bootstrap.py", line 961, in <module> main() File "/checkout/src/bootstrap/bootstrap.py", line 944, in main bootstrap(help_triggered) File "/checkout/src/bootstrap/bootstrap.py", line 901, in bootstrap build.check_vendored_status() File "/checkout/src/bootstrap/bootstrap.py", line 839, in check_vendored_status shutil.rmtree(cargo_dir) File "/usr/lib/python3.6/shutil.py", line 490, in rmtree onerror(os.rmdir, path, sys.exc_info()) File "/usr/lib/python3.6/shutil.py", line 488, in rmtree os.rmdir(path) PermissionError: [Errno 13] Permission denied: '/cargo' Makefile:58: recipe for target 'prepare' failed Command failed. Attempt 5/5: Traceback (most recent call last): Traceback (most recent call last): File "/checkout/src/bootstrap/bootstrap.py", line 961, in <module> main() File "/checkout/src/bootstrap/bootstrap.py", line 944, in main bootstrap(help_triggered) File "/checkout/src/bootstrap/bootstrap.py", line 901, in bootstrap build.check_vendored_status() File "/checkout/src/bootstrap/bootstrap.py", line 839, in check_vendored_status shutil.rmtree(cargo_dir) File "/usr/lib/python3.6/shutil.py", line 490, in rmtree onerror(os.rmdir, path, sys.exc_info()) File "/usr/lib/python3.6/shutil.py", line 488, in rmtree os.rmdir(path) PermissionError: [Errno 13] Permission denied: '/cargo' Makefile:58: recipe for target 'prepare' failed The command has failed after 5 attempts. 
@jyn514
Copy link
Member

jyn514 commented Dec 22, 2022

We don't support any use of .cargo/config other than one that bootstrap generates in the rust-src component. I'm a little reluctant to accept this change, since I don't want to set a precedent of fixing things for .cargo.

@jyn514
Copy link
Member

jyn514 commented Dec 25, 2022

I do know the vendoring/config setup I had that used to work was broken at some point in the recent past and this fixes it.

Do you know when it broke? Can you bisect, maybe?

@jyn514 jyn514 added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Dec 25, 2022
@mikebenfield
Copy link
Contributor Author

Although I still think there's something not quite right going on here, I no longer am working on the configuration with the problem, so I'm closing.

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

Labels

S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

4 participants