Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert #56944. #57116

Merged
merged 1 commit into from
Dec 25, 2018
Merged

Revert #56944. #57116

merged 1 commit into from
Dec 25, 2018

Conversation

kennytm
Copy link
Member

@kennytm kennytm commented Dec 25, 2018

This should fix #57111, since #56944 is the only PR involving LLVM.

#57111 is caused by both the rustc and rust-std tarballs providing libLLVM.

r? @alexcrichton

…michaelwoerister"

This reverts commit f1051b5, reversing
changes made to 833e0b3.
@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 25, 2018
@alexcrichton
Copy link
Member

@bors: r+ p=1000

@bors
Copy link
Contributor

bors commented Dec 25, 2018

📌 Commit 07f5dbc has been approved by alexcrichton

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Dec 25, 2018
@bors
Copy link
Contributor

bors commented Dec 25, 2018

⌛ Testing commit 07f5dbc with merge 72159884e284497696f5c682456d5655f198ed72...

@bors
Copy link
Contributor

bors commented Dec 25, 2018

💔 Test failed - status-travis

@rust-highfive
Copy link
Collaborator

The job dist-various-1 of your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
[00:55:02] CC_armebv7r_none_eabi=arm-none-eabi-gcc
[00:55:02] S=/checkout
[00:55:02] _=/bin/sh
[00:55:02] TOOLSTATE_REPO_ACCESS_TOKEN=[secure]
[00:55:02] TRAVIS=true
[00:55:02] RUST_RELEASE_CHANNEL=nightly
[00:55:02] RUN_MAKE_TARGETS=thumbv6m-none-eabi,thumbv7m-none-eabi,thumbv7em-none-eabi,thumbv7em-none-eabihf
[00:55:02] RUSTC=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc
[00:55:02] RUSTC=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc
[00:55:02] RUST_BUILD_STAGE=stage2-thumbv7m-none-eabi
[00:55:02] BOOTSTRAP_PYTHON=/usr/bin/python2.7
[00:55:02] SCRIPT=python2.7 ../x.py test --target thumbv6m-none-eabi,thumbv7m-none-eabi,thumbv7em-none-eabi,thumbv7em-none-eabihf src/test/run-make &&       python2.7 ../x.py dist --target asmjs-unknown-emscripten,wasm32-unknown-emscripten,x86_64-rumprun-netbsd,mips-unknown-linux-musl,mipsel-unknown-linux-musl,arm-unknown-linux-musleabi,arm-unknown-linux-musleabihf,armv5te-unknown-linux-gnueabi,armv5te-unknown-linux-musleabi,armv7-unknown-linux-musleabihf,aarch64-unknown-linux-musl,sparc64-unknown-linux-gnu,x86_64-unknown-redox,thumbv6m-none-eabi,thumbv7m-none-eabi,thumbv7em-none-eabi,thumbv7em-none-eabihf,riscv32imc-unknown-none-elf,riscv32imac-unknown-none-elf,armebv7r-none-eabi,armebv7r-none-eabihf,armv7r-none-eabi,armv7r-none-eabihf
[00:55:02] AR=ar
[00:55:02] TRAVIS_BRANCH=auto
[00:55:02] RUSTC_BOOTSTRAP=1
[00:55:02] HOST_RPATH_DIR=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib
[00:55:02] SCCACHE_BUCKET=rust-lang-ci-sccache2
[00:55:02] PWD=/checkout/obj
[00:55:02] CI_JOB_NAME=dist-various-1
[00:55:02] TARGET_RPATH_DIR=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/thumbv7m-none-eabi/lib
[00:55:02] LD_LIB_PATH_ENVVAR=LD_LIBRARY_PATH
[00:55:02] PYTHON=/usr/bin/python2.7
[00:55:02] HOME=/home/user
[00:55:02] LD_LIBRARY_PATH=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib
[00:55:02] HOSTNAME=d9871345a864
[00:55:02] CC_mipsel_unknown_linux_musl=mipsel-openwrt-linux-gcc
[00:55:02] SHLVL=2
[00:55:02] CC= 
[00:55:02] BUILD_DIR=/checkout/obj/build
[00:55:02] BUILD_DIR=/checkout/obj/build
[00:55:02] RUST_TEST_TMPDIR=/checkout/obj/build/tmp
[00:55:02] LLVM_CXXFLAGS=
[00:55:02] RUSTFLAGS=--cap-lints=allow
[00:55:02] STAGING_DIR=/tmp
[00:55:02] TMPDIR=/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/thumb-none-cortex-m/thumb-none-cortex-m
[00:55:02] TARGETS=asmjs-unknown-emscripten,wasm32-unknown-emscripten,x86_64-rumprun-netbsd,mips-unknown-linux-musl,mipsel-unknown-linux-musl,arm-unknown-linux-musleabi,arm-unknown-linux-musleabihf,armv5te-unknown-linux-gnueabi,armv5te-unknown-linux-musleabi,armv7-unknown-linux-musleabihf,aarch64-unknown-linux-musl,sparc64-unknown-linux-gnu,x86_64-unknown-redox,thumbv6m-none-eabi,thumbv7m-none-eabi,thumbv7em-none-eabi,thumbv7em-none-eabihf,riscv32imc-unknown-none-elf,riscv32imac-unknown-none-elf,armebv7r-none-eabi,armebv7r-none-eabihf,armv7r-none-eabi,armv7r-none-eabihf
[00:55:02] RUST_CONFIGURE_ARGS=--musl-root-armv5te=/musl-armv5te       --musl-root-arm=/musl-arm       --musl-root-armhf=/musl-armhf       --musl-root-armv7=/musl-armv7       --musl-root-aarch64=/musl-aarch64       --musl-root-mips=/musl-mips       --musl-root-mipsel=/musl-mipsel       --enable-emscripten       --disable-docs --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 --enable-llvm-static-stdcpp --set rust.remap-debuginfo --enable-missing-tools
[00:55:02] MAKEFLAGS=
[00:55:02] MFLAGS=
[00:55:02] BOOTSTRAP_PARENT_ID=1084
[00:55:02] BOOTSTRAP_PARENT_ID=1084
[00:55:02] __COMPAT_LAYER=RunAsInvoker
[00:55:02] CC_x86_64_unknown_redox=x86_64-unknown-redox-gcc
[00:55:02] BUILD=x86_64-unknown-linux-gnu
[00:55:02] CXX= 
[00:55:02] AWS_ACCESS_KEY_ID=[secure]
[00:55:02] CC_sparc64_unknown_linux_gnu=sparc64-linux-gnu-gcc
[00:55:02] CC_sparc64_unknown_linux_gnu=sparc64-linux-gnu-gcc
[00:55:02] CARGO_HOME=/cargo
[00:55:02] RUSTC_LINKER=arm-none-eabi-gcc
[00:55:02] SCCACHE_REGION=us-west-1
[00:55:02] CC_mips_unknown_linux_musl=mips-openwrt-linux-gcc
[00:55:02] LLVM_COMPONENTS=
[00:55:02] TERM=xterm
[00:55:02] MAKELEVEL=1
[00:55:02] mkdir -p /checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/thumb-none-cortex-m/thumb-none-cortex-m
[00:55:02] cd /checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/thumb-none-cortex-m/thumb-none-cortex-m && rm -rf cortex-m
[00:55:02] cd /checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/thumb-none-cortex-m/thumb-none-cortex-m && bash -x /checkout/src/test/run-make/thumb-none-cortex-m/../git_clone_sha1.sh cortex-m https://github.com/rust-embedded/cortex-m a448e9156e2cb1e556e5441fd65426952ef4b927 
[00:55:02] Makefile:31: recipe for target 'all' failed
[00:55:02] 
[00:55:02] ------------------------------------------
[00:55:02] stderr:
[00:55:02] stderr:
[00:55:02] ------------------------------------------
[00:55:02] + PROJECT_NAME=cortex-m
[00:55:02] + URL=https://github.com/rust-embedded/cortex-m
[00:55:02] + SHA1=a448e9156e2cb1e556e5441fd65426952ef4b927
[00:55:02] + git clone https://github.com/rust-embedded/cortex-m cortex-m
[00:55:02] Cloning into 'cortex-m'...
[00:55:02] fatal: unable to access 'https://github.com/rust-embedded/cortex-m/': Could not resolve host: github.com
[00:55:02] + err_exit
[00:55:02] + echo ERROR:
[00:55:02] + exit 1
[00:55:02] make: *** [all] Error 1
[00:55:02] ------------------------------------------
[00:55:02] 
[00:55:02] thread '[run-make] run-make/thumb-none-cortex-m' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3255:9
[00:55:02] note: Run with `RUST_BACKTRACE=1` for a backtrace.
---
[00:55:02] status: exit code: 2
[00:55:02] command: "make"
[00:55:02] stdout:
[00:55:02] ------------------------------------------
[00:55:02] bash script.sh
[00:55:02] AWS_ACCESS_KEY_ID=[secure]
[00:55:02] AWS_SECRET_ACCESS_KEY=[secure]
[00:55:02] BOOTSTRAP_PARENT_ID=1084
[00:55:02] BOOTSTRAP_PYTHON=/usr/bin/python2.7
[00:55:02] BUILD_DIR=/checkout/obj/build
[00:55:02] CARGO=/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo
[00:55:02] CARGO_HOME=/cargo
[00:55:02] CC_armebv7r_none_eabi=arm-none-eabi-gcc
[00:55:02] CC_armebv7r_none_eabi=arm-none-eabi-gcc
[00:55:02] CC_mips_unknown_linux_musl=mips-openwrt-linux-gcc
[00:55:02] CC_mipsel_unknown_linux_musl=mipsel-openwrt-linux-gcc
[00:55:02] CC_sparc64_unknown_linux_gnu=sparc64-linux-gnu-gcc
[00:55:02] CC_x86_64_unknown_redox=x86_64-unknown-redox-gcc
[00:55:02] CI_JOB_NAME=dist-various-1
[00:55:02] DEPLOY=1
[00:55:02] HERE=/checkout/src/test/run-make/thumb-none-qemu
[00:55:02] HOME=/home/user
[00:55:02] HOSTNAME=d9871345a864
[00:55:02] HOST_RPATH_DIR=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib
[00:55:02] LD_LIBRARY_PATH=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib
[00:55:02] LD_LIB_PATH_ENVVAR=LD_LIBRARY_PATH
[00:55:02] LLVM_CXXFLAGS=
[00:55:02] MAKEFLAGS=
[00:55:02] MAKELEVEL=1
[00:55:02] MFLAGS=
[00:55:02] MFLAGS=
[00:55:02] PATH=/checkout/obj/build/x86_64-unknown-linux-gnu/llvm/build/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[00:55:02] PWD=/checkout/src/test/run-make/thumb-none-qemu
[00:55:02] PYTHON=/usr/bin/python2.7
[00:55:02] RUN_MAKE_TARGETS=thumbv6m-none-eabi,thumbv7m-none-eabi,thumbv7em-none-eabi,thumbv7em-none-eabihf
[00:55:02] RUSTC=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc
[00:55:02] RUST_CONFIGURE_ARGS=--musl-root-armv5te=/musl-armv5te       --musl-root-arm=/musl-arm       --musl-root-armhf=/musl-armhf       --musl-root-armv7=/musl-armv7       --musl-root-aarch64=/musl-aarch64       --musl-root-mips=/musl-mips       --musl-root-mipsel=/musl-mipsel       --enable-emscripten       --disable-docs --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 --enable-llvm-static-stdcpp --set rust.remap-debuginfo --enable-missing-tools
[00:55:02] RUST_RELEASE_CHANNEL=nightly
[00:55:02] S=/checkout
[00:55:02] SCCACHE_BUCKET=rust-lang-ci-sccache2
[00:55:02] SCCACHE_REGION=us-west-1
[00:55:02] SCRIPT=python2.7 ../x.py test --target thumbv6m-none-eabi,thumbv7m-none-eabi,thumbv7em-none-eabi,thumbv7em-none-eabihf src/test/run-make &&       python2.7 ../x.py dist --target asmjs-unknown-emscripten,wasm32-unknown-emscripten,x86_64-rumprun-netbsd,mips-unknown-linux-musl,mipsel-unknown-linux-musl,arm-unknown-linux-musleabi,arm-unknown-linux-musleabihf,armv5te-unknown-linux-gnueabi,armv5te-unknown-linux-musleabi,armv7-unknown-linux-musleabihf,aarch64-unknown-linux-musl,sparc64-unknown-linux-gnu,x86_64-unknown-redox,thumbv6m-none-eabi,thumbv7m-none-eabi,thumbv7em-none-eabi,thumbv7em-none-eabihf,riscv32imc-unknown-none-elf,riscv32imac-unknown-none-elf,armebv7r-none-eabi,armebv7r-none-eabihf,armv7r-none-eabi,armv7r-none-eabihf
[00:55:02] SHLVL=3
[00:55:02] SRC=/checkout
[00:55:02] STAGING_DIR=/tmp
[00:55:02] TARGET=thumbv7m-none-eabi
[00:55:02] TARGETS=asmjs-unknown-emscripten,wasm32-unknown-emscripten,x86_64-rumprun-netbsd,mips-unknown-linux-musl,mipsel-unknown-linux-musl,arm-unknown-linux-musleabi,arm-unknown-linux-musleabihf,armv5te-unknown-linux-gnueabi,armv5te-unknown-linux-musleabi,armv7-unknown-linux-musleabihf,aarch64-unknown-linux-musl,sparc64-unknown-linux-gnu,x86_64-unknown-redox,thumbv6m-none-eabi,thumbv7m-none-eabi,thumbv7em-none-eabi,thumbv7em-none-eabihf,riscv32imc-unknown-none-elf,riscv32imac-unknown-none-elf,armebv7r-none-eabi,armebv7r-none-eabihf,armv7r-none-eabi,armv7r-none-eabihf
[00:55:02] TARGET_RPATH_DIR=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/thumbv7m-none-eabi/lib
[00:55:02] TERM=xterm
[00:55:02] TMPDIR=/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/thumb-none-qemu/thumb-none-qemu
[00:55:02] TRAVIS=true
[00:55:02] TRAVIS_BRANCH=auto
[00:55:02] TRAVIS_BRANCH=auto
[00:55:02] WORK_DIR=/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/thumb-none-qemu/thumb-none-qemu
[00:55:02] _=/usr/bin/env
[00:55:02] __COMPAT_LAYER=RunAsInvoker
[00:55:02] /checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/thumb-none-qemu/thumb-none-qemu /checkout/src/test/run-make/thumb-none-qemu
[00:55:02] /checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/thumb-none-qemu/thumb-none-qemu/example /checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/thumb-none-qemu/thumb-none-qemu /checkout/src/test/run-make/thumb-none-qemu
[00:55:02] Makefile:27: recipe for target 'all' failed
[00:55:02] ------------------------------------------
[00:55:02] stderr:
[00:55:02] ------------------------------------------
[00:55:02] ------------------------------------------
[00:55:02] + CRATE=example
[00:55:02] + env
[00:55:02] + env
[00:55:02] + mkdir -p /checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/thumb-none-qemu/thumb-none-qemu
[00:55:02] + pushd /checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/thumb-none-qemu/thumb-none-qemu
[00:55:02] + rm -rf example
[00:55:02] + cp -a /checkout/src/test/run-make/thumb-none-qemu/example .
[00:55:02] + pushd example
[00:55:02] + grep 'x = 42'
[00:55:02] + env RUSTC_BOOTSTRAP=1 'RUSTFLAGS=-C linker=arm-none-eabi-ld -C link-arg=-Tlink.x' /checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo run --target thumbv7m-none-eabi
[00:55:02] warning: spurious network error (2 tries remaining): curl error: Could not resolve host: github.com
[00:55:02] ; class=Net (12)
[00:55:02] warning: spurious network error (1 tries remaining): curl error: Could not resolve host: github.com
[00:55:02] ; class=Net (12)
[00:55:02] ; class=Net (12)
[00:55:02] error: failed to load source for a dependency on `cortex-m`
[00:55:02] Caused by:
[00:55:02]   Unable to update registry `https://github.com/rust-lang/crates.io-index`
[00:55:02] 
[00:55:02] Caused by:
[00:55:02] Caused by:
[00:55:02]   failed to fetch `https://github.com/rust-lang/crates.io-index`
[00:55:02] 
[00:55:02] Caused by:
[00:55:02]   curl error: Could not resolve host: github.com
[00:55:02] ; class=Net (12)
[00:55:02] make: *** [all] Error 1
[00:55:02] ------------------------------------------
[00:55:02] 
[00:55:02] thread '[run-make] run-make/thumb-none-qemu' panicked at 'explicit panic', src/tools/compiletest/src/runtest.rs:3255:9
[00:55:02] 
---
[00:55:02] test result: FAILED. 9 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out
[00:55:02] 
[00:55:02] 
[00:55:02] 
[00:55:02] command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/compiletest" "--compile-lib-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib" "--run-lib-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/thumbv7m-none-eabi/lib" "--rustc-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "--src-base" "/checkout/src/test/run-make" "--build-base" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make" "--stage-id" "stage2-thumbv7m-none-eabi" "--mode" "run-make" "--target" "thumbv7m-none-eabi" "--host" "x86_64-unknown-linux-gnu" "--llvm-filecheck" "/checkout/obj/build/x86_64-unknown-linux-gnu/llvm/build/bin/FileCheck" "--linker" "arm-none-eabi-gcc" "--host-rustcflags" "-Crpath -O -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--target-rustcflags" "-Crpath -O -Zunstable-options  -Lnative=/checkout/obj/build/thumbv7m-none-eabi/native/rust-test-helpers" "--docck-python" "/usr/bin/python2.7" "--lldb-python" "/usr/bin/python2.7" "--llvm-version" "8.0.0svn\n" "--cc" "" "--cxx" "" "--cflags" "" "--llvm-components" "" "--llvm-cxxflags" "" "--adb-path" "adb" "--adb-test-dir" "/data/tmp/work" "--android-cross-path" "" "--color" "always"
[00:55:02] 
[00:55:02] 
[00:55:02] failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test --target thumbv6m-none-eabi,thumbv7m-none-eabi,thumbv7em-none-eabi,thumbv7em-none-eabihf src/test/run-make
[00:55:02] Build completed unsuccessfully in 0:51:18
---
travis_time:end:1349d528:start=1545720507420629968,finish=1545720507427461334,duration=6831366
travis_fold:end:after_failure.3
travis_fold:start:after_failure.4
travis_time:start:06052727
$ ln -s . checkout && for CORE in obj/cores/core.*; do EXE=$(echo $CORE | sed 's|obj/cores/core\.[0-9]*\.!checkout!\(.*\)|\1|;y|!|/|'); if [ -f "$EXE" ]; then printf travis_fold":start:crashlog\n\033[31;1m%s\033[0m\n" "$CORE"; gdb --batch -q -c "$CORE" "$EXE" -iex 'set auto-load off' -iex 'dir src/' -iex 'set sysroot .' -ex bt -ex q; echo travis_fold":"end:crashlog; fi; done || true
travis_fold:end:after_failure.4
travis_fold:start:after_failure.5
travis_time:start:07ca8a30
travis_time:start:07ca8a30
$ cat ./obj/build/x86_64-unknown-linux-gnu/native/asan/build/lib/asan/clang_rt.asan-dynamic-i386.vers || true
cat: ./obj/build/x86_64-unknown-linux-gnu/native/asan/build/lib/asan/clang_rt.asan-dynamic-i386.vers: No such file or directory
travis_fold:end:after_failure.5
travis_fold:start:after_failure.6
travis_time:start:0198007e
$ dmesg | grep -i kill

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Dec 25, 2018
@kennytm
Copy link
Member Author

kennytm commented Dec 25, 2018

@bors retry travis-ci/travis-ci#9696 Thanks 😒

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Dec 25, 2018
@bors
Copy link
Contributor

bors commented Dec 25, 2018

⌛ Testing commit 07f5dbc with merge 73dcb52...

bors added a commit that referenced this pull request Dec 25, 2018
Revert #56944.

This should fix #57111, since #56944 is the only PR involving LLVM.

#57111 is caused by both the rustc and rust-std tarballs providing libLLVM.

r? @alexcrichton
@bors
Copy link
Contributor

bors commented Dec 25, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing 73dcb52 to master...

@bors bors merged commit 07f5dbc into rust-lang:master Dec 25, 2018
@kennytm kennytm deleted the revert-56944 branch December 25, 2018 10:59
@alexcrichton
Copy link
Member

I've opened #57286 to reland the original PR

Mark-Simulacrum added a commit to Mark-Simulacrum/rust that referenced this pull request Jan 3, 2019
…atsakis

bootstrap: Link LLVM as a dylib with ThinLTO (take 2)

When building a distributed compiler on Linux where we use ThinLTO to
create the LLVM shared object this commit switches the compiler to
dynamically linking that LLVM artifact instead of statically linking to
LLVM. The primary goal here is to reduce CI compile times, avoiding two+
ThinLTO builds of all of LLVM. By linking dynamically to LLVM we'll
reuse the one ThinLTO step done by LLVM's build itself.

Lots of discussion about this change can be found [here] and down. A
perf run will show whether this is worth it or not!

[here]: rust-lang#53245 (comment)

---

This PR previously landed in rust-lang#56944, caused rust-lang#57111, and was reverted in rust-lang#57116. I've added one more commit here which should fix the breakage that we saw.
bors added a commit that referenced this pull request Jan 6, 2019
bootstrap: Link LLVM as a dylib with ThinLTO (take 2)

When building a distributed compiler on Linux where we use ThinLTO to
create the LLVM shared object this commit switches the compiler to
dynamically linking that LLVM artifact instead of statically linking to
LLVM. The primary goal here is to reduce CI compile times, avoiding two+
ThinLTO builds of all of LLVM. By linking dynamically to LLVM we'll
reuse the one ThinLTO step done by LLVM's build itself.

Lots of discussion about this change can be found [here] and down. A
perf run will show whether this is worth it or not!

[here]: #53245 (comment)

---

This PR previously landed in #56944, caused #57111, and was reverted in #57116. I've added one more commit here which should fix the breakage that we saw.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rustup: nightly 2018-12-25 fails to install
4 participants