-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Upgrading to Rust 1.27.0 fails on Mac OS 10.10 with Homebrew #51838
Comments
I'm actually interested in using this tool https://github.com/BurntSushi/xsv I tried pinning Rust to the last version that worked, but Homebrew won't let me install based on that E.g. $ brew info rust So I did brew switch rust 1.24.1 Fails with Error: You must I just want to run xsv to process a huge csv file I've got |
I turns out there is a workaround.
So for my problem I did this cd /usr/local/Cellar/rust I.e. trick Homebrew into thinking it already has 1.27.0. With this I can build xsv $ brew install xsv ==> Downloading https://github.com/BurntSushi/xsv/archive/0.13.0.tar.gz And yeah, I know I should upgrade the OS from 10.10. Unfortunately doing that will probably break a lot of other things at this point. And this workaround is actually handy for any situation where you want to install package X, package X depends on the latest version of package Y and for some reason (poverty, laziness) you can't use the latest version of package Y on your machine. |
The answer seems to be to upgrade to an OS where you can still get a bottled version. I upgraded to 10.12, Sierra. And now I can upgrade Rust just fine
tl;dr - if you use an OS for which a bottled version doesn't exist, you need to compile it and that may fail. Don't use an OS for which a bottled version doesn't exist. Right now that's https://github.com/Homebrew/homebrew-core/blob/master/Formula/rust.rb
I.e. High Sierra, Sierra or El Capitan. Basically anything in the last three releases should be OK. |
I ran into this as well on a 10.9 machine. Our rust port (MacPorts) was recently updated to 1.27.0 and has been failing on older systems in the same way. 1.26.0 built fine (if the assembler is recent enough), so it must be some kind of regression. Build log
I've tried different compilers, namely clang-5.0 and clang-6.0, with the same result. I've tried updating the bootstrap cargo version to 0.28.0, without any effect. What puzzles me most is that I don't get actual output. The stack overflow error in cargo is most likely a red herring, since the default stack size is 8M which should be plenty and matches the default Linux stacksize. We already pass I retried the failed attempt with the stack size set to 32M and passing Increased stack size
The backtrace is pretty useless and FWIW doesn't seem to indicate infinite recursion or the like. I suspect that the stack overflow error is really |
I upgraded to 10.12.6 Sierra and it works fine.
Interestingly it works because it doesn't try to compile anything. If you
look at this
https://github.com/Homebrew/homebrew-core/blob/master/Formula/rust.rb
You see
bottle do
sha256 "fc3dd655539149da38e351fd2f8bd5608a55d25c546bd87c8983346ff8b32568"
=> :high_sierra
sha256 "9d91681309cce40845d8c20d97ed2fa9ab0f4ecc7d015c33907abab7d5fa8643"
=> :sierra
sha256 "eafee2b64ed79f94c04fb46e394ff84e68f60cc89ef6036f81bef5ca041d6aac"
=> :el_capitan
end
I.e. on El Capitan
(10.11)
, Sierra
(10.12)
and High Sierra
(10.13)
you get a precompiled bottle. Only on a system older than El Capitan would
it even try to compile
- e.g. Yousemite (10.10) or Mavericks(10.9).
I.e. downlevel systems get a different build path that tries to compile and
it may well be that path is broken.
…--
Email: tom.thornhill@gmail.com
Mobile +44 7922 539 306 (UK🇬🇧) <- currently in UK
Mobile: +886 981 102 534 (Taiwan🇹🇼)
Mobile: +1 202 848 7318 (US🇺🇸)
Skype: tom_thornhill
On 6 July 2018 at 12:13, Mihai Moldovan ***@***.***> wrote:
I ran into this as well on a 10.9 machine. Our rust port (MacPorts) was
recently updated to 1.27.0 and has been failing on older systems in the
same way.
1.26.0 built fine (if the assembler is recent enough), so it must be some
kind of regression.
Build log:
Build log
---> Extracting rustc-1.27.0-src.tar.gz
Executing: cd "/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/rust/rustc-1.27.0-src.tar.gz' | /usr/bin/gnutar -xf -
---> Extracting rust-std-1.26.0-x86_64-apple-darwin.tar.gz
Executing: cd "/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/rust/rust-std-1.26.0-x86_64-apple-darwin.tar.gz' | /usr/bin/gnutar -xf -
---> Extracting rustc-1.26.0-x86_64-apple-darwin.tar.gz
Executing: cd "/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/rust/rustc-1.26.0-x86_64-apple-darwin.tar.gz' | /usr/bin/gnutar -xf -
---> Extracting cargo-0.27.0-x86_64-apple-darwin.tar.gz
Executing: cd "/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/rust/cargo-0.27.0-x86_64-apple-darwin.tar.gz' | /usr/bin/gnutar -xf -
---> Extracting rust-std-1.26.0-i686-apple-darwin.tar.gz
Executing: cd "/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/rust/rust-std-1.26.0-i686-apple-darwin.tar.gz' | /usr/bin/gnutar -xf -
---> Extracting rustc-1.26.0-i686-apple-darwin.tar.gz
Executing: cd "/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/rust/rustc-1.26.0-i686-apple-darwin.tar.gz' | /usr/bin/gnutar -xf -
---> Extracting cargo-0.27.0-i686-apple-darwin.tar.gz
Executing: cd "/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/rust/cargo-0.27.0-i686-apple-darwin.tar.gz' | /usr/bin/gnutar -xf -
Warning: The following existing file was hidden from the build system by trace mode:
/opt/local/bin/lipo
---> Applying patches to rust
---> Applying patch-src-librustc-llvm-lib.diff
Executing: cd "/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src" && /usr/bin/patch -p0 < '/opt/macports/lang/rust/files/patch-src-librustc-llvm-lib.diff'
patching file src/librustc_llvm/lib.rs
Hunk #1 succeeded at 421 (offset 1 line).
---> Configuring rust
---> Configuring rust for architecture x86_64
Executing: cd "/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64" && ./configure --prefix=/opt/local --enable-vendor --default-linker=/opt/local/bin/clang-mp-6.0 --disable-codegen-tests --disable-docs --release-channel=stable --set=target.x86_64-apple-darwin.cc=/opt/local/bin/clang-mp-6.0 --set=target.x86_64-apple-darwin.cxx=/opt/local/bin/clang++-mp-6.0 --set=target.x86_64-apple-darwin.linker=/opt/local/bin/clang-mp-6.0 --set=target.i686-apple-darwin.cc=/opt/local/bin/clang-mp-6.0 --set=target.i686-apple-darwin.cxx=/opt/local/bin/clang++-mp-6.0 --set=target.i686-apple-darwin.linker=/opt/local/bin/clang-mp-6.0 --llvm-root=/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/llvm-6.0-x86_64 --build=x86_64-apple-darwin --local-rust-root=/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src/build/stage0-x86_64
configure: processing command line
configure:
configure: rust.default-linker := /opt/local/bin/clang-mp-6.0
configure: build.vendor := True
configure: rust.channel := stable
configure: build.docs := False
configure: rust.codegen-tests := False
configure: install.prefix := /opt/local
configure: target.x86_64-apple-darwin.cc := /opt/local/bin/clang-mp-6.0
configure: target.x86_64-apple-darwin.cxx := /opt/local/bin/clang++-mp-6.0
configure: target.x86_64-apple-darwin.linker := /opt/local/bin/clang-mp-6.0
configure: target.i686-apple-darwin.cc := /opt/local/bin/clang-mp-6.0
configure: target.i686-apple-darwin.cxx := /opt/local/bin/clang++-mp-6.0
configure: target.i686-apple-darwin.linker := /opt/local/bin/clang-mp-6.0
configure: build.build := x86_64-apple-darwin
configure: build.rustc := /opt/local/var/macports/build/_opt_macports_la ...
configure: build.cargo := /opt/local/var/macports/build/_opt_macports_la ...
configure: target.x86_64-apple-darwin.llvm-config := /opt/local/var/macports/buil ...
configure: build.configure-args := ['--prefix=/opt/local', '--enable-vendor', '-- ...
configure:
configure: writing `config.toml` in current directory
configure:
configure: run `python /opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/x.py --help`
configure:
---> Configuring rust for architecture i386
Executing: cd "/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-i386" && ./configure --prefix=/opt/local --enable-vendor --default-linker=/opt/local/bin/clang-mp-6.0 --disable-codegen-tests --disable-docs --release-channel=stable --set=target.x86_64-apple-darwin.cc=/opt/local/bin/clang-mp-6.0 --set=target.x86_64-apple-darwin.cxx=/opt/local/bin/clang++-mp-6.0 --set=target.x86_64-apple-darwin.linker=/opt/local/bin/clang-mp-6.0 --set=target.i686-apple-darwin.cc=/opt/local/bin/clang-mp-6.0 --set=target.i686-apple-darwin.cxx=/opt/local/bin/clang++-mp-6.0 --set=target.i686-apple-darwin.linker=/opt/local/bin/clang-mp-6.0 --llvm-root=/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/llvm-6.0-i386 --build=i686-apple-darwin --local-rust-root=/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src/build/stage0-i686
configure: processing command line
configure:
configure: rust.default-linker := /opt/local/bin/clang-mp-6.0
configure: build.vendor := True
configure: rust.channel := stable
configure: build.docs := False
configure: rust.codegen-tests := False
configure: install.prefix := /opt/local
configure: target.x86_64-apple-darwin.cc := /opt/local/bin/clang-mp-6.0
configure: target.x86_64-apple-darwin.cxx := /opt/local/bin/clang++-mp-6.0
configure: target.x86_64-apple-darwin.linker := /opt/local/bin/clang-mp-6.0
configure: target.i686-apple-darwin.cc := /opt/local/bin/clang-mp-6.0
configure: target.i686-apple-darwin.cxx := /opt/local/bin/clang++-mp-6.0
configure: target.i686-apple-darwin.linker := /opt/local/bin/clang-mp-6.0
configure: build.build := i686-apple-darwin
configure: build.rustc := /opt/local/var/macports/build/_opt_macports_la ...
configure: build.cargo := /opt/local/var/macports/build/_opt_macports_la ...
configure: target.i686-apple-darwin.llvm-config := /opt/local/var/macports/build/ ...
configure: build.configure-args := ['--prefix=/opt/local', '--enable-vendor', '-- ...
configure:
configure: writing `config.toml` in current directory
configure:
configure: run `python /opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-i386/x.py --help`
configure:
xinstall: mkdir /opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/.home/.cargo
Warning: The following file inside the MacPorts prefix not installed by a port was accessed:
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/singledispatch-3.4.0.3-py2.7.egg
---> Building rust
---> Building rust for architecture x86_64
Executing: cd "/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64" && /usr/bin/make -j2 -w all VERBOSE=1 BOOTSTRAP_ARGS="-v -j2"
make: Entering directory `/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64'
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python /opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/bootstrap/bootstrap.py build -v -j2
running: /opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src/build/stage0-x86_64/bin/cargo build --manifest-path /opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/bootstrap/Cargo.toml --frozen
Compiling unicode-xid v0.1.0
Compiling serde v1.0.40
Compiling num-traits v0.2.2
Compiling libc v0.2.40
Compiling dtoa v0.4.2
Compiling cfg-if v0.1.2
Compiling fixedbitset v0.1.9
Compiling cc v1.0.10
Compiling ordermap v0.3.5
Compiling itoa v0.4.1
Compiling build_helper v0.1.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/build_helper)
Compiling getopts v0.2.17
Compiling lazy_static v0.2.11
Compiling proc-macro2 v0.3.6
Compiling time v0.1.39
Compiling num_cpus v1.8.0
Compiling filetime v0.1.15
Compiling cmake v0.1.30
Compiling petgraph v0.4.12
Compiling toml v0.4.6
Compiling serde_json v1.0.15
Compiling quote v0.5.1
Compiling syn v0.13.1
Compiling serde_derive_internals v0.23.1
Compiling serde_derive v1.0.40
Compiling bootstrap v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/bootstrap)
Finished dev [unoptimized] target(s) in 143.9 secs
running: /opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/build/bootstrap/debug/bootstrap build -v -j2
finding compilers
CC_x86_64-apple-darwin = "/opt/local/bin/clang-mp-6.0"
CFLAGS_x86_64-apple-darwin = ["-ffunction-sections", "-fdata-sections", "-fPIC", "--target=x86_64-apple-darwin", "-stdlib=libc++"]
AR_x86_64-apple-darwin = "/opt/local/bin/ar"
CXX_x86_64-apple-darwin = "/opt/local/bin/clang++-mp-6.0"
running sanity check
learning about cargo
> Assemble { target_compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" } }
> Assemble { target_compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
> Assemble { target_compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
< Assemble { target_compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
> Rustc { target: "x86_64-apple-darwin", compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
> Test { target: "x86_64-apple-darwin", compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
> Std { target: "x86_64-apple-darwin", compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
> StartupObjects { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
< StartupObjects { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
Dirty - /opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/build/x86_64-apple-darwin/stage0-std/x86_64-apple-darwin/release
> Sysroot { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
< Sysroot { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
c Assemble { target_compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
> StdLink { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target_compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
> Libdir { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
c Sysroot { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
< Libdir { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
> CleanTools { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin", mode: Libstd }
< CleanTools { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin", mode: Libstd }
< StdLink { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target_compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
< Std { target: "x86_64-apple-darwin", compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
c Sysroot { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
c Assemble { target_compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
> TestLink { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target_compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
c Libdir { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
> CleanTools { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin", mode: Libtest }
< CleanTools { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin", mode: Libtest }
< TestLink { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target_compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
< Test { target: "x86_64-apple-darwin", compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
c Assemble { target_compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
c Std { target: "x86_64-apple-darwin", compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
c Sysroot { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
c Assemble { target_compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
> RustcLink { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target_compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
c Libdir { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
> CleanTools { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin", mode: Librustc }
< CleanTools { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin", mode: Librustc }
< RustcLink { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target_compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
< Rustc { target: "x86_64-apple-darwin", compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
> CodegenBackend { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin", backend: "llvm" }
c Rustc { target: "x86_64-apple-darwin", compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
c Sysroot { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
> Llvm { target: "x86_64-apple-darwin", emscripten: false }
< Llvm { target: "x86_64-apple-darwin", emscripten: false }
< CodegenBackend { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin", backend: "llvm" }
> Sysroot { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
< Sysroot { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
c Libdir { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
> Libdir { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
c Sysroot { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
< Libdir { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
c Sysroot { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
< Assemble { target_compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
> Rustc { target: "x86_64-apple-darwin", compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
> Test { target: "x86_64-apple-darwin", compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
> Std { target: "x86_64-apple-darwin", compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
> StartupObjects { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
< StartupObjects { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
c Sysroot { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
c Sysroot { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
c Sysroot { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
c Sysroot { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
c Assemble { target_compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
> StdLink { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target_compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
c Libdir { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
> CleanTools { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin", mode: Libstd }
< CleanTools { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin", mode: Libstd }
< StdLink { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target_compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
< Std { target: "x86_64-apple-darwin", compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
c Sysroot { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
c Sysroot { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
c Sysroot { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
c Sysroot { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
c Sysroot { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
c Assemble { target_compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
> TestLink { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target_compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
c Libdir { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
> CleanTools { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin", mode: Libtest }
< CleanTools { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin", mode: Libtest }
< TestLink { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target_compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
< Test { target: "x86_64-apple-darwin", compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
c Assemble { target_compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
c Std { target: "x86_64-apple-darwin", compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
c Sysroot { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
c Sysroot { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
c Sysroot { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
c Sysroot { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
c Sysroot { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
c Assemble { target_compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
> RustcLink { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target_compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
c Libdir { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
> CleanTools { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin", mode: Librustc }
< CleanTools { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin", mode: Librustc }
< RustcLink { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target_compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
< Rustc { target: "x86_64-apple-darwin", compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
> CodegenBackend { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin", backend: "llvm" }
c Rustc { target: "x86_64-apple-darwin", compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
c Sysroot { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
c Sysroot { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
c Sysroot { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
c Sysroot { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
c Sysroot { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
c Llvm { target: "x86_64-apple-darwin", emscripten: false }
< CodegenBackend { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin", backend: "llvm" }
> Sysroot { compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" } }
< Sysroot { compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" } }
c Libdir { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
> Libdir { compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
c Sysroot { compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" } }
< Libdir { compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
c Sysroot { compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" } }
< Assemble { target_compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" } }
> Std { target: "x86_64-apple-darwin", compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" } }
> StartupObjects { compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
< StartupObjects { compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
c Assemble { target_compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
c Std { target: "x86_64-apple-darwin", compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
> StdLink { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target_compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
c Libdir { compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
> CleanTools { compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin", mode: Libstd }
c Assemble { target_compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
< CleanTools { compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin", mode: Libstd }
< StdLink { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target_compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
< Std { target: "x86_64-apple-darwin", compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" } }
c Assemble { target_compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" } }
> Test { target: "x86_64-apple-darwin", compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" } }
c Std { target: "x86_64-apple-darwin", compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" } }
c Assemble { target_compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
c Test { target: "x86_64-apple-darwin", compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
c Assemble { target_compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
> TestLink { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target_compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
c Libdir { compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
> CleanTools { compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin", mode: Libtest }
c Assemble { target_compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
< CleanTools { compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin", mode: Libtest }
< TestLink { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target_compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
< Test { target: "x86_64-apple-darwin", compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" } }
c Assemble { target_compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" } }
> Rustc { target: "x86_64-apple-darwin", compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" } }
c Test { target: "x86_64-apple-darwin", compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" } }
c Assemble { target_compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
c Rustc { target: "x86_64-apple-darwin", compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
c Assemble { target_compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
> RustcLink { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target_compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
c Libdir { compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
> CleanTools { compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin", mode: Librustc }
c Assemble { target_compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
< CleanTools { compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin", mode: Librustc }
< RustcLink { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target_compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
< Rustc { target: "x86_64-apple-darwin", compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" } }
> Rustdoc { host: "x86_64-apple-darwin" }
c Assemble { target_compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" } }
c Assemble { target_compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" } }
c Rustc { target: "x86_64-apple-darwin", compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" } }
c Rustc { target: "x86_64-apple-darwin", compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" } }
c Sysroot { compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" } }
c Sysroot { compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" } }
c Sysroot { compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" } }
c Sysroot { compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" } }
c Sysroot { compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" } }
c Sysroot { compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" } }
< Rustdoc { host: "x86_64-apple-darwin" }
> Assemble { target_compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" } }
> Assemble { target_compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
> Assemble { target_compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
< Assemble { target_compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
> Rustc { target: "x86_64-apple-darwin", compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
> Test { target: "x86_64-apple-darwin", compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
> Std { target: "x86_64-apple-darwin", compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
> StartupObjects { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
< StartupObjects { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
> Sysroot { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
< Sysroot { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
Building stage0 std artifacts (x86_64-apple-darwin -> x86_64-apple-darwin)
running: "/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src/build/stage0-x86_64/bin/cargo" "build" "--target" "x86_64-apple-darwin" "--release" "--frozen" "--features" "panic-unwind jemalloc backtrace" "--manifest-path" "/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/libstd/Cargo.toml" "--message-format" "json"
Compiling cc v1.0.10
Compiling core v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/libcore)
Compiling build_helper v0.1.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/build_helper)
Compiling unwind v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/libunwind)
Compiling compiler_builtins v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/rustc/compiler_builtins_shim)
Compiling cmake v0.1.30
Compiling alloc_jemalloc v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/liballoc_jemalloc)
Compiling std v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/libstd)
Compiling rustc_tsan v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/librustc_tsan)
Compiling rustc_asan v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/librustc_asan)
Compiling libc v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/rustc/libc_shim)
Compiling alloc v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/liballoc)
Compiling std_unicode v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/libstd_unicode)
Compiling alloc_system v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/liballoc_system)
Compiling panic_abort v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/libpanic_abort)
Compiling panic_unwind v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/libpanic_unwind)
Finished release [optimized] target(s) in 174.6 secs
updating "/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/build/x86_64-apple-darwin/stage0-std/x86_64-apple-darwin/release/.libstd.stamp" as "/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/build/x86_64-apple-darwin/stage0-std/x86_64-apple-darwin/release/deps/libstd-4cea9531370d7b69.rlib" changed
c Assemble { target_compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
> StdLink { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target_compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
Copying stage0 std from stage0 (x86_64-apple-darwin -> x86_64-apple-darwin / x86_64-apple-darwin)
> Libdir { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
c Sysroot { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
< Libdir { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
> CleanTools { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin", mode: Libstd }
Dirty - /opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/build/x86_64-apple-darwin/stage0-tools
< CleanTools { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin", mode: Libstd }
< StdLink { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target_compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
< Std { target: "x86_64-apple-darwin", compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
Dirty - /opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/build/x86_64-apple-darwin/stage0-test/x86_64-apple-darwin/release
c Sysroot { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
Building stage0 test artifacts (x86_64-apple-darwin -> x86_64-apple-darwin)
running: "/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src/build/stage0-x86_64/bin/cargo" "build" "--target" "x86_64-apple-darwin" "--release" "--frozen" "--manifest-path" "/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/libtest/Cargo.toml" "--message-format" "json"
Compiling term v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/libterm)
Compiling getopts v0.2.17
Compiling test v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/libtest)
Finished release [optimized] target(s) in 19.92 secs
updating "/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/build/x86_64-apple-darwin/stage0-test/x86_64-apple-darwin/release/.libtest.stamp" as "/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/build/x86_64-apple-darwin/stage0-test/x86_64-apple-darwin/release/deps/libtest-e021906026881646.rlib" changed
c Assemble { target_compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
> TestLink { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target_compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
Copying stage0 test from stage0 (x86_64-apple-darwin -> x86_64-apple-darwin / x86_64-apple-darwin)
c Libdir { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
> CleanTools { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin", mode: Libtest }
Dirty - /opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/build/x86_64-apple-darwin/stage0-tools
< CleanTools { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin", mode: Libtest }
< TestLink { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target_compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
< Test { target: "x86_64-apple-darwin", compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
c Assemble { target_compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
c Std { target: "x86_64-apple-darwin", compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
Dirty - /opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/build/x86_64-apple-darwin/stage0-rustc/x86_64-apple-darwin/release
c Sysroot { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
Building stage0 compiler artifacts (x86_64-apple-darwin -> x86_64-apple-darwin)
running: "/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src/build/stage0-x86_64/bin/cargo" "build" "--target" "x86_64-apple-darwin" "--release" "--frozen" "--features" " jemalloc" "--manifest-path" "/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/rustc/Cargo.toml" "--message-format" "json"
Compiling libc v0.2.40
Compiling smallvec v0.6.0
Compiling cfg-if v0.1.2
Compiling stable_deref_trait v1.0.0
Compiling bitflags v1.0.1
Compiling serialize v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/libserialize)
Compiling unicode-width v0.1.4
Compiling cc v1.0.10
Compiling rustc_target v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/librustc_target)
Compiling scoped-tls v0.1.1
Compiling syntax v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/libsyntax)
Compiling termcolor v0.3.6
Compiling remove_dir_all v0.5.1
Compiling rustc-demangle v0.1.7
Compiling rustc v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/librustc)
Compiling byteorder v1.2.2
Compiling graphviz v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/libgraphviz)
Compiling fmt_macros v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/libfmt_macros)
Compiling lazy_static v1.0.0
Compiling rustc-serialize v0.3.24
Compiling lazy_static v0.2.11
Compiling rustc_metadata v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/librustc_metadata)
Compiling rustc_incremental v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/librustc_incremental)
Compiling rustc_platform_intrinsics v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/librustc_platform_intrinsics)
Compiling quick-error v1.2.1
Compiling ar v0.3.1
Compiling rustc_driver v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/librustc_driver)
Compiling log v0.4.1
Compiling owning_ref v0.3.3
Compiling rand v0.4.2
Compiling atty v0.2.8
Compiling miniz-sys v0.1.10
Compiling backtrace v0.3.6
Compiling log_settings v0.1.1
Compiling rls-span v0.4.0
Compiling humantime v1.1.1
Compiling rustc_cratesio_shim v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/librustc_cratesio_shim)
Compiling ena v0.9.2
Compiling jobserver v0.1.11
Compiling parking_lot_core v0.2.14
Compiling tempdir v0.3.7
Compiling rls-data v0.15.0
Compiling env_logger v0.5.8
Compiling rustc_apfloat v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/librustc_apfloat)
Compiling parking_lot v0.5.5
Compiling flate2 v1.0.1
Compiling rustc_data_structures v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/librustc_data_structures)
Compiling syntax_pos v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/libsyntax_pos)
Compiling arena v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/libarena)
Compiling rustc_errors v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/librustc_errors)
Compiling proc_macro v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/libproc_macro)
Compiling syntax_ext v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/libsyntax_ext)
Compiling rustc_mir v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/librustc_mir)
Compiling rustc_typeck v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/librustc_typeck)
Compiling rustc_traits v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/librustc_traits)
Compiling rustc_resolve v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/librustc_resolve)
Compiling rustc_allocator v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/librustc_allocator)
Compiling rustc_plugin v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/librustc_plugin)
Compiling rustc_trans_utils v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/librustc_trans_utils)
Compiling rustc_borrowck v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/librustc_borrowck)
Compiling rustc_lint v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/librustc_lint)
Compiling rustc_passes v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/librustc_passes)
Compiling rustc_privacy v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/librustc_privacy)
Compiling rustc_save_analysis v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/librustc_save_analysis)
Compiling rustc-main v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/rustc)
Finished release [optimized] target(s) in 1395.61 secs
updating "/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/build/x86_64-apple-darwin/stage0-rustc/x86_64-apple-darwin/release/.librustc.stamp" as "/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/build/x86_64-apple-darwin/stage0-rustc/x86_64-apple-darwin/release/deps/librustc_driver-5f76c8601eba04f6.dylib" changed
c Assemble { target_compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
> RustcLink { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target_compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
Copying stage0 rustc from stage0 (x86_64-apple-darwin -> x86_64-apple-darwin / x86_64-apple-darwin)
c Libdir { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
> CleanTools { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin", mode: Librustc }
Dirty - /opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/build/x86_64-apple-darwin/stage0-tools
< CleanTools { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin", mode: Librustc }
< RustcLink { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target_compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
< Rustc { target: "x86_64-apple-darwin", compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
> CodegenBackend { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin", backend: "llvm" }
c Rustc { target: "x86_64-apple-darwin", compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
c Sysroot { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
> Llvm { target: "x86_64-apple-darwin", emscripten: false }
< Llvm { target: "x86_64-apple-darwin", emscripten: false }
Building stage0 codegen artifacts (x86_64-apple-darwin -> x86_64-apple-darwin, llvm)
running: "/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src/build/stage0-x86_64/bin/cargo" "build" "--target" "x86_64-apple-darwin" "--release" "--frozen" "--manifest-path" "/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/librustc_trans/Cargo.toml" "--features" " jemalloc" "--message-format" "json"
Compiling build_helper v0.1.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/build_helper)
Compiling rustc_trans v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/librustc_trans)
Compiling cc v1.0.10
Compiling num_cpus v1.8.0
Compiling rustc_llvm v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/librustc_llvm)
Finished release [optimized] target(s) in 147.62 secs
updating "/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/build/x86_64-apple-darwin/stage0-rustc/x86_64-apple-darwin/release/.tmp.stamp" as "/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/build/x86_64-apple-darwin/stage0-rustc/x86_64-apple-darwin/release/deps/librustc_trans-960700e10aaeb56b.dylib" changed
< CodegenBackend { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin", backend: "llvm" }
Assembling stage1 compiler (x86_64-apple-darwin)
> Sysroot { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
< Sysroot { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
c Libdir { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
> Libdir { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
c Sysroot { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
< Libdir { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
c Sysroot { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
< Assemble { target_compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
> Rustc { target: "x86_64-apple-darwin", compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
> Test { target: "x86_64-apple-darwin", compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
> Std { target: "x86_64-apple-darwin", compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
> StartupObjects { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
< StartupObjects { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
c Sysroot { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
Dirty - /opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/build/x86_64-apple-darwin/stage1-std/x86_64-apple-darwin/release
c Sysroot { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
c Sysroot { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
c Sysroot { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
Building stage1 std artifacts (x86_64-apple-darwin -> x86_64-apple-darwin)
running: "/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src/build/stage0-x86_64/bin/cargo" "build" "--target" "x86_64-apple-darwin" "--release" "--frozen" "--features" "panic-unwind jemalloc backtrace" "--manifest-path" "/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/libstd/Cargo.toml" "--message-format" "json"
Compiling cc v1.0.10
Compiling core v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/libcore)
Compiling build_helper v0.1.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/build_helper)
Compiling unwind v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/libunwind)
Compiling compiler_builtins v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/rustc/compiler_builtins_shim)
Compiling cmake v0.1.30
Compiling alloc_jemalloc v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/liballoc_jemalloc)
Compiling std v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/libstd)
Compiling rustc_tsan v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/librustc_tsan)
Compiling rustc_asan v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/librustc_asan)
thread 'main' has overflowed its stack
fatal runtime error: stack overflow
error: Could not compile `core`.
Caused by:
process didn't exit successfully: `/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/build/bootstrap/debug/rustc --crate-name core libcore/lib.rs --error-format json --crate-type lib --emit=dep-info,link -C opt-level=3 -C metadata=d6fce06e1bd3d804 -C extra-filename=-d6fce06e1bd3d804 --out-dir /opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/build/x86_64-apple-darwin/stage1-std/x86_64-apple-darwin/release/deps --target x86_64-apple-darwin -C linker=/opt/local/bin/clang-mp-6.0 -L dependency=/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/build/x86_64-apple-darwin/stage1-std/x86_64-apple-darwin/release/deps -L dependency=/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/build/x86_64-apple-darwin/stage1-std/release/deps` (signal: 6, SIGABRT: process abort signal)
command did not execute successfully: "/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src/build/stage0-x86_64/bin/cargo" "build" "--target" "x86_64-apple-darwin" "--release" "--frozen" "--features" "panic-unwind jemalloc backtrace" "--manifest-path" "/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/libstd/Cargo.toml" "--message-format" "json"
expected success, got: exit code: 101
thread 'main' panicked at 'cargo must succeed', bootstrap/compile.rs:1091:9
note: Run with `RUST_BACKTRACE=1` for a backtrace.
Traceback (most recent call last):
File "/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/bootstrap/bootstrap.py", line 817, in <module>
main()
File "/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/bootstrap/bootstrap.py", line 800, in main
bootstrap(help_triggered)
File "/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/bootstrap/bootstrap.py", line 791, in bootstrap
run(args, env=env, verbose=build.verbose)
File "/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/bootstrap/bootstrap.py", line 148, in run
raise RuntimeError(err)
RuntimeError: failed to run: /opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/build/bootstrap/debug/bootstrap build -v -j2
make: *** [all] Error 1
make: Leaving directory `/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64'
Command failed: cd "/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64" && /usr/bin/make -j2 -w all VERBOSE=1 BOOTSTRAP_ARGS="-v -j2"
Exit code: 2
I've tried different compilers, namely clang-5.0 and clang-6.0, with the
same result. I've tried updating the bootstrap cargo version to 0.28.0,
without any effect.
What puzzles me most is that I don't get actual output. The stack overflow
error in cargo is most likely a red herring, since the default stack size
is 8M which should be plenty and matches the default Linux stacksize. We
already pass BOOTSTRAP_ARGS="-v ...", VERBOSE=1 and -v to the make
invocation, but obviously this is not enough to get the actual rustc output.
I retried the failed attempt with the stack size set to 32M and passing
-vvv via BOOTSTRAP_ARGS, without any good effect:
Increased stack size
---> Building rust
---> Building rust for architecture x86_64
Executing: cd "/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64" && ulimit -s 32768 && ulimit -a && /usr/bin/make -j2 all RUST_BACKTRACE=1 VERBOSE=1 BOOTSTRAP_ARGS="-vvv -j2"
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 10240
pipe size (512 bytes, -p) 1
stack size (kbytes, -s) 32768
cpu time (seconds, -t) unlimited
max user processes (-u) 709
virtual memory (kbytes, -v) unlimited
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python /opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/bootstrap/bootstrap.py build -vvv -j2
running: /opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src/build/stage0-x86_64/bin/cargo build --manifest-path /opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/bootstrap/Cargo.toml --verbose --verbose --frozen
Fresh unicode-xid v0.1.0
Fresh dtoa v0.4.2
Fresh cc v1.0.10
Fresh serde v1.0.40
Fresh num-traits v0.2.2
Fresh ordermap v0.3.5
Fresh libc v0.2.40
Fresh cfg-if v0.1.2
Fresh fixedbitset v0.1.9
Fresh itoa v0.4.1
Fresh getopts v0.2.17
Fresh lazy_static v0.2.11
Fresh build_helper v0.1.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/build_helper)
Fresh proc-macro2 v0.3.6
Fresh cmake v0.1.30
Fresh toml v0.4.6
Fresh num_cpus v1.8.0
Fresh time v0.1.39
Fresh filetime v0.1.15
Fresh petgraph v0.4.12
Fresh serde_json v1.0.15
Fresh quote v0.5.1
Fresh syn v0.13.1
Fresh serde_derive_internals v0.23.1
Fresh serde_derive v1.0.40
Fresh bootstrap v0.0.0 (file:///opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/src/bootstrap)
Finished dev [unoptimized] target(s) in 0.0 secs
running: /opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/build/bootstrap/debug/bootstrap build -vvv -j2
finding compilers
CC_x86_64-apple-darwin = "/opt/local/bin/clang-mp-6.0"
CFLAGS_x86_64-apple-darwin = ["-ffunction-sections", "-fdata-sections", "-fPIC", "--target=x86_64-apple-darwin", "-stdlib=libc++"]
AR_x86_64-apple-darwin = "/opt/local/bin/ar"
CXX_x86_64-apple-darwin = "/opt/local/bin/clang++-mp-6.0"
running sanity check
learning about cargo
> Assemble { target_compiler: Compiler { stage: 2, host: "x86_64-apple-darwin" } }
> Assemble { target_compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
> Assemble { target_compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
< Assemble { target_compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
> Rustc { target: "x86_64-apple-darwin", compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
> Test { target: "x86_64-apple-darwin", compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
> Std { target: "x86_64-apple-darwin", compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
> StartupObjects { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
< StartupObjects { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
> Sysroot { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
< Sysroot { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
c Assemble { target_compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
> StdLink { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target_compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
> Libdir { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
c Sysroot { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
< Libdir { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
> CleanTools { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin", mode: Libstd }
< CleanTools { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin", mode: Libstd }
< StdLink { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target_compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
< Std { target: "x86_64-apple-darwin", compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
c Sysroot { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
c Assemble { target_compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
> TestLink { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target_compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
c Libdir { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
> CleanTools { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin", mode: Libtest }
< CleanTools { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin", mode: Libtest }
< TestLink { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target_compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
< Test { target: "x86_64-apple-darwin", compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
c Assemble { target_compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
c Std { target: "x86_64-apple-darwin", compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
c Sysroot { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
c Assemble { target_compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
> RustcLink { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target_compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
c Libdir { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
> CleanTools { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin", mode: Librustc }
< CleanTools { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin", mode: Librustc }
< RustcLink { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target_compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
< Rustc { target: "x86_64-apple-darwin", compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
> CodegenBackend { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin", backend: "llvm" }
c Rustc { target: "x86_64-apple-darwin", compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
c Sysroot { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" } }
> Llvm { target: "x86_64-apple-darwin", emscripten: false }
< Llvm { target: "x86_64-apple-darwin", emscripten: false }
< CodegenBackend { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin", backend: "llvm" }
> Sysroot { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
< Sysroot { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
c Libdir { compiler: Compiler { stage: 0, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
> Libdir { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
c Sysroot { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
< Libdir { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
c Sysroot { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
< Assemble { target_compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
> Rustc { target: "x86_64-apple-darwin", compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
> Test { target: "x86_64-apple-darwin", compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
> Std { target: "x86_64-apple-darwin", compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
> StartupObjects { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
< StartupObjects { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
c Sysroot { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
c Sysroot { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
c Sysroot { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
c Sysroot { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
c Assemble { target_compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" } }
> StdLink { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target_compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
c Libdir { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
> CleanTools { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin", mode: Libstd }
< CleanTools { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin", mode: Libstd }
< StdLink { compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target_compiler: Compiler { stage: 1, host: "x86_64-apple-darwin" }, target: "x86_64-apple-darwin" }
< Std { target: "x86_64-apple-darwin", compiler: Compiler {
|
Yes, I know, homebrew uses precompiled packages if possible. The issue is that a source build is failing on 10.10 and below and we're hit by this in MacPorts, too. Upstream could say they don't care since the OS version is so old (i.e., unsupported by Apple), but the bug is still valid and there is no fix yet. I'm currently trying to bisect this, given that 1.26.0 did compile. |
This said, since you obviously will not be able to reproduce this any longer (after you upgraded to 10.12) and might be uninterested in the result of this bugs triaging/resolution, feel free to unsubscribe from this report. |
Actually it was this issue which finally convinced me to upgrade my ancient
Yosemite Macbook Pro 2012 - the fact that if you're running 10.10 means
that you're no longer using precompiled binaries basically makes Homebrew
unusable - everything takes longer and you're also likely to hit bugs like
this.
Of course people with older machines than mine don't have that option.
…--
Email: tom.thornhill@gmail.com
Mobile +44 7922 539 306 (UK🇬🇧) <- currently in UK
Mobile: +886 981 102 534 (Taiwan🇹🇼)
Mobile: +1 202 848 7318 (US🇺🇸)
Skype: tom_thornhill
On 6 July 2018 at 13:27, Mihai Moldovan ***@***.***> wrote:
This said, since you obviously will not be able to reproduce this any
longer (after you upgraded to 10.12) and might be uninterested in the
result of this bugs triaging/resolution, feel free to unsubscribe from this
report.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#51838 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ATijsXAgZAjBVwWx-ZtpQeqXCxEgY4dNks5uD1e7gaJpZM4U5XVR>
.
|
I'm still using OS X 10.9, MacPorts, no Homebrew and have always been compiling all software from source, skipping binary packages, even though they exist (within MacPorts, at least). I'm fully aware of all the drawbacks and benefits. :) We have the odd bunch of users who use even older systems. If we can make software build for older platforms with reasonable effort, we generally do it. We're digressing, though. Given that 1.26.0 did compile on older platforms, the regression must be recent and the chance of finding the culprit is rather high. |
Last time I had to solve this sort of problem I did a binary search in
version tree space. E.g. if you know version 100 has the but and 50
doesn't, try 75 and then keep narrowing it down by halving the size of the
region where you know the bug was introduced. This was using Clearcase
which is very good but very, very expensive. You just needed to change the
label in your config spec - basically a fancy version of a version
selector, rebuild and then test.
A bit of Googling turns up this
https://git-scm.com/docs/git-bisect
I.e. Git has this 'binary search in version tree space' built in! Take
that, Clearcase!
So long as you've got a machine with the old build environment it seems
like you could solve it
Good luck and Godspeed!
…--
Email: tom.thornhill@gmail.com
Mobile +44 7922 539 306 (UK🇬🇧) <- currently in UK
Mobile: +886 981 102 534 (Taiwan🇹🇼)
Mobile: +1 202 848 7318 (US🇺🇸)
Skype: tom_thornhill
On 6 July 2018 at 13:55, Mihai Moldovan ***@***.***> wrote:
I'm still using OS X 10.9, MacPorts, no Homebrew and have always been
compiling all software from source, skipping binary packages, even though
they exist (within MacPorts, at least). I'm fully aware of all the
drawbacks and benefits. :)
We have the odd bunch of users who use even older systems. If we can make
software build for older platforms with reasonable effort, we generally do
it.
We're digressing, though.
Given that 1.26.0 did compile on older platforms, the regression must be
recent and the chance of finding the culprit is rather high.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#51838 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ATijsXM6NRgQGyjJ-rnClI_GKn6S-nDoks5uD142gaJpZM4U5XVR>
.
|
After a lot of building, working around broken state in the git history etc. I managed to actually bisect the commit that causes the I confirmed that reverting e85c922, a185b56 and 9127990 lets the 1.27.0 tag build fine on my 10.9 machine. Must be related to the new stack guard handling, merged as #48575. For instance, I notice that Why exactly this breaks rustc on older OS X platforms beats me, though. Any more information necessary? |
Hi,
Could you turn off the stackguard stuff on downlevel OSs?
Tom
…--
Email: tom.thornhill@gmail.com
Mobile +44 7922 539 306 (UK🇬🇧) <- currently in UK
Mobile: +886 981 102 534 (Taiwan🇹🇼)
Mobile: +1 202 848 7318 (US🇺🇸)
Skype: tom_thornhill
On 12 July 2018 at 16:26, Mihai Moldovan ***@***.***> wrote:
After a lot of building, working around broken state in the git history
etc. I managed to actually bisect the commit that causes the rustc
crashing:
e85c922
<e85c922>
I confirmed that reverting e85c922
<e85c922>,
a185b56
<a185b56>
and 9127990
<9127990>
lets the 1.27.0 tag build fine on my 10.9 machine.
Must be related to the new stack guard handling, merged as #48575
<#48575>.
For instance, I notice that deinit() is a stub for everything but Linux.
Why exactly this breaks rustc on older OS X platforms beats me, though.
Any more information necessary?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#51838 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ATijsaO3khzrGD9oYup9HxsAdwxVcjl3ks5uF2qvgaJpZM4U5XVR>
.
|
I have this problem too, trying to build a package of a Rust program for the conda-forge packaging system on Travis CI. Example build log (with lots of flailing trying to increase the stack size and whatnot). This bug is currently blocking my builds, although perhaps there's a more recent Travis OS image that I can try using. |
Also, the title of this bug should probably be changed to focus on the ongoing issue here, which is crashes on older versions of macOS due to stack-adjusting logic that was introduced in 1.27. |
Here's a workaround, I think — I'm not 100% confident since my builds are still broken, but seemingly for a different reason now. Use Running |
I cannot update the original report, otherwise I would have done so. Another way to work around the issue is to force the creation of an extra thread on OS X like I did via this patch: https://git.ionic.de/macports-overlay.git/blob/HEAD:/lang/rust/files/patch-src-librustc_driver-enable-extra-thread.diff The downside is that I didn't check for OS X <= 10.10 there, but just disabled it globally, which is probably a bad thing to do. And it's still just a workaround - it doesn't fix the underlying issue. I fear, though, that the actual issue is not (easily?) fixable. It's probably a limitation of older OS versions, so uhm... there's that. The code itself doesn't look bad, but I might be wrong. Using ulimit to limit the maximum stack value to 8 MB is an interest hack, though, and doesn't require patching. But alas, just a workaround as well. |
I was having the same problem building rust 1.30.1 (also cargo 0.31.1_2) with MacPorts on MacOS 10.10 .5 ("Yosemite"), and I can verify that pkgw's workaround of using ulimit to limit the stack size to 8Mb worked for me: |
Rust 1.33.0 started using an extra thread on all platforms, so this issue was incidentally also fixed. This report can thus be closed. |
Closing based on report that going back to running in spawned thread by default (PR #56813) fixed this. |
$ brew upgrade rust
Updating Homebrew...
==> Upgrading 1 outdated package, with result:
rust 1.24.1 -> 1.27.0
==> Upgrading rust
==> Downloading https://static.rust-lang.org/dist/rustc-1.27.0-src.tar.gz
Already downloaded: /Users/tomthornhill/Library/Caches/Homebrew/rust-1.27.0.tar.gz
==> ./configure --prefix=/usr/local/Cellar/rust/1.27.0 --release-channel=stable
==> make
Last 15 lines from /Users/tomthornhill/Library/Logs/Homebrew/rust/02.make:
Compiling rustc_asan v0.0.0 (file:///private/tmp/rust-20180627-37269-nj9tsn/rustc-1.27.0-src/src/librustc_asan)
thread 'main' has overflowed its stack
fatal runtime error: stack overflow
error: Could not compile
core
.Caused by:
process didn't exit successfully:
/private/tmp/rust-20180627-37269-nj9tsn/rustc-1.27.0-src/build/bootstrap/debug/rustc --crate-name core libcore/lib.rs --error-format json --crate-type lib --emit=dep-info,link -C opt-level=3 -C metadata=d6fce06e1bd3d804 -C extra-filename=-d6fce06e1bd3d804 --out-dir /private/tmp/rust-20180627-37269-nj9tsn/rustc-1.27.0-src/build/x86_64-apple-darwin/stage1-std/x86_64-apple-darwin/release/deps --target x86_64-apple-darwin -L dependency=/private/tmp/rust-20180627-37269-nj9tsn/rustc-1.27.0-src/build/x86_64-apple-darwin/stage1-std/x86_64-apple-darwin/release/deps -L dependency=/private/tmp/rust-20180627-37269-nj9tsn/rustc-1.27.0-src/build/x86_64-apple-darwin/stage1-std/release/deps
(signal: 6, SIGABRT: process abort signal)command did not execute successfully: "/private/tmp/rust-20180627-37269-nj9tsn/rustc-1.27.0-src/build/x86_64-apple-darwin/stage0/bin/cargo" "build" "--target" "x86_64-apple-darwin" "--release" "--features" "panic-unwind jemalloc backtrace" "--manifest-path" "/private/tmp/rust-20180627-37269-nj9tsn/rustc-1.27.0-src/src/libstd/Cargo.toml" "--message-format" "json"
expected success, got: exit code: 101
thread 'main' panicked at 'cargo must succeed', bootstrap/compile.rs:1091:9
note: Run with
RUST_BACKTRACE=1
for a backtrace.failed to run: /private/tmp/rust-20180627-37269-nj9tsn/rustc-1.27.0-src/build/bootstrap/debug/bootstrap build
Build completed unsuccessfully in 1:07:56
make: *** [all] Error 1
Do not report this issue to Homebrew/brew or Homebrew/core!
These open issues may also help:
Rust won't upgrade Homebrew/homebrew-core#29360
Error: You are using macOS 10.10.
We (and Apple) do not provide support for this old version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.
Error: You have MacPorts or Fink installed:
/opt/local/bin/port
This can cause trouble. You don't have to uninstall them, but you may want to
temporarily move them out of the way, e.g.
sudo mv /opt/local ~/macports
Error: You are using macOS 10.10.
We (and Apple) do not provide support for this old version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.
The text was updated successfully, but these errors were encountered: