Граф коммитов

1063 Коммитов

Автор SHA1 Сообщение Дата
Mike Hommey 27dfa198c6 Bug 1685764 - Switch all tasks using the cross-releng tooltool manifest to the corresponding toolchain task. r=firefox-build-system-reviewers,dmajor
In the case of toolchain tasks, the tooltool download script already
extracted the SDK in $MOZ_FETCHES_DIR, so no adjustment was required.
Only a Firefox mozconfig needs adaptation.

Differential Revision: https://phabricator.services.mozilla.com/D104646
2021-02-11 22:06:20 +00:00
Mike Hommey a23d94a8e3 Bug 1691685 - Add base 32-bits development files to the toolchain sysroot. r=firefox-build-system-reviewers,dmajor
This allows the clang task to build the x86 compiler-rt again.

Differential Revision: https://phabricator.services.mozilla.com/D104583
2021-02-10 01:07:39 +00:00
Mike Hommey 509fddfd3b Bug 1690937 - Build cbindgen with a sysroot. r=firefox-build-system-reviewers,sheehan,mhentges
Similarly to sccache, we need to use clang.

Differential Revision: https://phabricator.services.mozilla.com/D104134
2021-02-09 00:44:03 +00:00
Mike Hommey 0c3830eb4e Bug 1690937 - Build fix-stacks with a sysroot. r=firefox-build-system-reviewers,sheehan,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D104133
2021-02-09 00:44:03 +00:00
Mike Hommey 734ff1e79a Bug 1690937 - Build minidump-stackwalk with a sysroot. r=firefox-build-system-reviewers,sheehan,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D104132
2021-02-09 00:44:03 +00:00
Mike Hommey 735d49f9d2 Bug 1690937 - Build lucetc with a sysroot. r=firefox-build-system-reviewers,sheehan,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D104131
2021-02-09 00:44:02 +00:00
Mike Hommey 8d3954c5fc Bug 1690937 - Build nasm with a sysroot. r=firefox-build-system-reviewers,sheehan,mhentges
For the same reason we used clang for sccache, we use clang here.

Differential Revision: https://phabricator.services.mozilla.com/D104130
2021-02-09 00:44:02 +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 43f741b235 Bug 1690932 - Use aarch64 sysroot to build aarch64 linux compiler-rt. r=firefox-build-system-reviewers,sheehan,mhentges
And remove the now unused toolchain-aarch64-build docker image.
While here, switch all compiler-rt toolchain tasks to a buster-based
docker image.

Differential Revision: https://phabricator.services.mozilla.com/D104122
2021-02-08 18:44:15 +00:00
Mike Hommey 89a85627df Bug 1690930 - Build sysroots suitable for the Firefox Linux builds. r=firefox-build-system-reviewers,sheehan,mhentges
With the same -dev packages as per taskcluster/docker/debian-build/Dockerfile
plus valgrind, for the one .h file it contains that we use.

This will later allow local builds to bootstrap them, and CI builds
to avoid relying on docker images for old Debian releases.

Differential Revision: https://phabricator.services.mozilla.com/D104119
2021-02-08 22:16:23 +00:00
Mike Hommey 142b37dbe4 Bug 1690940 - Don't package things we don't use in wasi-sysroot. r=firefox-build-system-reviewers,dmajor
This brings the artifact size from 38M to 1.8M.

Differential Revision: https://phabricator.services.mozilla.com/D104135
2021-02-05 14:51:56 +00:00
Mike Hommey 4e004f1b25 Bug 1690757 - Build the clang aarch64 cross toolchain as a repack of clang + compiler-rt. r=firefox-build-system-reviewers,andi,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D104013
2021-02-04 14:52:00 +00:00
Mike Hommey fba0bf38c9 Bug 1690757 - Add a compiler-rt task for aarch64 linux. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D104012
2021-02-04 21:35:39 +00:00
Mike Hommey 250f0d4870 Bug 1690757 - Change compiler-rt cmake flags to better share with upcoming new platforms. r=firefox-build-system-reviewers,mhentges
- Switch to use llvm-ar and llvm-ranlib
- Use CMAKE_*_COMPILER_TARGET for --target
- Use CMAKE_OSX_SYSROOT for -isysroot
- Limit the compiler wrapper to adding -mcpu=apple-a12 on arm64
- Remove -DLLVM_DEFAULT_TARGET_TRIPLE and add -DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON
- Group all the flags that are OSX-only

Differential Revision: https://phabricator.services.mozilla.com/D104011
2021-02-04 14:36:12 +00:00
Marco Castelluccio e073f23c69 Bug 1499663 - Build grcov so it's compatible with older libstdc++ versions. r=calixte DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D103896
2021-02-03 14:57:41 +00:00
Mike Hommey beb8f44609 Bug 1689467 - Use mozharness virtualenv python to run custom mach commands. r=releng-reviewers,jmaher
Differential Revision: https://phabricator.services.mozilla.com/D103447
2021-01-29 12:08:33 +00:00
Marco Castelluccio 42abfd5b8c Bug 1688039 - Build grcov with Clang. r=calixte DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D102723
2021-01-23 00:19:52 +00:00
Dorel Luca 3ffee52559 Backed out 2 changesets (bug 1688039) for Toolchain failure. CLOSED TREE
Backed out changeset f0e423809772 (bug 1688039)
Backed out changeset c3c76c537eb3 (bug 1688039)
2021-01-22 17:06:30 +02:00
Marco Castelluccio 8c4cb8607c Bug 1688039 - Build grcov with Clang. r=calixte DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D102723
2021-01-22 13:40:56 +00:00
Mike Hommey 49a9eeaf91 Bug 1687594 - Don't take path@task-id arguments on `mach artifact toolchain`. r=firefox-build-system-reviewers,mhentges
This form hasn't been used since bug 1573435.

Differential Revision: https://phabricator.services.mozilla.com/D102375
2021-01-20 15:04:49 +00:00
Mike Hommey 32ec3e64de Bug 1687594 - Remove the --authentication-file option to `mach artifact toolchain`. r=firefox-build-system-reviewers,mhentges
It has been a no-op since bug 1595368.

Differential Revision: https://phabricator.services.mozilla.com/D102374
2021-01-20 15:03:45 +00:00
David Major ab26127584 Bug 1686321 - Pass patches as arguments to build-compiler-rt.sh r=glandium
rename_gcov_flush_clang_11.patch doesn't apply cleanly to clang 12 and will need to be forked. Turning the filename into a parameter will let us have the tasks exist side by side.

Differential Revision: https://phabricator.services.mozilla.com/D101495
2021-01-14 03:41:08 +00:00
Dan Mosedale e91d8deeea Bug 1684936 - update NodeJS to 10.23.1 for latest sec fixes r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D100810
2021-01-07 17:06:42 +00:00
Mike Hommey 5a27f487f8 Bug 1685854 - Apply gcov_flush patch to compiler-rt. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D101294
2021-01-11 13:45:06 +00:00
Emilio Cobos Álvarez c60fdae7a4 Bug 1685957 - Use xargs to test non-unified builds. r=andi
Passing all the directories to mach allows to take more advantage of
parallelism (plus not having to start up mach and the whole export once
for every directory, which itself takes a bit of time)

This takes:

    GECKO_PATH=. taskcluster/scripts/misc/source-test-clang-non-unified.sh

from about ten mins to under two minutes on my machine.

Differential Revision: https://phabricator.services.mozilla.com/D101320
2021-01-11 04:25:29 +00:00
Mike Hommey eb3781ebc5 Bug 1685599 - Build a single macosx-cross toolchain. r=firefox-build-system-reviewers,mhentges
The new toolchain contains both aarch64 and x86_64 compiler-rts. We
could have a separate for each, but compiler-rt is small enough that
entirely separate toolchains is not warranted.

Differential Revision: https://phabricator.services.mozilla.com/D101079
2021-01-08 18:51:53 +00:00
Mike Hommey fd26bcb560 Bug 1685599 - Build a compiler-rt for x86_64. r=firefox-build-system-reviewers,mhentges
The llvm build system does support building a universal compiler-rt for
multiple platforms at once, but as far as I know it only supports doing
so with the same SDK, while we want to use separate SDKs for each, so
build the x86_64 compiler-rt separately.

Differential Revision: https://phabricator.services.mozilla.com/D101078
2021-01-08 18:51:52 +00:00
Mike Hommey feb2c466f7 Bug 1685599 - Don't rely on macosx-cross toolchain containing a mac native libLLVM. r=firefox-build-system-reviewers,andi,dmajor
The webrender wrench macos build, which is cross-compiled, needs a
macOS native libLLVM (a .dylib) to link against. The file is currently
part of the macosx-cross toolchain, but that was more incidental than
intentional. As we're going to change the macosx-cross toolchain in a
way that will remove the libLLVM.dylib, pull the file from the macOS
native clang.

Differential Revision: https://phabricator.services.mozilla.com/D101150
2021-01-08 18:51:54 +00:00
Mike Hommey b9cdcbef46 Bug 1685599 - Build llvm-symbolizer separately. r=firefox-build-system-reviewers,mhentges
Only sanitizer builds require a native llvm-symbolizer executable.
Ideally, we'd build llvm-symbolizer from scratch, which would be faster,
but for now, let's go the easy route and just extract it from the
corresponding native clang builds.

We don't actually do anything with the llvm-symbolizer executable on
android builds, so we don't install it in $FINAL_TARGET, avoilding
the dependency on android builds (plus, we actually don't have an
android-native llvm-symbolizer, so even if it were already shipped, it
would be the wrong file).

Differential Revision: https://phabricator.services.mozilla.com/D101076
2021-01-08 18:51:52 +00:00
Razvan Maries 891da67475 Backed out 6 changesets (bug 1685599) for WR bustages. CLOSED TREE
Backed out changeset 29eab2f84c77 (bug 1685599)
Backed out changeset 2839d8d39881 (bug 1685599)
Backed out changeset 3ba2f1c048c3 (bug 1685599)
Backed out changeset c7d4ecfc689a (bug 1685599)
Backed out changeset 5483ce4f5f4c (bug 1685599)
Backed out changeset 68fa5ecf205c (bug 1685599)
2021-01-08 09:04:37 +02:00
Mike Hommey 1c7ff6f2c2 Bug 1685599 - Build a single macosx-cross toolchain. r=firefox-build-system-reviewers,mhentges
The new toolchain contains both aarch64 and x86_64 compiler-rts. We
could have a separate for each, but compiler-rt is small enough that
entirely separate toolchains is not warranted.

Differential Revision: https://phabricator.services.mozilla.com/D101079
2021-01-08 00:38:37 +00:00
Mike Hommey 6ca557af7a Bug 1685599 - Build a compiler-rt for x86_64. r=firefox-build-system-reviewers,mhentges
The llvm build system does support building a universal compiler-rt for
multiple platforms at once, but as far as I know it only supports doing
so with the same SDK, while we want to use separate SDKs for each, so
build the x86_64 compiler-rt separately.

Differential Revision: https://phabricator.services.mozilla.com/D101078
2021-01-08 00:37:11 +00:00
Mike Hommey 3128330c17 Bug 1685599 - Build llvm-symbolizer separately. r=firefox-build-system-reviewers,mhentges
Only sanitizer builds require a native llvm-symbolizer executable.
Ideally, we'd build llvm-symbolizer from scratch, which would be faster,
but for now, let's go the easy route and just extract it from the
corresponding native clang builds.

We don't actually do anything with the llvm-symbolizer executable on
android builds, so we don't install it in $FINAL_TARGET, avoilding
the dependency on android builds (plus, we actually don't have an
android-native llvm-symbolizer, so even if it were already shipped, it
would be the wrong file).

Differential Revision: https://phabricator.services.mozilla.com/D101076
2021-01-07 23:53:19 +00:00
Andi-Bogdan Postelnicu d7fb68e56d Bug 1683613 - For `non-unified` build have a task that runs checks when merging to mozilla-central r=mhentges
Differential Revision: https://phabricator.services.mozilla.com/D100796
2021-01-05 19:40:23 +00:00
Mike Hommey 6e7d937be7 Bug 1682660 - Set CMAKE_RANLIB when building compiler-rt. r=dmajor
Without it, the build uses /usr/bin/ranlib, which, for some reason,
doesn't fail, but does weird things.

Differential Revision: https://phabricator.services.mozilla.com/D100073
2020-12-18 04:42:16 +00:00
Mike Hommey a734bb41a9 Bug 1682660 - Wrap clang to pass all the necessary flags when building compiler-rt. r=dmajor
When building compiler-rt for macOS, its build system assumes the
compiler used is a native macOS clang, drops all the cmake C/C++ flags,
and adds its own.

Because we do need to pass `-target $target` (otherwise we end up with
ELF x86_64 objects) and `-mcpu=apple-a12` for the correct baseline for
arm64 macOS, and because there is unfortunately no cmake variable that
the compiler-rt build system will use, and because CMAKE_C*_COMPILER
need to be a program without arguments, we need to wrap the compiler.

While here, add `-v` to the ninja call to have more useful logs.

Differential Revision: https://phabricator.services.mozilla.com/D99841
2020-12-18 01:50:07 +00:00
Mike Hommey d79dcf5161 Bug 1623520 - Switch Windows asan and fuzzing builds to cross-builds. r=decoder
Differential Revision: https://phabricator.services.mozilla.com/D79417
2020-12-11 05:06:12 +00:00
James Graham 3c9ea32e23 Bug 1680752 - Provide a python-3 opt-in for tests on Taskcluster, , bhearsum r=bc,bhearsum
This requires tests to specify `python-3: true` in order to be run
with Python 3. When nothing is specified things work just like today,
so it's a more conservative change than the one in bug 1672181.

Obviously in the long term we will remove this and switch to Python 3
only, but this unblocks moving harnesses to py3 today.

Differential Revision: https://phabricator.services.mozilla.com/D98766
2020-12-10 14:02:38 +00:00
Mihai Alexandru Michis 05ce4b0dac Backed out changeset ea5674f9a511 (bug 1680752) for causing android failures.
CLOSED TREE
2020-12-09 23:06:23 +02:00
James Graham dfd62d5a30 Bug 1680752 - Provide a python-3 opt-in for tests on Taskcluster, , bhearsum r=bc,bhearsum
This requires tests to specify `python-3: true` in order to be run
with Python 3. When nothing is specified things work just like today,
so it's a more conservative change than the one in bug 1672181.

Obviously in the long term we will remove this and switch to Python 3
only, but this unblocks moving harnesses to py3 today.

Differential Revision: https://phabricator.services.mozilla.com/D98766
2020-12-09 16:49:23 +00:00
Mike Hommey b7e6c5660f Bug 1680183 - Make dump-syms binary compatible with older libstdc++. r=firefox-build-system-reviewers,mhentges
This will allow to run it on older systems without LD_LIBRARY_PATH
tricks.

Differential Revision: https://phabricator.services.mozilla.com/D98425
2020-12-02 22:26:26 +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
Steve Fink 3d02a92acd Bug 1680159 - Do not collect source code during automated hazard analysis. r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D98409
2020-12-02 16:22:40 +00:00
Alexis Beingessner e2c5b3cbbe Bug 1680124 - Document Rust builds (and add some pointers/links for clang ones). r=dmajor
Differential Revision: https://phabricator.services.mozilla.com/D98386
2020-12-01 23:55:34 +00:00
Razvan Maries 1e986258d1 Backed out changeset f5532b7dc480 (bug 1672181) as per Gregory's request. CLOSED TREE 2020-12-01 17:12:11 +02:00
David Major fc89cd6438 Bug 1679909 - Use PATH instead of -B in build-compiler-rt.sh r=glandium
As of version 12, clang doesn't accept `-B` for target-prefixed binaries. This is said to be for GCC compatibility: 3452a0d8c1

Differential Revision: https://phabricator.services.mozilla.com/D98261
2020-12-01 04:32:55 +00:00
Andrew Halberstadt 6db2921d7f Bug 1672181 - [taskgraph] Make test tasks py3 by default and add a py2 override r=bc,bhearsum
Differential Revision: https://phabricator.services.mozilla.com/D97669
2020-11-26 17:42:27 +00:00
stransky 114cd41e5a Bug 1665844 [Wayland] Fix mutter to start in Wayland mode in Mozilla automation, r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D97161
2020-11-30 07:10:57 +00:00
Ricky Stewart 34344a8073 Bug 1661624 - Include `psutil` in the `mach` `virtualenv`s r=firefox-build-system-reviewers,rstewart
Install `psutil` when setting up the `mach` `virtualenv`s and stop importing the in-tree version in the build.

Nothing in-tree currently assumes or mandates the installation of `psutil` (all uses of `psutil` are guarded with imports of the form `try : import psutil; except ImportError: psutil = None`), so there's no back-incompatibility concerns here. There will be an awkward period where telemetry will be lacking CPU/disk data for everyone until they re-run `mach bootstrap` or `mach create-mach-environment`, but that will come back as people gradually update their `virtualenv`s.

An alternative to circumvent that issue is REQUIRING that `psutil` be installed by adding an assertion in `mach` that `psutil` can be found (allowing us to remove all the conditional logic in-tree around whether `psutil` is installed), but I wouldn't claim that we're ready to do that and deal with whatever fallout might occur.

Differential Revision: https://phabricator.services.mozilla.com/D90914
2020-11-27 21:05:00 +00:00
Razvan Maries 960c5da1e7 Backed out changeset a39c15378e6f (bug 1672181) for Mochitest perma failures. CLOSED TREE 2020-11-26 19:38:22 +02:00