Skip to content

Upgrading to Rust 1.27.0 fails on Mac OS 10.10 with Homebrew #51838

Description

@STA-WSYNC

$ 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.

Activity

  1. STA-WSYNC commented on Jun 27, 2018

    @STA-WSYNC
    Author

    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
    rust: stable 1.27.0, HEAD
    Safe, concurrent, practical language
    https://www.rust-lang.org/
    Conflicts with:
    cargo-completion (because both install shell completion for cargo)
    /usr/local/Cellar/rust/1.22.1 (6,211 files, 339.9MB)
    Built from source on 2017-12-18 at 20:45:13
    /usr/local/Cellar/rust/1.24.1 (6,033 files, 404.6MB) *
    Built from source on 2018-03-05 at 19:59:53

    So I did

    brew switch rust 1.24.1
    brew pin rust
    brew install xsv

    Fails with

    Error: You must brew unpin rust as installing xsv requires the latest version of pinned dependencies

    I just want to run xsv to process a huge csv file I've got

  2. STA-WSYNC commented on Jun 27, 2018

    @STA-WSYNC
    Author

    I turns out there is a workaround.

    https://stackoverflow.com/questions/19664535/how-can-i-prevent-homebrew-from-upgrading-vtk-dependency-for-pcl/19665408#19665408

    You can trick Homebrew to think it has Vtk 6.0 installed. For that you have to run this command in a terminal

    ln -s /usr/local/Cellar/vtk/5.10.1 /usr/local/Cellar/vtk/6.0.0

    When the time comes for you to really want to update vtk, just eliminate that symlink with

    rm /usr/local/Cellar/vtk/6.0.0

    and let Homebrew do its job.

    So for my problem I did this

    cd /usr/local/Cellar/rust
    ln -s 1.24.1 1.27.0

    I.e. trick Homebrew into thinking it already has 1.27.0. With this I can build xsv

    $ brew install xsv
    Updating Homebrew...
    ==> Auto-updated Homebrew!
    Updated 2 taps (homebrew/cask, homebrew/core).
    ==> Updated Formulae
    git-annex

    ==> Downloading https://github.com/BurntSushi/xsv/archive/0.13.0.tar.gz
    ==> Downloading from https://codeload.github.com/BurntSushi/xsv/tar.gz/0.13.0
    ######################################################################## 100.0%
    ==> cargo install --root /usr/local/Cellar/xsv/0.13.0
    🍺 /usr/local/Cellar/xsv/0.13.0: 6 files, 3.5MB, built in 4 minutes 15 seconds

    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.

  3. STA-WSYNC commented on Jun 27, 2018

    @STA-WSYNC
    Author

    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

    $ brew upgrade rust
    ==> Upgrading 1 outdated package, with result:
    rust 1.24.1 -> 1.27.0
    ==> Upgrading rust 
    ==> Downloading https://homebrew.bintray.com/bottles/rust-1.27.0.sierra.bottle.tar.gz
    ==> Downloading from https://akamai.bintray.com/9d/9d91681309cce40845d8c20d97ed2fa9ab0f4ecc7d015c33907abab7d5fa8643?__gda__=exp=1530124
    ######################################################################## 100.0%
    ==> Pouring rust-1.27.0.sierra.bottle.tar.gz
    🍺  /usr/local/Cellar/rust/1.27.0: 42,749 files, 763.6MB
    

    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

      bottle do
        sha256 "fc3dd655539149da38e351fd2f8bd5608a55d25c546bd87c8983346ff8b32568" => :high_sierra
        sha256 "9d91681309cce40845d8c20d97ed2fa9ab0f4ecc7d015c33907abab7d5fa8643" => :sierra
        sha256 "eafee2b64ed79f94c04fb46e394ff84e68f60cc89ef6036f81bef5ca041d6aac" => :el_capitan
      end
    

    I.e. High Sierra, Sierra or El Capitan. Basically anything in the last three releases should be OK.

  4. Ionic commented on Jul 6, 2018

    @Ionic

    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

    --->  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 ..." and VERBOSE=1 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 { 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" "-v" "-v" "--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"
           Fresh cc v1.0.10
           Fresh 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)
           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 cmake v0.1.30
           Fresh 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)
           Fresh 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)
           Fresh 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)
           Fresh 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)
           Fresh 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)
           Fresh 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)
           Fresh 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)
           Fresh 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)
           Fresh 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)
           Fresh 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)
           Fresh 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)
           Fresh 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)
        Finished release [optimized] target(s) in 0.1 secs
    not 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"; contents equal and SystemTime { tv_sec: 1530839264, tv_nsec: 0 } <= SystemTime { tv_sec: 1530839264, tv_nsec: 0 }
              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 }
                < 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" } }
    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" "-v" "-v" "--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"
           Fresh getopts v0.2.17
           Fresh 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)
           Fresh 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 0.0 secs
    not 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"; contents equal and SystemTime { tv_sec: 1530839283, tv_nsec: 0 } <= SystemTime { tv_sec: 1530839284, tv_nsec: 0 }
            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 }
              < 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" } }
    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" "-v" "-v" "--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"
           Fresh libc v0.2.40
           Fresh cfg-if v0.1.2
           Fresh stable_deref_trait v1.0.0
           Fresh smallvec v0.6.0
           Fresh bitflags v1.0.1
           Fresh 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)
           Fresh scoped-tls v0.1.1
           Fresh cc v1.0.10
           Fresh unicode-width v0.1.4
           Fresh termcolor v0.3.6
           Fresh remove_dir_all v0.5.1
           Fresh rustc-demangle v0.1.7
           Fresh 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)
           Fresh 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)
           Fresh lazy_static v1.0.0
           Fresh byteorder v1.2.2
           Fresh rustc-serialize v0.3.24
           Fresh lazy_static v0.2.11
           Fresh 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)
           Fresh quick-error v1.2.1
           Fresh ar v0.3.1
           Fresh rand v0.4.2
           Fresh atty v0.2.8
           Fresh log v0.4.1
           Fresh owning_ref v0.3.3
           Fresh backtrace v0.3.6
           Fresh rls-span v0.4.0
           Fresh log_settings v0.1.1
           Fresh humantime v1.1.1
           Fresh parking_lot_core v0.2.14
           Fresh tempdir v0.3.7
           Fresh ena v0.9.2
           Fresh 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)
           Fresh jobserver v0.1.11
           Fresh rls-data v0.15.0
           Fresh env_logger v0.5.8
           Fresh parking_lot v0.5.5
           Fresh 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)
           Fresh 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)
           Fresh miniz-sys v0.1.10
           Fresh 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)
           Fresh flate2 v1.0.1
           Fresh 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)
           Fresh 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)
           Fresh 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)
           Fresh 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)
           Fresh 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)
           Fresh 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)
           Fresh 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)
           Fresh 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)
           Fresh 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)
           Fresh 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)
           Fresh 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)
           Fresh 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)
           Fresh 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)
           Fresh 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)
           Fresh 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)
           Fresh 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)
           Fresh 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)
           Fresh 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)
           Fresh 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)
           Fresh 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)
           Fresh 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)
           Fresh 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)
           Fresh 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 0.3 secs
    not 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"; contents equal and SystemTime { tv_sec: 1530840700, tv_nsec: 0 } <= SystemTime { tv_sec: 1530840702, tv_nsec: 0 }
          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 }
            < 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" "-v" "-v" "--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"
           Fresh libc v0.2.40
           Fresh smallvec v0.6.0
           Fresh stable_deref_trait v1.0.0
           Fresh cfg-if v0.1.2
           Fresh bitflags v1.0.1
           Fresh 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)
           Fresh unicode-width v0.1.4
           Fresh scoped-tls v0.1.1
           Fresh termcolor v0.3.6
           Fresh rustc-demangle v0.1.7
           Fresh remove_dir_all v0.5.1
           Fresh 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)
           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 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)
           Fresh byteorder v1.2.2
           Fresh lazy_static v0.2.11
           Fresh lazy_static v1.0.0
           Fresh quick-error v1.2.1
           Fresh ar v0.3.1
           Fresh cc v1.0.10
           Fresh 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)
           Fresh rand v0.4.2
           Fresh atty v0.2.8
           Fresh num_cpus v1.8.0
           Fresh owning_ref v0.3.3
           Fresh log v0.4.1
           Fresh backtrace v0.3.6
           Fresh log_settings v0.1.1
           Fresh humantime v1.1.1
           Fresh parking_lot_core v0.2.14
           Fresh tempdir v0.3.7
           Fresh 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)
           Fresh ena v0.9.2
           Fresh jobserver v0.1.11
           Fresh env_logger v0.5.8
           Fresh parking_lot v0.5.5
           Fresh 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)
           Fresh 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)
           Fresh miniz-sys v0.1.10
           Fresh 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)
           Fresh 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)
           Fresh flate2 v1.0.1
           Fresh 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)
           Fresh 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)
           Fresh 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)
           Fresh 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)
           Fresh 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)
           Fresh 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)
           Fresh 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)
           Fresh 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)
           Fresh 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)
           Fresh 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)
           Fresh 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)
        Finished release [optimized] target(s) in 0.2 secs
    not 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"; contents equal and SystemTime { tv_sec: 1530840855, tv_nsec: 0 } <= SystemTime { tv_sec: 1530840859, tv_nsec: 0 }
        < 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" } }
            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" "-v" "-v" "--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"
           Fresh 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)
         Running `/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`
           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 cmake v0.1.30
    rustc command: "/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/build/x86_64-apple-darwin/stage1/bin/rustc" "--crate-name" "core" "libcore/lib.rs" "--crate-type" "lib" "--emit=dep-info,link" "-C" "opt-level=3" "-C" "metadata=d6fce06e1bd3d804-rustc" "-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" "--cfg" "stage1" "--sysroot" "/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/build/x86_64-apple-darwin/stage1" "-Cprefer-dynamic" "-Clinker=/opt/local/bin/clang-mp-6.0" "-Cdebuginfo=1" "-C" "debug-assertions=n" "-Zsave-analysis" "-Z" "osx-rpath-install-name" "-C" "link-args=-Wl,-rpath,@loader_path/../lib" "-Z" "force-unstable-if-unmarked" "-Dwarnings"
    sysroot: "/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/build/x86_64-apple-darwin/stage1"
    libdir: "/opt/local/var/macports/build/_opt_macports_lang_rust/rust/work/rustc-1.27.0-src-x86_64/build/x86_64-apple-darwin/stage1/lib"
    
    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" "-v" "-v" "--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
    stack backtrace:
       0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
                 at libstd/sys/unix/backtrace/tracing/gcc_s.rs:49
       1: std::sys_common::backtrace::print
                 at libstd/sys_common/backtrace.rs:71
                 at libstd/sys_common/backtrace.rs:59
       2: std::panicking::default_hook::{{closure}}
                 at libstd/panicking.rs:207
       3: std::panicking::default_hook
                 at libstd/panicking.rs:223
       4: std::panicking::begin_panic
                 at libstd/panicking.rs:402
       5: std::panicking::begin_panic
                 at /Users/travis/build/rust-lang/rust/src/libstd/panicking.rs:365
       6: bootstrap::compile::run_cargo
                 at bootstrap/compile.rs:1091
       7: bootstrap::sanity::check::{{closure}}
                 at bootstrap/compile.rs:109
       8: bootstrap::builder::Builder::ensure
                 at bootstrap/builder.rs:908
       9: bootstrap::compile::copy_apple_sanitizer_dylibs
                 at bootstrap/compile.rs:354
      10: bootstrap::builder::Builder::ensure
                 at bootstrap/builder.rs:908
      11: bootstrap::compile::test_cargo
                 at bootstrap/compile.rs:470
      12: bootstrap::builder::Builder::ensure
                 at bootstrap/builder.rs:908
      13: bootstrap::compile::compiler_file
                 at bootstrap/compile.rs:929
      14: bootstrap::builder::Builder::ensure
                 at bootstrap/builder.rs:908
      15: bootstrap::builder::Builder::run_step_descriptions
                 at bootstrap/builder.rs:435
      16: bootstrap::sanity::check::{{closure}}
                 at bootstrap/compile.rs:57
      17: bootstrap::builder::StepDescription::maybe_run
                 at bootstrap/builder.rs:178
      18: bootstrap::builder::StepDescription::run
                 at bootstrap/builder.rs:198
      19: bootstrap::builder::Builder::run_step_descriptions
                 at bootstrap/builder.rs:427
      20: bootstrap::builder::Builder::get_step_descriptions
                 at bootstrap/builder.rs:417
      21: bootstrap::Crate::local_path
                 at bootstrap/lib.rs:435
      22: bootstrap::main
                 at bootstrap/bin/main.rs:29
      23: std::rt::lang_start::{{closure}}
                 at /Users/travis/build/rust-lang/rust/src/libstd/rt.rs:74
      24: std::panicking::try::do_call
                 at libstd/rt.rs:59
                 at libstd/panicking.rs:306
      25: panic_unwind::dwarf::eh::read_encoded_pointer
                 at libpanic_unwind/lib.rs:102
      26: <std::io::Write::write_fmt::Adaptor<'a, T> as core::fmt::Write>::write_str
                 at libstd/panicking.rs:285
                 at libstd/panic.rs:361
                 at libstd/rt.rs:58
      27: std::rt::lang_start
                 at /Users/travis/build/rust-lang/rust/src/libstd/rt.rs:74
      28: bootstrap::main
    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 -vvv -j2
    make: *** [all] Error 1
    Command failed:  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"
    Exit code: 2
    


    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 cargo being unable to handle the rustc failure (SIGABRT).

  5. STA-WSYNC commented on Jul 6, 2018

    @STA-WSYNC
    Author
  6. Ionic commented on Jul 6, 2018

    @Ionic

    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.

  7. Ionic commented on Jul 6, 2018

    @Ionic

    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.

  8. STA-WSYNC commented on Jul 6, 2018

    @STA-WSYNC
    Author
  9. Ionic commented on Jul 6, 2018

    @Ionic

    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.

  10. STA-WSYNC commented on Jul 6, 2018

    @STA-WSYNC
    Author
  11. Ionic commented on Jul 12, 2018

    @Ionic

    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

    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 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?

  12. STA-WSYNC commented on Jul 12, 2018

    @STA-WSYNC
    Author
  13. pkgw commented on Oct 17, 2018

    @pkgw
    Contributor

    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.

  14. pkgw commented on Oct 17, 2018

    @pkgw
    Contributor

    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.

  15. pkgw commented on Oct 17, 2018

    @pkgw
    Contributor

    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 ulimit in your shell to explicitly set your stack size to 8 MB. In the current rustc code, it tries to resize the main thread stack only when (1) the current stack size is less than 16 MB and (2) the maximum allowed stack size is at least 16 MB. If (1) holds but not (2), it will run the compiler in a new thread.

    Running ulimit sets both the current and the maximum allowed stack sizes to (here) 8 MB, so that the resize logic doesn't fire. Instead, it will spawn a thread, which avoids the problem.

  16. Ionic commented on Oct 17, 2018

    @Ionic

    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.

  17. carbonturtle commented on Dec 2, 2018

    @carbonturtle

    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:
    ulimit -Hs 8192; sudo port upgrade rust

  18. added
    O-macosOperating system: macOS
    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
    on Jan 27, 2019
  19. Ionic commented on Apr 20, 2019

    @Ionic

    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.

  20. pnkfelix commented on Sep 23, 2019

    @pnkfelix
    Contributor

    Closing based on report that going back to running in spawned thread by default (PR #56813) fixed this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    O-macosOperating system: macOST-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions