Change:
Causing our builds to fail. I have no idea why ;_;
According to https://travis- We have 30GB of disk space 23 of which is available on the start of a build: ` At the end of the build, the dir is 23 GB: And such, we're filling up.
cc
According to https://travis- we start out with 5/30GB taken up
Word from travis is that we can't increase disk size right now.
According to the run-pass output directory is 17GB
"Hello world" for musl is 3.5 MB. With 2.8k tests and three separate targets being tested, that's ~30GB. That's where the space is going.
1MB of that 3.5 is debuginfo

Discussion:
- env: IMAGE=arm-android - env: IMAGE=armhf-gnu - env: IMAGE=cross DEPLOY=1 <del> - env: IMAGE=linux-tested-targets DEPLOY=1 </del> - env: IMAGE=dist-android DEPLOY=1 - env: IMAGE=dist-arm-linux DEPLOY=1 - env: IMAGE=dist-armv7-aarch64-linux DEPLOY=1 - env: IMAGE=dist-freebsd DEPLOY=1 <ins> - env: IMAGE=dist-i586-gnu-i686-musl DEPLOY=1 </ins> - env: IMAGE=dist-mips-linux DEPLOY=1 - env: IMAGE=dist-mips64-linux DEPLOY=1 - env: IMAGE=dist-powerpc-linux DEPLOY=1 - env: IMAGE=dist-powerpc64-linux DEPLOY=1 - env: IMAGE=dist-s390x-linux-netbsd DEPLOY=1 - env: IMAGE=dist-x86-linux DEPLOY=1 <ins> - env: IMAGE=dist-x86_64-musl DEPLOY=1 </ins> - env: IMAGE=emscripten - env: IMAGE=i686-gnu - env: IMAGE=i686-gnu-nopt

<ins> FROM ubuntu:16.04 RUN apt-get update && apt-get install -y --no-install-recommends  g++-multilib  make  file  curl  ca-certificates  python2.7  git  cmake  xz-utils  sudo  gdb  patch  libssl-dev  pkg-config WORKDIR /build/ COPY musl-libunwind-patch.patch build-musl.sh /build/ RUN sh /build/build-musl.sh && rm -rf /build RUN curl -OL https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64.deb &&  dpkg -i dumb-init_*.deb &&  rm dumb-init_*.deb ENTRYPOINT ["/usr/bin/dumb-init", "--"] RUN curl -o /usr/local/bin/sccache  https://s3.amazonaws.com/rust-lang-ci/rust-ci-mirror/2017-02-25-sccache-x86_64-unknown-linux-musl &&  chmod +x /usr/local/bin/sccache ENV RUST_CONFIGURE_ARGS  --target=i686-unknown-linux-musl,i586-unknown-linux-gnu  --musl-root-i686=/musl-i686 # Newer binutils broke things on some vms/distros (i.e., linking against # unknown relocs disabled by the following flag), so we need to go out of our # way to produce "super compatible" binaries. # # See: https://github.com/rust-lang/rust/issues/34978 ENV CFLAGS_i686_unknown_linux_musl=-Wa,-mrelax-relocations=no ENV SCRIPT  python2.7 ../x.py test  --target i686-unknown-linux-musl  --target i586-unknown-linux-gnu  &&  python2.7 ../x.py dist  --target i686-unknown-linux-musl  --target i586-unknown-linux-gnu </ins>

<ins> #!/bin/sh # Copyright 2016 The Rust Project Developers. See the COPYRIGHT # file at the top-level directory of this distribution and at # http://rust-lang.org/COPYRIGHT. # # Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or # http://www.apache.org/licenses/LICENSE-2.0> or the MIT license # <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your # option. This file may not be copied, modified, or distributed # except according to those terms. set -ex # We need to mitigate rust-lang/rust#34978 when compiling musl itself as well export CFLAGS="-fPIC -Wa,-mrelax-relocations=no" export CXXFLAGS="-Wa,-mrelax-relocations=no" MUSL=musl-1.1.14 curl https://www.musl-libc.org/releases/$MUSL.tar.gz | tar xzf - cd $MUSL CFLAGS="$CFLAGS -m32" ./configure --prefix=/musl-i686 --disable-shared --target=i686 make -j10 make install cd .. # To build MUSL we're going to need a libunwind lying around, so acquire that # here and build it. curl -L https://github.com/llvm-mirror/llvm/archive/release_37.tar.gz | tar xzf - curl -L https://github.com/llvm-mirror/libunwind/archive/release_37.tar.gz | tar xzf - # Whoa what's this mysterious patch we're applying to libunwind! Why are we # swapping the values of ESP/EBP in libunwind?! # # Discovered in #35599 it turns out that the vanilla build of libunwind is not # suitable for unwinding 32-bit musl. After some investigation it ended up # looking like the register values for ESP/EBP were indeed incorrect (swapped) # in the source. Similar commits in libunwind (r280099 and r282589) have noticed # this for other platforms, and we just need to realize it for musl linux as # well. # # More technical info can be found at #35599 cd libunwind-release_37 patch -Np1 < /build/musl-libunwind-patch.patch cd .. mkdir libunwind-build cd libunwind-build CFLAGS="$CFLAGS -m32" CXXFLAGS="$CXXFLAGS -m32" cmake ../libunwind-release_37  -DLLVM_PATH=/build/llvm-release_37  -DLIBUNWIND_ENABLE_SHARED=0 make -j10 cp lib/libunwind.a /musl-i686/lib </ins>

<ins> diff --git a/include/libunwind.h b/include/libunwind.h index c5b9633..1360eb2 100644 --- a/include/libunwind.h +++ b/include/libunwind.h @@ -151,8 +151,8 @@ enum { UNW_X86_ECX = 1, UNW_X86_EDX = 2, UNW_X86_EBX = 3, -  UNW_X86_EBP = 4, -  UNW_X86_ESP = 5, +  UNW_X86_ESP = 4, +  UNW_X86_EBP = 5, UNW_X86_ESI = 6, UNW_X86_EDI = 7 }; </ins>

<ins> FROM ubuntu:16.04 RUN apt-get update && apt-get install -y --no-install-recommends  g++  make  file  curl  ca-certificates  python2.7  git  cmake  xz-utils  sudo  gdb  patch  libssl-dev  pkg-config WORKDIR /build/ COPY build-musl.sh /build/ RUN sh /build/build-musl.sh && rm -rf /build RUN curl -OL https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64.deb &&  dpkg -i dumb-init_*.deb &&  rm dumb-init_*.deb ENTRYPOINT ["/usr/bin/dumb-init", "--"] RUN curl -o /usr/local/bin/sccache  https://s3.amazonaws.com/rust-lang-ci/rust-ci-mirror/2017-02-25-sccache-x86_64-unknown-linux-musl &&  chmod +x /usr/local/bin/sccache ENV RUST_CONFIGURE_ARGS  --target=x86_64-unknown-linux-musl  --musl-root-x86_64=/musl-x86_64 # Newer binutils broke things on some vms/distros (i.e., linking against # unknown relocs disabled by the following flag), so we need to go out of our # way to produce "super compatible" binaries. # # See: https://github.com/rust-lang/rust/issues/34978 ENV CFLAGS_x86_64_unknown_linux_musl=-Wa,-mrelax-relocations=no ENV SCRIPT  python2.7 ../x.py test --target x86_64-unknown-linux-musl &&  python2.7 ../x.py dist --target x86_64-unknown-linux-musl </ins>

<ins> #!/bin/sh # Copyright 2016 The Rust Project Developers. See the COPYRIGHT # file at the top-level directory of this distribution and at # http://rust-lang.org/COPYRIGHT. # # Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or # http://www.apache.org/licenses/LICENSE-2.0> or the MIT license # <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your # option. This file may not be copied, modified, or distributed # except according to those terms. set -ex # We need to mitigate rust-lang/rust#34978 when compiling musl itself as well export CFLAGS="-fPIC -Wa,-mrelax-relocations=no" export CXXFLAGS="-Wa,-mrelax-relocations=no" MUSL=musl-1.1.14 curl https://www.musl-libc.org/releases/$MUSL.tar.gz | tar xzf - cd $MUSL ./configure --prefix=/musl-x86_64 --disable-shared make -j10 make install cd .. rm -rf $MUSL # To build MUSL we're going to need a libunwind lying around, so acquire that # here and build it. curl -L https://github.com/llvm-mirror/llvm/archive/release_37.tar.gz | tar xzf - curl -L https://github.com/llvm-mirror/libunwind/archive/release_37.tar.gz | tar xzf - mkdir libunwind-build cd libunwind-build cmake ../libunwind-release_37 -DLLVM_PATH=/build/llvm-release_37  -DLIBUNWIND_ENABLE_SHARED=0 make -j10 cp lib/libunwind.a /musl-x86_64/lib </ins>

<del> FROM ubuntu:16.04 RUN apt-get update && apt-get install -y --no-install-recommends  g++-multilib  make  file  curl  ca-certificates  python2.7  git  cmake  xz-utils  sudo  gdb  patch  libssl-dev  pkg-config WORKDIR /build/ COPY musl-libunwind-patch.patch build-musl.sh /build/ RUN sh /build/build-musl.sh && rm -rf /build RUN curl -OL https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64.deb &&  dpkg -i dumb-init_*.deb &&  rm dumb-init_*.deb ENTRYPOINT ["/usr/bin/dumb-init", "--"] RUN curl -o /usr/local/bin/sccache  https://s3.amazonaws.com/rust-lang-ci/rust-ci-mirror/2017-02-25-sccache-x86_64-unknown-linux-musl &&  chmod +x /usr/local/bin/sccache ENV RUST_CONFIGURE_ARGS  --target=x86_64-unknown-linux-musl,i686-unknown-linux-musl,i586-unknown-linux-gnu  --musl-root-x86_64=/musl-x86_64  --musl-root-i686=/musl-i686 # Newer binutils broke things on some vms/distros (i.e., linking against # unknown relocs disabled by the following flag), so we need to go out of our # way to produce "super compatible" binaries. # # See: https://github.com/rust-lang/rust/issues/34978 ENV CFLAGS_i686_unknown_linux_musl=-Wa,-mrelax-relocations=no  CFLAGS_x86_64_unknown_linux_musl=-Wa,-mrelax-relocations=no ENV SCRIPT  python2.7 ../x.py test  --target x86_64-unknown-linux-musl  --target i686-unknown-linux-musl  --target i586-unknown-linux-gnu  &&  python2.7 ../x.py dist  --target x86_64-unknown-linux-musl  --target i686-unknown-linux-musl  --target i586-unknown-linux-gnu </del>

<del> #!/bin/sh # Copyright 2016 The Rust Project Developers. See the COPYRIGHT # file at the top-level directory of this distribution and at # http://rust-lang.org/COPYRIGHT. # # Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or # http://www.apache.org/licenses/LICENSE-2.0> or the MIT license # <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your # option. This file may not be copied, modified, or distributed # except according to those terms. set -ex # We need to mitigate rust-lang/rust#34978 when compiling musl itself as well export CFLAGS="-fPIC -Wa,-mrelax-relocations=no" export CXXFLAGS="-Wa,-mrelax-relocations=no" MUSL=musl-1.1.14 curl https://www.musl-libc.org/releases/$MUSL.tar.gz | tar xzf - cd $MUSL ./configure --prefix=/musl-x86_64 --disable-shared make -j10 make install make clean # for i686 CFLAGS="$CFLAGS -m32" ./configure --prefix=/musl-i686 --disable-shared --target=i686 make -j10 make install cd .. # To build MUSL we're going to need a libunwind lying around, so acquire that # here and build it. curl -L https://github.com/llvm-mirror/llvm/archive/release_37.tar.gz | tar xzf - curl -L https://github.com/llvm-mirror/libunwind/archive/release_37.tar.gz | tar xzf - # Whoa what's this mysterious patch we're applying to libunwind! Why are we # swapping the values of ESP/EBP in libunwind?! # # Discovered in #35599 it turns out that the vanilla build of libunwind is not # suitable for unwinding 32-bit musl. After some investigation it ended up # looking like the register values for ESP/EBP were indeed incorrect (swapped) # in the source. Similar commits in libunwind (r280099 and r282589) have noticed # this for other platforms, and we just need to realize it for musl linux as # well. # # More technical info can be found at #35599 cd libunwind-release_37 patch -Np1 < /build/musl-libunwind-patch.patch cd .. mkdir libunwind-build cd libunwind-build cmake ../libunwind-release_37 -DLLVM_PATH=/build/llvm-release_37  -DLIBUNWIND_ENABLE_SHARED=0 make -j10 cp lib/libunwind.a /musl-x86_64/lib # (Note: the next cmake call doesn't fully override the previous cached one, so remove the cached # configuration manually. IOW, if don't do this or call make clean we'll end up building libunwind # for x86_64 again) rm -rf * # for i686 CFLAGS="$CFLAGS -m32" CXXFLAGS="$CXXFLAGS -m32" cmake ../libunwind-release_37  -DLLVM_PATH=/build/llvm-release_37  -DLIBUNWIND_ENABLE_SHARED=0 make -j10 cp lib/libunwind.a /musl-i686/lib </del>

<del> diff --git a/include/libunwind.h b/include/libunwind.h index c5b9633..1360eb2 100644 --- a/include/libunwind.h +++ b/include/libunwind.h @@ -151,8 +151,8 @@ enum { UNW_X86_ECX = 1, UNW_X86_EDX = 2, UNW_X86_EBX = 3, -  UNW_X86_EBP = 4, -  UNW_X86_ESP = 5, +  UNW_X86_ESP = 4, +  UNW_X86_EBP = 5, UNW_X86_ESI = 6, UNW_X86_EDI = 7 }; </del>