- "add_to_path": []
  "builds":
    "default":
      "build_dependencies":
      - |-
        host-cxx-toolchain
      - |-
        glibc
      "configure": |
        mkdir -p "$BUILD_DIR"

        extract.sh --into "$BUILD_DIR" "https://downloads.sourceforge.net/project/boost/boost/1.72.0/boost_1_72_0.tar.bz2"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/boost-1.63.0-icl-disable-LessThanComparableConcept.patch" "$BUILD_DIR"
        cd "$BUILD_DIR" && ./bootstrap.sh --prefix="$ORCHESTRA_ROOT" --with-libraries=test
      "dependencies":
      - |-
        host-libcxx
      - |-
        libunwind
      "install": |+
        cd "$BUILD_DIR"

        ./b2 \
          --prefix="${DESTDIR}${ORCHESTRA_ROOT}" \
          --ignore-site-config toolset='clang'

        ./b2 \
          --prefix="${DESTDIR}${ORCHESTRA_ROOT}" \
          --ignore-site-config toolset='clang' \
          install

      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    default
  "license": |-
    LICENSE_1_0.txt
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path": []
  "builds":
    "default":
      "build_dependencies":
      - |-
        cmake
      - |-
        clang-vanilla
      "configure": |+
        extract.sh --into "$BUILD_DIR/source" "https://github.com/revng/llvm-project/archive/8419a8a.tar.gz"

        SUPPORT_UNITTESTS="$BUILD_DIR/source/llvm/unittests/Support"
        rm "$SUPPORT_UNITTESTS/JSONTest.cpp"
        rm "$SUPPORT_UNITTESTS/DJBTest.cpp"
        grep -vE 'JSONTest.cpp|DJBTest.cpp' "$SUPPORT_UNITTESTS/CMakeLists.txt" > "$SUPPORT_UNITTESTS/CMakeLists.txt.tmp"
        mv "$SUPPORT_UNITTESTS/CMakeLists.txt.tmp" "$SUPPORT_UNITTESTS/CMakeLists.txt"

        sed -i 's|GIT_FOUND|FALSE|g' "$BUILD_DIR/source/llvm/cmake/modules/VersionFromVCS.cmake"
        export PATH="$ORCHESTRA_ROOT/clang-vanilla/wrapped-bin:$ORCHESTRA_ROOT/clang-vanilla/bin:$PATH"
        export HARD_FLAGS_CXX_CLANG=""
        mkdir -p "$BUILD_DIR"
        cd "$BUILD_DIR";
        cmake \
          -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
          -DCMAKE_INSTALL_SO_NO_EXE=0 \
          -DCMAKE_INSTALL_PREFIX="$ORCHESTRA_ROOT" \
          -DCMAKE_PREFIX_PATH="$ORCHESTRA_ROOT" \
          "$BUILD_DIR/source/llvm" \
          -GNinja \
          -DCMAKE_BUILD_RPATH="\$ORIGIN/../lib:$ORCHESTRA_ROOT/lib" \
          -DCMAKE_INSTALL_RPATH="$RPATH_PLACEHOLDER/lib" \
          -DCMAKE_BUILD_TYPE="Release" \
          -DCMAKE_EXE_LINKER_FLAGS="-w" \
          -DCMAKE_SHARED_LINKER_FLAGS="-w" \
          -DCMAKE_MODULE_LINKER_FLAGS="-w" \
          -DCMAKE_C_FLAGS="-w" \
          -DCMAKE_CXX_FLAGS="-w" \
          -DLLVM_TARGETS_TO_BUILD="AArch64;AMDGPU;ARM;Mips;SystemZ;X86" \
          -DLLVM_INSTALL_UTILS=ON \
          -DLLVM_ENABLE_DUMP=ON \
          -DLLVM_ENABLE_TERMINFO=OFF \
          -DLIBCXX_ENABLE_ABI_LINKER_SCRIPT=OFF \
          -DCMAKE_CXX_STANDARD=20 \
          -DLLVM_ENABLE_Z3_SOLVER=OFF \
          -DLLVM_INCLUDE_GO_TESTS=OFF \
          -DLLVM_ENABLE_ZLIB=ON \
          -DLLVM_ENABLE_PROJECTS="clang;compiler-rt;libcxxabi;libcxx;clang-tools-extra;lld" \
          -DBUILD_SHARED_LIBS=OFF \
          -DLLVM_ENABLE_LTO=Thin \
          -DLLVM_USE_LINKER=lld \
          -DLLVM_BUILD_INSTRUMENTED=IR \
          -DLLVM_BUILD_RUNTIME=No \
          -DCMAKE_AR=$ORCHESTRA_ROOT/clang-vanilla/bin/llvm-ar \
          -DCMAKE_RANLIB=$ORCHESTRA_ROOT/clang-vanilla/bin/llvm-ranlib \
          -DCMAKE_C_COMPILER=$ORCHESTRA_ROOT/clang-vanilla/wrapped-bin/clang \
          -DCMAKE_CXX_COMPILER=$ORCHESTRA_ROOT/clang-vanilla/wrapped-bin/clang++ \
          -DLIBCXXABI_HAS_CXA_THREAD_ATEXIT_IMPL=0 \
          -DLLVM_TARGETS_TO_BUILD=X86 \
          -Wno-dev

      "dependencies":
      - |-
        gcc-host-toolchain
      - |-
        libunwind
      - |-
        zlib
      - |-
        ncurses
      "install": |+
        export PATH="$ORCHESTRA_ROOT/clang-vanilla/wrapped-bin:$ORCHESTRA_ROOT/clang-vanilla/bin:$PATH"
        export HARD_FLAGS_CXX_CLANG=""
        cd "$BUILD_DIR"

        ninja ${JOBS:+-j$JOBS} clang
        ninja ${JOBS:+-j$JOBS} check-llvm || true
        ninja ${JOBS:+-j$JOBS} check-clang || true

        rm -rf build-for-profiling
        mkdir build-for-profiling
        cd build-for-profiling
        cmake \
          "$BUILD_DIR/source/llvm" \
          -GNinja \
          -DCMAKE_C_COMPILER="$BUILD_DIR/bin/clang" \
          -DCMAKE_CXX_COMPILER="$BUILD_DIR/bin/clang++" \
          -DLLVM_ENABLE_TERMINFO=OFF \
          -DCMAKE_CXX_STANDARD=20 \
          -DLLVM_ENABLE_Z3_SOLVER=OFF \
          -DLLVM_INCLUDE_GO_TESTS=OFF \
          -DLLVM_TARGETS_TO_BUILD=X86 \
          -DCMAKE_BUILD_TYPE=RelWithDebInfo
        ninja ${JOBS:+-j$JOBS}

        PROFDATA_DIR="${DESTDIR}${ORCHESTRA_ROOT}/share/profdata"
        mkdir -p "$PROFDATA_DIR"
        llvm-profdata merge -output="$PROFDATA_DIR/clang-release.prof" $BUILD_DIR/profiles/*.profraw

      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    default
  "license": |-
    source/llvm/LICENSE.TXT
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path": []
  "builds":
    "default":
      "build_dependencies":
      - |-
        cmake
      - |-
        clang-vanilla
      - |-
        clang-profiling-data
      "configure": |+
        extract.sh --into "$BUILD_DIR/source" "https://github.com/revng/llvm-project/archive/8419a8a.tar.gz"

        # compiler-rt tests fail abundantly (in the CI only)
        find "$BUILD_DIR/source/compiler-rt/test" -name "lit.*" -type f | while read FILE; do
          echo > "$FILE"
        done

        sed -i 's|GIT_FOUND|FALSE|g' "$BUILD_DIR/source/llvm/cmake/modules/VersionFromVCS.cmake"

        export PATH="$ORCHESTRA_ROOT/clang-vanilla/wrapped-bin:$ORCHESTRA_ROOT/clang-vanilla/bin:$PATH"

        export HARD_FLAGS_CXX_CLANG=""
        mkdir -p "$BUILD_DIR"
        cd "$BUILD_DIR";
        cmake \
          -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
          -DCMAKE_INSTALL_SO_NO_EXE=0 \
          -DCMAKE_INSTALL_PREFIX="$ORCHESTRA_ROOT" \
          -DCMAKE_PREFIX_PATH="$ORCHESTRA_ROOT" \
          "$BUILD_DIR/source/llvm" \
          -GNinja \
          -DCMAKE_BUILD_RPATH="\$ORIGIN/../lib:$ORCHESTRA_ROOT/lib" \
          -DCMAKE_INSTALL_RPATH="$RPATH_PLACEHOLDER/lib" \
          -DCMAKE_BUILD_TYPE="Release" \
          -DCMAKE_EXE_LINKER_FLAGS="-w" \
          -DCMAKE_SHARED_LINKER_FLAGS="-w" \
          -DCMAKE_MODULE_LINKER_FLAGS="-w" \
          -DCMAKE_C_FLAGS="-w" \
          -DCMAKE_CXX_FLAGS="-w" \
          -DLLVM_TARGETS_TO_BUILD="AArch64;AMDGPU;ARM;Mips;SystemZ;X86" \
          -DLLVM_INSTALL_UTILS=ON \
          -DLLVM_ENABLE_DUMP=ON \
          -DLLVM_ENABLE_TERMINFO=OFF \
          -DLIBCXX_ENABLE_ABI_LINKER_SCRIPT=OFF \
          -DCMAKE_CXX_STANDARD=20 \
          -DLLVM_ENABLE_Z3_SOLVER=OFF \
          -DLLVM_INCLUDE_GO_TESTS=OFF \
          -DLLVM_ENABLE_ZLIB=ON \
          -DLLVM_ENABLE_PROJECTS="clang;compiler-rt;libcxxabi;libcxx;clang-tools-extra;lld" \
          -DBUILD_SHARED_LIBS=ON \
          -DLIBCXXABI_HAS_CXA_THREAD_ATEXIT_IMPL=0 \
          -DCMAKE_INSTALL_PREFIX="$ORCHESTRA_ROOT/lib/llvm/clang-release" \
          -DCMAKE_INSTALL_RPATH="$RPATH_PLACEHOLDER/lib/llvm/clang-release/lib:$RPATH_PLACEHOLDER/lib" \
          -DLLVM_ENABLE_LTO=Thin \
          -DLLVM_USE_LINKER=lld \
          -DCMAKE_AR=$ORCHESTRA_ROOT/clang-vanilla/bin/llvm-ar \
          -DCMAKE_RANLIB=$ORCHESTRA_ROOT/clang-vanilla/bin/llvm-ranlib \
          -DCMAKE_C_COMPILER=$ORCHESTRA_ROOT/clang-vanilla/wrapped-bin/clang \
          -DCMAKE_CXX_COMPILER=$ORCHESTRA_ROOT/clang-vanilla/wrapped-bin/clang++ \
          -DLLVM_PROFDATA_FILE="$ORCHESTRA_ROOT/share/profdata/clang-release.prof" \
          -Wno-dev

      "dependencies":
      - |-
        gcc-host-toolchain
      - |-
        libunwind
      - |-
        zlib
      - |-
        ncurses
      "install": |2+

        export PATH="$ORCHESTRA_ROOT/clang-vanilla/wrapped-bin:$ORCHESTRA_ROOT/clang-vanilla/bin:$PATH"

        export HARD_FLAGS_CXX_CLANG=""

        cd "$BUILD_DIR"

        # Build
        ninja ${JOBS:+-j$JOBS} install

        # Run tests
        export HARD_FLAGS_C_CLANG="-w"
        export HARD_FLAGS_CXX_CLANG="-w"
        if test "$RUN_TESTS" -eq 1; then
          ninja ${JOBS:+-j$JOBS} check-all
        fi

        # Fix libc++
        rm "${DESTDIR}${ORCHESTRA_ROOT}/lib/llvm/clang-release/lib/libc++.so" || true
        echo 'INPUT(libc++.so.1 -lc++abi -lpthread)' > "${DESTDIR}${ORCHESTRA_ROOT}/lib/llvm/clang-release/lib/libc++.so"

        # Symlink to /lib/llvm/clang-release/bin/* to /bin
        for EXECUTABLE in "${DESTDIR}${ORCHESTRA_ROOT}/lib/llvm/clang-release/bin/"*; do
          ln \
            -s $(
              realpath \
                --no-symlinks \
                --relative-to="${DESTDIR}${ORCHESTRA_ROOT}/bin" \
                "${EXECUTABLE}"
            ) \
            "${DESTDIR}${ORCHESTRA_ROOT}/bin"
        done

        # Symlink to /lib/llvm/clang-release/lib/libc++*.so* to /lib
        for LIBRARY in "${DESTDIR}${ORCHESTRA_ROOT}/lib/llvm/clang-release/lib/"libc++*.so*; do
          ln \
            -s $(
              realpath \
                --no-symlinks \
                --relative-to="${DESTDIR}${ORCHESTRA_ROOT}/lib" \
                "${LIBRARY}"
            ) \
            "${DESTDIR}${ORCHESTRA_ROOT}/lib"
        done

        # Leave `opt` and `llvm-config` to the `llvm` component
        rm -f "${DESTDIR}${ORCHESTRA_ROOT}/bin/opt"*
        rm -f "${DESTDIR}${ORCHESTRA_ROOT}/bin/llvm-config"*

        # Create wrappers
        mkdir -p "${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin"
        COMPILER_WRAPPER="${ORCHESTRA_DOTDIR}/support/hard-flags-compiler-wrapper.py"
        cd "${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin"
        cp -a "$COMPILER_WRAPPER" clang
        cp -a "$COMPILER_WRAPPER" clang++
        cp -a "$COMPILER_WRAPPER" clang-tidy

      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    default
  "license": |-
    source/llvm/LICENSE.TXT
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path": []
  "builds":
    "default":
      "build_dependencies":
      - |-
        cmake
      "configure": |+
        extract.sh --into "$BUILD_DIR/source" "https://github.com/revng/llvm-project/archive/8419a8a.tar.gz"
        sed -i 's|GIT_FOUND|FALSE|g' "$BUILD_DIR/source/llvm/cmake/modules/VersionFromVCS.cmake"
        mkdir -p "$BUILD_DIR"
        cd "$BUILD_DIR";
        cmake \
          -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
          -DCMAKE_INSTALL_SO_NO_EXE=0 \
          -DCMAKE_INSTALL_PREFIX="$ORCHESTRA_ROOT" \
          -DCMAKE_PREFIX_PATH="$ORCHESTRA_ROOT" \
          "$BUILD_DIR/source/llvm" \
          -GNinja \
          -DCMAKE_BUILD_RPATH="\$ORIGIN/../lib:$ORCHESTRA_ROOT/lib" \
          -DCMAKE_INSTALL_RPATH="$RPATH_PLACEHOLDER/lib" \
          -DCMAKE_BUILD_TYPE="Release" \
          -DCMAKE_EXE_LINKER_FLAGS="-w" \
          -DCMAKE_SHARED_LINKER_FLAGS="-w" \
          -DCMAKE_MODULE_LINKER_FLAGS="-w" \
          -DCMAKE_C_FLAGS="-w" \
          -DCMAKE_CXX_FLAGS="-w" \
          -DLLVM_TARGETS_TO_BUILD="AArch64;AMDGPU;ARM;Mips;SystemZ;X86" \
          -DLLVM_INSTALL_UTILS=ON \
          -DLLVM_ENABLE_DUMP=ON \
          -DLLVM_ENABLE_TERMINFO=OFF \
          -DLIBCXX_ENABLE_ABI_LINKER_SCRIPT=OFF \
          -DCMAKE_CXX_STANDARD=20 \
          -DLLVM_ENABLE_Z3_SOLVER=OFF \
          -DLLVM_INCLUDE_GO_TESTS=OFF \
          -DLLVM_ENABLE_ZLIB=ON \
          -DLLVM_ENABLE_PROJECTS="clang;lld;compiler-rt" \
          -DBUILD_SHARED_LIBS=OFF \
          -DCMAKE_INSTALL_PREFIX="$ORCHESTRA_ROOT/clang-vanilla" \
          -DLLVM_TARGETS_TO_BUILD="X86" \
          -Wno-dev

      "dependencies":
      - |-
        gcc-host-toolchain
      - |-
        libunwind
      - |-
        zlib
      - |-
        ncurses
      "install": |+
        cd "$BUILD_DIR"

        ninja ${JOBS:+-j$JOBS} install

        COMPILER_WRAPPER="${ORCHESTRA_DOTDIR}/support/hard-flags-compiler-wrapper.py"
        mkdir -p "${DESTDIR}${ORCHESTRA_ROOT}/clang-vanilla/wrapped-bin"
        cd "${DESTDIR}${ORCHESTRA_ROOT}/clang-vanilla/wrapped-bin"
        cp -a "$COMPILER_WRAPPER" clang
        cp -a "$COMPILER_WRAPPER" clang++
        cp -a "$COMPILER_WRAPPER" clang-tidy

      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    default
  "license": |-
    source/llvm/LICENSE.TXT
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path": []
  "builds":
    "default":
      "build_dependencies":
      - |-
        gcc-host-toolchain
      "configure": |
        mkdir -p "$BUILD_DIR"
        extract.sh --into "$BUILD_DIR" https://github.com/Kitware/CMake/releases/download/v3.22.2/cmake-3.22.2.tar.gz
        cd "$BUILD_DIR" && ./bootstrap \
          --prefix="$ORCHESTRA_ROOT" \
          --parallel=16 \
          LDFLAGS="-static-libstdc++ -static-libgcc" \
          -- -DCMAKE_BUILD_TYPE=Release \
          -DCMAKE_INSTALL_PREFIX="$ORCHESTRA_ROOT" \
          -DCMAKE_SHARED_LINKER_FLAGS="-static-libstdc++ -static-libgcc" \
          -DCMAKE_MODULE_LINKER_FLAGS="-static-libstdc++ -static-libgcc" \
          -DCMAKE_EXE_LINKER_FLAGS="-static-libstdc++ -static-libgcc" \
          -DCMAKE_USE_OPENSSL=OFF
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make ${JOBS:+-j$JOBS} install DESTDIR="$DESTDIR"
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    default
  "license": |-
    Licenses/README.rst
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path": []
  "builds":
    "default":
      "build_dependencies": []
      "configure": |-
        mkdir -p "$BUILD_DIR"
      "dependencies":
      - |-
        toolchain/host/gcc
      - |-
        toolchain/host/binutils
      "install": |-
        exit 0
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    default
  "license": !!null |-
    null
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path": []
  "builds":
    "default":
      "build_dependencies":
      - |-
        host-c-toolchain
      - |-
        glibc
      "configure": |
        mkdir -p "$BUILD_DIR/source"
        extract.sh --into "$BUILD_DIR/source" https://download.gnome.org/sources/glib/2.64/glib-2.64.5.tar.xz
        find "$BUILD_DIR/source/" -name meson.build -exec sed -i "s|install\s*:\s*|install_rpath : '$RPATH_PLACEHOLDER/lib', \0|" {} \;
        sed -i 's|^.*HAVE_LANGINFO_.*1.*$||' "$BUILD_DIR/source/meson.build"
        sed -i -e '/subdir.*tests/d' "$BUILD_DIR"/source/{.,gio,glib}/meson.build

        CC=clang \
        CXX=clang++ \
        meson setup \
          --buildtype plain \
          --libdir=lib \
          --prefix "$ORCHESTRA_ROOT" \
          --wrap-mode nodownload \
          -Ddefault_library=shared \
          -Dselinux=disabled \
          -Dxattr=false \
          -Dlibmount=disabled \
          -Dinternal_pcre=true \
          -Dman=false \
          -Ddtrace=false \
          -Dsystemtap=false \
          -Dgtk_doc=false \
          -Dfam=false \
          -Dinstalled_tests=false \
          -Dnls=disabled \
          "$BUILD_DIR" \
          "$BUILD_DIR/source"
      "dependencies":
      - |-
        libffi
      - |-
        zlib
      "install": |+
        cd "$BUILD_DIR"
        export LANG=
        ninja ${JOBS:+-j$JOBS}
        ninja ${JOBS:+-j$JOBS} install

      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    default
  "license": |-
    source/COPYING
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path": []
  "builds":
    "default":
      "build_dependencies": []
      "configure": |
        mkdir -p "$BUILD_DIR/source"
        extract.sh --into "$BUILD_DIR/source" https://ftp.gnu.org/gnu/glibc/glibc-2.13.tar.xz

        sed -i 's|test -n ".critic_missing"|false|g' "$BUILD_DIR/source/configure"
        sed -i 's|struct obstack ._obstack_compat|\0 = 0|g' "$BUILD_DIR/source/malloc/obstack.c"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/glibc-2.13-fix-isinf.patch" "$BUILD_DIR/source"

        # Create __libc_single_threaded symbol (required by recent libstdc++)
        echo 'char __libc_single_threaded;' >> "$BUILD_DIR/source/misc/error.c"
        sed -i \
          's/GLIBC_2.13/GLIBC_2.13\n  GLIBC_2.32/' \
          "$BUILD_DIR/source/Versions.def"
        sed -i \
          's/^}/  GLIBC_2.32 {\n    __libc_single_threaded;\n  }\n}/g' \
          "$BUILD_DIR/source/misc/Versions"

        cd $BUILD_DIR
        export CC="cc -no-pie -fuse-ld=bfd -Wl,-z,origin -Wl,--enable-new-dtags -Wl,-rpath,$RPATH_PLACEHOLDER/link-only/lib"
        ./source/configure \
          --disable-profile \
          --without-gd \
          --enable-crypt \
          --disable-static-pie \
          --disable-systemtap \
          --disable-nscd \
          --disable-timezone-tools \
          --enable-stack-protector=strong \
          --enable-stackguard-randomization \
          --disable-cet \
          --without-selinux \
          --without-cvs \
          --disable-werror \
          --enable-bind-now \
          --disable-sanity-checks \
          --prefix="$INSTALL_LINK_ONLY_PATH" \
          CFLAGS="-w -O2 -fno-stack-protector -DNDEBUG -march=core2 -U_FORTIFY_SOURCE"
      "dependencies": []
      "install": |+
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make ${JOBS:+-j$JOBS} install_root="$DESTDIR" install
        sed -i "s|$INSTALL_LINK_ONLY_PATH/lib/||g" \
          "$DESTDIR$INSTALL_LINK_ONLY_PATH/lib/libpthread.so" \
          "$DESTDIR$INSTALL_LINK_ONLY_PATH/lib/libc.so"
        ln -s . "$DESTDIR$INSTALL_LINK_ONLY_PATH/usr"
        rm -f "$DESTDIR$INSTALL_LINK_ONLY_PATH"/libexec/getconf/POSIX_V7_LP64_OFF64*
        rm -rf "$DESTDIR$INSTALL_LINK_ONLY_PATH"/bin
        cp -a "$DESTDIR$INSTALL_LINK_ONLY_PATH"/lib/*.o "$DESTDIR$ORCHESTRA_ROOT"/lib/

        # This file is needed because gcc fixinclude detects it when bootstrapping toolchains
        touch "$DESTDIR$INSTALL_LINK_ONLY_PATH/include/stdc-predef.h"

      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    default
  "license": |-
    source/COPYING
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path": []
  "builds":
    "default":
      "build_dependencies":
      - |-
        glibc
      "configure": |
        mkdir -p "$BUILD_DIR"
        extract.sh --into "$BUILD_DIR" "https://gmplib.org/download/gmp/gmp-6.1.2.tar.xz"
        cd "$BUILD_DIR" && ./configure \
          --prefix="$ORCHESTRA_ROOT" \
          --enable-shared=no \
          --enable-fat \
          CFLAGS="-fPIC" \
          CXXFLAGS="-fPIC" \
          LDFLAGS="-static-libgcc"
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make ${JOBS:+-j$JOBS} install DESTDIR="$DESTDIR"
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    default
  "license": |-
    COPYING
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path": []
  "builds":
    "default":
      "build_dependencies": []
      "configure": |-
        mkdir -p "$BUILD_DIR"
      "dependencies":
      - |-
        glibc
      - |-
        toolchain/host/binutils
      - |-
        clang-release
      "install": |-
        exit 0
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    default
  "license": !!null |-
    null
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path": []
  "builds":
    "default":
      "build_dependencies": []
      "configure": |-
        mkdir -p "$BUILD_DIR"
      "dependencies":
      - |-
        glibc
      - |-
        toolchain/host/binutils
      - |-
        clang-release
      "install": |-
        exit 0
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    default
  "license": !!null |-
    null
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path": []
  "builds":
    "default":
      "build_dependencies": []
      "configure": |-
        mkdir -p "$BUILD_DIR"
      "dependencies":
      - |-
        clang-release
      - |-
        toolchain/host/gcc
      "install": |-
        exit 0
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    default
  "license": !!null |-
    null
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path": []
  "builds":
    "default":
      "build_dependencies":
      - |-
        host-c-toolchain
      - |-
        glibc
      "configure": |
        mkdir -p "$BUILD_DIR"
        extract.sh --into "$BUILD_DIR" https://github.com/libffi/libffi/releases/download/v3.3/libffi-3.3.tar.gz

        cd "$BUILD_DIR"
        ./configure \
          --disable-multi-os-directory \
          --disable-static \
          --disable-pax_emutramp \
          --disable-debug \
          --prefix="$ORCHESTRA_ROOT"
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make ${JOBS:+-j$JOBS} install DESTDIR="$DESTDIR"
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    default
  "license": |-
    LICENSE
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path": []
  "builds":
    "default":
      "build_dependencies":
      - |-
        gcc-host-toolchain
      - |-
        glibc
      "configure": |
        mkdir -p "$BUILD_DIR"
        extract.sh --into "$BUILD_DIR" https://download.savannah.nongnu.org/releases/libunwind/libunwind-1.4.0.tar.gz
        cd "$BUILD_DIR"
        export CC="cc -fcommon"
        ./configure \
          --enable-cxx-exceptions \
          --disable-coredump \
          --disable-ptrace \
          --enable-setjmp \
          --disable-debug-frame \
          --disable-documentation \
          --disable-minidebuginfo \
          --disable-static \
          --disable-conservative_checks \
          --disable-debug \
          --prefix="$ORCHESTRA_ROOT"
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make ${JOBS:+-j$JOBS} install DESTDIR="$DESTDIR"
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    default
  "license": |-
    COPYING
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path": []
  "builds":
    "debug":
      "build_dependencies":
      - |-
        cmake
      - |-
        host-cxx-toolchain
      "configure": |
        mkdir -p "$BUILD_DIR"
        cd "$BUILD_DIR";
        cmake \
          -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
          -DCMAKE_INSTALL_SO_NO_EXE=0 \
          -DCMAKE_INSTALL_PREFIX="$ORCHESTRA_ROOT" \
          -DCMAKE_PREFIX_PATH="$ORCHESTRA_ROOT" \
          "$SOURCE_DIR/llvm" \
          -GNinja \
          -DCMAKE_BUILD_RPATH="\$ORIGIN/../lib:$ORCHESTRA_ROOT/lib" \
          -DCMAKE_INSTALL_RPATH="$RPATH_PLACEHOLDER/lib" \
          -DCMAKE_BUILD_TYPE="Debug" \
          -DCMAKE_EXE_LINKER_FLAGS="-ggdb3 -O0 " \
          -DCMAKE_SHARED_LINKER_FLAGS="-ggdb3 -O0 " \
          -DCMAKE_MODULE_LINKER_FLAGS="-ggdb3 -O0 " \
          -DCMAKE_C_FLAGS="-ggdb3 -O0 " \
          -DCMAKE_CXX_FLAGS="-ggdb3 -O0 " \
          -DLLVM_TARGETS_TO_BUILD="AArch64;AMDGPU;ARM;Mips;SystemZ;X86" \
          -DLLVM_INSTALL_UTILS=ON \
          -DLLVM_ENABLE_DUMP=ON \
          -DLLVM_ENABLE_TERMINFO=OFF \
          -DLIBCXX_ENABLE_ABI_LINKER_SCRIPT=OFF \
          -DCMAKE_CXX_STANDARD=20 \
          -DLLVM_ENABLE_Z3_SOLVER=OFF \
          -DLLVM_INCLUDE_GO_TESTS=OFF \
          -DLLVM_ENABLE_ZLIB=ON \
          -DBUILD_SHARED_LIBS=ON \
          -DLLVM_ENABLE_ZLIB=ON \
          -DLLVM_ENABLE_PROJECTS="clang;mlir" \
          -DCMAKE_C_COMPILER="$ORCHESTRA_ROOT/link-only/bin/clang" \
          -DCMAKE_CXX_COMPILER="$ORCHESTRA_ROOT/link-only/bin/clang++" \
          -DLLVM_ENABLE_OCAMLDOC=OFF \
          -Wno-dev
      "dependencies":
      - |-
        host-libcxx
      - |-
        libunwind
      - |-
        zlib
      - |-
        ncurses
      "install": |
        cd "$BUILD_DIR"
        ninja ${JOBS:+-j$JOBS} install

        if test "$RUN_TESTS" -eq 1; then
          ninja ${JOBS:+-j$JOBS} check-all
        fi

        # Keep only `opt`, `llvm-config` and mlir executables from `/bin`
        mkdir "${DESTDIR}${ORCHESTRA_ROOT}/bin-tmp"

        for EXECUTABLE_PREFIX in opt llvm-config mlir-; do
          mv \
            "${DESTDIR}${ORCHESTRA_ROOT}/bin/$EXECUTABLE_PREFIX"* \
            "${DESTDIR}${ORCHESTRA_ROOT}/bin-tmp"
        done

        rm -rf "${DESTDIR}${ORCHESTRA_ROOT}/bin"

        mv \
          "${DESTDIR}${ORCHESTRA_ROOT}/bin-tmp" \
          "${DESTDIR}${ORCHESTRA_ROOT}/bin"
      "ndebug": !!bool |-
        false
    "optimized":
      "build_dependencies":
      - |-
        cmake
      - |-
        host-cxx-toolchain
      "configure": |
        mkdir -p "$BUILD_DIR"
        cd "$BUILD_DIR";
        cmake \
          -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
          -DCMAKE_INSTALL_SO_NO_EXE=0 \
          -DCMAKE_INSTALL_PREFIX="$ORCHESTRA_ROOT" \
          -DCMAKE_PREFIX_PATH="$ORCHESTRA_ROOT" \
          "$SOURCE_DIR/llvm" \
          -GNinja \
          -DCMAKE_BUILD_RPATH="\$ORIGIN/../lib:$ORCHESTRA_ROOT/lib" \
          -DCMAKE_INSTALL_RPATH="$RPATH_PLACEHOLDER/lib" \
          -DCMAKE_BUILD_TYPE="Debug" \
          -DCMAKE_EXE_LINKER_FLAGS="-ggdb3 -O2 -fno-omit-frame-pointer " \
          -DCMAKE_SHARED_LINKER_FLAGS="-ggdb3 -O2 -fno-omit-frame-pointer " \
          -DCMAKE_MODULE_LINKER_FLAGS="-ggdb3 -O2 -fno-omit-frame-pointer " \
          -DCMAKE_C_FLAGS="-ggdb3 -O2 -fno-omit-frame-pointer " \
          -DCMAKE_CXX_FLAGS="-ggdb3 -O2 -fno-omit-frame-pointer " \
          -DLLVM_TARGETS_TO_BUILD="AArch64;AMDGPU;ARM;Mips;SystemZ;X86" \
          -DLLVM_INSTALL_UTILS=ON \
          -DLLVM_ENABLE_DUMP=ON \
          -DLLVM_ENABLE_TERMINFO=OFF \
          -DLIBCXX_ENABLE_ABI_LINKER_SCRIPT=OFF \
          -DCMAKE_CXX_STANDARD=20 \
          -DLLVM_ENABLE_Z3_SOLVER=OFF \
          -DLLVM_INCLUDE_GO_TESTS=OFF \
          -DLLVM_ENABLE_ZLIB=ON \
          -DBUILD_SHARED_LIBS=ON \
          -DLLVM_ENABLE_ZLIB=ON \
          -DLLVM_ENABLE_PROJECTS="clang;mlir" \
          -DCMAKE_C_COMPILER="$ORCHESTRA_ROOT/link-only/bin/clang" \
          -DCMAKE_CXX_COMPILER="$ORCHESTRA_ROOT/link-only/bin/clang++" \
          -DLLVM_ENABLE_OCAMLDOC=OFF \
          -Wno-dev
      "dependencies":
      - |-
        host-libcxx
      - |-
        libunwind
      - |-
        zlib
      - |-
        ncurses
      "install": |
        cd "$BUILD_DIR"
        ninja ${JOBS:+-j$JOBS} install

        if test "$RUN_TESTS" -eq 1; then
          ninja ${JOBS:+-j$JOBS} check-all
        fi

        # Keep only `opt`, `llvm-config` and mlir executables from `/bin`
        mkdir "${DESTDIR}${ORCHESTRA_ROOT}/bin-tmp"

        for EXECUTABLE_PREFIX in opt llvm-config mlir-; do
          mv \
            "${DESTDIR}${ORCHESTRA_ROOT}/bin/$EXECUTABLE_PREFIX"* \
            "${DESTDIR}${ORCHESTRA_ROOT}/bin-tmp"
        done

        rm -rf "${DESTDIR}${ORCHESTRA_ROOT}/bin"

        mv \
          "${DESTDIR}${ORCHESTRA_ROOT}/bin-tmp" \
          "${DESTDIR}${ORCHESTRA_ROOT}/bin"
      "ndebug": !!bool |-
        false
    "release":
      "build_dependencies":
      - |-
        cmake
      - |-
        host-cxx-toolchain
      "configure": |
        mkdir -p "$BUILD_DIR"
        cd "$BUILD_DIR";
        cmake \
          -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
          -DCMAKE_INSTALL_SO_NO_EXE=0 \
          -DCMAKE_INSTALL_PREFIX="$ORCHESTRA_ROOT" \
          -DCMAKE_PREFIX_PATH="$ORCHESTRA_ROOT" \
          "$SOURCE_DIR/llvm" \
          -GNinja \
          -DCMAKE_BUILD_RPATH="\$ORIGIN/../lib:$ORCHESTRA_ROOT/lib" \
          -DCMAKE_INSTALL_RPATH="$RPATH_PLACEHOLDER/lib" \
          -DCMAKE_BUILD_TYPE="Release" \
          -DCMAKE_EXE_LINKER_FLAGS="-ggdb3 -O2 " \
          -DCMAKE_SHARED_LINKER_FLAGS="-ggdb3 -O2 " \
          -DCMAKE_MODULE_LINKER_FLAGS="-ggdb3 -O2 " \
          -DCMAKE_C_FLAGS="-ggdb3 -O2 " \
          -DCMAKE_CXX_FLAGS="-ggdb3 -O2 " \
          -DLLVM_TARGETS_TO_BUILD="AArch64;AMDGPU;ARM;Mips;SystemZ;X86" \
          -DLLVM_INSTALL_UTILS=ON \
          -DLLVM_ENABLE_DUMP=ON \
          -DLLVM_ENABLE_TERMINFO=OFF \
          -DLIBCXX_ENABLE_ABI_LINKER_SCRIPT=OFF \
          -DCMAKE_CXX_STANDARD=20 \
          -DLLVM_ENABLE_Z3_SOLVER=OFF \
          -DLLVM_INCLUDE_GO_TESTS=OFF \
          -DLLVM_ENABLE_ZLIB=ON \
          -DBUILD_SHARED_LIBS=ON \
          -DLLVM_ENABLE_ZLIB=ON \
          -DLLVM_ENABLE_PROJECTS="clang;mlir" \
          -DCMAKE_C_COMPILER="$ORCHESTRA_ROOT/link-only/bin/clang" \
          -DCMAKE_CXX_COMPILER="$ORCHESTRA_ROOT/link-only/bin/clang++" \
          -DLLVM_ENABLE_OCAMLDOC=OFF \
          -Wno-dev
      "dependencies":
      - |-
        host-libcxx
      - |-
        libunwind
      - |-
        zlib
      - |-
        ncurses
      "install": |
        cd "$BUILD_DIR"
        ninja ${JOBS:+-j$JOBS} install

        if test "$RUN_TESTS" -eq 1; then
          ninja ${JOBS:+-j$JOBS} check-all
        fi

        # Keep only `opt`, `llvm-config` and mlir executables from `/bin`
        mkdir "${DESTDIR}${ORCHESTRA_ROOT}/bin-tmp"

        for EXECUTABLE_PREFIX in opt llvm-config mlir-; do
          mv \
            "${DESTDIR}${ORCHESTRA_ROOT}/bin/$EXECUTABLE_PREFIX"* \
            "${DESTDIR}${ORCHESTRA_ROOT}/bin-tmp"
        done

        rm -rf "${DESTDIR}${ORCHESTRA_ROOT}/bin"

        mv \
          "${DESTDIR}${ORCHESTRA_ROOT}/bin-tmp" \
          "${DESTDIR}${ORCHESTRA_ROOT}/bin"
      "ndebug": !!bool |-
        true
  "commit": |-
    f085c9fcd53e1f8b293b821edd16725c1938c4e9
  "default_build": |-
    optimized
  "license": |-
    llvm/LICENSE.TXT
  "repository": |-
    llvm-project
  "skip_post_install": !!bool |-
    false
- "add_to_path": []
  "builds":
    "default":
      "build_dependencies":
      - |-
        glibc
      "configure": |
        mkdir -p "$BUILD_DIR"
        extract.sh --into "$BUILD_DIR" https://ftp.gnu.org/gnu/mpc//mpc-1.1.0.tar.gz
        cd "$BUILD_DIR" && ./configure \
          --prefix="$ORCHESTRA_ROOT" \
          --with-gmp="$ORCHESTRA_ROOT" \
          --with-mpfr="$ORCHESTRA_ROOT" \
          --enable-shared=no \
          CFLAGS="-fPIC" \
          CXXFLAGS="-fPIC" \
          LDFLAGS="-static-libgcc"
      "dependencies":
      - |-
        gmp
      - |-
        mpfr
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make ${JOBS:+-j$JOBS} install DESTDIR="$DESTDIR"
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    default
  "license": |-
    COPYING.LESSER
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path": []
  "builds":
    "default":
      "build_dependencies":
      - |-
        glibc
      "configure": |
        mkdir -p "$BUILD_DIR"
        extract.sh --into "$BUILD_DIR" https://www.mpfr.org/mpfr-4.1.0/mpfr-4.1.0.tar.xz
        cd "$BUILD_DIR" && ./configure \
          --prefix="$ORCHESTRA_ROOT" \
          --with-gmp="$ORCHESTRA_ROOT" \
          --enable-shared=no \
          CFLAGS="-fPIC" \
          CXXFLAGS="-fPIC" \
          LDFLAGS="-static-libgcc"
      "dependencies":
      - |-
        gmp
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make ${JOBS:+-j$JOBS} install DESTDIR="$DESTDIR"
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    default
  "license": |-
    COPYING
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path": []
  "builds":
    "default":
      "build_dependencies":
      - |-
        gcc-host-toolchain
      - |-
        glibc
      "configure": |
        mkdir -p "$BUILD_DIR"
        extract.sh --into "$BUILD_DIR" https://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.2.tar.gz
        cd "$BUILD_DIR"
        ./configure \
          --disable-stripping \
          --disable-term-driver \
          --disable-termcap \
          --disable-widec \
          --enable-colorfgbg \
          --enable-const \
          --enable-echo \
          --enable-hard-tabs \
          --enable-leaks \
          --enable-overwrite \
          --enable-symlinks \
          --enable-warnings \
          --with-cxx \
          --with-cxx-binding \
          --with-cxx-shared \
          --with-macros \
          --with-manpage-format=normal \
          --with-progs \
          --with-rcs-ids \
          --with-shared \
          --with-termlib \
          --without-ada \
          --without-assertions \
          --without-debug \
          --without-dlsym \
          --without-expanded \
          --without-gpm \
          --without-hashed-db \
          --without-profile \
          --without-tack \
          --without-tests \
          --without-trace \
          --prefix="$ORCHESTRA_ROOT"
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make ${JOBS:+-j$JOBS} install DESTDIR="$DESTDIR"
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    default
  "license": |-
    COPYING
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path": []
  "builds":
    "default":
      "build_dependencies":
      - |-
        cmake
      "configure": |
        mkdir -p "$BUILD_DIR/build"
        extract.sh --into "$BUILD_DIR" https://github.com/ninja-build/ninja/archive/refs/tags/v1.11.0.tar.gz
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/ninja-shell-for-rule.patch" "$BUILD_DIR"
        cd "$BUILD_DIR/build"
        cmake \
          "$BUILD_DIR" \
          -Wno-dev \
          -DCMAKE_BUILD_TYPE=Release \
          -DCMAKE_INSTALL_PREFIX=$ORCHESTRA_ROOT
      "dependencies": []
      "install": |
        cd "$BUILD_DIR/build"
        make ${JOBS:+-j$JOBS}
        make ${JOBS:+-j$JOBS} install
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    default
  "license": |-
    COPYING
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path": []
  "builds":
    "debug":
      "build_dependencies":
      - |-
        host-c-toolchain
      - |-
        clang-release
      - |-
        glibc
      "configure": |
        mkdir -p "$BUILD_DIR"
        cd "$BUILD_DIR";
        "$SOURCE_DIR/configure" \
          --cc="$ORCHESTRA_ROOT/link-only/bin/clang" \
          --prefix="$ORCHESTRA_ROOT" \
          --target-list=" arm-libtinycode arm-linux-user aarch64-libtinycode aarch64-linux-user i386-libtinycode i386-linux-user mips-libtinycode mips-linux-user mipsel-libtinycode mipsel-linux-user s390x-libtinycode s390x-linux-user x86_64-libtinycode x86_64-linux-user " \
          --disable-werror \
          --enable-llvm-helpers \
          --disable-kvm \
          --without-pixman \
          --disable-tools \
          --disable-system \
          --disable-libnfs \
          --disable-vde \
          --disable-gnutls \
          --disable-smartcard-nss \
          --disable-uuid \
          --disable-cap-ng \
          --python="$(which python2)" \
          --enable-debug \
          --extra-cflags="-ggdb3 -O0 "
      "dependencies":
      - |-
        zlib
      - |-
        glib
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS} install
      "ndebug": !!bool |-
        false
    "optimized":
      "build_dependencies":
      - |-
        host-c-toolchain
      - |-
        clang-release
      - |-
        glibc
      "configure": |
        mkdir -p "$BUILD_DIR"
        cd "$BUILD_DIR";
        "$SOURCE_DIR/configure" \
          --cc="$ORCHESTRA_ROOT/link-only/bin/clang" \
          --prefix="$ORCHESTRA_ROOT" \
          --target-list=" arm-libtinycode arm-linux-user aarch64-libtinycode aarch64-linux-user i386-libtinycode i386-linux-user mips-libtinycode mips-linux-user mipsel-libtinycode mipsel-linux-user s390x-libtinycode s390x-linux-user x86_64-libtinycode x86_64-linux-user " \
          --disable-werror \
          --enable-llvm-helpers \
          --disable-kvm \
          --without-pixman \
          --disable-tools \
          --disable-system \
          --disable-libnfs \
          --disable-vde \
          --disable-gnutls \
          --disable-smartcard-nss \
          --disable-uuid \
          --disable-cap-ng \
          --python="$(which python2)" \
          --enable-debug \
          --extra-cflags="-ggdb3 -O2 -fno-omit-frame-pointer "
      "dependencies":
      - |-
        zlib
      - |-
        glib
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS} install
      "ndebug": !!bool |-
        false
    "release":
      "build_dependencies":
      - |-
        host-c-toolchain
      - |-
        clang-release
      - |-
        glibc
      "configure": |
        mkdir -p "$BUILD_DIR"
        cd "$BUILD_DIR";
        "$SOURCE_DIR/configure" \
          --cc="$ORCHESTRA_ROOT/link-only/bin/clang" \
          --prefix="$ORCHESTRA_ROOT" \
          --target-list=" arm-libtinycode arm-linux-user aarch64-libtinycode aarch64-linux-user i386-libtinycode i386-linux-user mips-libtinycode mips-linux-user mipsel-libtinycode mipsel-linux-user s390x-libtinycode s390x-linux-user x86_64-libtinycode x86_64-linux-user " \
          --disable-werror \
          --enable-llvm-helpers \
          --disable-kvm \
          --without-pixman \
          --disable-tools \
          --disable-system \
          --disable-libnfs \
          --disable-vde \
          --disable-gnutls \
          --disable-smartcard-nss \
          --disable-uuid \
          --disable-cap-ng \
          --python="$(which python2)" \
          \
          --extra-cflags="-ggdb3 -O2 "
      "dependencies":
      - |-
        zlib
      - |-
        glib
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS} install
      "ndebug": !!bool |-
        true
  "commit": |-
    e908d8a6f4cfd06b5c0995d1320247cd4032e32d
  "default_build": |-
    optimized
  "license": |-
    LICENSE
  "repository": |-
    qemu
  "skip_post_install": !!bool |-
    false
- "add_to_path": []
  "builds":
    "debug":
      "build_dependencies":
      - |-
        cmake
      - |-
        revng-qa
      - |-
        glibc
      - |-
        host-cxx-toolchain
      - |-
        revng-js-prerequisites
      "configure": |
        mkdir -p "$BUILD_DIR"

        cd "$BUILD_DIR";
        cmake \
          -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
          -DCMAKE_INSTALL_SO_NO_EXE=0 \
          -DCMAKE_INSTALL_PREFIX="$ORCHESTRA_ROOT" \
          -DCMAKE_PREFIX_PATH="$ORCHESTRA_ROOT" \
          "$SOURCE_DIR" \
          -G"Ninja" \
          -DCMAKE_C_COMPILER="$ORCHESTRA_ROOT/link-only/bin/clang" \
          -DCMAKE_CXX_COMPILER="$ORCHESTRA_ROOT/link-only/bin/clang++" \
          -DCMAKE_C_FLAGS="-ggdb3 -O0  -fplugin=libclangTidyPlugin.so -Wl,--no-undefined -Wno-unused-command-line-argument -stdlib=libc++ -fuse-ld=lld " \
          -DCMAKE_CXX_FLAGS="-ggdb3 -O0  -fplugin=libclangTidyPlugin.so -Wl,--no-undefined -Wno-unused-command-line-argument -stdlib=libc++ -fuse-ld=lld " \
          -DCMAKE_BUILD_RPATH="$RPATH_PLACEHOLDER/lib:$RPATH_PLACEHOLDER/lib64/clang/12.0.0/lib/linux:$RPATH_PLACEHOLDER/lib/revng/analyses" \
          -DCMAKE_INSTALL_RPATH="$RPATH_PLACEHOLDER/lib:$RPATH_PLACEHOLDER/lib64/clang/12.0.0/lib/linux:$RPATH_PLACEHOLDER/lib/revng/analyses" \
          -DCMAKE_BUILD_TYPE="Debug" \
          -DBOOST_ROOT="$ORCHESTRA_ROOT" \
          -DBoost_NO_BOOST_CMAKE=On \
          -DBoost_NO_SYSTEM_PATHS=On
      "dependencies":
      - |-
        host-libcxx
      - |-
        llvm
      - |-
        qemu
      - |-
        boost
      - |-
        clang-release
      "install": |
        cmake --build "$BUILD_DIR" ${JOBS:+-j$JOBS}


        if test "$RUN_TESTS" -eq 1; then
          cd "$BUILD_DIR"
          ctest --output-on-failure ${JOBS:+-j$JOBS}
          cd -
        fi

        cmake --install "$BUILD_DIR"
      "ndebug": !!bool |-
        false
    "optimized":
      "build_dependencies":
      - |-
        cmake
      - |-
        revng-qa
      - |-
        glibc
      - |-
        host-cxx-toolchain
      - |-
        revng-js-prerequisites
      "configure": |
        mkdir -p "$BUILD_DIR"

        cd "$BUILD_DIR";
        cmake \
          -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
          -DCMAKE_INSTALL_SO_NO_EXE=0 \
          -DCMAKE_INSTALL_PREFIX="$ORCHESTRA_ROOT" \
          -DCMAKE_PREFIX_PATH="$ORCHESTRA_ROOT" \
          "$SOURCE_DIR" \
          -G"Ninja" \
          -DCMAKE_C_COMPILER="$ORCHESTRA_ROOT/link-only/bin/clang" \
          -DCMAKE_CXX_COMPILER="$ORCHESTRA_ROOT/link-only/bin/clang++" \
          -DCMAKE_C_FLAGS="-ggdb3 -O2 -fno-omit-frame-pointer  -fplugin=libclangTidyPlugin.so -Wl,--no-undefined -Wno-unused-command-line-argument -stdlib=libc++ -fuse-ld=lld " \
          -DCMAKE_CXX_FLAGS="-ggdb3 -O2 -fno-omit-frame-pointer  -fplugin=libclangTidyPlugin.so -Wl,--no-undefined -Wno-unused-command-line-argument -stdlib=libc++ -fuse-ld=lld " \
          -DCMAKE_BUILD_RPATH="$RPATH_PLACEHOLDER/lib:$RPATH_PLACEHOLDER/lib64/clang/12.0.0/lib/linux:$RPATH_PLACEHOLDER/lib/revng/analyses" \
          -DCMAKE_INSTALL_RPATH="$RPATH_PLACEHOLDER/lib:$RPATH_PLACEHOLDER/lib64/clang/12.0.0/lib/linux:$RPATH_PLACEHOLDER/lib/revng/analyses" \
          -DCMAKE_BUILD_TYPE="Debug" \
          -DBOOST_ROOT="$ORCHESTRA_ROOT" \
          -DBoost_NO_BOOST_CMAKE=On \
          -DBoost_NO_SYSTEM_PATHS=On
      "dependencies":
      - |-
        host-libcxx
      - |-
        llvm
      - |-
        qemu
      - |-
        boost
      - |-
        clang-release
      "install": |
        cmake --build "$BUILD_DIR" ${JOBS:+-j$JOBS}


        if test "$RUN_TESTS" -eq 1; then
          cd "$BUILD_DIR"
          ctest --output-on-failure ${JOBS:+-j$JOBS}
          cd -
        fi

        cmake --install "$BUILD_DIR"
      "ndebug": !!bool |-
        false
    "release":
      "build_dependencies":
      - |-
        cmake
      - |-
        revng-qa
      - |-
        glibc
      - |-
        host-cxx-toolchain
      - |-
        revng-js-prerequisites
      "configure": |
        mkdir -p "$BUILD_DIR"

        cd "$BUILD_DIR";
        cmake \
          -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
          -DCMAKE_INSTALL_SO_NO_EXE=0 \
          -DCMAKE_INSTALL_PREFIX="$ORCHESTRA_ROOT" \
          -DCMAKE_PREFIX_PATH="$ORCHESTRA_ROOT" \
          "$SOURCE_DIR" \
          -G"Ninja" \
          -DCMAKE_C_COMPILER="$ORCHESTRA_ROOT/link-only/bin/clang" \
          -DCMAKE_CXX_COMPILER="$ORCHESTRA_ROOT/link-only/bin/clang++" \
          -DCMAKE_C_FLAGS="-ggdb3 -O2  -fplugin=libclangTidyPlugin.so -Wl,--no-undefined -Wno-unused-command-line-argument -stdlib=libc++ -fuse-ld=lld " \
          -DCMAKE_CXX_FLAGS="-ggdb3 -O2  -fplugin=libclangTidyPlugin.so -Wl,--no-undefined -Wno-unused-command-line-argument -stdlib=libc++ -fuse-ld=lld " \
          -DCMAKE_BUILD_RPATH="$RPATH_PLACEHOLDER/lib:$RPATH_PLACEHOLDER/lib64/clang/12.0.0/lib/linux:$RPATH_PLACEHOLDER/lib/revng/analyses" \
          -DCMAKE_INSTALL_RPATH="$RPATH_PLACEHOLDER/lib:$RPATH_PLACEHOLDER/lib64/clang/12.0.0/lib/linux:$RPATH_PLACEHOLDER/lib/revng/analyses" \
          -DCMAKE_BUILD_TYPE="Release" \
          -DBOOST_ROOT="$ORCHESTRA_ROOT" \
          -DBoost_NO_BOOST_CMAKE=On \
          -DBoost_NO_SYSTEM_PATHS=On
      "dependencies":
      - |-
        host-libcxx
      - |-
        llvm
      - |-
        qemu
      - |-
        boost
      - |-
        clang-release
      "install": |
        cmake --build "$BUILD_DIR" ${JOBS:+-j$JOBS}


        if test "$RUN_TESTS" -eq 1; then
          cd "$BUILD_DIR"
          ctest --output-on-failure ${JOBS:+-j$JOBS}
          cd -
        fi

        cmake --install "$BUILD_DIR"
      "ndebug": !!bool |-
        true
  "commit": |-
    9046977506abf3cc77f2007c34182b22d56e5d78
  "default_build": |-
    optimized
  "license": |-
    LICENSE.md
  "repository": |-
    revng
  "skip_post_install": !!bool |-
    false
- "add_to_path": []
  "builds":
    "debug":
      "build_dependencies":
      - |-
        cmake
      - |-
        glibc
      - |-
        host-cxx-toolchain
      "configure": |
        mkdir -p "$BUILD_DIR"

        cd "$BUILD_DIR";
        cmake \
          -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
          -DCMAKE_INSTALL_SO_NO_EXE=0 \
          -DCMAKE_INSTALL_PREFIX="$ORCHESTRA_ROOT" \
          -DCMAKE_PREFIX_PATH="$ORCHESTRA_ROOT" \
          "$SOURCE_DIR" \
          -G"Ninja" \
          -DCMAKE_C_COMPILER="$ORCHESTRA_ROOT/link-only/bin/clang" \
          -DCMAKE_CXX_COMPILER="$ORCHESTRA_ROOT/link-only/bin/clang++" \
          -DCMAKE_C_FLAGS="-ggdb3 -O0  -fplugin=libclangTidyPlugin.so -Wl,--no-undefined -Wno-unused-command-line-argument -stdlib=libc++ -fuse-ld=lld " \
          -DCMAKE_CXX_FLAGS="-ggdb3 -O0  -fplugin=libclangTidyPlugin.so -Wl,--no-undefined -Wno-unused-command-line-argument -stdlib=libc++ -fuse-ld=lld " \
          -DCMAKE_BUILD_RPATH="$RPATH_PLACEHOLDER/lib:$RPATH_PLACEHOLDER/lib64/clang/12.0.0/lib/linux:$RPATH_PLACEHOLDER/lib/revng/analyses" \
          -DCMAKE_INSTALL_RPATH="$RPATH_PLACEHOLDER/lib:$RPATH_PLACEHOLDER/lib64/clang/12.0.0/lib/linux:$RPATH_PLACEHOLDER/lib/revng/analyses" \
          -DCMAKE_BUILD_TYPE="Debug" \
          -DBOOST_ROOT="$ORCHESTRA_ROOT" \
          -DBoost_NO_BOOST_CMAKE=On \
          -DBoost_NO_SYSTEM_PATHS=On
      "dependencies":
      - |-
        host-libcxx
      - |-
        revng
      - |-
        boost
      - |-
        revng-qa
      "install": |
        cmake --build "$BUILD_DIR" ${JOBS:+-j$JOBS}


        if test "$RUN_TESTS" -eq 1; then
          cd "$BUILD_DIR"
          ctest --output-on-failure ${JOBS:+-j$JOBS}
          cd -
        fi

        cmake --install "$BUILD_DIR"
      "ndebug": !!bool |-
        false
    "optimized":
      "build_dependencies":
      - |-
        cmake
      - |-
        glibc
      - |-
        host-cxx-toolchain
      "configure": |
        mkdir -p "$BUILD_DIR"

        cd "$BUILD_DIR";
        cmake \
          -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
          -DCMAKE_INSTALL_SO_NO_EXE=0 \
          -DCMAKE_INSTALL_PREFIX="$ORCHESTRA_ROOT" \
          -DCMAKE_PREFIX_PATH="$ORCHESTRA_ROOT" \
          "$SOURCE_DIR" \
          -G"Ninja" \
          -DCMAKE_C_COMPILER="$ORCHESTRA_ROOT/link-only/bin/clang" \
          -DCMAKE_CXX_COMPILER="$ORCHESTRA_ROOT/link-only/bin/clang++" \
          -DCMAKE_C_FLAGS="-ggdb3 -O2 -fno-omit-frame-pointer  -fplugin=libclangTidyPlugin.so -Wl,--no-undefined -Wno-unused-command-line-argument -stdlib=libc++ -fuse-ld=lld " \
          -DCMAKE_CXX_FLAGS="-ggdb3 -O2 -fno-omit-frame-pointer  -fplugin=libclangTidyPlugin.so -Wl,--no-undefined -Wno-unused-command-line-argument -stdlib=libc++ -fuse-ld=lld " \
          -DCMAKE_BUILD_RPATH="$RPATH_PLACEHOLDER/lib:$RPATH_PLACEHOLDER/lib64/clang/12.0.0/lib/linux:$RPATH_PLACEHOLDER/lib/revng/analyses" \
          -DCMAKE_INSTALL_RPATH="$RPATH_PLACEHOLDER/lib:$RPATH_PLACEHOLDER/lib64/clang/12.0.0/lib/linux:$RPATH_PLACEHOLDER/lib/revng/analyses" \
          -DCMAKE_BUILD_TYPE="Debug" \
          -DBOOST_ROOT="$ORCHESTRA_ROOT" \
          -DBoost_NO_BOOST_CMAKE=On \
          -DBoost_NO_SYSTEM_PATHS=On
      "dependencies":
      - |-
        host-libcxx
      - |-
        revng
      - |-
        boost
      - |-
        revng-qa
      "install": |
        cmake --build "$BUILD_DIR" ${JOBS:+-j$JOBS}


        if test "$RUN_TESTS" -eq 1; then
          cd "$BUILD_DIR"
          ctest --output-on-failure ${JOBS:+-j$JOBS}
          cd -
        fi

        cmake --install "$BUILD_DIR"
      "ndebug": !!bool |-
        false
    "release":
      "build_dependencies":
      - |-
        cmake
      - |-
        glibc
      - |-
        host-cxx-toolchain
      "configure": |
        mkdir -p "$BUILD_DIR"

        cd "$BUILD_DIR";
        cmake \
          -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
          -DCMAKE_INSTALL_SO_NO_EXE=0 \
          -DCMAKE_INSTALL_PREFIX="$ORCHESTRA_ROOT" \
          -DCMAKE_PREFIX_PATH="$ORCHESTRA_ROOT" \
          "$SOURCE_DIR" \
          -G"Ninja" \
          -DCMAKE_C_COMPILER="$ORCHESTRA_ROOT/link-only/bin/clang" \
          -DCMAKE_CXX_COMPILER="$ORCHESTRA_ROOT/link-only/bin/clang++" \
          -DCMAKE_C_FLAGS="-ggdb3 -O2  -fplugin=libclangTidyPlugin.so -Wl,--no-undefined -Wno-unused-command-line-argument -stdlib=libc++ -fuse-ld=lld " \
          -DCMAKE_CXX_FLAGS="-ggdb3 -O2  -fplugin=libclangTidyPlugin.so -Wl,--no-undefined -Wno-unused-command-line-argument -stdlib=libc++ -fuse-ld=lld " \
          -DCMAKE_BUILD_RPATH="$RPATH_PLACEHOLDER/lib:$RPATH_PLACEHOLDER/lib64/clang/12.0.0/lib/linux:$RPATH_PLACEHOLDER/lib/revng/analyses" \
          -DCMAKE_INSTALL_RPATH="$RPATH_PLACEHOLDER/lib:$RPATH_PLACEHOLDER/lib64/clang/12.0.0/lib/linux:$RPATH_PLACEHOLDER/lib/revng/analyses" \
          -DCMAKE_BUILD_TYPE="Release" \
          -DBOOST_ROOT="$ORCHESTRA_ROOT" \
          -DBoost_NO_BOOST_CMAKE=On \
          -DBoost_NO_SYSTEM_PATHS=On
      "dependencies":
      - |-
        host-libcxx
      - |-
        revng
      - |-
        boost
      - |-
        revng-qa
      "install": |
        cmake --build "$BUILD_DIR" ${JOBS:+-j$JOBS}


        if test "$RUN_TESTS" -eq 1; then
          cd "$BUILD_DIR"
          ctest --output-on-failure ${JOBS:+-j$JOBS}
          cd -
        fi

        cmake --install "$BUILD_DIR"
      "ndebug": !!bool |-
        true
  "commit": |-
    e06f9841ed8e4169500e05b62c0c654a4fb9a9bf
  "default_build": |-
    optimized
  "license": |-
    LICENSE.md
  "repository": |-
    revng-c
  "skip_post_install": !!bool |-
    false
- "add_to_path": []
  "builds":
    "default":
      "build_dependencies": []
      "configure": |
        JS_DIR="$ORCHESTRA_DOTDIR/support/js-prerequisites"
        mkdir -p "$BUILD_DIR"
        cd "$BUILD_DIR"
        cp -a "$JS_DIR/package.json" "$JS_DIR/yarn.lock" .

        #! check that package.json has the right hash, this is to trigger a rebuild in orchestra
        #! whenever we change the file
        echo '170f9c4509efc5065364e99ac32823bf8a37fcbf1a05dd7cf85a530e4173d851 package.json' | sha256sum -c -

        #! from the yarn.lock read the urls of the tars we have to download
        PACKAGE_URLS=$(grep 'resolved' yarn.lock | awk '{print $2}' | tr -d '"')
        while IFS= read -r URL; do
          fetch.sh "$URL"
        done <<< "$PACKAGE_URLS"

        #! each url is in the form https://<url>/<file>#<sha1>, the sed is to have `<sha1> <file>` to
        #! feed to sha1sum
        echo $PACKAGE_URLS | sed 's|.*/\(.*\)#\(\w*\)|\2 \1|g' | sha1sum -c -
      "dependencies": []
      "install": |+
        cd "$BUILD_DIR"
        mkdir "${DESTDIR}${ORCHESTRA_ROOT}/share/node_cache"

        #! copy all download packages to node_cache
        cp -a *.tgz "${DESTDIR}${ORCHESTRA_ROOT}/share/node_cache"

        #! Create a yarnrc file, this is to specify the needed settings to make `yarn install` work
        #! completely offline
        YARNRC="${DESTDIR}${ORCHESTRA_ROOT}/share/yarnrc"
        touch "$YARNRC"
        yarn -s config --use-yarnrc "$YARNRC" set disable-self-update-check true
        yarn -s config --use-yarnrc "$YARNRC" set nodedir "${ORCHESTRA_ROOT}/share/node_cache"
        echo '--install.offline' >> "$YARNRC"
        echo '--add.offline' >> "YARNRC"

      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    default
  "license": ""
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path": []
  "builds":
    "default":
      "build_dependencies":
      - |-
        cmake
      - |-
        ninja
      - |-
        host-cxx-toolchain
      "configure": |
        mkdir -p "$BUILD_DIR"
        cd "$BUILD_DIR"
        cmake \
          -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
          -DCMAKE_INSTALL_SO_NO_EXE=0 \
          -DCMAKE_INSTALL_PREFIX="$ORCHESTRA_ROOT" \
          -DCMAKE_PREFIX_PATH="$ORCHESTRA_ROOT" "$SOURCE_DIR"
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make ${JOBS:+-j$JOBS} install DESTDIR="$DESTDIR"
      "ndebug": !!bool |-
        true
  "commit": |-
    3f61500bc491e376eeb96357cdf4dbd63e2c37a9
  "default_build": |-
    default
  "license": |-
    LICENSE
  "repository": |-
    revng-qa
  "skip_post_install": !!bool |-
    false
- "add_to_path": []
  "builds":
    "default":
      "build_dependencies":
      - |-
        ninja
      - |-
        revng
      - |-
        revng-qa
      - |-
        test/revng-qa
      "configure": |
        mkdir -p "$BUILD_DIR"
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        rm -rf *
        revng \
          test-configure \
          "$ORCHESTRA_ROOT/share/revng/test/configuration"/**/*.yml \
          --install-path "$ORCHESTRA_ROOT/share/revng/test" \
          --destination . \
          --target-type 'revng\..*'
        ninja run-all
        ninja install
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    default
  "license": !!null |-
    null
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path": []
  "builds":
    "default":
      "build_dependencies":
      - |-
        ninja
      - |-
        revng-c
      - |-
        revng-qa
      - |-
        test/revng
      - |-
        test/revng-qa
      "configure": |
        mkdir -p "$BUILD_DIR"
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        rm -rf *
        revng \
          test-configure \
          "$ORCHESTRA_ROOT/share/revng/test/configuration"/**/*.yml \
          --install-path "$ORCHESTRA_ROOT/share/revng/test" \
          --destination . \
          --target-type 'revng-c\..*'
        ninja run-all
        ninja install
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    default
  "license": !!null |-
    null
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path": []
  "builds":
    "default":
      "build_dependencies":
      - |-
        ninja
      - |-
        revng-qa
      - |-
        toolchain/win32-vc16/vc
      - |-
        toolchain/arm/gcc
      - |-
        toolchain/x86-64/gcc
      - |-
        toolchain/i386/gcc
      - |-
        toolchain/s390x/gcc
      - |-
        toolchain/aarch64/gcc
      - |-
        toolchain/mips/gcc
      - |-
        toolchain/mipsel/gcc
      - |-
        toolchain/host/gcc
      "configure": |
        mkdir -p "$BUILD_DIR"
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        rm -rf *
        revng \
          test-configure \
          "$ORCHESTRA_ROOT/share/revng/test/configuration"/**/*.yml \
          --install-path "$ORCHESTRA_ROOT/share/revng/test" \
          --destination . \
          --target-type 'revng-qa\..*'
        ninja run-all
        ninja install
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    default
  "license": !!null |-
    null
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path":
  - |-
    ${ORCHESTRA_ROOT}/x86_64-pc-linux-gnu/aarch64-unknown-linux-musl/binutils-bin/2.35
  "builds":
    "default":
      "build_dependencies":
      - |-
        glibc
      - |-
        toolchain/host/gcc
      - |-
        toolchain/host/binutils
      "configure": |
        extract.sh --into "$SOURCE_DIR" https://ftp.gnu.org/gnu/binutils/binutils-2.35.tar.bz2
        mkdir -p "$BUILD_DIR"
        cd "$BUILD_DIR" && "$SOURCE_DIR/configure" \
          --build=x86_64-pc-linux-gnu \
          --host=x86_64-pc-linux-gnu \
          --target=aarch64-unknown-linux-musl \
          --with-sysroot="$ORCHESTRA_ROOT/aarch64-unknown-linux-musl" \
          --prefix=$ORCHESTRA_ROOT \
          --datadir=$ORCHESTRA_ROOT/share/binutils-data/aarch64-unknown-linux-musl/2.35 \
          --infodir=$ORCHESTRA_ROOT/share/binutils-data/aarch64-unknown-linux-musl/2.35/info \
          --mandir=$ORCHESTRA_ROOT/share/binutils-data/aarch64-unknown-linux-musl/2.35/man \
          --bindir=$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/aarch64-unknown-linux-musl/binutils-bin/2.35 \
          --libdir=$ORCHESTRA_ROOT/lib64/binutils/aarch64-unknown-linux-musl/2.35 \
          --libexecdir=$ORCHESTRA_ROOT/lib64/binutils/aarch64-unknown-linux-musl/2.35 \
          --includedir=$ORCHESTRA_ROOT/lib64/binutils/aarch64-unknown-linux-musl/2.35/include \
          --without-included-gettext \
          --with-zlib \
          --enable-poison-system-directories \
          --enable-secureplt \
          --enable-obsolete \
          --enable-gold \
          --disable-shared \
          --enable-threads \
          --enable-install-libiberty \
          --disable-werror \
          --disable-static \
          --disable-gdb \
          --disable-libdecnumber \
          --disable-readline \
          --disable-sim \
          --without-debuginfod \
          --without-stage1-ldflags \
           \
          CFLAGS="-w -ggdb3 -O3" \
          CXXFLAGS="-w -ggdb3 -O3"
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make ${JOBS:+-j$JOBS} install DESTDIR="$DESTDIR"
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    default
  "license": |-
    COPYING
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path":
  - |-
    ${ORCHESTRA_ROOT}/x86_64-pc-linux-gnu/aarch64-unknown-linux-musl/gcc-bin/7.3.0
  "builds":
    "stage1":
      "build_dependencies":
      - |-
        glibc
      - |-
        gmp
      - |-
        mpfr
      - |-
        mpc
      "configure": |
        extract.sh --into "$SOURCE_DIR" "https://ftp.gnu.org/gnu/gcc/gcc-7.3.0/gcc-7.3.0.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-7.3.0-cfns-fix-mismatch-in-gnu_inline-attributes.patch" "$SOURCE_DIR"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-7.3.0-cpp-musl-support.patch" "$SOURCE_DIR"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-7.3.0-fixes.patch" "$SOURCE_DIR"
        sed -i 's|gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"|gcc_gxx_include_dir="/${gcc_gxx_without_sysroot#/}"|' "$SOURCE_DIR/gcc/configure"


        mkdir -p "$BUILD_DIR"
        cd "$BUILD_DIR" && "$SOURCE_DIR/configure" \
          --host=x86_64-pc-linux-gnu \
          --build=x86_64-pc-linux-gnu \
          --target=aarch64-unknown-linux-musl \
          --prefix=$ORCHESTRA_ROOT \
          --bindir=$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/aarch64-unknown-linux-musl/gcc-bin/7.3.0 \
          --includedir=$ORCHESTRA_ROOT/lib/gcc/aarch64-unknown-linux-musl/7.3.0/include \
          --datadir=$ORCHESTRA_ROOT/share/gcc-data/aarch64-unknown-linux-musl/7.3.0 \
          --mandir=$ORCHESTRA_ROOT/share/gcc-data/aarch64-unknown-linux-musl/7.3.0/man \
          --infodir=$ORCHESTRA_ROOT/share/gcc-data/aarch64-unknown-linux-musl/7.3.0/info \
          --with-sysroot=$ORCHESTRA_ROOT/aarch64-unknown-linux-musl \
          --enable-obsolete \
          --enable-secureplt \
          --disable-werror \
          --enable-nls \
          --without-included-gettext \
          --enable-checking=release \
          --enable-libstdcxx-time \
          --enable-poison-system-directories \
          --disable-host-shared \
          --enable-shared \
          --disable-libatomic \
          --disable-bootstrap \
          --disable-multilib \
          --disable-altivec \
          --disable-fixed-point \
          --disable-libgcj \
          --disable-libgomp \
          --disable-libmudflap \
          --disable-libssp \
          --disable-libcilkrts \
          --disable-vtable-verify \
          --disable-libvtv \
          --disable-libquadmath \
          --disable-rpath \
          --enable-lto \
          --disable-vtable-verify \
          --disable-libsanitizer \
          --with-gmp="$ORCHESTRA_ROOT" \
          --with-mpfr="$ORCHESTRA_ROOT" \
          --with-mpc="$ORCHESTRA_ROOT" \
          --without-zstd \
          --without-cloog \
          --without-isl \
          --disable-libsanitizer \
          --disable-libssp \
          --disable-shared \
          --enable-languages=c \
          CFLAGS="-w -ggdb3 -O3 --sysroot $INSTALL_LINK_ONLY_PATH -idirafter /usr/local/include -idirafter /usr/include/x86_64-linux-gnu -idirafter /usr/include" \
          CXXFLAGS="-w -ggdb3 -O3 --sysroot $INSTALL_LINK_ONLY_PATH -idirafter /usr/local/include -idirafter /usr/include/x86_64-linux-gnu -idirafter /usr/include -std=gnu++11" \
          LDFLAGS="-L$INSTALL_LINK_ONLY_PATH/lib -L$ORCHESTRA_ROOT/lib -lrt --sysroot=/ -Wl,-z,origin -Wl,--enable-new-dtags -fuse-ld=gold -Wl,-rpath,$RPATH_PLACEHOLDER/lib -Wl,-rpath,$RPATH_PLACEHOLDER/lib64/llvm/clang-release/lib/clang/12.0.0/lib/linux -static-libgcc"
      "dependencies":
      - |-
        toolchain/aarch64/binutils
      - |-
        toolchain/host/binutils
      - |-
        toolchain/aarch64/musl~headers
      - |-
        toolchain/aarch64/linux-headers
      "install": "cd \"$BUILD_DIR\"\nmake ${JOBS:+-j$JOBS} \nmake install \n\nNEW_GCC_PATH=\"$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/aarch64-unknown-linux-musl/gcc-bin/7.3.0/\"\n\nif test -e \"${DESTDIR}${NEW_GCC_PATH}/gcc\"; then\n\n  if ! test -e \"${DESTDIR}${NEW_GCC_PATH}/cc\"; then\n    ln -s gcc \"${DESTDIR}${NEW_GCC_PATH}/cc\"\n  fi\n\n  mkdir -p \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin\"\n  cp \"${ORCHESTRA_DOTDIR}/support/hard-flags-compiler-wrapper.py\" \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/gcc\"\n  ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/cc\"\n  ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-cc\"\n  ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-gcc\"\n\n  cp -a \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib/gcc/x86_64-pc-linux-gnu/7.3.0/*.{a,o} \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib/\n\nfi\n\nif test -e \"${DESTDIR}${NEW_GCC_PATH}/g++\"; then\n\n  if ! test -e \"${DESTDIR}${NEW_GCC_PATH}/c++\"; then\n    ln -s g++ \"${DESTDIR}${NEW_GCC_PATH}/c++\"\n  fi\n\n  cp \"${ORCHESTRA_DOTDIR}/support/hard-flags-compiler-wrapper.py\" \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/g++\"\n  ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-g++\"\n  mkdir -p \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin\"\n  ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/c++\"\n  ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-c++\"\n\nfi\n\nrm -f \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib64/libcc1.*\n\n# Fixinclude locates the wrong pthread.h\nfind \"${DESTDIR}${ORCHESTRA_ROOT}\" -type d -name include-fixed -exec rm -f {}/pthread.h \\;\n"
      "ndebug": !!bool |-
        true
    "stage2":
      "build_dependencies":
      - |-
        toolchain/aarch64/gcc~stage1
      - |-
        glibc
      - |-
        gmp
      - |-
        mpfr
      - |-
        mpc
      "configure": |
        extract.sh --into "$SOURCE_DIR" "https://ftp.gnu.org/gnu/gcc/gcc-7.3.0/gcc-7.3.0.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-7.3.0-cfns-fix-mismatch-in-gnu_inline-attributes.patch" "$SOURCE_DIR"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-7.3.0-cpp-musl-support.patch" "$SOURCE_DIR"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-7.3.0-fixes.patch" "$SOURCE_DIR"
        sed -i 's|gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"|gcc_gxx_include_dir="/${gcc_gxx_without_sysroot#/}"|' "$SOURCE_DIR/gcc/configure"


        mkdir -p "$BUILD_DIR"
        cd "$BUILD_DIR" && "$SOURCE_DIR/configure" \
          --host=x86_64-pc-linux-gnu \
          --build=x86_64-pc-linux-gnu \
          --target=aarch64-unknown-linux-musl \
          --prefix=$ORCHESTRA_ROOT \
          --bindir=$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/aarch64-unknown-linux-musl/gcc-bin/7.3.0 \
          --includedir=$ORCHESTRA_ROOT/lib/gcc/aarch64-unknown-linux-musl/7.3.0/include \
          --datadir=$ORCHESTRA_ROOT/share/gcc-data/aarch64-unknown-linux-musl/7.3.0 \
          --mandir=$ORCHESTRA_ROOT/share/gcc-data/aarch64-unknown-linux-musl/7.3.0/man \
          --infodir=$ORCHESTRA_ROOT/share/gcc-data/aarch64-unknown-linux-musl/7.3.0/info \
          --with-sysroot=$ORCHESTRA_ROOT/aarch64-unknown-linux-musl \
          --enable-obsolete \
          --enable-secureplt \
          --disable-werror \
          --enable-nls \
          --without-included-gettext \
          --enable-checking=release \
          --enable-libstdcxx-time \
          --enable-poison-system-directories \
          --disable-host-shared \
          --enable-shared \
          --disable-libatomic \
          --disable-bootstrap \
          --disable-multilib \
          --disable-altivec \
          --disable-fixed-point \
          --disable-libgcj \
          --disable-libgomp \
          --disable-libmudflap \
          --disable-libssp \
          --disable-libcilkrts \
          --disable-vtable-verify \
          --disable-libvtv \
          --disable-libquadmath \
          --disable-rpath \
          --enable-lto \
          --disable-vtable-verify \
          --disable-libsanitizer \
          --with-gmp="$ORCHESTRA_ROOT" \
          --with-mpfr="$ORCHESTRA_ROOT" \
          --with-mpc="$ORCHESTRA_ROOT" \
          --without-zstd \
          --without-cloog \
          --without-isl \
          --disable-libsanitizer \
          --disable-libssp \
          --disable-shared \
          --enable-languages=c,c++ \
          CFLAGS="-w -ggdb3 -O3 --sysroot $INSTALL_LINK_ONLY_PATH -idirafter /usr/local/include -idirafter /usr/include/x86_64-linux-gnu -idirafter /usr/include" \
          CXXFLAGS="-w -ggdb3 -O3 --sysroot $INSTALL_LINK_ONLY_PATH -idirafter /usr/local/include -idirafter /usr/include/x86_64-linux-gnu -idirafter /usr/include -std=gnu++11" \
          LDFLAGS="-L$INSTALL_LINK_ONLY_PATH/lib -L$ORCHESTRA_ROOT/lib -lrt --sysroot=/ -Wl,-z,origin -Wl,--enable-new-dtags -fuse-ld=gold -Wl,-rpath,$RPATH_PLACEHOLDER/lib -Wl,-rpath,$RPATH_PLACEHOLDER/lib64/llvm/clang-release/lib/clang/12.0.0/lib/linux -static-libgcc"
      "dependencies":
      - |-
        toolchain/aarch64/binutils
      - |-
        toolchain/host/binutils
      - |-
        toolchain/aarch64/musl
      - |-
        toolchain/aarch64/linux-headers
      "install": "cd \"$BUILD_DIR\"\nmake ${JOBS:+-j$JOBS} \nmake install \n\nNEW_GCC_PATH=\"$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/aarch64-unknown-linux-musl/gcc-bin/7.3.0/\"\n\nif test -e \"${DESTDIR}${NEW_GCC_PATH}/gcc\"; then\n\n  if ! test -e \"${DESTDIR}${NEW_GCC_PATH}/cc\"; then\n    ln -s gcc \"${DESTDIR}${NEW_GCC_PATH}/cc\"\n  fi\n\n  mkdir -p \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin\"\n  cp \"${ORCHESTRA_DOTDIR}/support/hard-flags-compiler-wrapper.py\" \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/gcc\"\n  ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/cc\"\n  ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-cc\"\n  ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-gcc\"\n\n  cp -a \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib/gcc/x86_64-pc-linux-gnu/7.3.0/*.{a,o} \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib/\n\nfi\n\nif test -e \"${DESTDIR}${NEW_GCC_PATH}/g++\"; then\n\n  if ! test -e \"${DESTDIR}${NEW_GCC_PATH}/c++\"; then\n    ln -s g++ \"${DESTDIR}${NEW_GCC_PATH}/c++\"\n  fi\n\n  cp \"${ORCHESTRA_DOTDIR}/support/hard-flags-compiler-wrapper.py\" \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/g++\"\n  ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-g++\"\n  mkdir -p \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin\"\n  ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/c++\"\n  ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-c++\"\n\nfi\n\nrm -f \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib64/libcc1.*\n\n# Fixinclude locates the wrong pthread.h\nfind \"${DESTDIR}${ORCHESTRA_ROOT}\" -type d -name include-fixed -exec rm -f {}/pthread.h \\;\n"
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    stage2
  "license": |-
    COPYING
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path": []
  "builds":
    "default":
      "build_dependencies": []
      "configure": |
        mkdir -p "$BUILD_DIR"
        extract.sh --into "$BUILD_DIR" https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.14.18.tar.xz
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS} -C "$BUILD_DIR" \
          ARCH=arm64 \
          INSTALL_HDR_PATH="${DESTDIR}${ORCHESTRA_ROOT}/aarch64-unknown-linux-musl/usr" headers_install
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    default
  "license": |-
    COPYING
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path": []
  "builds":
    "default":
      "build_dependencies":
      - |-
        toolchain/aarch64/gcc~stage1
      "configure": |
        mkdir -p "$BUILD_DIR"

        extract.sh --into "$BUILD_DIR" "http://www.musl-libc.org/releases/musl-1.1.19.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/musl-1.1.19-printf-floating-point-rounding.patch" "$BUILD_DIR"

        cd "$BUILD_DIR" && CC="$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/aarch64-unknown-linux-musl/gcc-bin/7.3.0//aarch64-unknown-linux-musl-gcc" CFLAGS=" -ggdb3" "$BUILD_DIR/configure" \
          --target=aarch64-unknown-linux-musl \
          --prefix="$ORCHESTRA_ROOT/aarch64-unknown-linux-musl/usr" \
          --syslibdir="$ORCHESTRA_ROOT/aarch64-unknown-linux-musl/lib" \
          --disable-gcc-wrapper
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make install
      "ndebug": !!bool |-
        true
    "headers":
      "build_dependencies": []
      "configure": |
        mkdir -p "$BUILD_DIR"

        extract.sh --into "$BUILD_DIR" "http://www.musl-libc.org/releases/musl-1.1.19.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/musl-1.1.19-printf-floating-point-rounding.patch" "$BUILD_DIR"

        cd "$BUILD_DIR" && CC="true" "$BUILD_DIR/configure" \
          --target=aarch64-unknown-linux-musl \
          --prefix="$ORCHESTRA_ROOT/aarch64-unknown-linux-musl/usr" \
          --syslibdir="$ORCHESTRA_ROOT/aarch64-unknown-linux-musl/lib" \
          --disable-gcc-wrapper
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS} include/bits/alltypes.h || make ${JOBS:+-j$JOBS} obj/include/bits/alltypes.h
        make ${JOBS:+-j$JOBS} install-headers
      "ndebug": !!bool |-
        true
    "o0":
      "build_dependencies":
      - |-
        toolchain/aarch64/gcc~stage1
      "configure": |
        mkdir -p "$BUILD_DIR"

        extract.sh --into "$BUILD_DIR" "http://www.musl-libc.org/releases/musl-1.1.19.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/musl-1.1.19-printf-floating-point-rounding.patch" "$BUILD_DIR"

        cd "$BUILD_DIR" && CC="$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/aarch64-unknown-linux-musl/gcc-bin/7.3.0//aarch64-unknown-linux-musl-gcc" CFLAGS=" -ggdb3 -Wl,--gc-sections -ffunction-sections -O0" "$BUILD_DIR/configure" \
          --target=aarch64-unknown-linux-musl \
          --prefix="$ORCHESTRA_ROOT/aarch64-unknown-linux-musl/usr" \
          --syslibdir="$ORCHESTRA_ROOT/aarch64-unknown-linux-musl/lib" \
          --disable-gcc-wrapper
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make install
      "ndebug": !!bool |-
        true
    "o1":
      "build_dependencies":
      - |-
        toolchain/aarch64/gcc~stage1
      "configure": |
        mkdir -p "$BUILD_DIR"

        extract.sh --into "$BUILD_DIR" "http://www.musl-libc.org/releases/musl-1.1.19.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/musl-1.1.19-printf-floating-point-rounding.patch" "$BUILD_DIR"

        cd "$BUILD_DIR" && CC="$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/aarch64-unknown-linux-musl/gcc-bin/7.3.0//aarch64-unknown-linux-musl-gcc" CFLAGS=" -ggdb3 -Wl,--gc-sections -ffunction-sections -O1" "$BUILD_DIR/configure" \
          --target=aarch64-unknown-linux-musl \
          --prefix="$ORCHESTRA_ROOT/aarch64-unknown-linux-musl/usr" \
          --syslibdir="$ORCHESTRA_ROOT/aarch64-unknown-linux-musl/lib" \
          --disable-gcc-wrapper
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make install
      "ndebug": !!bool |-
        true
    "o2":
      "build_dependencies":
      - |-
        toolchain/aarch64/gcc~stage1
      "configure": |
        mkdir -p "$BUILD_DIR"

        extract.sh --into "$BUILD_DIR" "http://www.musl-libc.org/releases/musl-1.1.19.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/musl-1.1.19-printf-floating-point-rounding.patch" "$BUILD_DIR"

        cd "$BUILD_DIR" && CC="$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/aarch64-unknown-linux-musl/gcc-bin/7.3.0//aarch64-unknown-linux-musl-gcc" CFLAGS=" -ggdb3 -Wl,--gc-sections -ffunction-sections -O2" "$BUILD_DIR/configure" \
          --target=aarch64-unknown-linux-musl \
          --prefix="$ORCHESTRA_ROOT/aarch64-unknown-linux-musl/usr" \
          --syslibdir="$ORCHESTRA_ROOT/aarch64-unknown-linux-musl/lib" \
          --disable-gcc-wrapper
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make install
      "ndebug": !!bool |-
        true
    "o3":
      "build_dependencies":
      - |-
        toolchain/aarch64/gcc~stage1
      "configure": |
        mkdir -p "$BUILD_DIR"

        extract.sh --into "$BUILD_DIR" "http://www.musl-libc.org/releases/musl-1.1.19.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/musl-1.1.19-printf-floating-point-rounding.patch" "$BUILD_DIR"

        cd "$BUILD_DIR" && CC="$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/aarch64-unknown-linux-musl/gcc-bin/7.3.0//aarch64-unknown-linux-musl-gcc" CFLAGS=" -ggdb3 -Wl,--gc-sections -ffunction-sections -O3" "$BUILD_DIR/configure" \
          --target=aarch64-unknown-linux-musl \
          --prefix="$ORCHESTRA_ROOT/aarch64-unknown-linux-musl/usr" \
          --syslibdir="$ORCHESTRA_ROOT/aarch64-unknown-linux-musl/lib" \
          --disable-gcc-wrapper
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make install
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    default
  "license": |-
    COPYRIGHT
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path":
  - |-
    ${ORCHESTRA_ROOT}/x86_64-pc-linux-gnu/armv7a-hardfloat-linux-uclibceabi/binutils-bin/2.35
  "builds":
    "default":
      "build_dependencies":
      - |-
        glibc
      - |-
        toolchain/host/gcc
      - |-
        toolchain/host/binutils
      "configure": |
        extract.sh --into "$SOURCE_DIR" https://ftp.gnu.org/gnu/binutils/binutils-2.35.tar.bz2
        mkdir -p "$BUILD_DIR"
        cd "$BUILD_DIR" && "$SOURCE_DIR/configure" \
          --build=x86_64-pc-linux-gnu \
          --host=x86_64-pc-linux-gnu \
          --target=armv7a-hardfloat-linux-uclibceabi \
          --with-sysroot="$ORCHESTRA_ROOT/armv7a-hardfloat-linux-uclibceabi" \
          --prefix=$ORCHESTRA_ROOT \
          --datadir=$ORCHESTRA_ROOT/share/binutils-data/armv7a-hardfloat-linux-uclibceabi/2.35 \
          --infodir=$ORCHESTRA_ROOT/share/binutils-data/armv7a-hardfloat-linux-uclibceabi/2.35/info \
          --mandir=$ORCHESTRA_ROOT/share/binutils-data/armv7a-hardfloat-linux-uclibceabi/2.35/man \
          --bindir=$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/armv7a-hardfloat-linux-uclibceabi/binutils-bin/2.35 \
          --libdir=$ORCHESTRA_ROOT/lib64/binutils/armv7a-hardfloat-linux-uclibceabi/2.35 \
          --libexecdir=$ORCHESTRA_ROOT/lib64/binutils/armv7a-hardfloat-linux-uclibceabi/2.35 \
          --includedir=$ORCHESTRA_ROOT/lib64/binutils/armv7a-hardfloat-linux-uclibceabi/2.35/include \
          --without-included-gettext \
          --with-zlib \
          --enable-poison-system-directories \
          --enable-secureplt \
          --enable-obsolete \
          --enable-gold \
          --disable-shared \
          --enable-threads \
          --enable-install-libiberty \
          --disable-werror \
          --disable-static \
          --disable-gdb \
          --disable-libdecnumber \
          --disable-readline \
          --disable-sim \
          --without-debuginfod \
          --without-stage1-ldflags \
           \
          CFLAGS="-w -ggdb3 -O3" \
          CXXFLAGS="-w -ggdb3 -O3"
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make ${JOBS:+-j$JOBS} install DESTDIR="$DESTDIR"
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    default
  "license": |-
    COPYING
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path":
  - |-
    ${ORCHESTRA_ROOT}/x86_64-pc-linux-gnu/armv7a-hardfloat-linux-uclibceabi/gcc-bin/9.2.0
  "builds":
    "stage1":
      "build_dependencies":
      - |-
        glibc
      - |-
        gmp
      - |-
        mpfr
      - |-
        mpc
      "configure": |
        extract.sh --into "$SOURCE_DIR" "https://ftp.gnu.org/gnu/gcc/gcc-9.2.0/gcc-9.2.0.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-9.2.0-cfns-fix-mismatch-in-gnu_inline-attributes.patch" "$SOURCE_DIR"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-9.2.0-cpp-musl-support.patch" "$SOURCE_DIR"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-9.2.0-fixes.patch" "$SOURCE_DIR"
        sed -i 's|gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"|gcc_gxx_include_dir="/${gcc_gxx_without_sysroot#/}"|' "$SOURCE_DIR/gcc/configure"


        mkdir -p "$BUILD_DIR"
        cd "$BUILD_DIR" && "$SOURCE_DIR/configure" \
          --host=x86_64-pc-linux-gnu \
          --build=x86_64-pc-linux-gnu \
          --target=armv7a-hardfloat-linux-uclibceabi \
          --prefix=$ORCHESTRA_ROOT \
          --bindir=$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/armv7a-hardfloat-linux-uclibceabi/gcc-bin/9.2.0 \
          --includedir=$ORCHESTRA_ROOT/lib/gcc/armv7a-hardfloat-linux-uclibceabi/9.2.0/include \
          --datadir=$ORCHESTRA_ROOT/share/gcc-data/armv7a-hardfloat-linux-uclibceabi/9.2.0 \
          --mandir=$ORCHESTRA_ROOT/share/gcc-data/armv7a-hardfloat-linux-uclibceabi/9.2.0/man \
          --infodir=$ORCHESTRA_ROOT/share/gcc-data/armv7a-hardfloat-linux-uclibceabi/9.2.0/info \
          --with-sysroot=$ORCHESTRA_ROOT/armv7a-hardfloat-linux-uclibceabi \
          --enable-obsolete \
          --enable-secureplt \
          --disable-werror \
          --enable-nls \
          --without-included-gettext \
          --enable-checking=release \
          --enable-libstdcxx-time \
          --enable-poison-system-directories \
          --disable-host-shared \
          --enable-shared \
          --disable-libatomic \
          --disable-bootstrap \
          --disable-multilib \
          --disable-altivec \
          --disable-fixed-point \
          --disable-libgcj \
          --disable-libgomp \
          --disable-libmudflap \
          --disable-libssp \
          --disable-libcilkrts \
          --disable-vtable-verify \
          --disable-libvtv \
          --disable-libquadmath \
          --disable-rpath \
          --enable-lto \
          --disable-vtable-verify \
          --disable-libsanitizer \
          --with-gmp="$ORCHESTRA_ROOT" \
          --with-mpfr="$ORCHESTRA_ROOT" \
          --with-mpc="$ORCHESTRA_ROOT" \
          --without-zstd \
          --enable-__cxa_atexit \
          --enable-tls \
          --enable-clocale=gnu \
          --with-float=softfp \
          --with-arch=armv7-a \
          --without-cloog \
          --disable-libsanitizer \
          --disable-libssp \
          --disable-shared \
          --enable-languages=c \
          CFLAGS="-w -ggdb3 -O3 --sysroot $INSTALL_LINK_ONLY_PATH -idirafter /usr/local/include -idirafter /usr/include/x86_64-linux-gnu -idirafter /usr/include" \
          CXXFLAGS="-w -ggdb3 -O3 --sysroot $INSTALL_LINK_ONLY_PATH -idirafter /usr/local/include -idirafter /usr/include/x86_64-linux-gnu -idirafter /usr/include -std=gnu++11" \
          LDFLAGS="-L$INSTALL_LINK_ONLY_PATH/lib -L$ORCHESTRA_ROOT/lib -lrt --sysroot=/ -Wl,-z,origin -Wl,--enable-new-dtags -fuse-ld=gold -Wl,-rpath,$RPATH_PLACEHOLDER/lib -Wl,-rpath,$RPATH_PLACEHOLDER/lib64/llvm/clang-release/lib/clang/12.0.0/lib/linux -static-libgcc"
      "dependencies":
      - |-
        toolchain/arm/binutils
      - |-
        toolchain/host/binutils
      - |-
        toolchain/arm/uclibc~headers
      - |-
        toolchain/arm/linux-headers
      "install": "cd \"$BUILD_DIR\"\nmake ${JOBS:+-j$JOBS} \nmake install \n\nNEW_GCC_PATH=\"$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/armv7a-hardfloat-linux-uclibceabi/gcc-bin/9.2.0/\"\n\nif test -e \"${DESTDIR}${NEW_GCC_PATH}/gcc\"; then\n\n  if ! test -e \"${DESTDIR}${NEW_GCC_PATH}/cc\"; then\n    ln -s gcc \"${DESTDIR}${NEW_GCC_PATH}/cc\"\n  fi\n\n  mkdir -p \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin\"\n  cp \"${ORCHESTRA_DOTDIR}/support/hard-flags-compiler-wrapper.py\" \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/gcc\"\n  ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/cc\"\n  ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-cc\"\n  ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-gcc\"\n\n  cp -a \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib/gcc/x86_64-pc-linux-gnu/9.2.0/*.{a,o} \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib/\n\nfi\n\nif test -e \"${DESTDIR}${NEW_GCC_PATH}/g++\"; then\n\n  if ! test -e \"${DESTDIR}${NEW_GCC_PATH}/c++\"; then\n    ln -s g++ \"${DESTDIR}${NEW_GCC_PATH}/c++\"\n  fi\n\n  cp \"${ORCHESTRA_DOTDIR}/support/hard-flags-compiler-wrapper.py\" \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/g++\"\n  ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-g++\"\n  mkdir -p \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin\"\n  ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/c++\"\n  ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-c++\"\n\nfi\n\nrm -f \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib64/libcc1.*\n\n# Fixinclude locates the wrong pthread.h\nfind \"${DESTDIR}${ORCHESTRA_ROOT}\" -type d -name include-fixed -exec rm -f {}/pthread.h \\;\n"
      "ndebug": !!bool |-
        true
    "stage2":
      "build_dependencies":
      - |-
        toolchain/arm/gcc~stage1
      - |-
        glibc
      - |-
        gmp
      - |-
        mpfr
      - |-
        mpc
      "configure": |
        extract.sh --into "$SOURCE_DIR" "https://ftp.gnu.org/gnu/gcc/gcc-9.2.0/gcc-9.2.0.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-9.2.0-cfns-fix-mismatch-in-gnu_inline-attributes.patch" "$SOURCE_DIR"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-9.2.0-cpp-musl-support.patch" "$SOURCE_DIR"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-9.2.0-fixes.patch" "$SOURCE_DIR"
        sed -i 's|gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"|gcc_gxx_include_dir="/${gcc_gxx_without_sysroot#/}"|' "$SOURCE_DIR/gcc/configure"


        mkdir -p "$BUILD_DIR"
        cd "$BUILD_DIR" && "$SOURCE_DIR/configure" \
          --host=x86_64-pc-linux-gnu \
          --build=x86_64-pc-linux-gnu \
          --target=armv7a-hardfloat-linux-uclibceabi \
          --prefix=$ORCHESTRA_ROOT \
          --bindir=$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/armv7a-hardfloat-linux-uclibceabi/gcc-bin/9.2.0 \
          --includedir=$ORCHESTRA_ROOT/lib/gcc/armv7a-hardfloat-linux-uclibceabi/9.2.0/include \
          --datadir=$ORCHESTRA_ROOT/share/gcc-data/armv7a-hardfloat-linux-uclibceabi/9.2.0 \
          --mandir=$ORCHESTRA_ROOT/share/gcc-data/armv7a-hardfloat-linux-uclibceabi/9.2.0/man \
          --infodir=$ORCHESTRA_ROOT/share/gcc-data/armv7a-hardfloat-linux-uclibceabi/9.2.0/info \
          --with-sysroot=$ORCHESTRA_ROOT/armv7a-hardfloat-linux-uclibceabi \
          --enable-obsolete \
          --enable-secureplt \
          --disable-werror \
          --enable-nls \
          --without-included-gettext \
          --enable-checking=release \
          --enable-libstdcxx-time \
          --enable-poison-system-directories \
          --disable-host-shared \
          --enable-shared \
          --disable-libatomic \
          --disable-bootstrap \
          --disable-multilib \
          --disable-altivec \
          --disable-fixed-point \
          --disable-libgcj \
          --disable-libgomp \
          --disable-libmudflap \
          --disable-libssp \
          --disable-libcilkrts \
          --disable-vtable-verify \
          --disable-libvtv \
          --disable-libquadmath \
          --disable-rpath \
          --enable-lto \
          --disable-vtable-verify \
          --disable-libsanitizer \
          --with-gmp="$ORCHESTRA_ROOT" \
          --with-mpfr="$ORCHESTRA_ROOT" \
          --with-mpc="$ORCHESTRA_ROOT" \
          --without-zstd \
          --enable-__cxa_atexit \
          --enable-tls \
          --enable-clocale=gnu \
          --with-float=softfp \
          --with-arch=armv7-a \
          --without-cloog \
          --disable-libsanitizer \
          --disable-libssp \
          --disable-shared \
          --enable-languages=c,c++ \
          CFLAGS="-w -ggdb3 -O3 --sysroot $INSTALL_LINK_ONLY_PATH -idirafter /usr/local/include -idirafter /usr/include/x86_64-linux-gnu -idirafter /usr/include" \
          CXXFLAGS="-w -ggdb3 -O3 --sysroot $INSTALL_LINK_ONLY_PATH -idirafter /usr/local/include -idirafter /usr/include/x86_64-linux-gnu -idirafter /usr/include -std=gnu++11" \
          LDFLAGS="-L$INSTALL_LINK_ONLY_PATH/lib -L$ORCHESTRA_ROOT/lib -lrt --sysroot=/ -Wl,-z,origin -Wl,--enable-new-dtags -fuse-ld=gold -Wl,-rpath,$RPATH_PLACEHOLDER/lib -Wl,-rpath,$RPATH_PLACEHOLDER/lib64/llvm/clang-release/lib/clang/12.0.0/lib/linux -static-libgcc"
      "dependencies":
      - |-
        toolchain/arm/binutils
      - |-
        toolchain/host/binutils
      - |-
        toolchain/arm/uclibc
      - |-
        toolchain/arm/linux-headers
      "install": "cd \"$BUILD_DIR\"\nmake ${JOBS:+-j$JOBS} \nmake install \n\nNEW_GCC_PATH=\"$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/armv7a-hardfloat-linux-uclibceabi/gcc-bin/9.2.0/\"\n\nif test -e \"${DESTDIR}${NEW_GCC_PATH}/gcc\"; then\n\n  if ! test -e \"${DESTDIR}${NEW_GCC_PATH}/cc\"; then\n    ln -s gcc \"${DESTDIR}${NEW_GCC_PATH}/cc\"\n  fi\n\n  mkdir -p \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin\"\n  cp \"${ORCHESTRA_DOTDIR}/support/hard-flags-compiler-wrapper.py\" \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/gcc\"\n  ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/cc\"\n  ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-cc\"\n  ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-gcc\"\n\n  cp -a \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib/gcc/x86_64-pc-linux-gnu/9.2.0/*.{a,o} \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib/\n\nfi\n\nif test -e \"${DESTDIR}${NEW_GCC_PATH}/g++\"; then\n\n  if ! test -e \"${DESTDIR}${NEW_GCC_PATH}/c++\"; then\n    ln -s g++ \"${DESTDIR}${NEW_GCC_PATH}/c++\"\n  fi\n\n  cp \"${ORCHESTRA_DOTDIR}/support/hard-flags-compiler-wrapper.py\" \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/g++\"\n  ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-g++\"\n  mkdir -p \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin\"\n  ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/c++\"\n  ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-c++\"\n\nfi\n\nrm -f \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib64/libcc1.*\n\n# Fixinclude locates the wrong pthread.h\nfind \"${DESTDIR}${ORCHESTRA_ROOT}\" -type d -name include-fixed -exec rm -f {}/pthread.h \\;\n"
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    stage2
  "license": |-
    COPYING
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path": []
  "builds":
    "default":
      "build_dependencies": []
      "configure": |
        mkdir -p "$BUILD_DIR"
        extract.sh --into "$BUILD_DIR" https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.5.2.tar.xz
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS} -C "$BUILD_DIR" \
          ARCH=arm \
          INSTALL_HDR_PATH="${DESTDIR}${ORCHESTRA_ROOT}/armv7a-hardfloat-linux-uclibceabi/usr" headers_install
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    default
  "license": |-
    COPYING
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path": []
  "builds":
    "default":
      "build_dependencies":
      - |-
        toolchain/arm/gcc~stage1
      "configure": |
        mkdir -p "$BUILD_DIR"
        extract.sh --into "$BUILD_DIR" "https://uclibc.org/downloads/uClibc-0.9.33.2.tar.bz2"
        cd "$BUILD_DIR"
        patch -p1 < "${ORCHESTRA_DOTDIR}/patches/blt-blo.patch"
        patch -p1 < "${ORCHESTRA_DOTDIR}/patches/uclibc-0071-Fix-libgcc_s_resume-issue.patch"
        echo 'false' > extra/config/lxdialog/check-lxdialog.sh
        make ARCH=arm defconfig
        cp "${ORCHESTRA_DOTDIR}/patches/uClibc.config" .config
        sed 's|$INSTALL_PATH|'"$ORCHESTRA_ROOT"'|g' .config -i
        sed 's|$FLAGS|-ggdb3|g' .config -i
        true | make oldconfig
        sed 's|^typedef __kernel_dev_t\s*__kernel_old_dev_t;$|\0\ntypedef long __kernel_long_t;\ntypedef unsigned long __kernel_ulong_t;|' libc/sysdeps/linux/arm/bits/kernel_types.h -i
      "dependencies": []
      "install": |
        export PATH="$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/armv7a-hardfloat-linux-uclibceabi/gcc-bin/9.2.0/:$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/armv7a-hardfloat-linux-uclibceabi/binutils-bin/2.35:$PATH"
        make -C "$BUILD_DIR"
        make -C "$BUILD_DIR" install DESTDIR="${DESTDIR}${ORCHESTRA_ROOT}/armv7a-hardfloat-linux-uclibceabi"
      "ndebug": !!bool |-
        true
    "headers":
      "build_dependencies": []
      "configure": |
        mkdir -p "$BUILD_DIR"
        extract.sh --into "$BUILD_DIR" "https://uclibc.org/downloads/uClibc-0.9.33.2.tar.bz2"
        cd "$BUILD_DIR"
        patch -p1 < "${ORCHESTRA_DOTDIR}/patches/blt-blo.patch"
        patch -p1 < "${ORCHESTRA_DOTDIR}/patches/uclibc-0071-Fix-libgcc_s_resume-issue.patch"
        echo 'false' > extra/config/lxdialog/check-lxdialog.sh
        make ARCH=arm defconfig
        cp "${ORCHESTRA_DOTDIR}/patches/uClibc.config" .config
        sed 's|$INSTALL_PATH|'"$ORCHESTRA_ROOT"'|g' .config -i
        sed 's|$FLAGS||g' .config -i
        true | make oldconfig
        sed 's|^typedef __kernel_dev_t\s*__kernel_old_dev_t;$|\0\ntypedef long __kernel_long_t;\ntypedef unsigned long __kernel_ulong_t;|' libc/sysdeps/linux/arm/bits/kernel_types.h -i
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make headers
        make DESTDIR="${DESTDIR}${ORCHESTRA_ROOT}/armv7a-hardfloat-linux-uclibceabi" install_headers
      "ndebug": !!bool |-
        true
    "o0":
      "build_dependencies":
      - |-
        toolchain/arm/gcc~stage1
      "configure": |
        mkdir -p "$BUILD_DIR"
        extract.sh --into "$BUILD_DIR" "https://uclibc.org/downloads/uClibc-0.9.33.2.tar.bz2"
        cd "$BUILD_DIR"
        patch -p1 < "${ORCHESTRA_DOTDIR}/patches/blt-blo.patch"
        patch -p1 < "${ORCHESTRA_DOTDIR}/patches/uclibc-0071-Fix-libgcc_s_resume-issue.patch"
        echo 'false' > extra/config/lxdialog/check-lxdialog.sh
        make ARCH=arm defconfig
        cp "${ORCHESTRA_DOTDIR}/patches/uClibc.config" .config
        sed 's|$INSTALL_PATH|'"$ORCHESTRA_ROOT"'|g' .config -i
        sed 's|$FLAGS|-ggdb3 -Wl,--gc-sections -ffunction-sections -O0|g' .config -i
        true | make oldconfig
        sed 's|^typedef __kernel_dev_t\s*__kernel_old_dev_t;$|\0\ntypedef long __kernel_long_t;\ntypedef unsigned long __kernel_ulong_t;|' libc/sysdeps/linux/arm/bits/kernel_types.h -i
      "dependencies": []
      "install": |
        export PATH="$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/armv7a-hardfloat-linux-uclibceabi/gcc-bin/9.2.0/:$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/armv7a-hardfloat-linux-uclibceabi/binutils-bin/2.35:$PATH"
        make -C "$BUILD_DIR"
        make -C "$BUILD_DIR" install DESTDIR="${DESTDIR}${ORCHESTRA_ROOT}/armv7a-hardfloat-linux-uclibceabi"
      "ndebug": !!bool |-
        true
    "o1":
      "build_dependencies":
      - |-
        toolchain/arm/gcc~stage1
      "configure": |
        mkdir -p "$BUILD_DIR"
        extract.sh --into "$BUILD_DIR" "https://uclibc.org/downloads/uClibc-0.9.33.2.tar.bz2"
        cd "$BUILD_DIR"
        patch -p1 < "${ORCHESTRA_DOTDIR}/patches/blt-blo.patch"
        patch -p1 < "${ORCHESTRA_DOTDIR}/patches/uclibc-0071-Fix-libgcc_s_resume-issue.patch"
        echo 'false' > extra/config/lxdialog/check-lxdialog.sh
        make ARCH=arm defconfig
        cp "${ORCHESTRA_DOTDIR}/patches/uClibc.config" .config
        sed 's|$INSTALL_PATH|'"$ORCHESTRA_ROOT"'|g' .config -i
        sed 's|$FLAGS|-ggdb3 -Wl,--gc-sections -ffunction-sections -O1|g' .config -i
        true | make oldconfig
        sed 's|^typedef __kernel_dev_t\s*__kernel_old_dev_t;$|\0\ntypedef long __kernel_long_t;\ntypedef unsigned long __kernel_ulong_t;|' libc/sysdeps/linux/arm/bits/kernel_types.h -i
      "dependencies": []
      "install": |
        export PATH="$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/armv7a-hardfloat-linux-uclibceabi/gcc-bin/9.2.0/:$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/armv7a-hardfloat-linux-uclibceabi/binutils-bin/2.35:$PATH"
        make -C "$BUILD_DIR"
        make -C "$BUILD_DIR" install DESTDIR="${DESTDIR}${ORCHESTRA_ROOT}/armv7a-hardfloat-linux-uclibceabi"
      "ndebug": !!bool |-
        true
    "o2":
      "build_dependencies":
      - |-
        toolchain/arm/gcc~stage1
      "configure": |
        mkdir -p "$BUILD_DIR"
        extract.sh --into "$BUILD_DIR" "https://uclibc.org/downloads/uClibc-0.9.33.2.tar.bz2"
        cd "$BUILD_DIR"
        patch -p1 < "${ORCHESTRA_DOTDIR}/patches/blt-blo.patch"
        patch -p1 < "${ORCHESTRA_DOTDIR}/patches/uclibc-0071-Fix-libgcc_s_resume-issue.patch"
        echo 'false' > extra/config/lxdialog/check-lxdialog.sh
        make ARCH=arm defconfig
        cp "${ORCHESTRA_DOTDIR}/patches/uClibc.config" .config
        sed 's|$INSTALL_PATH|'"$ORCHESTRA_ROOT"'|g' .config -i
        sed 's|$FLAGS|-ggdb3 -Wl,--gc-sections -ffunction-sections -O2|g' .config -i
        true | make oldconfig
        sed 's|^typedef __kernel_dev_t\s*__kernel_old_dev_t;$|\0\ntypedef long __kernel_long_t;\ntypedef unsigned long __kernel_ulong_t;|' libc/sysdeps/linux/arm/bits/kernel_types.h -i
      "dependencies": []
      "install": |
        export PATH="$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/armv7a-hardfloat-linux-uclibceabi/gcc-bin/9.2.0/:$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/armv7a-hardfloat-linux-uclibceabi/binutils-bin/2.35:$PATH"
        make -C "$BUILD_DIR"
        make -C "$BUILD_DIR" install DESTDIR="${DESTDIR}${ORCHESTRA_ROOT}/armv7a-hardfloat-linux-uclibceabi"
      "ndebug": !!bool |-
        true
    "o3":
      "build_dependencies":
      - |-
        toolchain/arm/gcc~stage1
      "configure": |
        mkdir -p "$BUILD_DIR"
        extract.sh --into "$BUILD_DIR" "https://uclibc.org/downloads/uClibc-0.9.33.2.tar.bz2"
        cd "$BUILD_DIR"
        patch -p1 < "${ORCHESTRA_DOTDIR}/patches/blt-blo.patch"
        patch -p1 < "${ORCHESTRA_DOTDIR}/patches/uclibc-0071-Fix-libgcc_s_resume-issue.patch"
        echo 'false' > extra/config/lxdialog/check-lxdialog.sh
        make ARCH=arm defconfig
        cp "${ORCHESTRA_DOTDIR}/patches/uClibc.config" .config
        sed 's|$INSTALL_PATH|'"$ORCHESTRA_ROOT"'|g' .config -i
        sed 's|$FLAGS|-ggdb3 -Wl,--gc-sections -ffunction-sections -O3|g' .config -i
        true | make oldconfig
        sed 's|^typedef __kernel_dev_t\s*__kernel_old_dev_t;$|\0\ntypedef long __kernel_long_t;\ntypedef unsigned long __kernel_ulong_t;|' libc/sysdeps/linux/arm/bits/kernel_types.h -i
      "dependencies": []
      "install": |
        export PATH="$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/armv7a-hardfloat-linux-uclibceabi/gcc-bin/9.2.0/:$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/armv7a-hardfloat-linux-uclibceabi/binutils-bin/2.35:$PATH"
        make -C "$BUILD_DIR"
        make -C "$BUILD_DIR" install DESTDIR="${DESTDIR}${ORCHESTRA_ROOT}/armv7a-hardfloat-linux-uclibceabi"
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    default
  "license": |-
    COPYING.LIB
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path":
  - |-
    ${ORCHESTRA_ROOT}/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/binutils-bin/2.37
  "builds":
    "default":
      "build_dependencies":
      - |-
        glibc
      - |-
        toolchain/host/gcc
      "configure": |
        extract.sh --into "$SOURCE_DIR" https://ftp.gnu.org/gnu/binutils/binutils-2.37.tar.bz2
        mkdir -p "$BUILD_DIR"
        cd "$BUILD_DIR" && "$SOURCE_DIR/configure" \
          --build=x86_64-pc-linux-gnu \
          --host=x86_64-pc-linux-gnu \
          --target=x86_64-pc-linux-gnu \
          --with-sysroot="$ORCHESTRA_ROOT/x86_64-pc-linux-gnu" \
          --prefix=$ORCHESTRA_ROOT \
          --datadir=$ORCHESTRA_ROOT/share/binutils-data/x86_64-pc-linux-gnu/2.37 \
          --infodir=$ORCHESTRA_ROOT/share/binutils-data/x86_64-pc-linux-gnu/2.37/info \
          --mandir=$ORCHESTRA_ROOT/share/binutils-data/x86_64-pc-linux-gnu/2.37/man \
          --bindir=$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/binutils-bin/2.37 \
          --libdir=$ORCHESTRA_ROOT/lib64/binutils/x86_64-pc-linux-gnu/2.37 \
          --libexecdir=$ORCHESTRA_ROOT/lib64/binutils/x86_64-pc-linux-gnu/2.37 \
          --includedir=$ORCHESTRA_ROOT/lib64/binutils/x86_64-pc-linux-gnu/2.37/include \
          --without-included-gettext \
          --with-zlib \
          --enable-poison-system-directories \
          --enable-secureplt \
          --enable-obsolete \
          --enable-gold \
          --disable-shared \
          --enable-threads \
          --enable-install-libiberty \
          --disable-werror \
          --disable-static \
          --disable-gdb \
          --disable-libdecnumber \
          --disable-readline \
          --disable-sim \
          --without-debuginfod \
          --without-stage1-ldflags \
          --enable-gold=default \
          CFLAGS="-w -ggdb3 -O3" \
          CXXFLAGS="-w -ggdb3 -O3"
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make ${JOBS:+-j$JOBS} install DESTDIR="$DESTDIR"
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    default
  "license": |-
    COPYING
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path":
  - |-
    ${ORCHESTRA_ROOT}/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/gcc-bin/11.2.0
  "builds":
    "stage1":
      "build_dependencies":
      - |-
        glibc
      - |-
        gmp
      - |-
        mpfr
      - |-
        mpc
      "configure": |
        extract.sh --into "$SOURCE_DIR" "https://ftp.gnu.org/gnu/gcc/gcc-11.2.0/gcc-11.2.0.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-11.2.0-cfns-fix-mismatch-in-gnu_inline-attributes.patch" "$SOURCE_DIR"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-11.2.0-cpp-musl-support.patch" "$SOURCE_DIR"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-11.2.0-fixes.patch" "$SOURCE_DIR"
        sed -i 's|gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"|gcc_gxx_include_dir="/${gcc_gxx_without_sysroot#/}"|' "$SOURCE_DIR/gcc/configure"

        sed -i "s|SHLIB_LINK = .(CC)|\0 -L$ORCHESTRA_ROOT/link-only/lib|" "$SOURCE_DIR/libgcc/config/t-slibgcc"
        sed -i 's|@multilib_flags@||' "$SOURCE_DIR/libgcc/config/t-slibgcc"


        mkdir -p "$BUILD_DIR"
        cd "$BUILD_DIR" && "$SOURCE_DIR/configure" \
          --host=x86_64-pc-linux-gnu \
          --build=x86_64-pc-linux-gnu \
          --target=x86_64-pc-linux-gnu \
          --prefix=$ORCHESTRA_ROOT \
          --bindir=$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/gcc-bin/11.2.0 \
          --includedir=$ORCHESTRA_ROOT/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include \
          --datadir=$ORCHESTRA_ROOT/share/gcc-data/x86_64-pc-linux-gnu/11.2.0 \
          --mandir=$ORCHESTRA_ROOT/share/gcc-data/x86_64-pc-linux-gnu/11.2.0/man \
          --infodir=$ORCHESTRA_ROOT/share/gcc-data/x86_64-pc-linux-gnu/11.2.0/info \
          --with-sysroot=/ \
          --enable-obsolete \
          --enable-secureplt \
          --disable-werror \
          --enable-nls \
          --without-included-gettext \
          --enable-checking=release \
          --enable-libstdcxx-time \
          --enable-poison-system-directories \
          --disable-host-shared \
          --enable-shared \
          --disable-libatomic \
          --disable-bootstrap \
          --disable-multilib \
          --disable-altivec \
          --disable-fixed-point \
          --disable-libgcj \
          --disable-libgomp \
          --disable-libmudflap \
          --disable-libssp \
          --disable-libcilkrts \
          --disable-vtable-verify \
          --disable-libvtv \
          --disable-libquadmath \
          --disable-rpath \
          --enable-lto \
          --disable-vtable-verify \
          --disable-libsanitizer \
          --with-gmp="$ORCHESTRA_ROOT" \
          --with-mpfr="$ORCHESTRA_ROOT" \
          --with-mpc="$ORCHESTRA_ROOT" \
          --without-zstd \
          --without-cloog \
          --enable-libsanitizer \
          --enable-libssp \
          --enable-shared \
          --enable-libatomic \
          --enable-libquadmath \
          --enable-esp \
          --disable-libstdcxx-pch \
          --enable-threads=posix \
          --enable-__cxa_atexit \
          --enable-clocale=gnu \
          --disable-altivec \
          --disable-fixed-point \
          --enable-targets=all \
          --enable-libgomp \
          --disable-libmudflap \
          --disable-libssp \
          --disable-systemtap \
          --enable-lto \
          --without-isl \
          --enable-default-pie \
          --enable-default-ssp \
          --enable-libmpx \
          CFLAGS_FOR_TARGET="-I/usr/include/tirpc -I$ORCHESTRA_ROOT/link-only/include" \
          CXXFLAGS_FOR_TARGET="-I/usr/include/tirpc -I$ORCHESTRA_ROOT/link-only/include" \
          LDFLAGS_FOR_TARGET="-L$INSTALL_LINK_ONLY_PATH/lib -L$ORCHESTRA_ROOT/lib -lrt --sysroot=/ -Wl,-z,origin -Wl,--enable-new-dtags -Wl,-rpath,$RPATH_PLACEHOLDER/lib" \
          --enable-languages=c \
          CFLAGS="-w -ggdb3 -O3 --sysroot $INSTALL_LINK_ONLY_PATH -idirafter /usr/local/include -idirafter /usr/include/x86_64-linux-gnu -idirafter /usr/include" \
          CXXFLAGS="-w -ggdb3 -O3 --sysroot $INSTALL_LINK_ONLY_PATH -idirafter /usr/local/include -idirafter /usr/include/x86_64-linux-gnu -idirafter /usr/include -std=gnu++11" \
          LDFLAGS="-L$INSTALL_LINK_ONLY_PATH/lib -L$ORCHESTRA_ROOT/lib -lrt --sysroot=/ -Wl,-z,origin -Wl,--enable-new-dtags -fuse-ld=gold -Wl,-rpath,$RPATH_PLACEHOLDER/lib -Wl,-rpath,$RPATH_PLACEHOLDER/lib64/llvm/clang-release/lib/clang/12.0.0/lib/linux -static-libgcc"
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS} LIBRARY_PATH=/usr/lib/x86_64-linux-gnu
        make install LIBRARY_PATH=/usr/lib/x86_64-linux-gnu

        NEW_GCC_PATH="$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/gcc-bin/11.2.0/"

        if test -e "${DESTDIR}${NEW_GCC_PATH}/gcc"; then

          if ! test -e "${DESTDIR}${NEW_GCC_PATH}/cc"; then
            ln -s gcc "${DESTDIR}${NEW_GCC_PATH}/cc"
          fi

          mkdir -p "${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin"
          cp "${ORCHESTRA_DOTDIR}/support/hard-flags-compiler-wrapper.py" "${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/gcc"
          ln -s gcc "${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/cc"
          ln -s gcc "${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-cc"
          ln -s gcc "${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-gcc"

          cp -a "${DESTDIR}${ORCHESTRA_ROOT}"/lib/gcc/x86_64-pc-linux-gnu/11.2.0/*.{a,o} "${DESTDIR}${ORCHESTRA_ROOT}"/lib/

        fi

        if test -e "${DESTDIR}${NEW_GCC_PATH}/g++"; then

          if ! test -e "${DESTDIR}${NEW_GCC_PATH}/c++"; then
            ln -s g++ "${DESTDIR}${NEW_GCC_PATH}/c++"
          fi

          cp "${ORCHESTRA_DOTDIR}/support/hard-flags-compiler-wrapper.py" "${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/g++"
          ln -s g++ "${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-g++"
          mkdir -p "${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin"
          ln -s g++ "${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/c++"
          ln -s g++ "${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-c++"

        fi

        rm -f "${DESTDIR}${ORCHESTRA_ROOT}"/lib64/libcc1.*

        # Fixinclude locates the wrong pthread.h
        find "${DESTDIR}${ORCHESTRA_ROOT}" -type d -name include-fixed -exec rm -f {}/pthread.h \;
      "ndebug": !!bool |-
        true
    "stage2":
      "build_dependencies":
      - |-
        glibc
      - |-
        gmp
      - |-
        mpfr
      - |-
        mpc
      "configure": |
        extract.sh --into "$SOURCE_DIR" "https://ftp.gnu.org/gnu/gcc/gcc-11.2.0/gcc-11.2.0.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-11.2.0-cfns-fix-mismatch-in-gnu_inline-attributes.patch" "$SOURCE_DIR"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-11.2.0-cpp-musl-support.patch" "$SOURCE_DIR"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-11.2.0-fixes.patch" "$SOURCE_DIR"
        sed -i 's|gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"|gcc_gxx_include_dir="/${gcc_gxx_without_sysroot#/}"|' "$SOURCE_DIR/gcc/configure"

        sed -i "s|SHLIB_LINK = .(CC)|\0 -L$ORCHESTRA_ROOT/link-only/lib|" "$SOURCE_DIR/libgcc/config/t-slibgcc"
        sed -i 's|@multilib_flags@||' "$SOURCE_DIR/libgcc/config/t-slibgcc"


        mkdir -p "$BUILD_DIR"
        cd "$BUILD_DIR" && "$SOURCE_DIR/configure" \
          --host=x86_64-pc-linux-gnu \
          --build=x86_64-pc-linux-gnu \
          --target=x86_64-pc-linux-gnu \
          --prefix=$ORCHESTRA_ROOT \
          --bindir=$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/gcc-bin/11.2.0 \
          --includedir=$ORCHESTRA_ROOT/lib/gcc/x86_64-pc-linux-gnu/11.2.0/include \
          --datadir=$ORCHESTRA_ROOT/share/gcc-data/x86_64-pc-linux-gnu/11.2.0 \
          --mandir=$ORCHESTRA_ROOT/share/gcc-data/x86_64-pc-linux-gnu/11.2.0/man \
          --infodir=$ORCHESTRA_ROOT/share/gcc-data/x86_64-pc-linux-gnu/11.2.0/info \
          --with-sysroot=/ \
          --enable-obsolete \
          --enable-secureplt \
          --disable-werror \
          --enable-nls \
          --without-included-gettext \
          --enable-checking=release \
          --enable-libstdcxx-time \
          --enable-poison-system-directories \
          --disable-host-shared \
          --enable-shared \
          --disable-libatomic \
          --disable-bootstrap \
          --disable-multilib \
          --disable-altivec \
          --disable-fixed-point \
          --disable-libgcj \
          --disable-libgomp \
          --disable-libmudflap \
          --disable-libssp \
          --disable-libcilkrts \
          --disable-vtable-verify \
          --disable-libvtv \
          --disable-libquadmath \
          --disable-rpath \
          --enable-lto \
          --disable-vtable-verify \
          --disable-libsanitizer \
          --with-gmp="$ORCHESTRA_ROOT" \
          --with-mpfr="$ORCHESTRA_ROOT" \
          --with-mpc="$ORCHESTRA_ROOT" \
          --without-zstd \
          --without-cloog \
          --enable-libsanitizer \
          --enable-libssp \
          --enable-shared \
          --enable-libatomic \
          --enable-libquadmath \
          --enable-esp \
          --disable-libstdcxx-pch \
          --enable-threads=posix \
          --enable-__cxa_atexit \
          --enable-clocale=gnu \
          --disable-altivec \
          --disable-fixed-point \
          --enable-targets=all \
          --enable-libgomp \
          --disable-libmudflap \
          --disable-libssp \
          --disable-systemtap \
          --enable-lto \
          --without-isl \
          --enable-default-pie \
          --enable-default-ssp \
          --enable-libmpx \
          CFLAGS_FOR_TARGET="-I/usr/include/tirpc -I$ORCHESTRA_ROOT/link-only/include" \
          CXXFLAGS_FOR_TARGET="-I/usr/include/tirpc -I$ORCHESTRA_ROOT/link-only/include" \
          LDFLAGS_FOR_TARGET="-L$INSTALL_LINK_ONLY_PATH/lib -L$ORCHESTRA_ROOT/lib -lrt --sysroot=/ -Wl,-z,origin -Wl,--enable-new-dtags -Wl,-rpath,$RPATH_PLACEHOLDER/lib" \
          --enable-languages=c,c++ \
          CFLAGS="-w -ggdb3 -O3 --sysroot $INSTALL_LINK_ONLY_PATH -idirafter /usr/local/include -idirafter /usr/include/x86_64-linux-gnu -idirafter /usr/include" \
          CXXFLAGS="-w -ggdb3 -O3 --sysroot $INSTALL_LINK_ONLY_PATH -idirafter /usr/local/include -idirafter /usr/include/x86_64-linux-gnu -idirafter /usr/include -std=gnu++11" \
          LDFLAGS="-L$INSTALL_LINK_ONLY_PATH/lib -L$ORCHESTRA_ROOT/lib -lrt --sysroot=/ -Wl,-z,origin -Wl,--enable-new-dtags -fuse-ld=gold -Wl,-rpath,$RPATH_PLACEHOLDER/lib -Wl,-rpath,$RPATH_PLACEHOLDER/lib64/llvm/clang-release/lib/clang/12.0.0/lib/linux -static-libgcc"
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS} LIBRARY_PATH=/usr/lib/x86_64-linux-gnu
        make install LIBRARY_PATH=/usr/lib/x86_64-linux-gnu

        NEW_GCC_PATH="$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/gcc-bin/11.2.0/"

        if test -e "${DESTDIR}${NEW_GCC_PATH}/gcc"; then

          if ! test -e "${DESTDIR}${NEW_GCC_PATH}/cc"; then
            ln -s gcc "${DESTDIR}${NEW_GCC_PATH}/cc"
          fi

          mkdir -p "${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin"
          cp "${ORCHESTRA_DOTDIR}/support/hard-flags-compiler-wrapper.py" "${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/gcc"
          ln -s gcc "${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/cc"
          ln -s gcc "${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-cc"
          ln -s gcc "${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-gcc"

          cp -a "${DESTDIR}${ORCHESTRA_ROOT}"/lib/gcc/x86_64-pc-linux-gnu/11.2.0/*.{a,o} "${DESTDIR}${ORCHESTRA_ROOT}"/lib/

        fi

        if test -e "${DESTDIR}${NEW_GCC_PATH}/g++"; then

          if ! test -e "${DESTDIR}${NEW_GCC_PATH}/c++"; then
            ln -s g++ "${DESTDIR}${NEW_GCC_PATH}/c++"
          fi

          cp "${ORCHESTRA_DOTDIR}/support/hard-flags-compiler-wrapper.py" "${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/g++"
          ln -s g++ "${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-g++"
          mkdir -p "${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin"
          ln -s g++ "${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/c++"
          ln -s g++ "${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-c++"

        fi

        rm -f "${DESTDIR}${ORCHESTRA_ROOT}"/lib64/libcc1.*

        # Fixinclude locates the wrong pthread.h
        find "${DESTDIR}${ORCHESTRA_ROOT}" -type d -name include-fixed -exec rm -f {}/pthread.h \;
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    stage2
  "license": |-
    COPYING
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path":
  - |-
    ${ORCHESTRA_ROOT}/x86_64-pc-linux-gnu/i386-gentoo-linux-musl/binutils-bin/2.35
  "builds":
    "default":
      "build_dependencies":
      - |-
        glibc
      - |-
        toolchain/host/gcc
      - |-
        toolchain/host/binutils
      "configure": |
        extract.sh --into "$SOURCE_DIR" https://ftp.gnu.org/gnu/binutils/binutils-2.35.tar.bz2
        mkdir -p "$BUILD_DIR"
        cd "$BUILD_DIR" && "$SOURCE_DIR/configure" \
          --build=x86_64-pc-linux-gnu \
          --host=x86_64-pc-linux-gnu \
          --target=i386-gentoo-linux-musl \
          --with-sysroot="$ORCHESTRA_ROOT/i386-gentoo-linux-musl" \
          --prefix=$ORCHESTRA_ROOT \
          --datadir=$ORCHESTRA_ROOT/share/binutils-data/i386-gentoo-linux-musl/2.35 \
          --infodir=$ORCHESTRA_ROOT/share/binutils-data/i386-gentoo-linux-musl/2.35/info \
          --mandir=$ORCHESTRA_ROOT/share/binutils-data/i386-gentoo-linux-musl/2.35/man \
          --bindir=$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/i386-gentoo-linux-musl/binutils-bin/2.35 \
          --libdir=$ORCHESTRA_ROOT/lib64/binutils/i386-gentoo-linux-musl/2.35 \
          --libexecdir=$ORCHESTRA_ROOT/lib64/binutils/i386-gentoo-linux-musl/2.35 \
          --includedir=$ORCHESTRA_ROOT/lib64/binutils/i386-gentoo-linux-musl/2.35/include \
          --without-included-gettext \
          --with-zlib \
          --enable-poison-system-directories \
          --enable-secureplt \
          --enable-obsolete \
          --enable-gold \
          --disable-shared \
          --enable-threads \
          --enable-install-libiberty \
          --disable-werror \
          --disable-static \
          --disable-gdb \
          --disable-libdecnumber \
          --disable-readline \
          --disable-sim \
          --without-debuginfod \
          --without-stage1-ldflags \
           \
          CFLAGS="-w -ggdb3 -O3" \
          CXXFLAGS="-w -ggdb3 -O3"
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make ${JOBS:+-j$JOBS} install DESTDIR="$DESTDIR"
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    default
  "license": |-
    COPYING
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path":
  - |-
    ${ORCHESTRA_ROOT}/x86_64-pc-linux-gnu/i386-gentoo-linux-musl/gcc-bin/9.2.0
  "builds":
    "stage1":
      "build_dependencies":
      - |-
        glibc
      - |-
        gmp
      - |-
        mpfr
      - |-
        mpc
      "configure": |
        extract.sh --into "$SOURCE_DIR" "https://ftp.gnu.org/gnu/gcc/gcc-9.2.0/gcc-9.2.0.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-9.2.0-cfns-fix-mismatch-in-gnu_inline-attributes.patch" "$SOURCE_DIR"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-9.2.0-cpp-musl-support.patch" "$SOURCE_DIR"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-9.2.0-fixes.patch" "$SOURCE_DIR"
        sed -i 's|gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"|gcc_gxx_include_dir="/${gcc_gxx_without_sysroot#/}"|' "$SOURCE_DIR/gcc/configure"


        mkdir -p "$BUILD_DIR"
        cd "$BUILD_DIR" && "$SOURCE_DIR/configure" \
          --host=x86_64-pc-linux-gnu \
          --build=x86_64-pc-linux-gnu \
          --target=i386-gentoo-linux-musl \
          --prefix=$ORCHESTRA_ROOT \
          --bindir=$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/i386-gentoo-linux-musl/gcc-bin/9.2.0 \
          --includedir=$ORCHESTRA_ROOT/lib/gcc/i386-gentoo-linux-musl/9.2.0/include \
          --datadir=$ORCHESTRA_ROOT/share/gcc-data/i386-gentoo-linux-musl/9.2.0 \
          --mandir=$ORCHESTRA_ROOT/share/gcc-data/i386-gentoo-linux-musl/9.2.0/man \
          --infodir=$ORCHESTRA_ROOT/share/gcc-data/i386-gentoo-linux-musl/9.2.0/info \
          --with-sysroot=$ORCHESTRA_ROOT/i386-gentoo-linux-musl \
          --enable-obsolete \
          --enable-secureplt \
          --disable-werror \
          --enable-nls \
          --without-included-gettext \
          --enable-checking=release \
          --enable-libstdcxx-time \
          --enable-poison-system-directories \
          --disable-host-shared \
          --enable-shared \
          --disable-libatomic \
          --disable-bootstrap \
          --disable-multilib \
          --disable-altivec \
          --disable-fixed-point \
          --disable-libgcj \
          --disable-libgomp \
          --disable-libmudflap \
          --disable-libssp \
          --disable-libcilkrts \
          --disable-vtable-verify \
          --disable-libvtv \
          --disable-libquadmath \
          --disable-rpath \
          --enable-lto \
          --disable-vtable-verify \
          --disable-libsanitizer \
          --with-gmp="$ORCHESTRA_ROOT" \
          --with-mpfr="$ORCHESTRA_ROOT" \
          --with-mpc="$ORCHESTRA_ROOT" \
          --without-zstd \
          --without-cloog \
          --enable-targets=all \
          --without-isl \
          --disable-libsanitizer \
          --disable-libssp \
          --disable-shared \
          --enable-languages=c \
          CFLAGS="-w -ggdb3 -O3 --sysroot $INSTALL_LINK_ONLY_PATH -idirafter /usr/local/include -idirafter /usr/include/x86_64-linux-gnu -idirafter /usr/include" \
          CXXFLAGS="-w -ggdb3 -O3 --sysroot $INSTALL_LINK_ONLY_PATH -idirafter /usr/local/include -idirafter /usr/include/x86_64-linux-gnu -idirafter /usr/include -std=gnu++11" \
          LDFLAGS="-L$INSTALL_LINK_ONLY_PATH/lib -L$ORCHESTRA_ROOT/lib -lrt --sysroot=/ -Wl,-z,origin -Wl,--enable-new-dtags -fuse-ld=gold -Wl,-rpath,$RPATH_PLACEHOLDER/lib -Wl,-rpath,$RPATH_PLACEHOLDER/lib64/llvm/clang-release/lib/clang/12.0.0/lib/linux -static-libgcc"
      "dependencies":
      - |-
        toolchain/i386/binutils
      - |-
        toolchain/host/binutils
      - |-
        toolchain/i386/musl~headers
      - |-
        toolchain/i386/linux-headers
      "install": "cd \"$BUILD_DIR\"\nmake ${JOBS:+-j$JOBS} \nmake install \n\nNEW_GCC_PATH=\"$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/i386-gentoo-linux-musl/gcc-bin/9.2.0/\"\n\nif test -e \"${DESTDIR}${NEW_GCC_PATH}/gcc\"; then\n\n  if ! test -e \"${DESTDIR}${NEW_GCC_PATH}/cc\"; then\n    ln -s gcc \"${DESTDIR}${NEW_GCC_PATH}/cc\"\n  fi\n\n  mkdir -p \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin\"\n  cp \"${ORCHESTRA_DOTDIR}/support/hard-flags-compiler-wrapper.py\" \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/gcc\"\n  ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/cc\"\n  ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-cc\"\n  ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-gcc\"\n\n  cp -a \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib/gcc/x86_64-pc-linux-gnu/9.2.0/*.{a,o} \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib/\n\nfi\n\nif test -e \"${DESTDIR}${NEW_GCC_PATH}/g++\"; then\n\n  if ! test -e \"${DESTDIR}${NEW_GCC_PATH}/c++\"; then\n    ln -s g++ \"${DESTDIR}${NEW_GCC_PATH}/c++\"\n  fi\n\n  cp \"${ORCHESTRA_DOTDIR}/support/hard-flags-compiler-wrapper.py\" \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/g++\"\n  ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-g++\"\n  mkdir -p \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin\"\n  ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/c++\"\n  ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-c++\"\n\nfi\n\nrm -f \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib64/libcc1.*\n\n# Fixinclude locates the wrong pthread.h\nfind \"${DESTDIR}${ORCHESTRA_ROOT}\" -type d -name include-fixed -exec rm -f {}/pthread.h \\;\n"
      "ndebug": !!bool |-
        true
    "stage2":
      "build_dependencies":
      - |-
        toolchain/i386/gcc~stage1
      - |-
        glibc
      - |-
        gmp
      - |-
        mpfr
      - |-
        mpc
      "configure": |
        extract.sh --into "$SOURCE_DIR" "https://ftp.gnu.org/gnu/gcc/gcc-9.2.0/gcc-9.2.0.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-9.2.0-cfns-fix-mismatch-in-gnu_inline-attributes.patch" "$SOURCE_DIR"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-9.2.0-cpp-musl-support.patch" "$SOURCE_DIR"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-9.2.0-fixes.patch" "$SOURCE_DIR"
        sed -i 's|gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"|gcc_gxx_include_dir="/${gcc_gxx_without_sysroot#/}"|' "$SOURCE_DIR/gcc/configure"


        mkdir -p "$BUILD_DIR"
        cd "$BUILD_DIR" && "$SOURCE_DIR/configure" \
          --host=x86_64-pc-linux-gnu \
          --build=x86_64-pc-linux-gnu \
          --target=i386-gentoo-linux-musl \
          --prefix=$ORCHESTRA_ROOT \
          --bindir=$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/i386-gentoo-linux-musl/gcc-bin/9.2.0 \
          --includedir=$ORCHESTRA_ROOT/lib/gcc/i386-gentoo-linux-musl/9.2.0/include \
          --datadir=$ORCHESTRA_ROOT/share/gcc-data/i386-gentoo-linux-musl/9.2.0 \
          --mandir=$ORCHESTRA_ROOT/share/gcc-data/i386-gentoo-linux-musl/9.2.0/man \
          --infodir=$ORCHESTRA_ROOT/share/gcc-data/i386-gentoo-linux-musl/9.2.0/info \
          --with-sysroot=$ORCHESTRA_ROOT/i386-gentoo-linux-musl \
          --enable-obsolete \
          --enable-secureplt \
          --disable-werror \
          --enable-nls \
          --without-included-gettext \
          --enable-checking=release \
          --enable-libstdcxx-time \
          --enable-poison-system-directories \
          --disable-host-shared \
          --enable-shared \
          --disable-libatomic \
          --disable-bootstrap \
          --disable-multilib \
          --disable-altivec \
          --disable-fixed-point \
          --disable-libgcj \
          --disable-libgomp \
          --disable-libmudflap \
          --disable-libssp \
          --disable-libcilkrts \
          --disable-vtable-verify \
          --disable-libvtv \
          --disable-libquadmath \
          --disable-rpath \
          --enable-lto \
          --disable-vtable-verify \
          --disable-libsanitizer \
          --with-gmp="$ORCHESTRA_ROOT" \
          --with-mpfr="$ORCHESTRA_ROOT" \
          --with-mpc="$ORCHESTRA_ROOT" \
          --without-zstd \
          --without-cloog \
          --enable-targets=all \
          --without-isl \
          --disable-libsanitizer \
          --disable-libssp \
          --disable-shared \
          --enable-languages=c,c++ \
          CFLAGS="-w -ggdb3 -O3 --sysroot $INSTALL_LINK_ONLY_PATH -idirafter /usr/local/include -idirafter /usr/include/x86_64-linux-gnu -idirafter /usr/include" \
          CXXFLAGS="-w -ggdb3 -O3 --sysroot $INSTALL_LINK_ONLY_PATH -idirafter /usr/local/include -idirafter /usr/include/x86_64-linux-gnu -idirafter /usr/include -std=gnu++11" \
          LDFLAGS="-L$INSTALL_LINK_ONLY_PATH/lib -L$ORCHESTRA_ROOT/lib -lrt --sysroot=/ -Wl,-z,origin -Wl,--enable-new-dtags -fuse-ld=gold -Wl,-rpath,$RPATH_PLACEHOLDER/lib -Wl,-rpath,$RPATH_PLACEHOLDER/lib64/llvm/clang-release/lib/clang/12.0.0/lib/linux -static-libgcc"
      "dependencies":
      - |-
        toolchain/i386/binutils
      - |-
        toolchain/host/binutils
      - |-
        toolchain/i386/musl
      - |-
        toolchain/i386/linux-headers
      "install": "cd \"$BUILD_DIR\"\nmake ${JOBS:+-j$JOBS} \nmake install \n\nNEW_GCC_PATH=\"$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/i386-gentoo-linux-musl/gcc-bin/9.2.0/\"\n\nif test -e \"${DESTDIR}${NEW_GCC_PATH}/gcc\"; then\n\n  if ! test -e \"${DESTDIR}${NEW_GCC_PATH}/cc\"; then\n    ln -s gcc \"${DESTDIR}${NEW_GCC_PATH}/cc\"\n  fi\n\n  mkdir -p \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin\"\n  cp \"${ORCHESTRA_DOTDIR}/support/hard-flags-compiler-wrapper.py\" \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/gcc\"\n  ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/cc\"\n  ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-cc\"\n  ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-gcc\"\n\n  cp -a \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib/gcc/x86_64-pc-linux-gnu/9.2.0/*.{a,o} \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib/\n\nfi\n\nif test -e \"${DESTDIR}${NEW_GCC_PATH}/g++\"; then\n\n  if ! test -e \"${DESTDIR}${NEW_GCC_PATH}/c++\"; then\n    ln -s g++ \"${DESTDIR}${NEW_GCC_PATH}/c++\"\n  fi\n\n  cp \"${ORCHESTRA_DOTDIR}/support/hard-flags-compiler-wrapper.py\" \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/g++\"\n  ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-g++\"\n  mkdir -p \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin\"\n  ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/c++\"\n  ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-c++\"\n\nfi\n\nrm -f \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib64/libcc1.*\n\n# Fixinclude locates the wrong pthread.h\nfind \"${DESTDIR}${ORCHESTRA_ROOT}\" -type d -name include-fixed -exec rm -f {}/pthread.h \\;\n"
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    stage2
  "license": |-
    COPYING
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path": []
  "builds":
    "default":
      "build_dependencies": []
      "configure": |
        mkdir -p "$BUILD_DIR"
        extract.sh --into "$BUILD_DIR" https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.5.2.tar.xz
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS} -C "$BUILD_DIR" \
          ARCH=i386 \
          INSTALL_HDR_PATH="${DESTDIR}${ORCHESTRA_ROOT}/i386-gentoo-linux-musl/usr" headers_install
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    default
  "license": |-
    COPYING
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path": []
  "builds":
    "default":
      "build_dependencies":
      - |-
        toolchain/i386/gcc~stage1
      "configure": |
        mkdir -p "$BUILD_DIR"

        extract.sh --into "$BUILD_DIR" "http://www.musl-libc.org/releases/musl-1.1.12.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/musl-1.1.12-printf-floating-point-rounding.patch" "$BUILD_DIR"

        cd "$BUILD_DIR" && CC="$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/i386-gentoo-linux-musl/gcc-bin/9.2.0//i386-gentoo-linux-musl-gcc" CFLAGS=" -ggdb3" "$BUILD_DIR/configure" \
          --target=i386-gentoo-linux-musl \
          --prefix="$ORCHESTRA_ROOT/i386-gentoo-linux-musl/usr" \
          --syslibdir="$ORCHESTRA_ROOT/i386-gentoo-linux-musl/lib" \
          --disable-gcc-wrapper
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make install
      "ndebug": !!bool |-
        true
    "headers":
      "build_dependencies": []
      "configure": |
        mkdir -p "$BUILD_DIR"

        extract.sh --into "$BUILD_DIR" "http://www.musl-libc.org/releases/musl-1.1.12.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/musl-1.1.12-printf-floating-point-rounding.patch" "$BUILD_DIR"

        cd "$BUILD_DIR" && CC="true" "$BUILD_DIR/configure" \
          --target=i386-gentoo-linux-musl \
          --prefix="$ORCHESTRA_ROOT/i386-gentoo-linux-musl/usr" \
          --syslibdir="$ORCHESTRA_ROOT/i386-gentoo-linux-musl/lib" \
          --disable-gcc-wrapper
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS} include/bits/alltypes.h || make ${JOBS:+-j$JOBS} obj/include/bits/alltypes.h
        make ${JOBS:+-j$JOBS} install-headers
      "ndebug": !!bool |-
        true
    "o0":
      "build_dependencies":
      - |-
        toolchain/i386/gcc~stage1
      "configure": |
        mkdir -p "$BUILD_DIR"

        extract.sh --into "$BUILD_DIR" "http://www.musl-libc.org/releases/musl-1.1.12.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/musl-1.1.12-printf-floating-point-rounding.patch" "$BUILD_DIR"

        cd "$BUILD_DIR" && CC="$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/i386-gentoo-linux-musl/gcc-bin/9.2.0//i386-gentoo-linux-musl-gcc" CFLAGS=" -ggdb3 -Wl,--gc-sections -ffunction-sections -O0" "$BUILD_DIR/configure" \
          --target=i386-gentoo-linux-musl \
          --prefix="$ORCHESTRA_ROOT/i386-gentoo-linux-musl/usr" \
          --syslibdir="$ORCHESTRA_ROOT/i386-gentoo-linux-musl/lib" \
          --disable-gcc-wrapper
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make install
      "ndebug": !!bool |-
        true
    "o1":
      "build_dependencies":
      - |-
        toolchain/i386/gcc~stage1
      "configure": |
        mkdir -p "$BUILD_DIR"

        extract.sh --into "$BUILD_DIR" "http://www.musl-libc.org/releases/musl-1.1.12.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/musl-1.1.12-printf-floating-point-rounding.patch" "$BUILD_DIR"

        cd "$BUILD_DIR" && CC="$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/i386-gentoo-linux-musl/gcc-bin/9.2.0//i386-gentoo-linux-musl-gcc" CFLAGS=" -ggdb3 -Wl,--gc-sections -ffunction-sections -O1" "$BUILD_DIR/configure" \
          --target=i386-gentoo-linux-musl \
          --prefix="$ORCHESTRA_ROOT/i386-gentoo-linux-musl/usr" \
          --syslibdir="$ORCHESTRA_ROOT/i386-gentoo-linux-musl/lib" \
          --disable-gcc-wrapper
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make install
      "ndebug": !!bool |-
        true
    "o2":
      "build_dependencies":
      - |-
        toolchain/i386/gcc~stage1
      "configure": |
        mkdir -p "$BUILD_DIR"

        extract.sh --into "$BUILD_DIR" "http://www.musl-libc.org/releases/musl-1.1.12.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/musl-1.1.12-printf-floating-point-rounding.patch" "$BUILD_DIR"

        cd "$BUILD_DIR" && CC="$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/i386-gentoo-linux-musl/gcc-bin/9.2.0//i386-gentoo-linux-musl-gcc" CFLAGS=" -ggdb3 -Wl,--gc-sections -ffunction-sections -O2" "$BUILD_DIR/configure" \
          --target=i386-gentoo-linux-musl \
          --prefix="$ORCHESTRA_ROOT/i386-gentoo-linux-musl/usr" \
          --syslibdir="$ORCHESTRA_ROOT/i386-gentoo-linux-musl/lib" \
          --disable-gcc-wrapper
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make install
      "ndebug": !!bool |-
        true
    "o3":
      "build_dependencies":
      - |-
        toolchain/i386/gcc~stage1
      "configure": |
        mkdir -p "$BUILD_DIR"

        extract.sh --into "$BUILD_DIR" "http://www.musl-libc.org/releases/musl-1.1.12.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/musl-1.1.12-printf-floating-point-rounding.patch" "$BUILD_DIR"

        cd "$BUILD_DIR" && CC="$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/i386-gentoo-linux-musl/gcc-bin/9.2.0//i386-gentoo-linux-musl-gcc" CFLAGS=" -ggdb3 -Wl,--gc-sections -ffunction-sections -O3" "$BUILD_DIR/configure" \
          --target=i386-gentoo-linux-musl \
          --prefix="$ORCHESTRA_ROOT/i386-gentoo-linux-musl/usr" \
          --syslibdir="$ORCHESTRA_ROOT/i386-gentoo-linux-musl/lib" \
          --disable-gcc-wrapper
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make install
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    default
  "license": |-
    COPYRIGHT
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path":
  - |-
    ${ORCHESTRA_ROOT}/x86_64-pc-linux-gnu/mips-unknown-linux-musl/binutils-bin/2.35
  "builds":
    "default":
      "build_dependencies":
      - |-
        glibc
      - |-
        toolchain/host/gcc
      - |-
        toolchain/host/binutils
      "configure": |
        extract.sh --into "$SOURCE_DIR" https://ftp.gnu.org/gnu/binutils/binutils-2.35.tar.bz2
        mkdir -p "$BUILD_DIR"
        cd "$BUILD_DIR" && "$SOURCE_DIR/configure" \
          --build=x86_64-pc-linux-gnu \
          --host=x86_64-pc-linux-gnu \
          --target=mips-unknown-linux-musl \
          --with-sysroot="$ORCHESTRA_ROOT/mips-unknown-linux-musl" \
          --prefix=$ORCHESTRA_ROOT \
          --datadir=$ORCHESTRA_ROOT/share/binutils-data/mips-unknown-linux-musl/2.35 \
          --infodir=$ORCHESTRA_ROOT/share/binutils-data/mips-unknown-linux-musl/2.35/info \
          --mandir=$ORCHESTRA_ROOT/share/binutils-data/mips-unknown-linux-musl/2.35/man \
          --bindir=$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/mips-unknown-linux-musl/binutils-bin/2.35 \
          --libdir=$ORCHESTRA_ROOT/lib64/binutils/mips-unknown-linux-musl/2.35 \
          --libexecdir=$ORCHESTRA_ROOT/lib64/binutils/mips-unknown-linux-musl/2.35 \
          --includedir=$ORCHESTRA_ROOT/lib64/binutils/mips-unknown-linux-musl/2.35/include \
          --without-included-gettext \
          --with-zlib \
          --enable-poison-system-directories \
          --enable-secureplt \
          --enable-obsolete \
          --enable-gold \
          --disable-shared \
          --enable-threads \
          --enable-install-libiberty \
          --disable-werror \
          --disable-static \
          --disable-gdb \
          --disable-libdecnumber \
          --disable-readline \
          --disable-sim \
          --without-debuginfod \
          --without-stage1-ldflags \
           \
          CFLAGS="-w -ggdb3 -O3" \
          CXXFLAGS="-w -ggdb3 -O3"
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make ${JOBS:+-j$JOBS} install DESTDIR="$DESTDIR"
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    default
  "license": |-
    COPYING
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path":
  - |-
    ${ORCHESTRA_ROOT}/x86_64-pc-linux-gnu/mips-unknown-linux-musl/gcc-bin/9.2.0
  "builds":
    "stage1":
      "build_dependencies":
      - |-
        glibc
      - |-
        gmp
      - |-
        mpfr
      - |-
        mpc
      "configure": |
        extract.sh --into "$SOURCE_DIR" "https://ftp.gnu.org/gnu/gcc/gcc-9.2.0/gcc-9.2.0.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-9.2.0-cfns-fix-mismatch-in-gnu_inline-attributes.patch" "$SOURCE_DIR"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-9.2.0-cpp-musl-support.patch" "$SOURCE_DIR"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-9.2.0-fixes.patch" "$SOURCE_DIR"
        sed -i 's|gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"|gcc_gxx_include_dir="/${gcc_gxx_without_sysroot#/}"|' "$SOURCE_DIR/gcc/configure"


        mkdir -p "$BUILD_DIR"
        cd "$BUILD_DIR" && "$SOURCE_DIR/configure" \
          --host=x86_64-pc-linux-gnu \
          --build=x86_64-pc-linux-gnu \
          --target=mips-unknown-linux-musl \
          --prefix=$ORCHESTRA_ROOT \
          --bindir=$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/mips-unknown-linux-musl/gcc-bin/9.2.0 \
          --includedir=$ORCHESTRA_ROOT/lib/gcc/mips-unknown-linux-musl/9.2.0/include \
          --datadir=$ORCHESTRA_ROOT/share/gcc-data/mips-unknown-linux-musl/9.2.0 \
          --mandir=$ORCHESTRA_ROOT/share/gcc-data/mips-unknown-linux-musl/9.2.0/man \
          --infodir=$ORCHESTRA_ROOT/share/gcc-data/mips-unknown-linux-musl/9.2.0/info \
          --with-sysroot=$ORCHESTRA_ROOT/mips-unknown-linux-musl \
          --enable-obsolete \
          --enable-secureplt \
          --disable-werror \
          --enable-nls \
          --without-included-gettext \
          --enable-checking=release \
          --enable-libstdcxx-time \
          --enable-poison-system-directories \
          --disable-host-shared \
          --enable-shared \
          --disable-libatomic \
          --disable-bootstrap \
          --disable-multilib \
          --disable-altivec \
          --disable-fixed-point \
          --disable-libgcj \
          --disable-libgomp \
          --disable-libmudflap \
          --disable-libssp \
          --disable-libcilkrts \
          --disable-vtable-verify \
          --disable-libvtv \
          --disable-libquadmath \
          --disable-rpath \
          --enable-lto \
          --disable-vtable-verify \
          --disable-libsanitizer \
          --with-gmp="$ORCHESTRA_ROOT" \
          --with-mpfr="$ORCHESTRA_ROOT" \
          --with-mpc="$ORCHESTRA_ROOT" \
          --without-zstd \
          --with-abi= \
          --without-isl \
          --disable-libsanitizer \
          --disable-libssp \
          --disable-shared \
          --enable-languages=c \
          CFLAGS="-w -ggdb3 -O3 --sysroot $INSTALL_LINK_ONLY_PATH -idirafter /usr/local/include -idirafter /usr/include/x86_64-linux-gnu -idirafter /usr/include" \
          CXXFLAGS="-w -ggdb3 -O3 --sysroot $INSTALL_LINK_ONLY_PATH -idirafter /usr/local/include -idirafter /usr/include/x86_64-linux-gnu -idirafter /usr/include -std=gnu++11" \
          LDFLAGS="-L$INSTALL_LINK_ONLY_PATH/lib -L$ORCHESTRA_ROOT/lib -lrt --sysroot=/ -Wl,-z,origin -Wl,--enable-new-dtags -fuse-ld=gold -Wl,-rpath,$RPATH_PLACEHOLDER/lib -Wl,-rpath,$RPATH_PLACEHOLDER/lib64/llvm/clang-release/lib/clang/12.0.0/lib/linux -static-libgcc"
      "dependencies":
      - |-
        toolchain/mips/binutils
      - |-
        toolchain/host/binutils
      - |-
        toolchain/mips/musl~headers
      - |-
        toolchain/mips/linux-headers
      "install": "cd \"$BUILD_DIR\"\nmake ${JOBS:+-j$JOBS} \nmake install \n\nNEW_GCC_PATH=\"$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/mips-unknown-linux-musl/gcc-bin/9.2.0/\"\n\nif test -e \"${DESTDIR}${NEW_GCC_PATH}/gcc\"; then\n\n  if ! test -e \"${DESTDIR}${NEW_GCC_PATH}/cc\"; then\n    ln -s gcc \"${DESTDIR}${NEW_GCC_PATH}/cc\"\n  fi\n\n  mkdir -p \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin\"\n  cp \"${ORCHESTRA_DOTDIR}/support/hard-flags-compiler-wrapper.py\" \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/gcc\"\n  ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/cc\"\n  ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-cc\"\n  ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-gcc\"\n\n  cp -a \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib/gcc/x86_64-pc-linux-gnu/9.2.0/*.{a,o} \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib/\n\nfi\n\nif test -e \"${DESTDIR}${NEW_GCC_PATH}/g++\"; then\n\n  if ! test -e \"${DESTDIR}${NEW_GCC_PATH}/c++\"; then\n    ln -s g++ \"${DESTDIR}${NEW_GCC_PATH}/c++\"\n  fi\n\n  cp \"${ORCHESTRA_DOTDIR}/support/hard-flags-compiler-wrapper.py\" \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/g++\"\n  ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-g++\"\n  mkdir -p \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin\"\n  ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/c++\"\n  ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-c++\"\n\nfi\n\nrm -f \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib64/libcc1.*\n\n# Fixinclude locates the wrong pthread.h\nfind \"${DESTDIR}${ORCHESTRA_ROOT}\" -type d -name include-fixed -exec rm -f {}/pthread.h \\;\n"
      "ndebug": !!bool |-
        true
    "stage2":
      "build_dependencies":
      - |-
        toolchain/mips/gcc~stage1
      - |-
        glibc
      - |-
        gmp
      - |-
        mpfr
      - |-
        mpc
      "configure": |
        extract.sh --into "$SOURCE_DIR" "https://ftp.gnu.org/gnu/gcc/gcc-9.2.0/gcc-9.2.0.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-9.2.0-cfns-fix-mismatch-in-gnu_inline-attributes.patch" "$SOURCE_DIR"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-9.2.0-cpp-musl-support.patch" "$SOURCE_DIR"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-9.2.0-fixes.patch" "$SOURCE_DIR"
        sed -i 's|gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"|gcc_gxx_include_dir="/${gcc_gxx_without_sysroot#/}"|' "$SOURCE_DIR/gcc/configure"


        mkdir -p "$BUILD_DIR"
        cd "$BUILD_DIR" && "$SOURCE_DIR/configure" \
          --host=x86_64-pc-linux-gnu \
          --build=x86_64-pc-linux-gnu \
          --target=mips-unknown-linux-musl \
          --prefix=$ORCHESTRA_ROOT \
          --bindir=$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/mips-unknown-linux-musl/gcc-bin/9.2.0 \
          --includedir=$ORCHESTRA_ROOT/lib/gcc/mips-unknown-linux-musl/9.2.0/include \
          --datadir=$ORCHESTRA_ROOT/share/gcc-data/mips-unknown-linux-musl/9.2.0 \
          --mandir=$ORCHESTRA_ROOT/share/gcc-data/mips-unknown-linux-musl/9.2.0/man \
          --infodir=$ORCHESTRA_ROOT/share/gcc-data/mips-unknown-linux-musl/9.2.0/info \
          --with-sysroot=$ORCHESTRA_ROOT/mips-unknown-linux-musl \
          --enable-obsolete \
          --enable-secureplt \
          --disable-werror \
          --enable-nls \
          --without-included-gettext \
          --enable-checking=release \
          --enable-libstdcxx-time \
          --enable-poison-system-directories \
          --disable-host-shared \
          --enable-shared \
          --disable-libatomic \
          --disable-bootstrap \
          --disable-multilib \
          --disable-altivec \
          --disable-fixed-point \
          --disable-libgcj \
          --disable-libgomp \
          --disable-libmudflap \
          --disable-libssp \
          --disable-libcilkrts \
          --disable-vtable-verify \
          --disable-libvtv \
          --disable-libquadmath \
          --disable-rpath \
          --enable-lto \
          --disable-vtable-verify \
          --disable-libsanitizer \
          --with-gmp="$ORCHESTRA_ROOT" \
          --with-mpfr="$ORCHESTRA_ROOT" \
          --with-mpc="$ORCHESTRA_ROOT" \
          --without-zstd \
          --with-abi= \
          --without-isl \
          --disable-libsanitizer \
          --disable-libssp \
          --disable-shared \
          --enable-languages=c,c++ \
          CFLAGS="-w -ggdb3 -O3 --sysroot $INSTALL_LINK_ONLY_PATH -idirafter /usr/local/include -idirafter /usr/include/x86_64-linux-gnu -idirafter /usr/include" \
          CXXFLAGS="-w -ggdb3 -O3 --sysroot $INSTALL_LINK_ONLY_PATH -idirafter /usr/local/include -idirafter /usr/include/x86_64-linux-gnu -idirafter /usr/include -std=gnu++11" \
          LDFLAGS="-L$INSTALL_LINK_ONLY_PATH/lib -L$ORCHESTRA_ROOT/lib -lrt --sysroot=/ -Wl,-z,origin -Wl,--enable-new-dtags -fuse-ld=gold -Wl,-rpath,$RPATH_PLACEHOLDER/lib -Wl,-rpath,$RPATH_PLACEHOLDER/lib64/llvm/clang-release/lib/clang/12.0.0/lib/linux -static-libgcc"
      "dependencies":
      - |-
        toolchain/mips/binutils
      - |-
        toolchain/host/binutils
      - |-
        toolchain/mips/musl
      - |-
        toolchain/mips/linux-headers
      "install": "cd \"$BUILD_DIR\"\nmake ${JOBS:+-j$JOBS} \nmake install \n\nNEW_GCC_PATH=\"$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/mips-unknown-linux-musl/gcc-bin/9.2.0/\"\n\nif test -e \"${DESTDIR}${NEW_GCC_PATH}/gcc\"; then\n\n  if ! test -e \"${DESTDIR}${NEW_GCC_PATH}/cc\"; then\n    ln -s gcc \"${DESTDIR}${NEW_GCC_PATH}/cc\"\n  fi\n\n  mkdir -p \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin\"\n  cp \"${ORCHESTRA_DOTDIR}/support/hard-flags-compiler-wrapper.py\" \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/gcc\"\n  ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/cc\"\n  ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-cc\"\n  ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-gcc\"\n\n  cp -a \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib/gcc/x86_64-pc-linux-gnu/9.2.0/*.{a,o} \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib/\n\nfi\n\nif test -e \"${DESTDIR}${NEW_GCC_PATH}/g++\"; then\n\n  if ! test -e \"${DESTDIR}${NEW_GCC_PATH}/c++\"; then\n    ln -s g++ \"${DESTDIR}${NEW_GCC_PATH}/c++\"\n  fi\n\n  cp \"${ORCHESTRA_DOTDIR}/support/hard-flags-compiler-wrapper.py\" \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/g++\"\n  ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-g++\"\n  mkdir -p \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin\"\n  ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/c++\"\n  ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-c++\"\n\nfi\n\nrm -f \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib64/libcc1.*\n\n# Fixinclude locates the wrong pthread.h\nfind \"${DESTDIR}${ORCHESTRA_ROOT}\" -type d -name include-fixed -exec rm -f {}/pthread.h \\;\n"
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    stage2
  "license": |-
    COPYING
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path": []
  "builds":
    "default":
      "build_dependencies": []
      "configure": |
        mkdir -p "$BUILD_DIR"
        extract.sh --into "$BUILD_DIR" https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.5.2.tar.xz
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS} -C "$BUILD_DIR" \
          ARCH=mips \
          INSTALL_HDR_PATH="${DESTDIR}${ORCHESTRA_ROOT}/mips-unknown-linux-musl/usr" headers_install
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    default
  "license": |-
    COPYING
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path": []
  "builds":
    "default":
      "build_dependencies":
      - |-
        toolchain/mips/gcc~stage1
      "configure": |
        mkdir -p "$BUILD_DIR"

        extract.sh --into "$BUILD_DIR" "http://www.musl-libc.org/releases/musl-1.1.12.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/musl-1.1.12-printf-floating-point-rounding.patch" "$BUILD_DIR"

        cd "$BUILD_DIR" && CC="$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/mips-unknown-linux-musl/gcc-bin/9.2.0//mips-unknown-linux-musl-gcc" CFLAGS=" -ggdb3" "$BUILD_DIR/configure" \
          --target=mips-unknown-linux-musl \
          --prefix="$ORCHESTRA_ROOT/mips-unknown-linux-musl/usr" \
          --syslibdir="$ORCHESTRA_ROOT/mips-unknown-linux-musl/lib" \
          --disable-gcc-wrapper
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make install
      "ndebug": !!bool |-
        true
    "headers":
      "build_dependencies": []
      "configure": |
        mkdir -p "$BUILD_DIR"

        extract.sh --into "$BUILD_DIR" "http://www.musl-libc.org/releases/musl-1.1.12.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/musl-1.1.12-printf-floating-point-rounding.patch" "$BUILD_DIR"

        cd "$BUILD_DIR" && CC="true" "$BUILD_DIR/configure" \
          --target=mips-unknown-linux-musl \
          --prefix="$ORCHESTRA_ROOT/mips-unknown-linux-musl/usr" \
          --syslibdir="$ORCHESTRA_ROOT/mips-unknown-linux-musl/lib" \
          --disable-gcc-wrapper
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS} include/bits/alltypes.h || make ${JOBS:+-j$JOBS} obj/include/bits/alltypes.h
        make ${JOBS:+-j$JOBS} install-headers
      "ndebug": !!bool |-
        true
    "o0":
      "build_dependencies":
      - |-
        toolchain/mips/gcc~stage1
      "configure": |
        mkdir -p "$BUILD_DIR"

        extract.sh --into "$BUILD_DIR" "http://www.musl-libc.org/releases/musl-1.1.12.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/musl-1.1.12-printf-floating-point-rounding.patch" "$BUILD_DIR"

        cd "$BUILD_DIR" && CC="$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/mips-unknown-linux-musl/gcc-bin/9.2.0//mips-unknown-linux-musl-gcc" CFLAGS=" -ggdb3 -Wl,--gc-sections -ffunction-sections -O0" "$BUILD_DIR/configure" \
          --target=mips-unknown-linux-musl \
          --prefix="$ORCHESTRA_ROOT/mips-unknown-linux-musl/usr" \
          --syslibdir="$ORCHESTRA_ROOT/mips-unknown-linux-musl/lib" \
          --disable-gcc-wrapper
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make install
      "ndebug": !!bool |-
        true
    "o1":
      "build_dependencies":
      - |-
        toolchain/mips/gcc~stage1
      "configure": |
        mkdir -p "$BUILD_DIR"

        extract.sh --into "$BUILD_DIR" "http://www.musl-libc.org/releases/musl-1.1.12.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/musl-1.1.12-printf-floating-point-rounding.patch" "$BUILD_DIR"

        cd "$BUILD_DIR" && CC="$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/mips-unknown-linux-musl/gcc-bin/9.2.0//mips-unknown-linux-musl-gcc" CFLAGS=" -ggdb3 -Wl,--gc-sections -ffunction-sections -O1" "$BUILD_DIR/configure" \
          --target=mips-unknown-linux-musl \
          --prefix="$ORCHESTRA_ROOT/mips-unknown-linux-musl/usr" \
          --syslibdir="$ORCHESTRA_ROOT/mips-unknown-linux-musl/lib" \
          --disable-gcc-wrapper
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make install
      "ndebug": !!bool |-
        true
    "o2":
      "build_dependencies":
      - |-
        toolchain/mips/gcc~stage1
      "configure": |
        mkdir -p "$BUILD_DIR"

        extract.sh --into "$BUILD_DIR" "http://www.musl-libc.org/releases/musl-1.1.12.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/musl-1.1.12-printf-floating-point-rounding.patch" "$BUILD_DIR"

        cd "$BUILD_DIR" && CC="$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/mips-unknown-linux-musl/gcc-bin/9.2.0//mips-unknown-linux-musl-gcc" CFLAGS=" -ggdb3 -Wl,--gc-sections -ffunction-sections -O2" "$BUILD_DIR/configure" \
          --target=mips-unknown-linux-musl \
          --prefix="$ORCHESTRA_ROOT/mips-unknown-linux-musl/usr" \
          --syslibdir="$ORCHESTRA_ROOT/mips-unknown-linux-musl/lib" \
          --disable-gcc-wrapper
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make install
      "ndebug": !!bool |-
        true
    "o3":
      "build_dependencies":
      - |-
        toolchain/mips/gcc~stage1
      "configure": |
        mkdir -p "$BUILD_DIR"

        extract.sh --into "$BUILD_DIR" "http://www.musl-libc.org/releases/musl-1.1.12.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/musl-1.1.12-printf-floating-point-rounding.patch" "$BUILD_DIR"

        cd "$BUILD_DIR" && CC="$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/mips-unknown-linux-musl/gcc-bin/9.2.0//mips-unknown-linux-musl-gcc" CFLAGS=" -ggdb3 -Wl,--gc-sections -ffunction-sections -O3" "$BUILD_DIR/configure" \
          --target=mips-unknown-linux-musl \
          --prefix="$ORCHESTRA_ROOT/mips-unknown-linux-musl/usr" \
          --syslibdir="$ORCHESTRA_ROOT/mips-unknown-linux-musl/lib" \
          --disable-gcc-wrapper
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make install
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    default
  "license": |-
    COPYRIGHT
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path":
  - |-
    ${ORCHESTRA_ROOT}/x86_64-pc-linux-gnu/mipsel-unknown-linux-musl/binutils-bin/2.35
  "builds":
    "default":
      "build_dependencies":
      - |-
        glibc
      - |-
        toolchain/host/gcc
      - |-
        toolchain/host/binutils
      "configure": |
        extract.sh --into "$SOURCE_DIR" https://ftp.gnu.org/gnu/binutils/binutils-2.35.tar.bz2
        mkdir -p "$BUILD_DIR"
        cd "$BUILD_DIR" && "$SOURCE_DIR/configure" \
          --build=x86_64-pc-linux-gnu \
          --host=x86_64-pc-linux-gnu \
          --target=mipsel-unknown-linux-musl \
          --with-sysroot="$ORCHESTRA_ROOT/mipsel-unknown-linux-musl" \
          --prefix=$ORCHESTRA_ROOT \
          --datadir=$ORCHESTRA_ROOT/share/binutils-data/mipsel-unknown-linux-musl/2.35 \
          --infodir=$ORCHESTRA_ROOT/share/binutils-data/mipsel-unknown-linux-musl/2.35/info \
          --mandir=$ORCHESTRA_ROOT/share/binutils-data/mipsel-unknown-linux-musl/2.35/man \
          --bindir=$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/mipsel-unknown-linux-musl/binutils-bin/2.35 \
          --libdir=$ORCHESTRA_ROOT/lib64/binutils/mipsel-unknown-linux-musl/2.35 \
          --libexecdir=$ORCHESTRA_ROOT/lib64/binutils/mipsel-unknown-linux-musl/2.35 \
          --includedir=$ORCHESTRA_ROOT/lib64/binutils/mipsel-unknown-linux-musl/2.35/include \
          --without-included-gettext \
          --with-zlib \
          --enable-poison-system-directories \
          --enable-secureplt \
          --enable-obsolete \
          --enable-gold \
          --disable-shared \
          --enable-threads \
          --enable-install-libiberty \
          --disable-werror \
          --disable-static \
          --disable-gdb \
          --disable-libdecnumber \
          --disable-readline \
          --disable-sim \
          --without-debuginfod \
          --without-stage1-ldflags \
           \
          CFLAGS="-w -ggdb3 -O3" \
          CXXFLAGS="-w -ggdb3 -O3"
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make ${JOBS:+-j$JOBS} install DESTDIR="$DESTDIR"
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    default
  "license": |-
    COPYING
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path":
  - |-
    ${ORCHESTRA_ROOT}/x86_64-pc-linux-gnu/mipsel-unknown-linux-musl/gcc-bin/9.2.0
  "builds":
    "stage1":
      "build_dependencies":
      - |-
        glibc
      - |-
        gmp
      - |-
        mpfr
      - |-
        mpc
      "configure": |
        extract.sh --into "$SOURCE_DIR" "https://ftp.gnu.org/gnu/gcc/gcc-9.2.0/gcc-9.2.0.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-9.2.0-cfns-fix-mismatch-in-gnu_inline-attributes.patch" "$SOURCE_DIR"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-9.2.0-cpp-musl-support.patch" "$SOURCE_DIR"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-9.2.0-fixes.patch" "$SOURCE_DIR"
        sed -i 's|gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"|gcc_gxx_include_dir="/${gcc_gxx_without_sysroot#/}"|' "$SOURCE_DIR/gcc/configure"


        mkdir -p "$BUILD_DIR"
        cd "$BUILD_DIR" && "$SOURCE_DIR/configure" \
          --host=x86_64-pc-linux-gnu \
          --build=x86_64-pc-linux-gnu \
          --target=mipsel-unknown-linux-musl \
          --prefix=$ORCHESTRA_ROOT \
          --bindir=$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/mipsel-unknown-linux-musl/gcc-bin/9.2.0 \
          --includedir=$ORCHESTRA_ROOT/lib/gcc/mipsel-unknown-linux-musl/9.2.0/include \
          --datadir=$ORCHESTRA_ROOT/share/gcc-data/mipsel-unknown-linux-musl/9.2.0 \
          --mandir=$ORCHESTRA_ROOT/share/gcc-data/mipsel-unknown-linux-musl/9.2.0/man \
          --infodir=$ORCHESTRA_ROOT/share/gcc-data/mipsel-unknown-linux-musl/9.2.0/info \
          --with-sysroot=$ORCHESTRA_ROOT/mipsel-unknown-linux-musl \
          --enable-obsolete \
          --enable-secureplt \
          --disable-werror \
          --enable-nls \
          --without-included-gettext \
          --enable-checking=release \
          --enable-libstdcxx-time \
          --enable-poison-system-directories \
          --disable-host-shared \
          --enable-shared \
          --disable-libatomic \
          --disable-bootstrap \
          --disable-multilib \
          --disable-altivec \
          --disable-fixed-point \
          --disable-libgcj \
          --disable-libgomp \
          --disable-libmudflap \
          --disable-libssp \
          --disable-libcilkrts \
          --disable-vtable-verify \
          --disable-libvtv \
          --disable-libquadmath \
          --disable-rpath \
          --enable-lto \
          --disable-vtable-verify \
          --disable-libsanitizer \
          --with-gmp="$ORCHESTRA_ROOT" \
          --with-mpfr="$ORCHESTRA_ROOT" \
          --with-mpc="$ORCHESTRA_ROOT" \
          --without-zstd \
          --with-abi= \
          --without-isl \
          --disable-libsanitizer \
          --disable-libssp \
          --disable-shared \
          --enable-languages=c \
          CFLAGS="-w -ggdb3 -O3 --sysroot $INSTALL_LINK_ONLY_PATH -idirafter /usr/local/include -idirafter /usr/include/x86_64-linux-gnu -idirafter /usr/include" \
          CXXFLAGS="-w -ggdb3 -O3 --sysroot $INSTALL_LINK_ONLY_PATH -idirafter /usr/local/include -idirafter /usr/include/x86_64-linux-gnu -idirafter /usr/include -std=gnu++11" \
          LDFLAGS="-L$INSTALL_LINK_ONLY_PATH/lib -L$ORCHESTRA_ROOT/lib -lrt --sysroot=/ -Wl,-z,origin -Wl,--enable-new-dtags -fuse-ld=gold -Wl,-rpath,$RPATH_PLACEHOLDER/lib -Wl,-rpath,$RPATH_PLACEHOLDER/lib64/llvm/clang-release/lib/clang/12.0.0/lib/linux -static-libgcc"
      "dependencies":
      - |-
        toolchain/mipsel/binutils
      - |-
        toolchain/host/binutils
      - |-
        toolchain/mipsel/musl~headers
      - |-
        toolchain/mipsel/linux-headers
      "install": "cd \"$BUILD_DIR\"\nmake ${JOBS:+-j$JOBS} \nmake install \n\nNEW_GCC_PATH=\"$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/mipsel-unknown-linux-musl/gcc-bin/9.2.0/\"\n\nif test -e \"${DESTDIR}${NEW_GCC_PATH}/gcc\"; then\n\n  if ! test -e \"${DESTDIR}${NEW_GCC_PATH}/cc\"; then\n    ln -s gcc \"${DESTDIR}${NEW_GCC_PATH}/cc\"\n  fi\n\n  mkdir -p \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin\"\n  cp \"${ORCHESTRA_DOTDIR}/support/hard-flags-compiler-wrapper.py\" \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/gcc\"\n  ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/cc\"\n  ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-cc\"\n  ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-gcc\"\n\n  cp -a \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib/gcc/x86_64-pc-linux-gnu/9.2.0/*.{a,o} \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib/\n\nfi\n\nif test -e \"${DESTDIR}${NEW_GCC_PATH}/g++\"; then\n\n  if ! test -e \"${DESTDIR}${NEW_GCC_PATH}/c++\"; then\n    ln -s g++ \"${DESTDIR}${NEW_GCC_PATH}/c++\"\n  fi\n\n  cp \"${ORCHESTRA_DOTDIR}/support/hard-flags-compiler-wrapper.py\" \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/g++\"\n  ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-g++\"\n  mkdir -p \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin\"\n  ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/c++\"\n  ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-c++\"\n\nfi\n\nrm -f \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib64/libcc1.*\n\n# Fixinclude locates the wrong pthread.h\nfind \"${DESTDIR}${ORCHESTRA_ROOT}\" -type d -name include-fixed -exec rm -f {}/pthread.h \\;\n"
      "ndebug": !!bool |-
        true
    "stage2":
      "build_dependencies":
      - |-
        toolchain/mipsel/gcc~stage1
      - |-
        glibc
      - |-
        gmp
      - |-
        mpfr
      - |-
        mpc
      "configure": |
        extract.sh --into "$SOURCE_DIR" "https://ftp.gnu.org/gnu/gcc/gcc-9.2.0/gcc-9.2.0.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-9.2.0-cfns-fix-mismatch-in-gnu_inline-attributes.patch" "$SOURCE_DIR"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-9.2.0-cpp-musl-support.patch" "$SOURCE_DIR"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-9.2.0-fixes.patch" "$SOURCE_DIR"
        sed -i 's|gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"|gcc_gxx_include_dir="/${gcc_gxx_without_sysroot#/}"|' "$SOURCE_DIR/gcc/configure"


        mkdir -p "$BUILD_DIR"
        cd "$BUILD_DIR" && "$SOURCE_DIR/configure" \
          --host=x86_64-pc-linux-gnu \
          --build=x86_64-pc-linux-gnu \
          --target=mipsel-unknown-linux-musl \
          --prefix=$ORCHESTRA_ROOT \
          --bindir=$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/mipsel-unknown-linux-musl/gcc-bin/9.2.0 \
          --includedir=$ORCHESTRA_ROOT/lib/gcc/mipsel-unknown-linux-musl/9.2.0/include \
          --datadir=$ORCHESTRA_ROOT/share/gcc-data/mipsel-unknown-linux-musl/9.2.0 \
          --mandir=$ORCHESTRA_ROOT/share/gcc-data/mipsel-unknown-linux-musl/9.2.0/man \
          --infodir=$ORCHESTRA_ROOT/share/gcc-data/mipsel-unknown-linux-musl/9.2.0/info \
          --with-sysroot=$ORCHESTRA_ROOT/mipsel-unknown-linux-musl \
          --enable-obsolete \
          --enable-secureplt \
          --disable-werror \
          --enable-nls \
          --without-included-gettext \
          --enable-checking=release \
          --enable-libstdcxx-time \
          --enable-poison-system-directories \
          --disable-host-shared \
          --enable-shared \
          --disable-libatomic \
          --disable-bootstrap \
          --disable-multilib \
          --disable-altivec \
          --disable-fixed-point \
          --disable-libgcj \
          --disable-libgomp \
          --disable-libmudflap \
          --disable-libssp \
          --disable-libcilkrts \
          --disable-vtable-verify \
          --disable-libvtv \
          --disable-libquadmath \
          --disable-rpath \
          --enable-lto \
          --disable-vtable-verify \
          --disable-libsanitizer \
          --with-gmp="$ORCHESTRA_ROOT" \
          --with-mpfr="$ORCHESTRA_ROOT" \
          --with-mpc="$ORCHESTRA_ROOT" \
          --without-zstd \
          --with-abi= \
          --without-isl \
          --disable-libsanitizer \
          --disable-libssp \
          --disable-shared \
          --enable-languages=c,c++ \
          CFLAGS="-w -ggdb3 -O3 --sysroot $INSTALL_LINK_ONLY_PATH -idirafter /usr/local/include -idirafter /usr/include/x86_64-linux-gnu -idirafter /usr/include" \
          CXXFLAGS="-w -ggdb3 -O3 --sysroot $INSTALL_LINK_ONLY_PATH -idirafter /usr/local/include -idirafter /usr/include/x86_64-linux-gnu -idirafter /usr/include -std=gnu++11" \
          LDFLAGS="-L$INSTALL_LINK_ONLY_PATH/lib -L$ORCHESTRA_ROOT/lib -lrt --sysroot=/ -Wl,-z,origin -Wl,--enable-new-dtags -fuse-ld=gold -Wl,-rpath,$RPATH_PLACEHOLDER/lib -Wl,-rpath,$RPATH_PLACEHOLDER/lib64/llvm/clang-release/lib/clang/12.0.0/lib/linux -static-libgcc"
      "dependencies":
      - |-
        toolchain/mipsel/binutils
      - |-
        toolchain/host/binutils
      - |-
        toolchain/mipsel/musl
      - |-
        toolchain/mipsel/linux-headers
      "install": "cd \"$BUILD_DIR\"\nmake ${JOBS:+-j$JOBS} \nmake install \n\nNEW_GCC_PATH=\"$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/mipsel-unknown-linux-musl/gcc-bin/9.2.0/\"\n\nif test -e \"${DESTDIR}${NEW_GCC_PATH}/gcc\"; then\n\n  if ! test -e \"${DESTDIR}${NEW_GCC_PATH}/cc\"; then\n    ln -s gcc \"${DESTDIR}${NEW_GCC_PATH}/cc\"\n  fi\n\n  mkdir -p \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin\"\n  cp \"${ORCHESTRA_DOTDIR}/support/hard-flags-compiler-wrapper.py\" \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/gcc\"\n  ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/cc\"\n  ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-cc\"\n  ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-gcc\"\n\n  cp -a \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib/gcc/x86_64-pc-linux-gnu/9.2.0/*.{a,o} \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib/\n\nfi\n\nif test -e \"${DESTDIR}${NEW_GCC_PATH}/g++\"; then\n\n  if ! test -e \"${DESTDIR}${NEW_GCC_PATH}/c++\"; then\n    ln -s g++ \"${DESTDIR}${NEW_GCC_PATH}/c++\"\n  fi\n\n  cp \"${ORCHESTRA_DOTDIR}/support/hard-flags-compiler-wrapper.py\" \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/g++\"\n  ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-g++\"\n  mkdir -p \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin\"\n  ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/c++\"\n  ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-c++\"\n\nfi\n\nrm -f \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib64/libcc1.*\n\n# Fixinclude locates the wrong pthread.h\nfind \"${DESTDIR}${ORCHESTRA_ROOT}\" -type d -name include-fixed -exec rm -f {}/pthread.h \\;\n"
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    stage2
  "license": |-
    COPYING
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path": []
  "builds":
    "default":
      "build_dependencies": []
      "configure": |
        mkdir -p "$BUILD_DIR"
        extract.sh --into "$BUILD_DIR" https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.5.2.tar.xz
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS} -C "$BUILD_DIR" \
          ARCH=mips \
          INSTALL_HDR_PATH="${DESTDIR}${ORCHESTRA_ROOT}/mipsel-unknown-linux-musl/usr" headers_install
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    default
  "license": |-
    COPYING
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path": []
  "builds":
    "default":
      "build_dependencies":
      - |-
        toolchain/mipsel/gcc~stage1
      "configure": |
        mkdir -p "$BUILD_DIR"

        extract.sh --into "$BUILD_DIR" "http://www.musl-libc.org/releases/musl-1.1.12.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/musl-1.1.12-printf-floating-point-rounding.patch" "$BUILD_DIR"

        cd "$BUILD_DIR" && CC="$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/mipsel-unknown-linux-musl/gcc-bin/9.2.0//mipsel-unknown-linux-musl-gcc" CFLAGS=" -ggdb3" "$BUILD_DIR/configure" \
          --target=mipsel-unknown-linux-musl \
          --prefix="$ORCHESTRA_ROOT/mipsel-unknown-linux-musl/usr" \
          --syslibdir="$ORCHESTRA_ROOT/mipsel-unknown-linux-musl/lib" \
          --disable-gcc-wrapper
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make install
      "ndebug": !!bool |-
        true
    "headers":
      "build_dependencies": []
      "configure": |
        mkdir -p "$BUILD_DIR"

        extract.sh --into "$BUILD_DIR" "http://www.musl-libc.org/releases/musl-1.1.12.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/musl-1.1.12-printf-floating-point-rounding.patch" "$BUILD_DIR"

        cd "$BUILD_DIR" && CC="true" "$BUILD_DIR/configure" \
          --target=mipsel-unknown-linux-musl \
          --prefix="$ORCHESTRA_ROOT/mipsel-unknown-linux-musl/usr" \
          --syslibdir="$ORCHESTRA_ROOT/mipsel-unknown-linux-musl/lib" \
          --disable-gcc-wrapper
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS} include/bits/alltypes.h || make ${JOBS:+-j$JOBS} obj/include/bits/alltypes.h
        make ${JOBS:+-j$JOBS} install-headers
      "ndebug": !!bool |-
        true
    "o0":
      "build_dependencies":
      - |-
        toolchain/mipsel/gcc~stage1
      "configure": |
        mkdir -p "$BUILD_DIR"

        extract.sh --into "$BUILD_DIR" "http://www.musl-libc.org/releases/musl-1.1.12.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/musl-1.1.12-printf-floating-point-rounding.patch" "$BUILD_DIR"

        cd "$BUILD_DIR" && CC="$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/mipsel-unknown-linux-musl/gcc-bin/9.2.0//mipsel-unknown-linux-musl-gcc" CFLAGS=" -ggdb3 -Wl,--gc-sections -ffunction-sections -O0" "$BUILD_DIR/configure" \
          --target=mipsel-unknown-linux-musl \
          --prefix="$ORCHESTRA_ROOT/mipsel-unknown-linux-musl/usr" \
          --syslibdir="$ORCHESTRA_ROOT/mipsel-unknown-linux-musl/lib" \
          --disable-gcc-wrapper
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make install
      "ndebug": !!bool |-
        true
    "o1":
      "build_dependencies":
      - |-
        toolchain/mipsel/gcc~stage1
      "configure": |
        mkdir -p "$BUILD_DIR"

        extract.sh --into "$BUILD_DIR" "http://www.musl-libc.org/releases/musl-1.1.12.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/musl-1.1.12-printf-floating-point-rounding.patch" "$BUILD_DIR"

        cd "$BUILD_DIR" && CC="$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/mipsel-unknown-linux-musl/gcc-bin/9.2.0//mipsel-unknown-linux-musl-gcc" CFLAGS=" -ggdb3 -Wl,--gc-sections -ffunction-sections -O1" "$BUILD_DIR/configure" \
          --target=mipsel-unknown-linux-musl \
          --prefix="$ORCHESTRA_ROOT/mipsel-unknown-linux-musl/usr" \
          --syslibdir="$ORCHESTRA_ROOT/mipsel-unknown-linux-musl/lib" \
          --disable-gcc-wrapper
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make install
      "ndebug": !!bool |-
        true
    "o2":
      "build_dependencies":
      - |-
        toolchain/mipsel/gcc~stage1
      "configure": |
        mkdir -p "$BUILD_DIR"

        extract.sh --into "$BUILD_DIR" "http://www.musl-libc.org/releases/musl-1.1.12.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/musl-1.1.12-printf-floating-point-rounding.patch" "$BUILD_DIR"

        cd "$BUILD_DIR" && CC="$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/mipsel-unknown-linux-musl/gcc-bin/9.2.0//mipsel-unknown-linux-musl-gcc" CFLAGS=" -ggdb3 -Wl,--gc-sections -ffunction-sections -O2" "$BUILD_DIR/configure" \
          --target=mipsel-unknown-linux-musl \
          --prefix="$ORCHESTRA_ROOT/mipsel-unknown-linux-musl/usr" \
          --syslibdir="$ORCHESTRA_ROOT/mipsel-unknown-linux-musl/lib" \
          --disable-gcc-wrapper
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make install
      "ndebug": !!bool |-
        true
    "o3":
      "build_dependencies":
      - |-
        toolchain/mipsel/gcc~stage1
      "configure": |
        mkdir -p "$BUILD_DIR"

        extract.sh --into "$BUILD_DIR" "http://www.musl-libc.org/releases/musl-1.1.12.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/musl-1.1.12-printf-floating-point-rounding.patch" "$BUILD_DIR"

        cd "$BUILD_DIR" && CC="$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/mipsel-unknown-linux-musl/gcc-bin/9.2.0//mipsel-unknown-linux-musl-gcc" CFLAGS=" -ggdb3 -Wl,--gc-sections -ffunction-sections -O3" "$BUILD_DIR/configure" \
          --target=mipsel-unknown-linux-musl \
          --prefix="$ORCHESTRA_ROOT/mipsel-unknown-linux-musl/usr" \
          --syslibdir="$ORCHESTRA_ROOT/mipsel-unknown-linux-musl/lib" \
          --disable-gcc-wrapper
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make install
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    default
  "license": |-
    COPYRIGHT
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path":
  - |-
    ${ORCHESTRA_ROOT}/x86_64-pc-linux-gnu/s390x-ibm-linux-musl/binutils-bin/2.35
  "builds":
    "default":
      "build_dependencies":
      - |-
        glibc
      - |-
        toolchain/host/gcc
      - |-
        toolchain/host/binutils
      "configure": |
        extract.sh --into "$SOURCE_DIR" https://ftp.gnu.org/gnu/binutils/binutils-2.35.tar.bz2
        mkdir -p "$BUILD_DIR"
        cd "$BUILD_DIR" && "$SOURCE_DIR/configure" \
          --build=x86_64-pc-linux-gnu \
          --host=x86_64-pc-linux-gnu \
          --target=s390x-ibm-linux-musl \
          --with-sysroot="$ORCHESTRA_ROOT/s390x-ibm-linux-musl" \
          --prefix=$ORCHESTRA_ROOT \
          --datadir=$ORCHESTRA_ROOT/share/binutils-data/s390x-ibm-linux-musl/2.35 \
          --infodir=$ORCHESTRA_ROOT/share/binutils-data/s390x-ibm-linux-musl/2.35/info \
          --mandir=$ORCHESTRA_ROOT/share/binutils-data/s390x-ibm-linux-musl/2.35/man \
          --bindir=$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/s390x-ibm-linux-musl/binutils-bin/2.35 \
          --libdir=$ORCHESTRA_ROOT/lib64/binutils/s390x-ibm-linux-musl/2.35 \
          --libexecdir=$ORCHESTRA_ROOT/lib64/binutils/s390x-ibm-linux-musl/2.35 \
          --includedir=$ORCHESTRA_ROOT/lib64/binutils/s390x-ibm-linux-musl/2.35/include \
          --without-included-gettext \
          --with-zlib \
          --enable-poison-system-directories \
          --enable-secureplt \
          --enable-obsolete \
          --enable-gold \
          --disable-shared \
          --enable-threads \
          --enable-install-libiberty \
          --disable-werror \
          --disable-static \
          --disable-gdb \
          --disable-libdecnumber \
          --disable-readline \
          --disable-sim \
          --without-debuginfod \
          --without-stage1-ldflags \
           \
          CFLAGS="-w -ggdb3 -O3" \
          CXXFLAGS="-w -ggdb3 -O3"
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make ${JOBS:+-j$JOBS} install DESTDIR="$DESTDIR"
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    default
  "license": |-
    COPYING
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path":
  - |-
    ${ORCHESTRA_ROOT}/x86_64-pc-linux-gnu/s390x-ibm-linux-musl/gcc-bin/7.3.0
  "builds":
    "stage1":
      "build_dependencies":
      - |-
        glibc
      - |-
        gmp
      - |-
        mpfr
      - |-
        mpc
      "configure": |
        extract.sh --into "$SOURCE_DIR" "https://ftp.gnu.org/gnu/gcc/gcc-7.3.0/gcc-7.3.0.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-7.3.0-cfns-fix-mismatch-in-gnu_inline-attributes.patch" "$SOURCE_DIR"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-7.3.0-cpp-musl-support.patch" "$SOURCE_DIR"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-7.3.0-fixes.patch" "$SOURCE_DIR"
        sed -i 's|gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"|gcc_gxx_include_dir="/${gcc_gxx_without_sysroot#/}"|' "$SOURCE_DIR/gcc/configure"


        mkdir -p "$BUILD_DIR"
        cd "$BUILD_DIR" && "$SOURCE_DIR/configure" \
          --host=x86_64-pc-linux-gnu \
          --build=x86_64-pc-linux-gnu \
          --target=s390x-ibm-linux-musl \
          --prefix=$ORCHESTRA_ROOT \
          --bindir=$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/s390x-ibm-linux-musl/gcc-bin/7.3.0 \
          --includedir=$ORCHESTRA_ROOT/lib/gcc/s390x-ibm-linux-musl/7.3.0/include \
          --datadir=$ORCHESTRA_ROOT/share/gcc-data/s390x-ibm-linux-musl/7.3.0 \
          --mandir=$ORCHESTRA_ROOT/share/gcc-data/s390x-ibm-linux-musl/7.3.0/man \
          --infodir=$ORCHESTRA_ROOT/share/gcc-data/s390x-ibm-linux-musl/7.3.0/info \
          --with-sysroot=$ORCHESTRA_ROOT/s390x-ibm-linux-musl \
          --enable-obsolete \
          --enable-secureplt \
          --disable-werror \
          --enable-nls \
          --without-included-gettext \
          --enable-checking=release \
          --enable-libstdcxx-time \
          --enable-poison-system-directories \
          --disable-host-shared \
          --enable-shared \
          --disable-libatomic \
          --disable-bootstrap \
          --disable-multilib \
          --disable-altivec \
          --disable-fixed-point \
          --disable-libgcj \
          --disable-libgomp \
          --disable-libmudflap \
          --disable-libssp \
          --disable-libcilkrts \
          --disable-vtable-verify \
          --disable-libvtv \
          --disable-libquadmath \
          --disable-rpath \
          --enable-lto \
          --disable-vtable-verify \
          --disable-libsanitizer \
          --with-gmp="$ORCHESTRA_ROOT" \
          --with-mpfr="$ORCHESTRA_ROOT" \
          --with-mpc="$ORCHESTRA_ROOT" \
          --without-zstd \
          --without-cloog \
          --without-isl \
          --with-long-double-128 \
          --disable-libsanitizer \
          --disable-libssp \
          --disable-shared \
          --enable-languages=c \
          CFLAGS="-w -ggdb3 -O3 --sysroot $INSTALL_LINK_ONLY_PATH -idirafter /usr/local/include -idirafter /usr/include/x86_64-linux-gnu -idirafter /usr/include" \
          CXXFLAGS="-w -ggdb3 -O3 --sysroot $INSTALL_LINK_ONLY_PATH -idirafter /usr/local/include -idirafter /usr/include/x86_64-linux-gnu -idirafter /usr/include -std=gnu++11" \
          LDFLAGS="-L$INSTALL_LINK_ONLY_PATH/lib -L$ORCHESTRA_ROOT/lib -lrt --sysroot=/ -Wl,-z,origin -Wl,--enable-new-dtags -fuse-ld=gold -Wl,-rpath,$RPATH_PLACEHOLDER/lib -Wl,-rpath,$RPATH_PLACEHOLDER/lib64/llvm/clang-release/lib/clang/12.0.0/lib/linux -static-libgcc"
      "dependencies":
      - |-
        toolchain/s390x/binutils
      - |-
        toolchain/host/binutils
      - |-
        toolchain/s390x/musl~headers
      - |-
        toolchain/s390x/linux-headers
      "install": "cd \"$BUILD_DIR\"\nmake ${JOBS:+-j$JOBS} \nmake install \n\nNEW_GCC_PATH=\"$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/s390x-ibm-linux-musl/gcc-bin/7.3.0/\"\n\nif test -e \"${DESTDIR}${NEW_GCC_PATH}/gcc\"; then\n\n  if ! test -e \"${DESTDIR}${NEW_GCC_PATH}/cc\"; then\n    ln -s gcc \"${DESTDIR}${NEW_GCC_PATH}/cc\"\n  fi\n\n  mkdir -p \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin\"\n  cp \"${ORCHESTRA_DOTDIR}/support/hard-flags-compiler-wrapper.py\" \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/gcc\"\n  ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/cc\"\n  ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-cc\"\n  ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-gcc\"\n\n  cp -a \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib/gcc/x86_64-pc-linux-gnu/7.3.0/*.{a,o} \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib/\n\nfi\n\nif test -e \"${DESTDIR}${NEW_GCC_PATH}/g++\"; then\n\n  if ! test -e \"${DESTDIR}${NEW_GCC_PATH}/c++\"; then\n    ln -s g++ \"${DESTDIR}${NEW_GCC_PATH}/c++\"\n  fi\n\n  cp \"${ORCHESTRA_DOTDIR}/support/hard-flags-compiler-wrapper.py\" \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/g++\"\n  ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-g++\"\n  mkdir -p \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin\"\n  ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/c++\"\n  ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-c++\"\n\nfi\n\nrm -f \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib64/libcc1.*\n\n# Fixinclude locates the wrong pthread.h\nfind \"${DESTDIR}${ORCHESTRA_ROOT}\" -type d -name include-fixed -exec rm -f {}/pthread.h \\;\n"
      "ndebug": !!bool |-
        true
    "stage2":
      "build_dependencies":
      - |-
        toolchain/s390x/gcc~stage1
      - |-
        glibc
      - |-
        gmp
      - |-
        mpfr
      - |-
        mpc
      "configure": |
        extract.sh --into "$SOURCE_DIR" "https://ftp.gnu.org/gnu/gcc/gcc-7.3.0/gcc-7.3.0.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-7.3.0-cfns-fix-mismatch-in-gnu_inline-attributes.patch" "$SOURCE_DIR"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-7.3.0-cpp-musl-support.patch" "$SOURCE_DIR"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-7.3.0-fixes.patch" "$SOURCE_DIR"
        sed -i 's|gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"|gcc_gxx_include_dir="/${gcc_gxx_without_sysroot#/}"|' "$SOURCE_DIR/gcc/configure"


        mkdir -p "$BUILD_DIR"
        cd "$BUILD_DIR" && "$SOURCE_DIR/configure" \
          --host=x86_64-pc-linux-gnu \
          --build=x86_64-pc-linux-gnu \
          --target=s390x-ibm-linux-musl \
          --prefix=$ORCHESTRA_ROOT \
          --bindir=$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/s390x-ibm-linux-musl/gcc-bin/7.3.0 \
          --includedir=$ORCHESTRA_ROOT/lib/gcc/s390x-ibm-linux-musl/7.3.0/include \
          --datadir=$ORCHESTRA_ROOT/share/gcc-data/s390x-ibm-linux-musl/7.3.0 \
          --mandir=$ORCHESTRA_ROOT/share/gcc-data/s390x-ibm-linux-musl/7.3.0/man \
          --infodir=$ORCHESTRA_ROOT/share/gcc-data/s390x-ibm-linux-musl/7.3.0/info \
          --with-sysroot=$ORCHESTRA_ROOT/s390x-ibm-linux-musl \
          --enable-obsolete \
          --enable-secureplt \
          --disable-werror \
          --enable-nls \
          --without-included-gettext \
          --enable-checking=release \
          --enable-libstdcxx-time \
          --enable-poison-system-directories \
          --disable-host-shared \
          --enable-shared \
          --disable-libatomic \
          --disable-bootstrap \
          --disable-multilib \
          --disable-altivec \
          --disable-fixed-point \
          --disable-libgcj \
          --disable-libgomp \
          --disable-libmudflap \
          --disable-libssp \
          --disable-libcilkrts \
          --disable-vtable-verify \
          --disable-libvtv \
          --disable-libquadmath \
          --disable-rpath \
          --enable-lto \
          --disable-vtable-verify \
          --disable-libsanitizer \
          --with-gmp="$ORCHESTRA_ROOT" \
          --with-mpfr="$ORCHESTRA_ROOT" \
          --with-mpc="$ORCHESTRA_ROOT" \
          --without-zstd \
          --without-cloog \
          --without-isl \
          --with-long-double-128 \
          --disable-libsanitizer \
          --disable-libssp \
          --disable-shared \
          --enable-languages=c,c++ \
          CFLAGS="-w -ggdb3 -O3 --sysroot $INSTALL_LINK_ONLY_PATH -idirafter /usr/local/include -idirafter /usr/include/x86_64-linux-gnu -idirafter /usr/include" \
          CXXFLAGS="-w -ggdb3 -O3 --sysroot $INSTALL_LINK_ONLY_PATH -idirafter /usr/local/include -idirafter /usr/include/x86_64-linux-gnu -idirafter /usr/include -std=gnu++11" \
          LDFLAGS="-L$INSTALL_LINK_ONLY_PATH/lib -L$ORCHESTRA_ROOT/lib -lrt --sysroot=/ -Wl,-z,origin -Wl,--enable-new-dtags -fuse-ld=gold -Wl,-rpath,$RPATH_PLACEHOLDER/lib -Wl,-rpath,$RPATH_PLACEHOLDER/lib64/llvm/clang-release/lib/clang/12.0.0/lib/linux -static-libgcc"
      "dependencies":
      - |-
        toolchain/s390x/binutils
      - |-
        toolchain/host/binutils
      - |-
        toolchain/s390x/musl
      - |-
        toolchain/s390x/linux-headers
      "install": "cd \"$BUILD_DIR\"\nmake ${JOBS:+-j$JOBS} \nmake install \n\nNEW_GCC_PATH=\"$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/s390x-ibm-linux-musl/gcc-bin/7.3.0/\"\n\nif test -e \"${DESTDIR}${NEW_GCC_PATH}/gcc\"; then\n\n  if ! test -e \"${DESTDIR}${NEW_GCC_PATH}/cc\"; then\n    ln -s gcc \"${DESTDIR}${NEW_GCC_PATH}/cc\"\n  fi\n\n  mkdir -p \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin\"\n  cp \"${ORCHESTRA_DOTDIR}/support/hard-flags-compiler-wrapper.py\" \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/gcc\"\n  ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/cc\"\n  ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-cc\"\n  ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-gcc\"\n\n  cp -a \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib/gcc/x86_64-pc-linux-gnu/7.3.0/*.{a,o} \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib/\n\nfi\n\nif test -e \"${DESTDIR}${NEW_GCC_PATH}/g++\"; then\n\n  if ! test -e \"${DESTDIR}${NEW_GCC_PATH}/c++\"; then\n    ln -s g++ \"${DESTDIR}${NEW_GCC_PATH}/c++\"\n  fi\n\n  cp \"${ORCHESTRA_DOTDIR}/support/hard-flags-compiler-wrapper.py\" \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/g++\"\n  ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-g++\"\n  mkdir -p \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin\"\n  ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/c++\"\n  ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-c++\"\n\nfi\n\nrm -f \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib64/libcc1.*\n\n# Fixinclude locates the wrong pthread.h\nfind \"${DESTDIR}${ORCHESTRA_ROOT}\" -type d -name include-fixed -exec rm -f {}/pthread.h \\;\n"
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    stage2
  "license": |-
    COPYING
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path": []
  "builds":
    "default":
      "build_dependencies": []
      "configure": |
        mkdir -p "$BUILD_DIR"
        extract.sh --into "$BUILD_DIR" https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.14.18.tar.xz
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS} -C "$BUILD_DIR" \
          ARCH=s390 \
          INSTALL_HDR_PATH="${DESTDIR}${ORCHESTRA_ROOT}/s390x-ibm-linux-musl/usr" headers_install
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    default
  "license": |-
    COPYING
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path": []
  "builds":
    "default":
      "build_dependencies":
      - |-
        toolchain/s390x/gcc~stage1
      "configure": |
        mkdir -p "$BUILD_DIR"

        extract.sh --into "$BUILD_DIR" "http://www.musl-libc.org/releases/musl-1.1.19.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/musl-1.1.19-printf-floating-point-rounding.patch" "$BUILD_DIR"

        cd "$BUILD_DIR" && CC="$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/s390x-ibm-linux-musl/gcc-bin/7.3.0//s390x-ibm-linux-musl-gcc" CFLAGS=" -ggdb3" "$BUILD_DIR/configure" \
          --target=s390x-ibm-linux-musl \
          --prefix="$ORCHESTRA_ROOT/s390x-ibm-linux-musl/usr" \
          --syslibdir="$ORCHESTRA_ROOT/s390x-ibm-linux-musl/lib" \
          --disable-gcc-wrapper
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make install
      "ndebug": !!bool |-
        true
    "headers":
      "build_dependencies": []
      "configure": |
        mkdir -p "$BUILD_DIR"

        extract.sh --into "$BUILD_DIR" "http://www.musl-libc.org/releases/musl-1.1.19.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/musl-1.1.19-printf-floating-point-rounding.patch" "$BUILD_DIR"

        cd "$BUILD_DIR" && CC="true" "$BUILD_DIR/configure" \
          --target=s390x-ibm-linux-musl \
          --prefix="$ORCHESTRA_ROOT/s390x-ibm-linux-musl/usr" \
          --syslibdir="$ORCHESTRA_ROOT/s390x-ibm-linux-musl/lib" \
          --disable-gcc-wrapper
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS} include/bits/alltypes.h || make ${JOBS:+-j$JOBS} obj/include/bits/alltypes.h
        make ${JOBS:+-j$JOBS} install-headers
      "ndebug": !!bool |-
        true
    "o0":
      "build_dependencies":
      - |-
        toolchain/s390x/gcc~stage1
      "configure": |
        mkdir -p "$BUILD_DIR"

        extract.sh --into "$BUILD_DIR" "http://www.musl-libc.org/releases/musl-1.1.19.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/musl-1.1.19-printf-floating-point-rounding.patch" "$BUILD_DIR"

        cd "$BUILD_DIR" && CC="$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/s390x-ibm-linux-musl/gcc-bin/7.3.0//s390x-ibm-linux-musl-gcc" CFLAGS=" -ggdb3 -Wl,--gc-sections -ffunction-sections -O0" "$BUILD_DIR/configure" \
          --target=s390x-ibm-linux-musl \
          --prefix="$ORCHESTRA_ROOT/s390x-ibm-linux-musl/usr" \
          --syslibdir="$ORCHESTRA_ROOT/s390x-ibm-linux-musl/lib" \
          --disable-gcc-wrapper
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make install
      "ndebug": !!bool |-
        true
    "o1":
      "build_dependencies":
      - |-
        toolchain/s390x/gcc~stage1
      "configure": |
        mkdir -p "$BUILD_DIR"

        extract.sh --into "$BUILD_DIR" "http://www.musl-libc.org/releases/musl-1.1.19.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/musl-1.1.19-printf-floating-point-rounding.patch" "$BUILD_DIR"

        cd "$BUILD_DIR" && CC="$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/s390x-ibm-linux-musl/gcc-bin/7.3.0//s390x-ibm-linux-musl-gcc" CFLAGS=" -ggdb3 -Wl,--gc-sections -ffunction-sections -O1" "$BUILD_DIR/configure" \
          --target=s390x-ibm-linux-musl \
          --prefix="$ORCHESTRA_ROOT/s390x-ibm-linux-musl/usr" \
          --syslibdir="$ORCHESTRA_ROOT/s390x-ibm-linux-musl/lib" \
          --disable-gcc-wrapper
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make install
      "ndebug": !!bool |-
        true
    "o2":
      "build_dependencies":
      - |-
        toolchain/s390x/gcc~stage1
      "configure": |
        mkdir -p "$BUILD_DIR"

        extract.sh --into "$BUILD_DIR" "http://www.musl-libc.org/releases/musl-1.1.19.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/musl-1.1.19-printf-floating-point-rounding.patch" "$BUILD_DIR"

        cd "$BUILD_DIR" && CC="$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/s390x-ibm-linux-musl/gcc-bin/7.3.0//s390x-ibm-linux-musl-gcc" CFLAGS=" -ggdb3 -Wl,--gc-sections -ffunction-sections -O2" "$BUILD_DIR/configure" \
          --target=s390x-ibm-linux-musl \
          --prefix="$ORCHESTRA_ROOT/s390x-ibm-linux-musl/usr" \
          --syslibdir="$ORCHESTRA_ROOT/s390x-ibm-linux-musl/lib" \
          --disable-gcc-wrapper
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make install
      "ndebug": !!bool |-
        true
    "o3":
      "build_dependencies":
      - |-
        toolchain/s390x/gcc~stage1
      "configure": |
        mkdir -p "$BUILD_DIR"

        extract.sh --into "$BUILD_DIR" "http://www.musl-libc.org/releases/musl-1.1.19.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/musl-1.1.19-printf-floating-point-rounding.patch" "$BUILD_DIR"

        cd "$BUILD_DIR" && CC="$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/s390x-ibm-linux-musl/gcc-bin/7.3.0//s390x-ibm-linux-musl-gcc" CFLAGS=" -ggdb3 -Wl,--gc-sections -ffunction-sections -O3" "$BUILD_DIR/configure" \
          --target=s390x-ibm-linux-musl \
          --prefix="$ORCHESTRA_ROOT/s390x-ibm-linux-musl/usr" \
          --syslibdir="$ORCHESTRA_ROOT/s390x-ibm-linux-musl/lib" \
          --disable-gcc-wrapper
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make install
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    default
  "license": |-
    COPYRIGHT
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path": []
  "builds":
    "default":
      "build_dependencies": []
      "configure": |
        INSTALL_PATH="lib/vc/x86_64-winsdk-vc16"
        mkdir -p "$BUILD_DIR"
        cd "$BUILD_DIR"
        mkdir lib64
        ln -s lib64 lib
        mkdir -p "$BUILD_DIR/$INSTALL_PATH"
        cd "$BUILD_DIR/$INSTALL_PATH"

        fetch.sh \
          --no-copy \
          'https://archive.org/download/vs2010_202102/vs2010.zip' \
          --save-as visual-studio-10-english.zip

        mkdir extract
        cd extract
        unzip "${SOURCE_ARCHIVES}/visual-studio-10-english.zip"

        7z x VCExpress/Ixpvc.exe

        msiinfo export vs_setup.msi Directory | sed 's/\t/,/g' > dirs.csv
        msiinfo export vs_setup.msi File | sed 's/\t/,/g' > file.csv
        msiinfo export vs_setup.msi Component | sed 's/\t/,/g' > component.csv

        mkdir extract-vs-setup
        cd extract-vs-setup
        7z x ../vs_setup.cab
        cd ..

        rm -rf SourceDir/
        "$ORCHESTRA_DOTDIR"/support/vs10-create-directories.py --create-directories dirs.csv file.csv component.csv | while IFS=, read -r TARGET_NAME TARGET_PATH; do
            if ! test -e "extract-vs-setup/$TARGET_NAME"; then
                echo "Warning: $TARGET_NAME not found" > /dev/stderr
                continue
            fi

            mv "extract-vs-setup/$TARGET_NAME" "./$TARGET_PATH"
        done

        rm -rf extract-vs-setup

        cd 'SourceDir/Program Files/Microsoft Visual Studio 10.0/Common7/IDE/'
        find . -maxdepth 1 -type f -exec cp -a {} ../../VC/bin/ \;
        cd -

        mv \
          'SourceDir/Program Files/Microsoft Visual Studio 10.0/VC' \
          ../VC

        mv \
          'SourceDir/Program Files/Microsoft SDKs/Windows/v7.0A' \
          ../sdk-70a

        cd ..

        rm -rf extract


        cat > cl.exe <<'EOF'
        #!/bin/bash


        SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]:-$0}"; )" &> /dev/null && pwd 2> /dev/null; )";

        # Genius
        shopt -s nocaseglob
        export INCLUDE="$SCRIPT_DIR/VC/include;$SCRIPT_DIR/sdk-70a/Include"
        export LIB="$SCRIPT_DIR/VC/lib;$SCRIPT_DIR/sdk-70a/Lib"

        OUTPUT="$(mktemp)";
        trap 'rm -f -- "$OUTPUT"' EXIT;

        # Suppress wine debug information
        export WINEDEBUG=-all

        # Run one dedicated mspdbsrv.exe per instance of cl.exe
        export _MSPDBSRV_ENDPOINT_="$(python -c 'import uuid; print(str(uuid.uuid4()))')"
        wine "$SCRIPT_DIR"/VC/bin//mspdbsrv.ex*e -start -spawn &

        # Record mspdbsrv.exe to be killed
        MSPDBSRV_PID="$!"
        trap 'kill "$MSPDBSRV_PID"' EXIT;

        # Run cl.exe, suppress its output in case of success
        if ! wine "$SCRIPT_DIR"/VC/bin//cl.ex*e "$@" >& "$OUTPUT"; then
          RESULT="$?"
          cat "$OUTPUT"
          exit "$RESULT"
        fi

        EOF

        chmod +x cl.exe

        cd "$BUILD_DIR"
        mkdir bin

        cat > bin/x86_64-winsdk-vc16-cl <<'EOF'
        #!/bin/bash

        SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]:-$0}"; )" &> /dev/null && pwd 2> /dev/null; )";

        PROGRAM_NAME="$(basename $0)"
        TRIPLE="${PROGRAM_NAME%-cl}"

        exec "$SCRIPT_DIR/../lib/vc/$TRIPLE/cl.exe" "$@"
        EOF
        chmod +x bin/x86_64-winsdk-vc16-cl
      "dependencies": []
      "install": "cd \"$BUILD_DIR\"\nif test \"$RUN_TESTS\" -eq 1; then\n  cat > test.c <<'EOF'\n#include <stdio.h>\n\nint main() {\n  puts(\"Hello world!\");\n  return 0;\n}\nEOF\n\n  \n  ./bin/x86_64-winsdk-vc16-cl test.c /DEBUG:FASTLINK /Zi\n  \n  export WINEDEBUG=-all\n  wine test.exe\n\n  rm test.*\nfi\n\ncp -farl \"$BUILD_DIR/\"* \"${DESTDIR}${ORCHESTRA_ROOT}/\"\n"
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    default
  "license": !!null |-
    null
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path":
  - |-
    ${ORCHESTRA_ROOT}/x86_64-pc-linux-gnu/x86_64-gentoo-linux-musl/binutils-bin/2.35
  "builds":
    "default":
      "build_dependencies":
      - |-
        glibc
      - |-
        toolchain/host/gcc
      - |-
        toolchain/host/binutils
      "configure": |
        extract.sh --into "$SOURCE_DIR" https://ftp.gnu.org/gnu/binutils/binutils-2.35.tar.bz2
        mkdir -p "$BUILD_DIR"
        cd "$BUILD_DIR" && "$SOURCE_DIR/configure" \
          --build=x86_64-pc-linux-gnu \
          --host=x86_64-pc-linux-gnu \
          --target=x86_64-gentoo-linux-musl \
          --with-sysroot="$ORCHESTRA_ROOT/x86_64-gentoo-linux-musl" \
          --prefix=$ORCHESTRA_ROOT \
          --datadir=$ORCHESTRA_ROOT/share/binutils-data/x86_64-gentoo-linux-musl/2.35 \
          --infodir=$ORCHESTRA_ROOT/share/binutils-data/x86_64-gentoo-linux-musl/2.35/info \
          --mandir=$ORCHESTRA_ROOT/share/binutils-data/x86_64-gentoo-linux-musl/2.35/man \
          --bindir=$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/x86_64-gentoo-linux-musl/binutils-bin/2.35 \
          --libdir=$ORCHESTRA_ROOT/lib64/binutils/x86_64-gentoo-linux-musl/2.35 \
          --libexecdir=$ORCHESTRA_ROOT/lib64/binutils/x86_64-gentoo-linux-musl/2.35 \
          --includedir=$ORCHESTRA_ROOT/lib64/binutils/x86_64-gentoo-linux-musl/2.35/include \
          --without-included-gettext \
          --with-zlib \
          --enable-poison-system-directories \
          --enable-secureplt \
          --enable-obsolete \
          --enable-gold \
          --disable-shared \
          --enable-threads \
          --enable-install-libiberty \
          --disable-werror \
          --disable-static \
          --disable-gdb \
          --disable-libdecnumber \
          --disable-readline \
          --disable-sim \
          --without-debuginfod \
          --without-stage1-ldflags \
           \
          CFLAGS="-w -ggdb3 -O3" \
          CXXFLAGS="-w -ggdb3 -O3"
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make ${JOBS:+-j$JOBS} install DESTDIR="$DESTDIR"
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    default
  "license": |-
    COPYING
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path":
  - |-
    ${ORCHESTRA_ROOT}/x86_64-pc-linux-gnu/x86_64-gentoo-linux-musl/gcc-bin/9.2.0
  "builds":
    "stage1":
      "build_dependencies":
      - |-
        glibc
      - |-
        gmp
      - |-
        mpfr
      - |-
        mpc
      "configure": |
        extract.sh --into "$SOURCE_DIR" "https://ftp.gnu.org/gnu/gcc/gcc-9.2.0/gcc-9.2.0.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-9.2.0-cfns-fix-mismatch-in-gnu_inline-attributes.patch" "$SOURCE_DIR"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-9.2.0-cpp-musl-support.patch" "$SOURCE_DIR"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-9.2.0-fixes.patch" "$SOURCE_DIR"
        sed -i 's|gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"|gcc_gxx_include_dir="/${gcc_gxx_without_sysroot#/}"|' "$SOURCE_DIR/gcc/configure"


        mkdir -p "$BUILD_DIR"
        cd "$BUILD_DIR" && "$SOURCE_DIR/configure" \
          --host=x86_64-pc-linux-gnu \
          --build=x86_64-pc-linux-gnu \
          --target=x86_64-gentoo-linux-musl \
          --prefix=$ORCHESTRA_ROOT \
          --bindir=$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/x86_64-gentoo-linux-musl/gcc-bin/9.2.0 \
          --includedir=$ORCHESTRA_ROOT/lib/gcc/x86_64-gentoo-linux-musl/9.2.0/include \
          --datadir=$ORCHESTRA_ROOT/share/gcc-data/x86_64-gentoo-linux-musl/9.2.0 \
          --mandir=$ORCHESTRA_ROOT/share/gcc-data/x86_64-gentoo-linux-musl/9.2.0/man \
          --infodir=$ORCHESTRA_ROOT/share/gcc-data/x86_64-gentoo-linux-musl/9.2.0/info \
          --with-sysroot=$ORCHESTRA_ROOT/x86_64-gentoo-linux-musl \
          --enable-obsolete \
          --enable-secureplt \
          --disable-werror \
          --enable-nls \
          --without-included-gettext \
          --enable-checking=release \
          --enable-libstdcxx-time \
          --enable-poison-system-directories \
          --disable-host-shared \
          --enable-shared \
          --disable-libatomic \
          --disable-bootstrap \
          --disable-multilib \
          --disable-altivec \
          --disable-fixed-point \
          --disable-libgcj \
          --disable-libgomp \
          --disable-libmudflap \
          --disable-libssp \
          --disable-libcilkrts \
          --disable-vtable-verify \
          --disable-libvtv \
          --disable-libquadmath \
          --disable-rpath \
          --enable-lto \
          --disable-vtable-verify \
          --disable-libsanitizer \
          --with-gmp="$ORCHESTRA_ROOT" \
          --with-mpfr="$ORCHESTRA_ROOT" \
          --with-mpc="$ORCHESTRA_ROOT" \
          --without-zstd \
          --without-cloog \
          --enable-targets=all \
          --with-multilib-list=m64 \
          --without-isl \
          --disable-libsanitizer \
          --disable-libssp \
          --disable-shared \
          --enable-languages=c \
          CFLAGS="-w -ggdb3 -O3 --sysroot $INSTALL_LINK_ONLY_PATH -idirafter /usr/local/include -idirafter /usr/include/x86_64-linux-gnu -idirafter /usr/include" \
          CXXFLAGS="-w -ggdb3 -O3 --sysroot $INSTALL_LINK_ONLY_PATH -idirafter /usr/local/include -idirafter /usr/include/x86_64-linux-gnu -idirafter /usr/include -std=gnu++11" \
          LDFLAGS="-L$INSTALL_LINK_ONLY_PATH/lib -L$ORCHESTRA_ROOT/lib -lrt --sysroot=/ -Wl,-z,origin -Wl,--enable-new-dtags -fuse-ld=gold -Wl,-rpath,$RPATH_PLACEHOLDER/lib -Wl,-rpath,$RPATH_PLACEHOLDER/lib64/llvm/clang-release/lib/clang/12.0.0/lib/linux -static-libgcc"
      "dependencies":
      - |-
        toolchain/x86-64/binutils
      - |-
        toolchain/host/binutils
      - |-
        toolchain/x86-64/musl~headers
      - |-
        toolchain/x86-64/linux-headers
      "install": "cd \"$BUILD_DIR\"\nmake ${JOBS:+-j$JOBS} \nmake install \n\nNEW_GCC_PATH=\"$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/x86_64-gentoo-linux-musl/gcc-bin/9.2.0/\"\n\nif test -e \"${DESTDIR}${NEW_GCC_PATH}/gcc\"; then\n\n  if ! test -e \"${DESTDIR}${NEW_GCC_PATH}/cc\"; then\n    ln -s gcc \"${DESTDIR}${NEW_GCC_PATH}/cc\"\n  fi\n\n  mkdir -p \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin\"\n  cp \"${ORCHESTRA_DOTDIR}/support/hard-flags-compiler-wrapper.py\" \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/gcc\"\n  ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/cc\"\n  ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-cc\"\n  ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-gcc\"\n\n  cp -a \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib/gcc/x86_64-pc-linux-gnu/9.2.0/*.{a,o} \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib/\n\nfi\n\nif test -e \"${DESTDIR}${NEW_GCC_PATH}/g++\"; then\n\n  if ! test -e \"${DESTDIR}${NEW_GCC_PATH}/c++\"; then\n    ln -s g++ \"${DESTDIR}${NEW_GCC_PATH}/c++\"\n  fi\n\n  cp \"${ORCHESTRA_DOTDIR}/support/hard-flags-compiler-wrapper.py\" \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/g++\"\n  ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-g++\"\n  mkdir -p \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin\"\n  ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/c++\"\n  ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-c++\"\n\nfi\n\nrm -f \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib64/libcc1.*\n\n# Fixinclude locates the wrong pthread.h\nfind \"${DESTDIR}${ORCHESTRA_ROOT}\" -type d -name include-fixed -exec rm -f {}/pthread.h \\;\n"
      "ndebug": !!bool |-
        true
    "stage2":
      "build_dependencies":
      - |-
        toolchain/x86-64/gcc~stage1
      - |-
        glibc
      - |-
        gmp
      - |-
        mpfr
      - |-
        mpc
      "configure": |
        extract.sh --into "$SOURCE_DIR" "https://ftp.gnu.org/gnu/gcc/gcc-9.2.0/gcc-9.2.0.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-9.2.0-cfns-fix-mismatch-in-gnu_inline-attributes.patch" "$SOURCE_DIR"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-9.2.0-cpp-musl-support.patch" "$SOURCE_DIR"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/gcc-9.2.0-fixes.patch" "$SOURCE_DIR"
        sed -i 's|gcc_gxx_include_dir="${gcc_gxx_without_sysroot}"|gcc_gxx_include_dir="/${gcc_gxx_without_sysroot#/}"|' "$SOURCE_DIR/gcc/configure"


        mkdir -p "$BUILD_DIR"
        cd "$BUILD_DIR" && "$SOURCE_DIR/configure" \
          --host=x86_64-pc-linux-gnu \
          --build=x86_64-pc-linux-gnu \
          --target=x86_64-gentoo-linux-musl \
          --prefix=$ORCHESTRA_ROOT \
          --bindir=$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/x86_64-gentoo-linux-musl/gcc-bin/9.2.0 \
          --includedir=$ORCHESTRA_ROOT/lib/gcc/x86_64-gentoo-linux-musl/9.2.0/include \
          --datadir=$ORCHESTRA_ROOT/share/gcc-data/x86_64-gentoo-linux-musl/9.2.0 \
          --mandir=$ORCHESTRA_ROOT/share/gcc-data/x86_64-gentoo-linux-musl/9.2.0/man \
          --infodir=$ORCHESTRA_ROOT/share/gcc-data/x86_64-gentoo-linux-musl/9.2.0/info \
          --with-sysroot=$ORCHESTRA_ROOT/x86_64-gentoo-linux-musl \
          --enable-obsolete \
          --enable-secureplt \
          --disable-werror \
          --enable-nls \
          --without-included-gettext \
          --enable-checking=release \
          --enable-libstdcxx-time \
          --enable-poison-system-directories \
          --disable-host-shared \
          --enable-shared \
          --disable-libatomic \
          --disable-bootstrap \
          --disable-multilib \
          --disable-altivec \
          --disable-fixed-point \
          --disable-libgcj \
          --disable-libgomp \
          --disable-libmudflap \
          --disable-libssp \
          --disable-libcilkrts \
          --disable-vtable-verify \
          --disable-libvtv \
          --disable-libquadmath \
          --disable-rpath \
          --enable-lto \
          --disable-vtable-verify \
          --disable-libsanitizer \
          --with-gmp="$ORCHESTRA_ROOT" \
          --with-mpfr="$ORCHESTRA_ROOT" \
          --with-mpc="$ORCHESTRA_ROOT" \
          --without-zstd \
          --without-cloog \
          --enable-targets=all \
          --with-multilib-list=m64 \
          --without-isl \
          --disable-libsanitizer \
          --disable-libssp \
          --disable-shared \
          --enable-languages=c,c++ \
          CFLAGS="-w -ggdb3 -O3 --sysroot $INSTALL_LINK_ONLY_PATH -idirafter /usr/local/include -idirafter /usr/include/x86_64-linux-gnu -idirafter /usr/include" \
          CXXFLAGS="-w -ggdb3 -O3 --sysroot $INSTALL_LINK_ONLY_PATH -idirafter /usr/local/include -idirafter /usr/include/x86_64-linux-gnu -idirafter /usr/include -std=gnu++11" \
          LDFLAGS="-L$INSTALL_LINK_ONLY_PATH/lib -L$ORCHESTRA_ROOT/lib -lrt --sysroot=/ -Wl,-z,origin -Wl,--enable-new-dtags -fuse-ld=gold -Wl,-rpath,$RPATH_PLACEHOLDER/lib -Wl,-rpath,$RPATH_PLACEHOLDER/lib64/llvm/clang-release/lib/clang/12.0.0/lib/linux -static-libgcc"
      "dependencies":
      - |-
        toolchain/x86-64/binutils
      - |-
        toolchain/host/binutils
      - |-
        toolchain/x86-64/musl
      - |-
        toolchain/x86-64/linux-headers
      "install": "cd \"$BUILD_DIR\"\nmake ${JOBS:+-j$JOBS} \nmake install \n\nNEW_GCC_PATH=\"$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/x86_64-gentoo-linux-musl/gcc-bin/9.2.0/\"\n\nif test -e \"${DESTDIR}${NEW_GCC_PATH}/gcc\"; then\n\n  if ! test -e \"${DESTDIR}${NEW_GCC_PATH}/cc\"; then\n    ln -s gcc \"${DESTDIR}${NEW_GCC_PATH}/cc\"\n  fi\n\n  mkdir -p \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin\"\n  cp \"${ORCHESTRA_DOTDIR}/support/hard-flags-compiler-wrapper.py\" \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/gcc\"\n  ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/cc\"\n  ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-cc\"\n  ln -s gcc \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-gcc\"\n\n  cp -a \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib/gcc/x86_64-pc-linux-gnu/9.2.0/*.{a,o} \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib/\n\nfi\n\nif test -e \"${DESTDIR}${NEW_GCC_PATH}/g++\"; then\n\n  if ! test -e \"${DESTDIR}${NEW_GCC_PATH}/c++\"; then\n    ln -s g++ \"${DESTDIR}${NEW_GCC_PATH}/c++\"\n  fi\n\n  cp \"${ORCHESTRA_DOTDIR}/support/hard-flags-compiler-wrapper.py\" \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/g++\"\n  ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-g++\"\n  mkdir -p \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin\"\n  ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/c++\"\n  ln -s g++ \"${DESTDIR}${ORCHESTRA_ROOT}/link-only/bin/x86_64-pc-linux-gnu-c++\"\n\nfi\n\nrm -f \"${DESTDIR}${ORCHESTRA_ROOT}\"/lib64/libcc1.*\n\n# Fixinclude locates the wrong pthread.h\nfind \"${DESTDIR}${ORCHESTRA_ROOT}\" -type d -name include-fixed -exec rm -f {}/pthread.h \\;\n"
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    stage2
  "license": |-
    COPYING
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path": []
  "builds":
    "default":
      "build_dependencies": []
      "configure": |
        mkdir -p "$BUILD_DIR"
        extract.sh --into "$BUILD_DIR" https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.5.2.tar.xz
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS} -C "$BUILD_DIR" \
          ARCH=x86_64 \
          INSTALL_HDR_PATH="${DESTDIR}${ORCHESTRA_ROOT}/x86_64-gentoo-linux-musl/usr" headers_install
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    default
  "license": |-
    COPYING
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path": []
  "builds":
    "default":
      "build_dependencies":
      - |-
        toolchain/x86-64/gcc~stage1
      "configure": |
        mkdir -p "$BUILD_DIR"

        extract.sh --into "$BUILD_DIR" "http://www.musl-libc.org/releases/musl-1.1.12.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/musl-1.1.12-printf-floating-point-rounding.patch" "$BUILD_DIR"

        cd "$BUILD_DIR" && CC="$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/x86_64-gentoo-linux-musl/gcc-bin/9.2.0//x86_64-gentoo-linux-musl-gcc" CFLAGS=" -ggdb3" "$BUILD_DIR/configure" \
          --target=x86_64-gentoo-linux-musl \
          --prefix="$ORCHESTRA_ROOT/x86_64-gentoo-linux-musl/usr" \
          --syslibdir="$ORCHESTRA_ROOT/x86_64-gentoo-linux-musl/lib" \
          --disable-gcc-wrapper
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make install
      "ndebug": !!bool |-
        true
    "headers":
      "build_dependencies": []
      "configure": |
        mkdir -p "$BUILD_DIR"

        extract.sh --into "$BUILD_DIR" "http://www.musl-libc.org/releases/musl-1.1.12.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/musl-1.1.12-printf-floating-point-rounding.patch" "$BUILD_DIR"

        cd "$BUILD_DIR" && CC="true" "$BUILD_DIR/configure" \
          --target=x86_64-gentoo-linux-musl \
          --prefix="$ORCHESTRA_ROOT/x86_64-gentoo-linux-musl/usr" \
          --syslibdir="$ORCHESTRA_ROOT/x86_64-gentoo-linux-musl/lib" \
          --disable-gcc-wrapper
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS} include/bits/alltypes.h || make ${JOBS:+-j$JOBS} obj/include/bits/alltypes.h
        make ${JOBS:+-j$JOBS} install-headers
      "ndebug": !!bool |-
        true
    "o0":
      "build_dependencies":
      - |-
        toolchain/x86-64/gcc~stage1
      "configure": |
        mkdir -p "$BUILD_DIR"

        extract.sh --into "$BUILD_DIR" "http://www.musl-libc.org/releases/musl-1.1.12.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/musl-1.1.12-printf-floating-point-rounding.patch" "$BUILD_DIR"

        cd "$BUILD_DIR" && CC="$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/x86_64-gentoo-linux-musl/gcc-bin/9.2.0//x86_64-gentoo-linux-musl-gcc" CFLAGS=" -ggdb3 -Wl,--gc-sections -ffunction-sections -O0" "$BUILD_DIR/configure" \
          --target=x86_64-gentoo-linux-musl \
          --prefix="$ORCHESTRA_ROOT/x86_64-gentoo-linux-musl/usr" \
          --syslibdir="$ORCHESTRA_ROOT/x86_64-gentoo-linux-musl/lib" \
          --disable-gcc-wrapper
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make install
      "ndebug": !!bool |-
        true
    "o1":
      "build_dependencies":
      - |-
        toolchain/x86-64/gcc~stage1
      "configure": |
        mkdir -p "$BUILD_DIR"

        extract.sh --into "$BUILD_DIR" "http://www.musl-libc.org/releases/musl-1.1.12.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/musl-1.1.12-printf-floating-point-rounding.patch" "$BUILD_DIR"

        cd "$BUILD_DIR" && CC="$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/x86_64-gentoo-linux-musl/gcc-bin/9.2.0//x86_64-gentoo-linux-musl-gcc" CFLAGS=" -ggdb3 -Wl,--gc-sections -ffunction-sections -O1" "$BUILD_DIR/configure" \
          --target=x86_64-gentoo-linux-musl \
          --prefix="$ORCHESTRA_ROOT/x86_64-gentoo-linux-musl/usr" \
          --syslibdir="$ORCHESTRA_ROOT/x86_64-gentoo-linux-musl/lib" \
          --disable-gcc-wrapper
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make install
      "ndebug": !!bool |-
        true
    "o2":
      "build_dependencies":
      - |-
        toolchain/x86-64/gcc~stage1
      "configure": |
        mkdir -p "$BUILD_DIR"

        extract.sh --into "$BUILD_DIR" "http://www.musl-libc.org/releases/musl-1.1.12.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/musl-1.1.12-printf-floating-point-rounding.patch" "$BUILD_DIR"

        cd "$BUILD_DIR" && CC="$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/x86_64-gentoo-linux-musl/gcc-bin/9.2.0//x86_64-gentoo-linux-musl-gcc" CFLAGS=" -ggdb3 -Wl,--gc-sections -ffunction-sections -O2" "$BUILD_DIR/configure" \
          --target=x86_64-gentoo-linux-musl \
          --prefix="$ORCHESTRA_ROOT/x86_64-gentoo-linux-musl/usr" \
          --syslibdir="$ORCHESTRA_ROOT/x86_64-gentoo-linux-musl/lib" \
          --disable-gcc-wrapper
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make install
      "ndebug": !!bool |-
        true
    "o3":
      "build_dependencies":
      - |-
        toolchain/x86-64/gcc~stage1
      "configure": |
        mkdir -p "$BUILD_DIR"

        extract.sh --into "$BUILD_DIR" "http://www.musl-libc.org/releases/musl-1.1.12.tar.gz"
        patch-if-exists "${ORCHESTRA_DOTDIR}/patches/musl-1.1.12-printf-floating-point-rounding.patch" "$BUILD_DIR"

        cd "$BUILD_DIR" && CC="$ORCHESTRA_ROOT/x86_64-pc-linux-gnu/x86_64-gentoo-linux-musl/gcc-bin/9.2.0//x86_64-gentoo-linux-musl-gcc" CFLAGS=" -ggdb3 -Wl,--gc-sections -ffunction-sections -O3" "$BUILD_DIR/configure" \
          --target=x86_64-gentoo-linux-musl \
          --prefix="$ORCHESTRA_ROOT/x86_64-gentoo-linux-musl/usr" \
          --syslibdir="$ORCHESTRA_ROOT/x86_64-gentoo-linux-musl/lib" \
          --disable-gcc-wrapper
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make install
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    default
  "license": |-
    COPYRIGHT
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false
- "add_to_path": []
  "builds":
    "default":
      "build_dependencies":
      - |-
        gcc-host-toolchain
      - |-
        glibc
      "configure": |
        mkdir -p "$BUILD_DIR"
        extract.sh --into "$BUILD_DIR" https://zlib.net/fossils/zlib-1.2.12.tar.gz
        cd "$BUILD_DIR"
        ./configure \
          --shared \
          --uname=linux \
          --prefix="$ORCHESTRA_ROOT"
      "dependencies": []
      "install": |
        cd "$BUILD_DIR"
        make ${JOBS:+-j$JOBS}
        make ${JOBS:+-j$JOBS} install DESTDIR="$DESTDIR"
      "ndebug": !!bool |-
        true
  "commit": !!null |-
    null
  "default_build": |-
    default
  "license": |-
    README
  "repository": !!null |-
    null
  "skip_post_install": !!bool |-
    false