blob: e42ac35fb7dc1d81fe64c5b8768011a5ad5dd821 [file] [log] [blame]
[
{
"cmd": [],
"name": "ensure goma"
},
{
"cmd": [
"cipd",
"ensure",
"-root",
"[CACHE]/goma/client",
"-ensure-file",
"infra_internal/goma/client/${platform} release",
"-json-output",
"/path/to/tmp/json"
],
"infra_step": true,
"name": "ensure goma.ensure_installed",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@json.output@{@@@",
"@@@STEP_LOG_LINE@json.output@ \"result\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"\": [@@@",
"@@@STEP_LOG_LINE@json.output@ {@@@",
"@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"resolved-instance_id-of-release---------\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"package\": \"infra_internal/goma/client/resolved-platform\"@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@ ]@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@}@@@",
"@@@STEP_LOG_END@json.output@@@"
]
},
{
"cmd": [],
"name": "binutils-gdb"
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[START_DIR]/binutils-gdb"
],
"infra_step": true,
"name": "binutils-gdb.makedirs",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"init"
],
"cwd": "[START_DIR]/binutils-gdb",
"infra_step": true,
"name": "binutils-gdb.git init",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"remote",
"add",
"origin",
"https://gnu.googlesource.com/binutils-gdb"
],
"cwd": "[START_DIR]/binutils-gdb",
"infra_step": true,
"name": "binutils-gdb.git remote",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [],
"name": "binutils-gdb.cache",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[CACHE]/git/gnu.googlesource.com-binutils--gdb"
],
"cwd": "[START_DIR]/binutils-gdb",
"infra_step": true,
"name": "binutils-gdb.cache.makedirs",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"git",
"init",
"--bare"
],
"cwd": "[CACHE]/git/gnu.googlesource.com-binutils--gdb",
"infra_step": true,
"name": "binutils-gdb.cache.git init",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"git",
"config",
"remote.origin.url",
"https://gnu.googlesource.com/binutils-gdb"
],
"cwd": "[CACHE]/git/gnu.googlesource.com-binutils--gdb",
"infra_step": true,
"name": "binutils-gdb.cache.remote set-url",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"git",
"config",
"--replace-all",
"remote.origin.fetch",
"+refs/heads/*:refs/heads/*",
"\\+refs/heads/\\*:.*"
],
"cwd": "[CACHE]/git/gnu.googlesource.com-binutils--gdb",
"infra_step": true,
"name": "binutils-gdb.cache.git config",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"git",
"fetch",
"--prune",
"--tags",
"origin"
],
"cwd": "[CACHE]/git/gnu.googlesource.com-binutils--gdb",
"infra_step": true,
"name": "binutils-gdb.cache.git fetch",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[START_DIR]/binutils-gdb/.git/objects/info"
],
"cwd": "[START_DIR]/binutils-gdb",
"infra_step": true,
"name": "binutils-gdb.cache.makedirs object/info",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"[CACHE]/git/gnu.googlesource.com-binutils--gdb/objects\n",
"[START_DIR]/binutils-gdb/.git/objects/info/alternates"
],
"cwd": "[START_DIR]/binutils-gdb",
"infra_step": true,
"name": "binutils-gdb.cache.alternates",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@",
"@@@STEP_LOG_LINE@alternates@[CACHE]/git/gnu.googlesource.com-binutils--gdb/objects@@@",
"@@@STEP_LOG_END@alternates@@@"
]
},
{
"cmd": [
"git",
"fetch",
"--tags",
"origin",
"refs/tags/binutils-2_33_1"
],
"cwd": "[START_DIR]/binutils-gdb",
"infra_step": true,
"name": "binutils-gdb.git fetch",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"checkout",
"-f",
"FETCH_HEAD"
],
"cwd": "[START_DIR]/binutils-gdb",
"infra_step": true,
"name": "binutils-gdb.git checkout",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"rev-parse",
"HEAD"
],
"cwd": "[START_DIR]/binutils-gdb",
"infra_step": true,
"name": "binutils-gdb.git rev-parse",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"clean",
"-f",
"-d",
"-x"
],
"cwd": "[START_DIR]/binutils-gdb",
"infra_step": true,
"name": "binutils-gdb.git clean",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [],
"name": "binutils-gdb.submodule",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"submodule",
"sync"
],
"cwd": "[START_DIR]/binutils-gdb",
"infra_step": true,
"name": "binutils-gdb.submodule.git submodule sync",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"git",
"submodule",
"update",
"--init"
],
"cwd": "[START_DIR]/binutils-gdb",
"infra_step": true,
"name": "binutils-gdb.submodule.git submodule update",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [],
"name": "gcc"
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[START_DIR]/gcc"
],
"infra_step": true,
"name": "gcc.makedirs",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"init"
],
"cwd": "[START_DIR]/gcc",
"infra_step": true,
"name": "gcc.git init",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"remote",
"add",
"origin",
"https://gnu.googlesource.com/gcc"
],
"cwd": "[START_DIR]/gcc",
"infra_step": true,
"name": "gcc.git remote",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [],
"name": "gcc.cache",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[CACHE]/git/gnu.googlesource.com-gcc"
],
"cwd": "[START_DIR]/gcc",
"infra_step": true,
"name": "gcc.cache.makedirs",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"git",
"init",
"--bare"
],
"cwd": "[CACHE]/git/gnu.googlesource.com-gcc",
"infra_step": true,
"name": "gcc.cache.git init",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"git",
"config",
"remote.origin.url",
"https://gnu.googlesource.com/gcc"
],
"cwd": "[CACHE]/git/gnu.googlesource.com-gcc",
"infra_step": true,
"name": "gcc.cache.remote set-url",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"git",
"config",
"--replace-all",
"remote.origin.fetch",
"+refs/heads/*:refs/heads/*",
"\\+refs/heads/\\*:.*"
],
"cwd": "[CACHE]/git/gnu.googlesource.com-gcc",
"infra_step": true,
"name": "gcc.cache.git config",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"git",
"fetch",
"--prune",
"--tags",
"origin"
],
"cwd": "[CACHE]/git/gnu.googlesource.com-gcc",
"infra_step": true,
"name": "gcc.cache.git fetch",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[START_DIR]/gcc/.git/objects/info"
],
"cwd": "[START_DIR]/gcc",
"infra_step": true,
"name": "gcc.cache.makedirs object/info",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"[CACHE]/git/gnu.googlesource.com-gcc/objects\n",
"[START_DIR]/gcc/.git/objects/info/alternates"
],
"cwd": "[START_DIR]/gcc",
"infra_step": true,
"name": "gcc.cache.alternates",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@",
"@@@STEP_LOG_LINE@alternates@[CACHE]/git/gnu.googlesource.com-gcc/objects@@@",
"@@@STEP_LOG_END@alternates@@@"
]
},
{
"cmd": [
"git",
"fetch",
"--tags",
"origin",
"refs/tags/gcc-9_1_0-release"
],
"cwd": "[START_DIR]/gcc",
"infra_step": true,
"name": "gcc.git fetch",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"checkout",
"-f",
"FETCH_HEAD"
],
"cwd": "[START_DIR]/gcc",
"infra_step": true,
"name": "gcc.git checkout",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"rev-parse",
"HEAD"
],
"cwd": "[START_DIR]/gcc",
"infra_step": true,
"name": "gcc.git rev-parse",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"clean",
"-f",
"-d",
"-x"
],
"cwd": "[START_DIR]/gcc",
"infra_step": true,
"name": "gcc.git clean",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [],
"name": "gcc.submodule",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"submodule",
"sync"
],
"cwd": "[START_DIR]/gcc",
"infra_step": true,
"name": "gcc.submodule.git submodule sync",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"git",
"submodule",
"update",
"--init"
],
"cwd": "[START_DIR]/gcc",
"infra_step": true,
"name": "gcc.submodule.git submodule update",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [],
"name": "ensure_packages"
},
{
"cmd": [
"cipd",
"ensure",
"-root",
"[START_DIR]/cipd",
"-ensure-file",
"fuchsia/third_party/clang/${platform} goma",
"-json-output",
"/path/to/tmp/json"
],
"infra_step": true,
"name": "ensure_packages.ensure_installed",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@json.output@{@@@",
"@@@STEP_LOG_LINE@json.output@ \"result\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"\": [@@@",
"@@@STEP_LOG_LINE@json.output@ {@@@",
"@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"resolved-instance_id-of-goma------------\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"package\": \"fuchsia/third_party/clang/resolved-platform\"@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@ ]@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@}@@@",
"@@@STEP_LOG_END@json.output@@@"
]
},
{
"cmd": [
"xcrun",
"--show-sdk-path"
],
"name": "xcrun",
"~followup_annotations": [
"@@@STEP_LOG_LINE@raw_io.output[sdk-path]@/some/xcode/path@@@",
"@@@STEP_LOG_END@raw_io.output[sdk-path]@@@"
]
},
{
"cmd": [
"[START_DIR]/gcc/contrib/download_prerequisites"
],
"cwd": "[START_DIR]/gcc",
"name": "download prerequisites"
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[CLEANUP]/gcc_tmp_1/gcc-darwin"
],
"infra_step": true,
"name": "create pkg dir"
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"#!/bin/sh\nexec [CACHE]/goma/client/gomacc [START_DIR]/cipd/bin/clang --sysroot=/some/xcode/path \"$@\"\n",
"[CLEANUP]/gcc_tmp_1/host-cc"
],
"infra_step": true,
"name": "write host-cc script",
"~followup_annotations": [
"@@@STEP_LOG_LINE@host-cc@#!/bin/sh@@@",
"@@@STEP_LOG_LINE@host-cc@exec [CACHE]/goma/client/gomacc [START_DIR]/cipd/bin/clang --sysroot=/some/xcode/path \"$@\"@@@",
"@@@STEP_LOG_END@host-cc@@@"
]
},
{
"cmd": [
"chmod",
"+x",
"[CLEANUP]/gcc_tmp_1/host-cc"
],
"name": "make host-cc executable"
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"#!/bin/sh\nexec [CACHE]/goma/client/gomacc [START_DIR]/cipd/bin/clang++ --sysroot=/some/xcode/path \"$@\"\n",
"[CLEANUP]/gcc_tmp_1/host-cxx"
],
"infra_step": true,
"name": "write host-cxx script",
"~followup_annotations": [
"@@@STEP_LOG_LINE@host-cxx@#!/bin/sh@@@",
"@@@STEP_LOG_LINE@host-cxx@exec [CACHE]/goma/client/gomacc [START_DIR]/cipd/bin/clang++ --sysroot=/some/xcode/path \"$@\"@@@",
"@@@STEP_LOG_END@host-cxx@@@"
]
},
{
"cmd": [
"chmod",
"+x",
"[CLEANUP]/gcc_tmp_1/host-cxx"
],
"name": "make host-cxx executable"
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[CLEANUP]/gcc_tmp_1/mock-include"
],
"infra_step": true,
"name": "create mock include dir"
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"/* dummy */",
"[CLEANUP]/gcc_tmp_1/mock-include/limits.h"
],
"infra_step": true,
"name": "write dummy <limits.h>",
"~followup_annotations": [
"@@@STEP_LOG_LINE@limits.h@/* dummy */@@@",
"@@@STEP_LOG_END@limits.h@@@"
]
},
{
"cmd": [
"cipd",
"ensure",
"-root",
"[CACHE]/macos_sdk",
"-ensure-file",
"infra/tools/mac_toolchain/${platform} git_revision:434f5462a77e7103f9d610fa5cabc426bb21502e",
"-json-output",
"/path/to/tmp/json"
],
"infra_step": true,
"name": "ensure_installed",
"~followup_annotations": [
"@@@STEP_LOG_LINE@json.output@{@@@",
"@@@STEP_LOG_LINE@json.output@ \"result\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"\": [@@@",
"@@@STEP_LOG_LINE@json.output@ {@@@",
"@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"resolved-instance_id-of-git_revision:434\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"package\": \"infra/tools/mac_toolchain/resolved-platform\"@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@ ]@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@}@@@",
"@@@STEP_LOG_END@json.output@@@"
]
},
{
"cmd": [
"[CACHE]/macos_sdk/mac_toolchain",
"install",
"-kind",
"mac",
"-xcode-version",
"10b61",
"-output-dir",
"[CACHE]/macos_sdk/XCode.app"
],
"infra_step": true,
"name": "install xcode"
},
{
"cmd": [
"sudo",
"xcode-select",
"--switch",
"[CACHE]/macos_sdk/XCode.app"
],
"infra_step": true,
"name": "select XCode"
},
{
"cmd": [],
"name": "pre_goma"
},
{
"cmd": [
"python",
"-u",
"\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
"<LUCI_CONTEXT>",
"/path/to/tmp/json"
],
"name": "pre_goma.read context",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"{\"local_auth\": {\"accounts\": [{\"email\": \"some@example.com\", \"id\": \"test\"}], \"default_account_id\": \"system\"}}",
"[CLEANUP]/luci_context._tmp_2"
],
"infra_step": true,
"name": "pre_goma.write context",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@luci_context._tmp_2@{\"local_auth\": {\"accounts\": [{\"email\": \"some@example.com\", \"id\": \"test\"}], \"default_account_id\": \"system\"}}@@@",
"@@@STEP_LOG_END@luci_context._tmp_2@@@"
]
},
{
"cmd": [
"python",
"-u",
"[CACHE]/goma/client/goma_ctl.py",
"restart"
],
"env": {
"GOMA_CACHE_DIR": "[CACHE]/goma",
"GOMA_DEPS_CACHE_FILE": "goma_deps_cache",
"GOMA_DUMP_STATS_FILE": "[CACHE]/goma/client/goma_stats.json",
"LUCI_CONTEXT": "[CLEANUP]/luci_context._tmp_2"
},
"infra_step": true,
"name": "pre_goma.start_goma",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[CLEANUP]/gcc_tmp_1/binutils_aarch64_build_dir"
],
"infra_step": true,
"name": "create binutils aarch64 build dir"
},
{
"cmd": [
"[START_DIR]/binutils-gdb/configure",
"--enable-deterministic-archives",
"--enable-targets=arm-eabi",
"CC=[CLEANUP]/gcc_tmp_1/host-cc",
"CFLAGS=-O3",
"CXX=[CLEANUP]/gcc_tmp_1/host-cxx",
"CXXFLAGS=-O3 -nostdlib++",
"LIBS=[START_DIR]/cipd/lib/libc++.a",
"--prefix=",
"--target=aarch64-elf",
"--enable-initfini-array",
"--enable-gold",
"--enable-plugins",
"--enable-threads",
"--disable-werror",
"--disable-nls",
"--with-included-gettext"
],
"cwd": "[CLEANUP]/gcc_tmp_1/binutils_aarch64_build_dir",
"name": "configure aarch64 binutils"
},
{
"cmd": [
"make",
"-j80",
"MAKEOVERRIDES=editcc=-eb",
"all-binutils",
"all-gas",
"all-ld",
"all-gold"
],
"cwd": "[CLEANUP]/gcc_tmp_1/binutils_aarch64_build_dir",
"name": "build aarch64 binutils"
},
{
"cmd": [
"make",
"-j8",
"-k",
"MAKEOVERRIDES=editcc=-eb",
"check-binutils",
"check-gas",
"check-ld",
"check-gold"
],
"cwd": "[CLEANUP]/gcc_tmp_1/binutils_aarch64_build_dir",
"name": "test aarch64 binutils"
},
{
"cmd": [
"make",
"-j1",
"DESTDIR=[CLEANUP]/gcc_tmp_1/gcc-darwin",
"MAKEOVERRIDES=editcc=-eb",
"install-strip-binutils",
"install-strip-gas",
"install-strip-ld",
"install-strip-gold"
],
"cwd": "[CLEANUP]/gcc_tmp_1/binutils_aarch64_build_dir",
"name": "install aarch64 binutils"
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[CLEANUP]/gcc_tmp_1/gcc_aarch64_build_dir"
],
"infra_step": true,
"name": "create gcc aarch64 build dir"
},
{
"cmd": [
"[START_DIR]/gcc/configure",
"--enable-languages=c,c++",
"--disable-libstdcxx",
"--disable-libssp",
"--disable-libquadmath",
"CC=[CLEANUP]/gcc_tmp_1/host-cc",
"CFLAGS=-O3",
"CXX=[CLEANUP]/gcc_tmp_1/host-cxx",
"CXXFLAGS=-O3 -nostdlib++",
"LIBS=[START_DIR]/cipd/lib/libc++.a",
"--prefix=",
"--target=aarch64-elf",
"--enable-initfini-array",
"--enable-gold",
"--enable-plugins",
"--enable-threads",
"--disable-werror",
"--disable-nls",
"--with-included-gettext"
],
"cwd": "[CLEANUP]/gcc_tmp_1/gcc_aarch64_build_dir",
"env_prefixes": {
"PATH": [
"[CLEANUP]/gcc_tmp_1/gcc-darwin/bin"
]
},
"name": "configure aarch64 gcc"
},
{
"cmd": [
"make",
"-j80",
"MAKEOVERRIDES=USE_GCC_STDINT=provide LIMITS_H_TEST=true",
"CPPFLAGS_FOR_TARGET=-idirafter [CLEANUP]/gcc_tmp_1/mock-include",
"all-gcc",
"all-target-libgcc"
],
"cwd": "[CLEANUP]/gcc_tmp_1/gcc_aarch64_build_dir",
"env_prefixes": {
"PATH": [
"[CLEANUP]/gcc_tmp_1/gcc-darwin/bin"
]
},
"name": "build aarch64 gcc"
},
{
"cmd": [
"make",
"-j8",
"MAKEOVERRIDES=USE_GCC_STDINT=provide LIMITS_H_TEST=true",
"CPPFLAGS_FOR_TARGET=-idirafter [CLEANUP]/gcc_tmp_1/mock-include",
"check-gcc"
],
"cwd": "[CLEANUP]/gcc_tmp_1/gcc_aarch64_build_dir",
"env_prefixes": {
"PATH": [
"[CLEANUP]/gcc_tmp_1/gcc-darwin/bin"
]
},
"name": "test aarch64 gcc"
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"[CLEANUP]/gcc_tmp_1/gcc_aarch64_build_dir/gcc/testsuite/gcc/gcc.log",
"/path/to/tmp/"
],
"cwd": "[CLEANUP]/gcc_tmp_1/gcc_aarch64_build_dir",
"env_prefixes": {
"PATH": [
"[CLEANUP]/gcc_tmp_1/gcc-darwin/bin"
]
},
"infra_step": true,
"name": "gcc aarch64 gcc/testsuite/gcc/gcc.log",
"~followup_annotations": [
"@@@STEP_LOG_END@gcc.log@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"[CLEANUP]/gcc_tmp_1/gcc_aarch64_build_dir/gcc/testsuite/g++/g++.log",
"/path/to/tmp/"
],
"cwd": "[CLEANUP]/gcc_tmp_1/gcc_aarch64_build_dir",
"env_prefixes": {
"PATH": [
"[CLEANUP]/gcc_tmp_1/gcc-darwin/bin"
]
},
"infra_step": true,
"name": "gcc aarch64 gcc/testsuite/g++/g++.log",
"~followup_annotations": [
"@@@STEP_LOG_END@g++.log@@@"
]
},
{
"cmd": [],
"name": "test aarch64 gcc logs",
"~followup_annotations": [
"@@@STEP_LOG_END@gcc.log@@@",
"@@@STEP_LOG_END@g++.log@@@"
]
},
{
"cmd": [
"make",
"-j1",
"MAKEOVERRIDES=USE_GCC_STDINT=provide LIMITS_H_TEST=true",
"CPPFLAGS_FOR_TARGET=-idirafter [CLEANUP]/gcc_tmp_1/mock-include",
"DESTDIR=[CLEANUP]/gcc_tmp_1/gcc-darwin",
"install-strip-gcc",
"install-strip-target-libgcc"
],
"cwd": "[CLEANUP]/gcc_tmp_1/gcc_aarch64_build_dir",
"env_prefixes": {
"PATH": [
"[CLEANUP]/gcc_tmp_1/gcc-darwin/bin"
]
},
"name": "install aarch64 gcc"
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[CLEANUP]/gcc_tmp_1/binutils_x86_64_build_dir"
],
"infra_step": true,
"name": "create binutils x86_64 build dir"
},
{
"cmd": [
"[START_DIR]/binutils-gdb/configure",
"--enable-deterministic-archives",
"--enable-targets=x86_64-pep",
"CC=[CLEANUP]/gcc_tmp_1/host-cc",
"CFLAGS=-O3",
"CXX=[CLEANUP]/gcc_tmp_1/host-cxx",
"CXXFLAGS=-O3 -nostdlib++",
"LIBS=[START_DIR]/cipd/lib/libc++.a",
"--prefix=",
"--target=x86_64-elf",
"--enable-initfini-array",
"--enable-gold",
"--enable-plugins",
"--enable-threads",
"--disable-werror",
"--disable-nls",
"--with-included-gettext"
],
"cwd": "[CLEANUP]/gcc_tmp_1/binutils_x86_64_build_dir",
"name": "configure x86_64 binutils"
},
{
"cmd": [
"make",
"-j80",
"MAKEOVERRIDES=editcc=-eb",
"all-binutils",
"all-gas",
"all-ld",
"all-gold"
],
"cwd": "[CLEANUP]/gcc_tmp_1/binutils_x86_64_build_dir",
"name": "build x86_64 binutils"
},
{
"cmd": [
"make",
"-j8",
"-k",
"MAKEOVERRIDES=editcc=-eb",
"check-binutils",
"check-gas",
"check-ld",
"check-gold"
],
"cwd": "[CLEANUP]/gcc_tmp_1/binutils_x86_64_build_dir",
"name": "test x86_64 binutils"
},
{
"cmd": [
"make",
"-j1",
"DESTDIR=[CLEANUP]/gcc_tmp_1/gcc-darwin",
"MAKEOVERRIDES=editcc=-eb",
"install-strip-binutils",
"install-strip-gas",
"install-strip-ld",
"install-strip-gold"
],
"cwd": "[CLEANUP]/gcc_tmp_1/binutils_x86_64_build_dir",
"name": "install x86_64 binutils"
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[CLEANUP]/gcc_tmp_1/gcc_x86_64_build_dir"
],
"infra_step": true,
"name": "create gcc x86_64 build dir"
},
{
"cmd": [
"[START_DIR]/gcc/configure",
"--enable-languages=c,c++",
"--disable-libstdcxx",
"--disable-libssp",
"--disable-libquadmath",
"CC=[CLEANUP]/gcc_tmp_1/host-cc",
"CFLAGS=-O3",
"CXX=[CLEANUP]/gcc_tmp_1/host-cxx",
"CXXFLAGS=-O3 -nostdlib++",
"LIBS=[START_DIR]/cipd/lib/libc++.a",
"--prefix=",
"--target=x86_64-elf",
"--enable-initfini-array",
"--enable-gold",
"--enable-plugins",
"--enable-threads",
"--disable-werror",
"--disable-nls",
"--with-included-gettext"
],
"cwd": "[CLEANUP]/gcc_tmp_1/gcc_x86_64_build_dir",
"env_prefixes": {
"PATH": [
"[CLEANUP]/gcc_tmp_1/gcc-darwin/bin"
]
},
"name": "configure x86_64 gcc"
},
{
"cmd": [
"make",
"-j80",
"MAKEOVERRIDES=USE_GCC_STDINT=provide LIMITS_H_TEST=true",
"CPPFLAGS_FOR_TARGET=-idirafter [CLEANUP]/gcc_tmp_1/mock-include",
"all-gcc",
"all-target-libgcc"
],
"cwd": "[CLEANUP]/gcc_tmp_1/gcc_x86_64_build_dir",
"env_prefixes": {
"PATH": [
"[CLEANUP]/gcc_tmp_1/gcc-darwin/bin"
]
},
"name": "build x86_64 gcc"
},
{
"cmd": [
"make",
"-j8",
"MAKEOVERRIDES=USE_GCC_STDINT=provide LIMITS_H_TEST=true",
"CPPFLAGS_FOR_TARGET=-idirafter [CLEANUP]/gcc_tmp_1/mock-include",
"check-gcc"
],
"cwd": "[CLEANUP]/gcc_tmp_1/gcc_x86_64_build_dir",
"env_prefixes": {
"PATH": [
"[CLEANUP]/gcc_tmp_1/gcc-darwin/bin"
]
},
"name": "test x86_64 gcc"
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"[CLEANUP]/gcc_tmp_1/gcc_x86_64_build_dir/gcc/testsuite/gcc/gcc.log",
"/path/to/tmp/"
],
"cwd": "[CLEANUP]/gcc_tmp_1/gcc_x86_64_build_dir",
"env_prefixes": {
"PATH": [
"[CLEANUP]/gcc_tmp_1/gcc-darwin/bin"
]
},
"infra_step": true,
"name": "gcc x86_64 gcc/testsuite/gcc/gcc.log",
"~followup_annotations": [
"@@@STEP_LOG_END@gcc.log@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"[CLEANUP]/gcc_tmp_1/gcc_x86_64_build_dir/gcc/testsuite/g++/g++.log",
"/path/to/tmp/"
],
"cwd": "[CLEANUP]/gcc_tmp_1/gcc_x86_64_build_dir",
"env_prefixes": {
"PATH": [
"[CLEANUP]/gcc_tmp_1/gcc-darwin/bin"
]
},
"infra_step": true,
"name": "gcc x86_64 gcc/testsuite/g++/g++.log",
"~followup_annotations": [
"@@@STEP_LOG_END@g++.log@@@"
]
},
{
"cmd": [],
"name": "test x86_64 gcc logs",
"~followup_annotations": [
"@@@STEP_LOG_END@gcc.log@@@",
"@@@STEP_LOG_END@g++.log@@@"
]
},
{
"cmd": [
"make",
"-j1",
"MAKEOVERRIDES=USE_GCC_STDINT=provide LIMITS_H_TEST=true",
"CPPFLAGS_FOR_TARGET=-idirafter [CLEANUP]/gcc_tmp_1/mock-include",
"DESTDIR=[CLEANUP]/gcc_tmp_1/gcc-darwin",
"install-strip-gcc",
"install-strip-target-libgcc"
],
"cwd": "[CLEANUP]/gcc_tmp_1/gcc_x86_64_build_dir",
"env_prefixes": {
"PATH": [
"[CLEANUP]/gcc_tmp_1/gcc-darwin/bin"
]
},
"name": "install x86_64 gcc"
},
{
"cmd": [],
"name": "post_goma"
},
{
"cmd": [
"python",
"-u",
"[CACHE]/goma/client/goma_ctl.py",
"jsonstatus",
"[CACHE]/goma/client/jsonstatus"
],
"env": {
"GOMA_CACHE_DIR": "[CACHE]/goma",
"GOMA_DEPS_CACHE_FILE": "goma_deps_cache",
"GOMA_DUMP_STATS_FILE": "[CACHE]/goma/client/goma_stats.json",
"LUCI_CONTEXT": "[CLEANUP]/luci_context._tmp_2"
},
"name": "post_goma.goma_jsonstatus",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@json.output@{@@@",
"@@@STEP_LOG_LINE@json.output@ \"notice\": [@@@",
"@@@STEP_LOG_LINE@json.output@ {@@@",
"@@@STEP_LOG_LINE@json.output@ \"infra_status\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"num_user_error\": 0, @@@",
"@@@STEP_LOG_LINE@json.output@ \"ping_status_code\": 200@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@ ]@@@",
"@@@STEP_LOG_LINE@json.output@}@@@",
"@@@STEP_LOG_END@json.output@@@"
]
},
{
"cmd": [
"python",
"-u",
"[CACHE]/goma/client/goma_ctl.py",
"stat"
],
"env": {
"GOMA_CACHE_DIR": "[CACHE]/goma",
"GOMA_DEPS_CACHE_FILE": "goma_deps_cache",
"GOMA_DUMP_STATS_FILE": "[CACHE]/goma/client/goma_stats.json",
"LUCI_CONTEXT": "[CLEANUP]/luci_context._tmp_2"
},
"name": "post_goma.goma_stats",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"python",
"-u",
"[CACHE]/goma/client/goma_ctl.py",
"stop"
],
"env": {
"GOMA_CACHE_DIR": "[CACHE]/goma",
"GOMA_DEPS_CACHE_FILE": "goma_deps_cache",
"GOMA_DUMP_STATS_FILE": "[CACHE]/goma/client/goma_stats.json",
"LUCI_CONTEXT": "[CLEANUP]/luci_context._tmp_2"
},
"name": "post_goma.stop_goma",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"[CACHE]/goma/client/goma_stats.json",
"/path/to/tmp/"
],
"infra_step": true,
"name": "post_goma.read goma_stats.json",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@goma_stats.json@{}@@@",
"@@@STEP_LOG_END@goma_stats.json@@@"
]
},
{
"cmd": [
"sudo",
"xcode-select",
"--reset"
],
"infra_step": true,
"name": "reset XCode"
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"[START_DIR]/binutils-gdb/bfd/version.m4",
"/path/to/tmp/"
],
"infra_step": true,
"name": "binutils version",
"~followup_annotations": [
"@@@STEP_LOG_LINE@version.m4@m4_define([BFD_VERSION], [2.27.0])@@@",
"@@@STEP_LOG_END@version.m4@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"[START_DIR]/gcc/gcc/BASE-VER",
"/path/to/tmp/"
],
"infra_step": true,
"name": "gcc version",
"~followup_annotations": [
"@@@STEP_LOG_LINE@BASE-VER@7.1.2@@@",
"@@@STEP_LOG_END@BASE-VER@@@"
]
},
{
"cmd": [],
"name": "cipd",
"~followup_annotations": [
"@@@SET_BUILD_PROPERTY@instance_id@\"40-chars-fake-of-the-package-instance_id\"@@@",
"@@@SET_BUILD_PROPERTY@package@\"fuchsia/gcc/resolved-platform\"@@@"
]
},
{
"cmd": [
"cipd",
"pkg-build",
"-pkg-def",
"{\"data\": [{\"dir\": \".\", \"exclude\": []}, {\"version_file\": \".versions/gcc.cipd_version\"}], \"install_mode\": \"copy\", \"package\": \"fuchsia/gcc/${platform}\", \"root\": \"[CLEANUP]/gcc_tmp_1/gcc-darwin\"}",
"-out",
"[CLEANUP]/gcc.cipd",
"-hash-algo",
"sha256",
"-json-output",
"/path/to/tmp/json"
],
"name": "cipd.build fuchsia/gcc/${platform}",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@json.output@{@@@",
"@@@STEP_LOG_LINE@json.output@ \"result\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"40-chars-fake-of-the-package-instance_id\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"package\": \"fuchsia/gcc/resolved-platform\"@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@}@@@",
"@@@STEP_LOG_END@json.output@@@"
]
},
{
"cmd": [
"cipd",
"search",
"fuchsia/gcc/${platform}",
"-tag",
"git_revision:4b5e15daff8b54440e3fda451c318ad31e532fab,3d861fdb826c2f5cf270dd5f585d0e6057e1bf4f,1",
"-json-output",
"/path/to/tmp/json"
],
"name": "cipd.cipd search fuchsia/gcc/${platform} git_revision:4b5e15daff8b54440e3fda451c318ad31e532fab,3d861fdb826c2f5cf270dd5f585d0e6057e1bf4f,1",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@json.output@{@@@",
"@@@STEP_LOG_LINE@json.output@ \"result\": []@@@",
"@@@STEP_LOG_LINE@json.output@}@@@",
"@@@STEP_LOG_END@json.output@@@"
]
},
{
"cmd": [
"cipd",
"pkg-register",
"[CLEANUP]/gcc.cipd",
"-ref",
"latest",
"-tag",
"git_repository:https://gnu.googlesource.com/gcc,https://gnu.googlesource.com/binutils-gdb,<salt>",
"-tag",
"git_revision:4b5e15daff8b54440e3fda451c318ad31e532fab,3d861fdb826c2f5cf270dd5f585d0e6057e1bf4f,1",
"-tag",
"version:7.1.2,2.27.0",
"-json-output",
"/path/to/tmp/json"
],
"name": "cipd.register fuchsia/gcc/${platform}",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@json.output@{@@@",
"@@@STEP_LOG_LINE@json.output@ \"result\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"40-chars-fake-of-the-package-instance_id\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"package\": \"fuchsia/gcc/resolved-platform\"@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@}@@@",
"@@@STEP_LOG_END@json.output@@@",
"@@@STEP_LINK@fuchsia/gcc/resolved-platform@https://chrome-infra-packages.appspot.com/p/fuchsia/gcc/resolved-platform/+/40-chars-fake-of-the-package-instance_id@@@"
]
},
{
"name": "$result"
}
]