Commit Graph

11590 Commits

Author SHA1 Message Date
Erich Gubler
37c1ce9b19 Bug 1893057 - build: swap indexmap 2.* façade and 1.* impl. with 1.* façade and 2.* impl. r=glandium,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D208797
2024-05-02 18:17:35 +00:00
Erich Gubler
292ca7b861 Bug 1893057 - build: upgrade hashbrown 0.12.3 → 0.14.3 via fake build crate r=glandium,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D208795
2024-05-02 18:17:34 +00:00
Mike Hommey
8b46fa4da5 Bug 1893677 - Stop making some automation tiers print their own BUILDSTATUS. r=firefox-build-system-reviewers,ahochheiden
Some automation tiers ultimately end up calling normal tiers, which
will print their own BUILDSTATUS already. This kind of didn't cause
problems before bug 1859011 presumably because of buffering of the
automation tier output, but is now causing problems because the tier
monitor doesn't want to see a tier start multiple times.

Also, now that bug 1859011 made automation tiers buffered by command
rather than by target, we don't need the hack with automation-start,
simplifying the setup.

Differential Revision: https://phabricator.services.mozilla.com/D209095
2024-05-01 03:50:06 +00:00
ahochheiden
dd1abfa37f Bug 1894157 - Remove Python2 compatibility code in Mach r=firefox-build-system-reviewers,glandium
Mach can currently only run on Python version 3.8 or higher, so it
doesn't make sense to continue having dead code that provides support
for Python2.

Differential Revision: https://phabricator.services.mozilla.com/D209030
2024-05-01 02:32:23 +00:00
Mike Hommey
cf328a56ac Bug 1459764 - Build libraries in their FINAL_TARGET location rather than installing them during the build. r=firefox-build-system-reviewers,ahochheiden
Like bug 1255485, but for libraries.

Original patch by Chris Manchester.

Differential Revision: https://phabricator.services.mozilla.com/D63281
2024-04-30 23:29:46 +00:00
serge-sans-paille
c956aba4f0 Bug 1892198 - No longer support linkerscript style for moz_expand_libs r=glandium
@file are supported by gcc since gcc 7 and by clang since clang 3.x,
which removes the need for linker script to list input files.

We cannot directly use @file from the compiler driver (it would expand
to a large number of arguments and hit the linker limit) so pass
-Wl,@FILE instead, which is supported since binutils 2.17.

As a side effect this removes the LTO dependency from the check.

Differential Revision: https://phabricator.services.mozilla.com/D207839
2024-04-30 20:51:32 +00:00
Mike Hommey
b7aeb82b5e Bug 1873574 - Adjust searchfox plugin to LLVM 18 changes. r=asuth
StringLiteral was changed in 3e6ce58701

isPure was changed in e90e43fb9c

Differential Revision: https://phabricator.services.mozilla.com/D208723
2024-04-30 19:49:41 +00:00
Mike Hommey
e41b7821eb Bug 1892493 - Support reading a response file when that's the only thing on the command line. r=sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D208284
2024-04-29 20:58:36 +00:00
Mike Hommey
600a6d9419 Bug 1893578 - Fix clang-plugin to build against clang trunk. r=sylvestre
starts_with was added in LLVM 16, and startswith was deprecated in LLVM 18
and removed in LLVM 19.

Differential Revision: https://phabricator.services.mozilla.com/D208714
2024-04-26 07:28:29 +00:00
Florian Quèze
b3b4d143a6 Bug 1859011 - avoid prefixing BUILDSTATUS lines, r=glandium.
Differential Revision: https://phabricator.services.mozilla.com/D208580
2024-04-26 05:30:50 +00:00
Mike Hommey
bdef86af1e Bug 1874251 - Apply clang trunk patch fixing -fsanitize=function on macOS. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D208591
2024-04-25 20:01:20 +00:00
Mike Hommey
c00945c898 Bug 1892812 - Adjust revert-llvmorg-16-init-11301-g163bb6d64e5f_clang_19.patch to upstream changes. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D208246
2024-04-25 01:19:49 +00:00
Alex Franchuk
ad23630d00 Bug 1882578 - Update the minidump-writer and minidump-common crates r=gsvelto,glandium,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D207315
2024-04-22 13:42:39 +00:00
Cristian Tuns
f1d454ad58 Backed out changeset 390c5748d868 (bug 1892198) for causing Bug 1892493. CLOSED TREE 2024-04-19 15:46:42 -04:00
serge-sans-paille
074aeb56b5 Bug 1892198 - No longer support linkerscript style for moz_expand_libs r=glandium
@file are supported by gcc since gcc 7 and by clang since clang 3.x,
which removes the need for linker script to list input files.

We cannot directly use @file from the compiler driver (it would expand
to a large number of arguments and hit the linker limit) so pass
-Wl,@FILE instead, which is supported since binutils 2.17.

As a side effect this removes the LTO dependency from the check.

Differential Revision: https://phabricator.services.mozilla.com/D207839
2024-04-19 09:31:13 +00:00
serge-sans-paille
420631590e Bug 1891776 - Split mkdir and ensureParentDir from mozbuild/util.py r=perftest-reviewers,afinder
Differential Revision: https://phabricator.services.mozilla.com/D207593
2024-04-19 09:08:56 +00:00
Mike Hommey
4fa90ff433 Bug 1887808 - Bump valgrind timeout to 1 hour. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D207658
2024-04-19 02:58:21 +00:00
Andrew Halberstadt
d68e3340c5 Bug 1868440 - [ci] Upgrade taskcluster-taskgraph to v7.4.0, r=perftest-reviewers,geckoview-reviewers,ci-and-tooling,devtools-reviewers,taskgraph-reviewers,releng-reviewers,mach-reviewers,omc-reviewers,jmaher,hneiva,aminomancer,jari,dom-storage-reviewers,afinder,asuth,bhearsum,owlish
Differential Revision: https://phabricator.services.mozilla.com/D206260
2024-04-18 20:39:09 +00:00
Mike Hommey
fb939bec25 Bug 1892128 - Simplify the llvm-symbolizer patch for bug 1798613. r=firefox-build-system-reviewers,sergesanspaille
Reverting the entire commit that is causing problems has caused a number
of conflicts with further changes in LLVM in the past year and a half,
making us have to revert a bunch of other patches.

Instead of doing that, we just revert the small part of the original
change that is causing the problem, avoiding conflicts with newer
changes. This also gives us a better hint at what's really going on.

Differential Revision: https://phabricator.services.mozilla.com/D207829
2024-04-18 19:48:58 +00:00
Stanca Serban
f9c5779927 Backed out 2 changesets (bug 1868440) for gecko decision task broken. CLOSED TREE
Backed out changeset 4b22948d849a (bug 1868440)
Backed out changeset 837bdcb3694a (bug 1868440)
2024-04-18 21:25:43 +03:00
Andrew Halberstadt
f33979228a Bug 1868440 - [ci] Upgrade taskcluster-taskgraph to v7.4.0, r=perftest-reviewers,geckoview-reviewers,ci-and-tooling,devtools-reviewers,taskgraph-reviewers,releng-reviewers,mach-reviewers,omc-reviewers,jmaher,hneiva,aminomancer,jari,dom-storage-reviewers,afinder,asuth,bhearsum,owlish
Differential Revision: https://phabricator.services.mozilla.com/D206260
2024-04-18 17:50:50 +00:00
Sylvestre Ledru
397d15d90f Bug 1617369 - Reformat recent rust changes with rustfmt r=emilio,webdriver-reviewers,glandium,whimboo
done with: rustfmt 1.7.0-stable (25ef9e3 2024-04-09)

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D207645
2024-04-18 08:50:15 +00:00
Iulian Moraru
6237235109 Backed out 2 changesets (bug 1835983) for causing http related mochitest failures. CLOSED TREE
Backed out changeset deb09f084bed (bug 1835983)
Backed out changeset 057e5bd486b4 (bug 1835983)
2024-04-17 21:32:39 +03:00
Malte Juergens
1339f2a503 Bug 1835983 - Make https://trackertest.org available to mochitest r=nss-reviewers,jschanck
cert9.db, key4.db and mochitest.client have been generated by ./mach python build/pgo/genpgocert.py,
as per https://firefox-source-docs.mozilla.org/build/buildsystem/test_certificates.html.

Differential Revision: https://phabricator.services.mozilla.com/D205545
2024-04-17 12:17:36 +00:00
Dennis Jackson
b00e9ae0b9 Bug 1891763 - land NSS NSS_3_100_BETA1 UPGRADE_NSS_RELEASE, r=nss-reviewers,nkulatova
Differential Revision: https://phabricator.services.mozilla.com/D207694
2024-04-17 11:45:12 +00:00
Tamas Szentpeteri
a86fd1fb23 Backed out changeset 4309f75eaa90 (bug 1883615) for causing build bustages related to check_symbol_in_libs. CLOSED TREE 2024-04-17 12:57:02 +03:00
serge-sans-paille
78ac6a6ccf Bug 1883615 - Move libdl checks to moz.configure and make libdl dependencies explicit r=glandium
The -ldl flag was previously set globally, it's now set for the libs
that use it.

Also rationalize the difference between HAVE_DLOPEN and HAVE_DLFCN_H.

Differential Revision: https://phabricator.services.mozilla.com/D203594
2024-04-17 09:33:00 +00:00
Martin Robinson
1473c23cbf Bug 1885597 - Remove GitHub synchronization task r=jrmuizel,jnicol,taskgraph-reviewers,releng-reviewers,ahal,bhearsum
This synchronization is now handled in the downstream repositories. In
the case of WebRender by the Servo project and in the case of qcms by a
Gecko-managed GitHub Action. This change removes the github-sync task
from mozilla-central.

Differential Revision: https://phabricator.services.mozilla.com/D204787
2024-04-16 09:31:17 +00:00
Mike Hommey
f9c7fc80a0 Bug 1890887 - Revert more patches that conflict with previous reverts. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D207220
2024-04-15 20:50:05 +00:00
Ben Dean-Kawamura
2bb9af8156 Bug 1888683 - Upgrade UniFFI to 0.27.1. r=markh,janerik,glandium,supply-chain-reviewers,mach-reviewers,android-reviewers,kaya
Update:
  - UniFFI to 0.27.1
  - Glean to 59.0.0
  - App-services to a recent version

This removes the need for the goblin build hack, although we still have
duplicate versions of goblin since UniFFI is ahead of the moz-central
version.  I think that should be easy to resolve as a follow-up.

Updating uniffi-bindget-gecko-js based on upstream changes:
  - Clone objects before lowering them
    (https://github.com/mozilla/uniffi-rs/pull/1880)
  - Use u64 for the RustBuffer length and capacity field
    (https://github.com/mozilla/uniffi-rs/pull/1978)

I didn't implement the new callback interface VTable code.  Instead I
simply disabled the one fixture that tests it.  I'd rather implement
https://bugzilla.mozilla.org/show_bug.cgi?id=1888668 first, since that
will simplify the process a bunch. The only real-world use-case for
callbacks that I know of is Mark's logging changes, but that will
require implementing trait interfaces anyways so I'd rather wait than
write a bunch of C++ code that we then throw away.

Differential Revision: https://phabricator.services.mozilla.com/D206130
2024-04-10 17:23:00 +00:00
Natalia Csoregi
5905e649c1 Backed out 3 changesets (bug 1879975) for causing valgrind bustages. CLOSED TREE
Backed out changeset e66749b7e244 (bug 1879975)
Backed out changeset c3ab151d75bd (bug 1879975)
Backed out changeset f9aa23ba9fde (bug 1879975)
2024-04-10 10:13:21 +03:00
Michael Hughes
8a12c37b30 Bug 1879975 - Hooking up secret keys with try and release builds for new windows api taskbar pinning r=bhearsum,taskgraph-reviewers,ahal
Added new secret data storing the release keys. Modifying scripts to hook them up. Testing will be done thoroughly with try and release builds to confirm that pinning works on newer machines and falls back to the old mechanism on older machines.

Differential Revision: https://phabricator.services.mozilla.com/D205361
2024-04-10 05:19:20 +00:00
Cristian Tuns
4deecb1d98 Backed out 2 changesets (bug 1888683) for causing hazard bustages in UniFFIPointer.cpp CLOSED TREE
Backed out changeset 42fe954d2d47 (bug 1888683)
Backed out changeset 2403582c3c8d (bug 1888683)
2024-04-09 21:54:42 -04:00
Mike Hommey
69a278aed5 Bug 1889822 - Add hackish support for arm64e to LLD. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D206725
2024-04-09 21:51:57 +00:00
Mike Hommey
d9955d97cc Bug 1888738 - Stop reverting patches working around llvm-symbolizer problems on clang. r=firefox-build-system-reviewers,sergesanspaille
We're currently applying patches to clang to work around some yet
unidentified problem with some change that, when applied to
llvm-symbolizer, makes tsan tests timeout for some reason.

Those patches regularly conflict with newer changes to LLVM, blocking
the clang build. We however actually don't need to apply these reverts
to clang itself, only to llvm-symbolizer, which we build separately. So
we do that, and fix the llvm-symbolizer-trunk task to revert the new
conflicting upstream patches.

Differential Revision: https://phabricator.services.mozilla.com/D206727
2024-04-09 21:27:51 +00:00
Ben Dean-Kawamura
3c47b31e06 Bug 1888683 - Upgrade UniFFI to 0.27.1. r=markh,janerik,glandium,supply-chain-reviewers,mach-reviewers,android-reviewers,kaya
Update:
  - UniFFI to 0.27.1
  - Glean to 59.0.0
  - App-services to a recent version

This removes the need for the goblin build hack, although we still have
duplicate versions of goblin since UniFFI is ahead of the moz-central
version.  I think that should be easy to resolve as a follow-up.

Updating uniffi-bindget-gecko-js based on upstream changes:
  - Clone objects before lowering them
    (https://github.com/mozilla/uniffi-rs/pull/1880)
  - Use u64 for the RustBuffer length and capacity field
    (https://github.com/mozilla/uniffi-rs/pull/1978)

I didn't implement the new callback interface VTable code.  Instead I
simply disabled the one fixture that tests it.  I'd rather implement
https://bugzilla.mozilla.org/show_bug.cgi?id=1888668 first, since that
will simplify the process a bunch. The only real-world use-case for
callbacks that I know of is Mark's logging changes, but that will
require implementing trait interfaces anyways so I'd rather wait than
write a bunch of C++ code that we then throw away.

Differential Revision: https://phabricator.services.mozilla.com/D206130
2024-04-09 20:15:16 +00:00
Sandor Molnar
ecaff7c868 Backed out 5 changesets (bug 1890092, bug 1888683) for causing build bustages & crashes CLOSED TREE
Backed out changeset d43df75c14de (bug 1888683)
Backed out changeset b4267327c7dd (bug 1888683)
Backed out changeset 11892428e2dc (bug 1890092)
Backed out changeset 42598e432246 (bug 1888683)
Backed out changeset 372016bf3614 (bug 1888683)
2024-04-08 19:56:29 +03:00
Ben Dean-Kawamura
b3c3067e2b Bug 1888683 - Upgrade UniFFI to 0.27.1. r=janerik,glandium,supply-chain-reviewers,mach-reviewers,android-reviewers,kaya
Update:
  - UniFFI to 0.27.1
  - Glean to 59.0.0
  - App-services to a recent version

This removes the need for the goblin build hack, although we still have
duplicate versions of goblin since UniFFI is ahead of the moz-central
version.  I think that should be easy to resolve as a follow-up.

Updating uniffi-bindget-gecko-js based on upstream changes:
  - Clone objects before lowering them
    (https://github.com/mozilla/uniffi-rs/pull/1880)
  - Use u64 for the RustBuffer length and capacity field
    (https://github.com/mozilla/uniffi-rs/pull/1978)

I didn't implement the new callback interface VTable code.  Instead I
simply disabled the one fixture that tests it.  I'd rather implement
https://bugzilla.mozilla.org/show_bug.cgi?id=1888668 first, since that
will simplify the process a bunch. The only real-world use-case for
callbacks that I know of is Mark's logging changes, but that will
require implementing trait interfaces anyways so I'd rather wait than
write a bunch of C++ code that we then throw away.

Differential Revision: https://phabricator.services.mozilla.com/D206130
2024-04-08 15:07:50 +00:00
Norisz Fay
c3037f06ac Backed out changeset d667b589d8cd (bug 1888738) per request by glandium for causing toolchain python related failures CLOSED TREE 2024-04-06 23:05:06 +03:00
Mike Hommey
1c1ded579f Bug 1888738 - Stop reverting patches working around llvm-symbolizer problems on clang. r=firefox-build-system-reviewers,sergesanspaille
We're currently applying patches to clang to work around some yet
unidentified problem with some change that, when applied to
llvm-symbolizer, makes tsan tests timeout for some reason.

Those patches regularly conflict with newer changes to LLVM, blocking
the clang build. We however actually don't need to apply these reverts
to clang itself, only to llvm-symbolizer, which we build separately. So
we do that, and fix the llvm-symbolizer-trunk task to revert the new
conflicting upstream patches.

Differential Revision: https://phabricator.services.mozilla.com/D206727
2024-04-06 19:40:17 +00:00
Iulian Moraru
7a5c2499ac Backed out changeset fdbb6cbe2018 (bug 1888738) for making bug 1889833 block plenty of tasks. CLOSED TREE 2024-04-05 13:18:08 +03:00
Mike Hommey
cfa813d4c6 Bug 1888738 - Stop reverting patches working around llvm-symbolizer problems on clang. r=firefox-build-system-reviewers,sergesanspaille
We're currently applying patches to clang to work around some yet
unidentified problem with some change that, when applied to
llvm-symbolizer, makes tsan tests timeout for some reason.

Those patches regularly conflict with newer changes to LLVM, blocking
the clang build. We however actually don't need to apply these reverts
to clang itself, only to llvm-symbolizer, which we build separately. So
we do that, and fix the llvm-symbolizer-trunk task to revert the new
conflicting upstream patches.

Differential Revision: https://phabricator.services.mozilla.com/D206727
2024-04-05 06:54:49 +00:00
Mike Hommey
89d3716254 Bug 1889823 - Adjust clang patches to recent upstream changes. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D206726
2024-04-05 06:54:48 +00:00
Mike Hommey
e896a829d2 Bug 1889308 - Remove proc-macro-back-compat flag. r=firefox-build-system-reviewers,ahochheiden
The flag was added because of problems building the rental crate, but
that crate hasn't been used since bug 1724747.

Differential Revision: https://phabricator.services.mozilla.com/D206458
2024-04-04 01:33:39 +00:00
Mike Hommey
733fb2d4df Bug 1851739 - Switch default target for android to x86_64 on x86_64 hosts. r=geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D205760
2024-04-01 21:20:14 +00:00
Mike Hommey
913c767472 Bug 1887728 - Switch builds to macOS 14.4 SDK. r=spohl,firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D205627
2024-03-28 21:22:56 +00:00
Mike Hommey
276a489450 Bug 1888283 - Refresh config.guess and config.sub from upstream. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D205931
2024-03-28 20:58:32 +00:00
Chris Peterson
90b77f1d03 Bug 1887580 - Disable some C++20 warnings that break the C++20 build or are too noisy. r=firefox-build-system-reviewers,glandium
1. Stop enabling -Wdeprecated-this-capture because it has no affect when compiling as C++17 and it's enabled by default with compiling as C++20.

2. Disable -Wdeprecated-this-capture warnings by changing "-Wno-error" to "-Wno". These warnings are enabled by default when compiling as C++20 and even just logging these warnings as non-fatal messages breaks the clang-plugin tests because the messages aren't in the tests' expected compiler output. We can't fix these warnings until after we default to -std=c++20 because the code change isn't backwards compatible with C++17.

3. Stop enabling -Wc++2a-compat because it causes build errors about valid C++20 code (that isn't backwards compatible with C++17) when compiling as C++20.

4. Remove -Wno-error=deprecated. I don't remember why it was needed to compile as C++20 when I added it two years ago (in bug 1781001), but it's no longer needed.

5. Disable -Wdeprecated-anon-enum-enum-conversion and -Wdeprecated-enum-enum-conversion warnings by changing "-Wno-error" to "-Wno". There are so many warnings in common shared header files, they overwhelm the compiler output. Fixing these warnings in bug 1791958 and bug 1791955, respectively, doesn't block defaulting to -std=c++20.

6. Remove -Wno-deprecated-pragma because it's not longer needed. It warns about C++20 deprecating ATOMIC_VAR_INIT in favor of std::atomic<int>. We used to have some warnings about ATOMIC_VAR_INIT, but I guess they've been fixed because we currently have no -Wdeprecated-pragma warnings.

Differential Revision: https://phabricator.services.mozilla.com/D205539
2024-03-27 00:38:54 +00:00
serge-sans-paille
09e35b7cbb Bug 1887622 - Remove legacy checks for mode_t, pid_t and off_t r=glandium
mode_t comes from POSIX.1-2008
pid_t comes from POSIX.1-2008
off_t comes from POSIX.1-2008

Differential Revision: https://phabricator.services.mozilla.com/D205569
2024-03-26 14:21:39 +00:00
Mike Hommey
5f3cb60001 Bug 1881383 - Remove VS 2019 toolchain. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D202368
2024-03-26 00:02:34 +00:00