about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-12-06 23:27:08 +0100
committerGitHub <noreply@github.com>2019-12-06 23:27:08 +0100
commitdbc9f306b69153cdff991303c1dfd7a29136b752 (patch)
tree703464bdb077746244b9d553579c48b9cbbedc70 /src
parent29847a4d44469dd8f91709a1360b012a127f1259 (diff)
parent3c14f0eaa7eafb1a61dab61fc37c11c3e450cba2 (diff)
downloadrust-dbc9f306b69153cdff991303c1dfd7a29136b752.tar.gz
rust-dbc9f306b69153cdff991303c1dfd7a29136b752.zip
Rollup merge of #67102 - Aaron1011:patch-3, r=Mark-Simulacrum
Add note to src/ci/docker/README.md about multiple docker images

I spent a while debugging a strage linker error about an outdated `glibc` version, only to discover that it was caused by a stale `obj` directory. It wasn't obviously to be that using the same obj dir with multiple Docker images (for the same target triple) could be a problem.

This commit adds a note to the README, which should hopefully be helpful to anyone else who runs into this issue.
Diffstat (limited to 'src')
-rw-r--r--src/ci/docker/README.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ci/docker/README.md b/src/ci/docker/README.md
index a2d83eca24b..872f2c3467d 100644
--- a/src/ci/docker/README.md
+++ b/src/ci/docker/README.md
@@ -16,6 +16,13 @@ for example:
 
 Images will output artifacts in an `obj` dir at the root of a repository.
 
+**NOTE**: Re-using the same `obj` dir with different docker images with
+the same target triple (e.g. `dist-x86_64-linux` and `dist-various-1`)
+may result in strange linker errors, due shared library versions differing between platforms.
+
+If you encounter any issues when using multiple Docker images, try deleting your `obj` directory
+before running your command.
+
 ## Filesystem layout
 
 - Each directory, excluding `scripts` and `disabled`, corresponds to a docker image