Stream: t-compiler/help

Topic: running Docker containers on macOS


Jake Goulding (Jun 05 2020 at 11:49, on Zulip):

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?

Jake Goulding (Jun 05 2020 at 11:52, on Zulip):

I've usually seen this because something tries to volume-mount

Jake Goulding (Jun 05 2020 at 11:53, on Zulip):

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.

Jake Goulding (Jun 05 2020 at 12:08, on Zulip):
pwd
/checkout/obj
 /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
Jake Goulding (Jun 05 2020 at 12:28, on Zulip):

Extra strange is that running that command "by hand" works.

Jake Goulding (Jun 05 2020 at 12:28, on Zulip):

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
Jake Goulding (Jun 06 2020 at 02:38, on Zulip):

Rounding hour 8 trying to compile this in 32-bit. Should have just copied the text from the error logs.

Jake Goulding (Jun 06 2020 at 11:22, on Zulip):

well, seems to be running the tests now

Jake Goulding (Jun 06 2020 at 13:01, on Zulip):

And it failed because the filesystem was read-only
now it's rebuilding everything from scratch, even though nothing changed.

Eric Huss (Jun 06 2020 at 18:19, on Zulip):

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 which std 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)

Last update: Jan 22 2021 at 13:30UTC