I'm trying to run the 32-bit Linux Docker containers on macOS, but I get:
configure: writing `config.toml` in current directory Traceback (most recent call last): File "/checkout/src/bootstrap/configure.py", line 453, in <module> with bootstrap.output('config.toml') as f: File "/usr/lib/python3.5/contextlib.py", line 59, in __enter__ return next(self.gen) File "/checkout/src/bootstrap/bootstrap.py", line 319, in output with open(tmp, 'w') as f: PermissionError: [Errno 13] Permission denied: 'config.toml.tmp'
I'm investigating, but maybe someone has seen this already?
I've usually seen this because something tries to volume-mount
In the playground, I need to specify the temporary directory inside my
$HOME, for example, as that directory is what is shared with the VM that runs Docker proper.
/checkout/configure --build=i686-unknown-linux-gnu --set build.print-step-timings --enable-verbose-tests --enable-sccache --disable-manage-submodules --enable-locked-deps --enable-cargo-native-static --set rust.codegen-units-std=1 --disable-dist-src --release-channel=nightly --set rust.verify-llvm-ir --enable-missing-tools
Extra strange is that running that command "by hand" works.
But later on...
cargo:warning=Assembler messages: cargo:warning=Fatal error: can't create /checkout/obj/build/i686-unknown-linux-gnu/stage0-std/i686-unknown-linux-gnu/release/build/compiler_builtins-3e0e1aa8fca4e46e/out/absvdi2.o: Permission denied
Rounding hour 8 trying to compile this in 32-bit. Should have just copied the text from the error logs.
well, seems to be running the tests now
And it failed because the filesystem was read-only
now it's rebuilding everything from scratch, even though nothing changed.
How are you building the docker image? If I run
src/ci/docker/run.sh i686-gnu, it builds and runs the tests for me on macos. (I've been having a different issue with random
can't find crate for panic_unwind
depends on errors when using docker on macos, so I've mostly given up and only do docker stuff on linux, which is much faster anyways)