Commit graph

52 commits

Author SHA1 Message Date
Mike Hommey
f83c67b24f Bug 1696077 - Add a toolchain for arm64 mac sccache. r=firefox-build-system-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D107017
2021-03-03 05:20:20 +00:00
Mike Hommey
907f9b6aab Bug 1690937 - Build sccache with a sysroot. r=firefox-build-system-reviewers,sheehan,mhentges
We can't use the system compiler (gcc) because of
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=786883
(which despite being closed, still is a problem)
We could use the linux64-gcc toolchain, but since we're using clang
on other platforms, we might as well do the same.

Differential Revision: https://phabricator.services.mozilla.com/D104129
2021-02-09 00:44:02 +00:00
Mike Hommey
12679da6a0 Bug 1680152 - Bump macos SDK to 10.12. r=spohl,firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D98421
2020-12-02 21:50:28 +00:00
Mike Hommey
e33d95224a Bug 1617143 - Do not build openssl ourselves for sccache. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D63632

--HG--
extra : moz-landing-system : lando
2020-02-21 14:25:58 +00:00
Chris Manchester
815211d55c Bug 1610929 - Update sccache for native-zlib feature and enable it in automation. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D60737

--HG--
extra : moz-landing-system : lando
2020-01-22 20:11:43 +00:00
Chris Manchester
7001285651 Bug 1610578 - Add cross sysroot for macOS sccache build. r=froydnj
Depends on D60536

Differential Revision: https://phabricator.services.mozilla.com/D60592

--HG--
extra : moz-landing-system : lando
2020-01-21 23:01:10 +00:00
Nick Alexander
e09210e873 Bug 1534533 - Add geckodriver toolchain tasks. r=chmanchester
There was quite a bit of discussion of this in `#build` on IRC,
and the consensus was that geckodriver should be built as a
stand-alone Rust crate and not as part of Firefox/Gecko (say, as a new
--enable-project target). This follows that approach, and the
expression, modeled off of cbindgen but updated to cross compile from
a Linux host to all targets, is pretty straight-forward.

A sparse profile would be nice, but the way that the Gecko Cargo
workspace works means that the profile must accumulate Rust code from
many locations.

If we want to, eventually testing/geckodriver can be removed from the
top-level Rust workspace, the geckodriver-signing tasks migrated to
these toolchain tasks, consumers migrated to the signing tasks, and
geckodriver removed from the "common" test archive.

Differential Revision: https://phabricator.services.mozilla.com/D43646

--HG--
rename : taskcluster/scripts/misc/vs-setup.sh => taskcluster/scripts/misc/vs-setup32.sh
extra : moz-landing-system : lando
2019-08-28 20:54:06 +00:00
Mike Hommey
648907c1b4 Bug 1571986 - Kill vctip at the end of more tasks. r=nalexander
Also, since we had problems with mspdbsrv in the past, kill it too.

Differential Revision: https://phabricator.services.mozilla.com/D41340

--HG--
extra : moz-landing-system : lando
2019-08-09 16:06:42 +00:00
Mike Hommey
57786654e0 Bug 1571562 - Use toolchain fetches instead of use_toolchain references in toolchain task definitions. r=nalexander
And remove the use of tooltool-download where it's not needed anymore.

Differential Revision: https://phabricator.services.mozilla.com/D40714
2019-08-07 13:54:20 +09:00
Mike Hommey
0d49eb3466 Bug 1571562 - Make tooltool-download.sh download and extract to MOZ_FETCHES_DIR. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D40712
2019-08-07 13:54:18 +09:00
Mike Hommey
98bd74773e Bug 1570598 - Consistently use GECKO_PATH and MOZ_FETCHES_DIR in toolchain scripts. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D40187
2019-08-03 07:08:48 +09:00
Mike Hommey
e2daeefe33 Bug 1570598 - Use a common setup file for Visual Studio in toolchain scripts. r=nalexander
This has the side effect of making gn a 64-bits binary. Keeping it
32-bits is not worth the effort.

Differential Revision: https://phabricator.services.mozilla.com/D40186
2019-08-03 07:08:47 +09:00
Mike Hommey
7aad59e35d Bug 1570240 - Use fetch tasks' artifacts to get sccache and openssl source. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D40031
2019-08-03 07:08:43 +09:00
Tom Prince
f5366339ef Bug 1570054: Specify UPLOAD_DIR explicitly in taskgraph for docker-worker built toolchains; r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D39903
2019-08-02 19:05:56 +09:00
Chris Manchester
d95bf19baf Bug 1566219 - Update sccache built in tree to pick up fix for "too many open files" on macOS. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D38152

--HG--
extra : moz-landing-system : lando
2019-07-16 18:52:22 +00:00
Chris Manchester
ed3205a579 Bug 1561702 - Bump sccache in tree to 0.2.9 release. r=dmajor
This version includes several fixes for sccache-dist in addition
to changes that make sccache compatible with cargo pipelining.

Differential Revision: https://phabricator.services.mozilla.com/D36075

--HG--
extra : moz-landing-system : lando
2019-06-26 19:58:16 +00:00
Chris Manchester
494eff062e Bug 1555396 - Bump revision of sccache built in automation to current master. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D33102

--HG--
extra : moz-landing-system : lando
2019-05-30 06:32:54 +00:00
Chris Manchester
a18c4d2cbd Bug 1553339 - Abandon "2" in name of sccache toolchain artifacts. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D32218

--HG--
extra : moz-landing-system : lando
2019-05-22 21:06:16 +00:00
Chris Manchester
75b9d34484 Bug 1532329 - Build sccache for macOS as a toolchain task. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D31692

--HG--
extra : moz-landing-system : lando
2019-05-22 03:27:23 +00:00
Noemi Erli
ea4d1bdf44 Backed out changeset aadea84deaeb (bug 1532329) for toolchains bustages CLOSED TREE 2019-05-22 02:40:58 +03:00
Chris Manchester
154f462aa7 Bug 1532329 - Build sccache for macOS as a toolchain task. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D31692

--HG--
extra : moz-landing-system : lando
2019-05-18 00:20:17 +00:00
Rob Thijssen
898299aa0d Bug 1549346 - toggle sccache gcs feature to always on r=chmanchester
partial revert of https://hg.mozilla.org/mozilla-central/rev/5b08dd3eeec9 where the gcs feature switch should have been to the win build only and always enabled rather than just when the SCCACHE_GCS_KEY_PATH variable is set.

Differential Revision: https://phabricator.services.mozilla.com/D30774

--HG--
extra : moz-landing-system : lando
2019-05-13 23:56:02 +00:00
Rob Thijssen
c00716af37 Bug 1543026 - enable sccache on gcp r=wcosta
this change comprises the in-tree changes required to make use of sccache in gcp.
specifically:
- a gcp metadata lookup for availability-zone is added to mozconfig, enabling a build to determine its regional gcp sccache bucket
- the sccache cargo build command is modified to include the gcs feature when the environment contains gcs configuration

note that further changes are required on infra to support sccache use. the required changes already [exist](https://github.com/mozilla-releng/OpenCloudConfig/commit/1d515dc) and are enabled for gcp windows infra, including:
- a json credential file on the build instance filesystem, containing credentials valid for the appropriate scm level bucket for the gcp region
- an `SCCACHE_GCS_KEY_PATH` env variable containing the path to the json credential file
- an `SCCACHE_GCS_RW_MODE` env variable containg the text `READ_WRITE`
- sccache buckets must exist for each region and scm levels 1 & 3
- credentials for scm level 1 buckets **must not** be valid for scm level 3 buckets

on gcp systems which do not contain credential files and the above mentioned env variables (eg gecko-[1-3]-b-linux), sccache should fail gracefully without breaking builds.

Differential Revision: https://phabricator.services.mozilla.com/D29622

--HG--
extra : moz-landing-system : lando
2019-05-02 12:56:20 +00:00
Chris Manchester
2f81da5755 Bug 1544865 - Build dist-server in the sccache toolchain job where available. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D27749

--HG--
extra : moz-landing-system : lando
2019-04-16 17:08:38 +00:00
Chris Manchester
5b1f3fb485 Bug 1544521 - Update the sccache revision used in our automation to the current master. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D27568

--HG--
extra : moz-landing-system : lando
2019-04-15 23:33:50 +00:00
Mike Hommey
353eb51c20 Bug 1527798 - Upgrade toolchain tasks using MSVC to 15.8.4. r=froydnj
It turns out version 15.4.2 spawns a vctip process that sticks after the
build, and since bug 1527798, that breaks unmounting caches because the
process has a handle on msvcp140.dll, which lies in the source
directory. The problem goes away with 15.8.4, so upgrade all toolchain
tasks to that.

That's the same version as we're using on x86/x86-64 MSVC builds.

Differential Revision: https://phabricator.services.mozilla.com/D19752
2019-02-16 07:22:34 +09:00
Mike Hommey
f70fc6ed56 Backout changesets cdefcc66972a, 1527e2d84ff9 (bug 1527798), ac565cc75295 (bug 1431523) and 0605b508a2c6 (bug 1528150)
to give time to docker images and toolchains to build.


--HG--
rename : taskcluster/docker/debian-raw/cloud-mirror-workaround.sh => taskcluster/docker/debian-base/cloud-mirror-workaround.sh
rename : taskcluster/docker/debian-raw/setup_packages.sh => taskcluster/docker/debian-base/setup_packages.sh
2019-02-16 00:38:13 +09:00
Mike Hommey
cbec6eb233 Bug 1527798 - Upgrade toolchain tasks using MSVC to 15.8.4. r=froydnj
It turns out version 15.4.2 spawns a vctip process that sticks after the
build, and since bug 1527798, that breaks unmounting caches because the
process has a handle on msvcp140.dll, which lies in the source
directory. The problem goes away with 15.8.4, so upgrade all toolchain
tasks to that.

That's the same version as we're using on x86/x86-64 MSVC builds.

Differential Revision: https://phabricator.services.mozilla.com/D19752
2019-02-16 00:31:55 +09:00
Mike Hommey
8369a1bd0d Backout changesets 084f5a952f04 (bug 1527798) and f8738cf7a4ae (bug 1431523) to give time to docker images, etc. to build without blocking other landings.
--HG--
rename : taskcluster/docker/debian-raw/cloud-mirror-workaround.sh => taskcluster/docker/debian-base/cloud-mirror-workaround.sh
rename : taskcluster/docker/debian-raw/setup_packages.sh => taskcluster/docker/debian-base/setup_packages.sh
2019-02-15 06:55:54 +09:00
Mike Hommey
e94de1e008 Bug 1527798 - Upgrade toolchain tasks using MSVC to 15.8.4. r=froydnj
It turns out version 15.4.2 spawns a vctip process that sticks after the
build, and since bug 1527798, that breaks unmounting caches because the
process has a handle on msvcp140.dll, which lies in the source
directory. The problem goes away with 15.8.4, so upgrade all toolchain
tasks to that.

That's the same version as we're using on x86/x86-64 MSVC builds.

Differential Revision: https://phabricator.services.mozilla.com/D19752
2019-02-15 06:51:48 +09:00
Mike Shal
a2f8b431ea Bug 1476604 - update sccache; r=firefox-build-system-reviewers,nalexander,ted
This change updates sccache to this revision:
8f295c09cf

Primarily to pick up the changes for handling -Xclang: https://github.com/mozilla/sccache/pull/332

MozReview-Commit-ID: GHinVG4XNDg

Differential Revision: https://phabricator.services.mozilla.com/D13288

--HG--
extra : moz-landing-system : lando
2018-12-04 19:17:54 +00:00
Gurzau Raul
a4abaa05a2 Backed out changeset d459920f97a5 (bug 1476604) for causing Bug 1507781 a=backout 2018-11-16 19:32:13 +02:00
Ted Mielczarek
41d53c23d0 bug 1476604 - update sccache. r=firefox-build-system-reviewers,gps
This change updates sccache to this revision:
a3dcb66243

Primarily to pick up the changes for handling -Xclang: https://github.com/mozilla/sccache/pull/332

Differential Revision: https://phabricator.services.mozilla.com/D12045

--HG--
extra : moz-landing-system : lando
2018-11-15 20:17:51 +00:00
Ciure Andrei
45e75f0714 Backed out changeset 78a680cf3b40 (bug 1484897) for build timeouts CLOSED TREE 2018-09-11 02:25:03 +03:00
Mike Hommey
c86bff4410 Bug 1484897 - Update the version of sccache for Linux to support clang PGO r=froydnj
Bug 1476604 tried the same thing for different reasons, but ultimately
failed because of unsupported flags for PGO with clang-cl. However, to
unblock switching to clang for Linux nightlies, we go ahead and upgrade
only the Linux sccache.

Differential Revision: https://phabricator.services.mozilla.com/D5375

--HG--
extra : moz-landing-system : lando
2018-09-10 16:10:50 +00:00
Tudor-Gabriel Vîjială
f5b27fe2be Bug 1334940 - Re-enable SCCACHE for linux64-ccov. r=ted
MozReview-Commit-ID: 6BQt984Rl39

--HG--
extra : rebase_source : b92e2bd0daab858f49eefd1b07dd251346524649
2018-07-13 15:02:21 +01:00
Gregory Szorc
18e72cea88 Bug 1449629 - Use -L when downloading OpenSSL; r=glandium
The URL is now being redirected to
https://www.openssl.org/source/old/1.1.0/openssl-1.1.0g.tar.gz. Let's
add a -L so we follow redirects automatically.

MozReview-Commit-ID: AuZ98jGidzl

--HG--
extra : rebase_source : 07e61558024e789df45d8e2ab67ab5ad9d3d355b
2018-04-02 19:22:07 -07:00
Ted Mielczarek
bd3e9df16c bug 1446665 - update sccache to pick up a fix for a PGO build failure. r=froydnj
MozReview-Commit-ID: 5uCjHMZc7JJ

--HG--
extra : rebase_source : f8aa60cca3992707e056460b01ac470cd79fc385
2018-03-23 11:37:47 -04:00
Ted Mielczarek
44322b0b23 bug 1445631 - update sccache to pick up a fix in the jobserver crate. r=chmanchester
MozReview-Commit-ID: JtHea27GTTq

--HG--
extra : rebase_source : e7b08d6b6b765c0447aadfaa7f4f606676806c73
2018-03-16 13:41:52 -04:00
Ted Mielczarek
f51415ef1d bug 1445218 - update sccache to 0.2.6. r=froydnj
MozReview-Commit-ID: FxFmXcAHC5A

--HG--
extra : rebase_source : b01b5aca229547dc1b4de14ec36df54d806cf7e6
2018-03-13 08:31:06 -04:00
Mike Hommey
a6d328e83e Bug 1430087 - Build sccache with system GCC/binutils. r=nfroyd
It was failing to build with the GCC/binutils on the CentOS-based docker
image, but it doesn't with the Debian-based one, so we can remove the
dependency on the gcc toolchain task. This allows sccache to remain
untouched when we change the gcc build scripts, and more importantly,
this allows it to depend on no toolchain that requires building things.

This makes it now possible to use sccache as a dependency for all other
toolchains jobs that compile, if that's beneficial (which might not be
the case, given the current sccache retention time, but at least it's a
viable option, now)
2018-01-13 05:57:57 +09:00
Sebastian Hengst
f5e52adeea merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-11-07 12:43:06 +02:00
David Major
375f8abff8 Bug 1414304 - Use VS2017 for the sccache toolchain build. r=cmanchester 2017-11-06 17:15:13 -05:00
Ralph Giles
1999c8d8f8 Bug 1414906 - Build sccache with openssl 1.1.0g. r=froydnj
Fixes bn_sqrx8x_internal carry bug on x86_64 (CVE-2017-3736)

MozReview-Commit-ID: 5qF9NfCi3XX

--HG--
extra : rebase_source : 287dfb7198b2c7cce065010e5c603a4bb2fe986f
2017-11-06 10:16:07 -08:00
Nathan Froyd
c32f61a4c3 Bug 1412888 - bump the sccache revision to include argument parsing fixes; r=ted.mielczarek 2017-10-30 12:31:07 -04:00
Ted Mielczarek
05e4287341 bug 1408836 - update sccache to 0.2.2 to fix a Rust caching regression from Rust 1.20. r=glandium
MozReview-Commit-ID: K7dAk6wLGl7

--HG--
extra : rebase_source : e4637944c211c6ea4bc7bbe6035d1345f3057aaf
2017-10-25 21:18:27 -04:00
Mike Hommey
f813868d70 Bug 1408284 - Build sccache with gcc instead of clang. r=ted
When adding sccache toolchain jobs in bug 1381772, building with gcc
failed, and building with clang worked, so I just went with the path of
least resistance. That's however a suboptimal position in the dependency
graph, so it's still preferable to use gcc if possible.

Looking exactly how it fails, it turns out it's because without CC being
set, ring wants to build with "cc", which ends up being the system gcc
instead of ours (our gcc archive doesn't provide "cc", only "gcc"), and
it is too old to support the compiler flags ring uses.

So setting CC does the trick.

--HG--
extra : rebase_source : 4c657664957dff1f7aebe470e0440a52c9e280e5
2017-10-13 14:27:13 +09:00
Nathan Froyd
24e95d7e5e Bug 1395722 - link openssl statically when building sccache; r=ted.mielczarek
Our current sccache build links in openssl's libraries dynamically.  The
sonames of the dynamic libraries linked in are specific to the
CentOS/Fedora-ish systems that we build on; attempting to run the
generated sccache binaries on different systems (e.g. Debian-ish) will
result in failure.  All of our current automation images are
CentOS-based, but for various reasons, Debian-based images may be used
in the future, and it would be great to have an sccache binary to run on
such systems as well.  (It might also be interesting to distribute the
sccache binary we use to local developers as well, but that's a bit
further off.)

Therefore, this patch alters the sccache build on Linux to use static
linking for openssl.  We cannot use the system openssl we build on
because the system openssl links to libkrb5, and the distribution we use
for the system images does not provide static libraries of libkrb5.
Building openssl ourself enables us to eliminate the libkrb5 dependency.

An sccache binary from builds with this patch depends on the following
libraries:

froydnj@hawkeye:~$ ldd sccache2/sccache
	linux-vdso.so.1 =>  (0x00007ffe02b39000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007ff0e7403000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007ff0e71fb000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007ff0e6fdd000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007ff0e6dc6000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ff0e69fc000)
	/lib64/ld-linux-x86-64.so.2 (0x0000557c8540b000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007ff0e66f2000)

which are standard on any Linux distribution.
2017-09-05 11:37:51 -04:00
Mike Hommey
4931d14f9b Bug 1391533 - Update sccache to 0.2.1. r=ted
--HG--
extra : rebase_source : 29ad12d985b9861146b4d29c621eaf49e9d238ed
2017-08-19 06:48:01 +09:00
Ted Mielczarek
6e49037ae3 bug 1385386 - update sccache to revision 210bc791513ed8362b17a492a1f35a621cca64ff. r=glandium
This picks up a fix we need to update the OS X SDK we build with.

MozReview-Commit-ID: 8dvq4JV1o7q

--HG--
extra : rebase_source : a07f13992f30a29ede29a2167e7f1da8d533fd09
2017-08-16 11:19:35 -07:00