boklm pushed to branch main at The Tor Project / Applications / tor-browser-build Commits: af3b9d97 by Nicolas Vigier at 2026-11-16T17:26:37+01:00 Bug 41903: Update toolchains for Firefox 156 - - - - - 12 changed files: - projects/application-services/config - projects/firefox/config - projects/geckoview/config - projects/gradle/config - projects/llvm-project/config - projects/mingw-w64-clang/build - projects/mingw-w64-clang/config - − projects/mingw-w64-clang/mingw-libunwind-seh.patch - projects/rust/config - projects/wasi-sysroot/build - projects/wasi-sysroot/build_compiler_rt - projects/wasi-sysroot/wasi-sdk.patch Changes: ===================================== projects/application-services/config ===================================== @@ -1,5 +1,5 @@ # vim: filetype=yaml sw=2 -version: '155.0' +version: '156.0' git_hash: 'v[% c("version") %]-TORBROWSER-build[% c("var/build_number") %]' git_url: https://gitlab.torproject.org/tpo/applications/application-services.git tag_gpg_id: 1 @@ -90,7 +90,7 @@ steps: project: application-services pkg_type: cargo_vendor norec: - sha256sum: 30006ba4109a8011c951757235209ddf3b40aff92f793312c7ee84e8f03ca1bf + sha256sum: 19160c9bca5d0b1b98f2a0041dd0334e2ff79f81022d9fad8a96ffc7e4a410b2 enable: '[% !c("var/generate_gradle_dependencies_list") %]' - filename: gen-gradle-deps-file.py enable: '[% c("var/generate_gradle_dependencies_list") %]' ===================================== projects/firefox/config ===================================== @@ -18,13 +18,13 @@ container: use_container: 1 var: - firefox_platform_version: '155.0a1' + firefox_platform_version: '156.0a1' firefox_version: '[% c("var/firefox_platform_version") %]' browser_series: '17.0' - browser_rebase: 1 + browser_rebase: 2 browser_branch: '[% c("var/browser_series") %]-[% c("var/browser_rebase") %]' browser_build: 1 - upstream_firefox_commit: FIREFOX_NIGHTLY_155_END + upstream_firefox_commit: FIREFOX_NIGHTLY_156_END copyright_year: '[% exec("git show -s --format=%ci " _ c("git_hash") _ "^{commit}", { exec_noco => 1 }).remove("-.*") %]' nightly_updates_publish_dir: '[% c("var/nightly_updates_publish_dir_prefix") %]nightly-[% c("var/osname") %]' gitlab_project: https://gitlab.torproject.org/tpo/applications/tor-browser ===================================== projects/geckoview/config ===================================== @@ -21,10 +21,10 @@ container: build_apk: '[% !c("var/online_build") %]' var: - firefox_platform_version: '155.0a1' + firefox_platform_version: '156.0a1' geckoview_version: '[% c("var/firefox_platform_version") %]' browser_series: '17.0' - browser_rebase: 1 + browser_rebase: 2 browser_branch: '[% c("var/browser_series") %]-[% c("var/browser_rebase") %]' browser_build: 1 gitlab_project: https://gitlab.torproject.org/tpo/applications/tor-browser @@ -38,7 +38,7 @@ var: - python3-zstandard - pkg-config - openjdk-17-jdk-headless - gradle_version: 9.7.0 + gradle_version: 9.7.1 glean_parser: 20.1.0 # python/mozboot/mozboot/android.py bundletool_version: 1.18.3 ===================================== projects/gradle/config ===================================== @@ -12,7 +12,7 @@ var: export PATH=$PATH:$GRADLE_HOME/bin gradle_sha256sum: 8.14.3: bd71102213493060956ec229d946beee57158dbd89d0e62b91bca0fa2c5f3531 - 9.7.0: 84fbba45c7f4c64abc77460e1c00f541e9f960e3c7ed2538f1ede19eacd873ae + 9.7.1: acd53f1edaf02f1a8ff99879f8a34b302661a057d9b063ae9e35b552f804d20a input_files: - project: container-image ===================================== projects/llvm-project/config ===================================== @@ -1,6 +1,6 @@ # vim: filetype=yaml sw=2 -version: "21.1.8" -git_hash: 2078da43e25a4623cab2d0d60decddf709aaea28 +version: "22.1.8" +git_hash: ca7933e47d3a3451d81e72ac174dcb5aa28b59d1 git_url: https://github.com/llvm/llvm-project filename: '[% project %]-[% c("version") %]-[% c("var/build_id") %].tar.[% c("compress_tar") %]' ===================================== projects/mingw-w64-clang/build ===================================== @@ -14,7 +14,6 @@ cd $builddir tar -xf $rootdir/[% c('input_files_by_name/llvm-project') %] cd $builddir/clang-source -patch -p1 < "$rootdir/mingw-libunwind-seh.patch" # libc++.a depends on libunwind.a. While the linker will automatically link to # libc++.a in C++ mode, it won't pick libunwind.a, requiring the caller to ===================================== projects/mingw-w64-clang/config ===================================== @@ -38,6 +38,3 @@ input_files: - filename: mingw-ts_sd.patch - filename: mingw-foundation_redef.patch - filename: mingw-webrtc.patch - # Remove when switching to Clang 22. - # See Firefox's 9c6b4642907950bd9e3f663fbb7fcb0a16218232 - - filename: mingw-libunwind-seh.patch ===================================== projects/mingw-w64-clang/mingw-libunwind-seh.patch deleted ===================================== @@ -1,95 +0,0 @@ -From 0991d7b8fd01546aaf537a6238227100570f8236 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Martin=20Storsj=C3=B6?= <martin@martin.st> -Date: Thu, 12 Feb 2026 00:31:09 +0200 -Subject: [PATCH] [libunwind] Fix building with EXCEPTION_DISPOSITION as enum - (#180513) - -On Windows, libunwind is normally only built in mingw mode; it's not -relevant for MSVC targets. (Attempting to build it is entirely blocked -in CMake, see [1]). - -In mingw headers, the type EXCEPTION_DISPOSITION is defined as an int -while it is an enum in the MSVC vcruntime headers. - -However, in addition to the canonical enum members, we also use a value -which has no assigned enum member. In older mingw-w64 headers, there was -a define for this value, 4, with the name ExceptionExecuteHandler, but -that was removed in [2]. The libunwind code reference this value just by -the literal value 4, with a comment referencing it as -ExceptionExecuteHandler. - -This extra enum value isn't passed to the outside Microsoft runtime, but -is only used to pass values from one part of libunwind to another; this -handling is necessary for the forced_unwind{1-3}.pass.cpp tests to -succeed. - -If the mingw-w64 headers would define EXCEPTION_DISPOSITION as an enum, -just like the MSVC vcruntime headers, then we'd run into build errors -and warnings like this: - - llvm-project/libunwind/src/Unwind-seh.cpp:166:14: error: cannot initialize return object of type 'EXCEPTION_DISPOSITION' (aka 'enum _EXCEPTION_DISPOSITION') with an rvalue of type 'int' - 166 | return 4 /* ExceptionExecuteHandler in mingw */; - | ^ - llvm-project/libunwind/src/Unwind-seh.cpp:185:14: error: cannot initialize return object of type 'EXCEPTION_DISPOSITION' (aka 'enum _EXCEPTION_DISPOSITION') with an rvalue of type 'int' - 185 | return 4 /* ExceptionExecuteHandler in mingw */; - | ^ - llvm-project/libunwind/src/Unwind-seh.cpp:272:8: warning: case value not in enumerated type 'EXCEPTION_DISPOSITION' (aka 'enum _EXCEPTION_DISPOSITION') [-Wswitch] - 272 | case 4 /*ExceptionExecuteHandler*/: - | ^ - -Fix these cases by adding explicit casts between EXCEPTION_DISPOSITION -and int. - -A (partial) similar change was proposed in [3], but the author never -followed up on the discussion, and the PR was later closed. - -[1] b0b546d44777eb1fa25995384876bd14a006a929 -[2] https://github.com/mingw-w64/mingw-w64/commit/2de6703961c0d519046b841f7b392a... -[3] https://github.com/llvm/llvm-project/pull/159293 ---- - libunwind/src/Unwind-seh.cpp | 13 ++++++------- - 1 file changed, 6 insertions(+), 7 deletions(-) - -diff --git a/libunwind/src/Unwind-seh.cpp b/libunwind/src/Unwind-seh.cpp -index 110c5987c3f1..0b1930b44d1c 100644 ---- a/libunwind/src/Unwind-seh.cpp -+++ b/libunwind/src/Unwind-seh.cpp -@@ -163,7 +163,7 @@ _GCC_specific_handler(PEXCEPTION_RECORD ms_exc, PVOID frame, PCONTEXT ms_ctx, - // If we were called by __libunwind_seh_personality(), indicate that - // a handler was found; otherwise, initiate phase 2 by unwinding. - if (ours && ms_exc->NumberParameters > 1) -- return 4 /* ExceptionExecuteHandler in mingw */; -+ return static_cast<EXCEPTION_DISPOSITION>(4); - // This should never happen in phase 2. - if (IS_UNWINDING(ms_exc->ExceptionFlags)) - _LIBUNWIND_ABORT("Personality indicated exception handler in phase 2!"); -@@ -182,7 +182,7 @@ _GCC_specific_handler(PEXCEPTION_RECORD ms_exc, PVOID frame, PCONTEXT ms_ctx, - // a handler was found; otherwise, it's time to initiate a collided - // unwind to the target. - if (ours && !IS_UNWINDING(ms_exc->ExceptionFlags) && ms_exc->NumberParameters > 1) -- return 4 /* ExceptionExecuteHandler in mingw */; -+ return static_cast<EXCEPTION_DISPOSITION>(4); - // This should never happen in phase 1. - if (!IS_UNWINDING(ms_exc->ExceptionFlags)) - _LIBUNWIND_ABORT("Personality installed context during phase 1!"); -@@ -259,13 +259,12 @@ __libunwind_seh_personality(int version, _Unwind_Action state, - (void *)disp_ctx->LanguageHandler, (void *)&ms_exc, - (void *)disp_ctx->EstablisherFrame, - (void *)disp_ctx->ContextRecord, (void *)disp_ctx); -- EXCEPTION_DISPOSITION ms_act = disp_ctx->LanguageHandler(&ms_exc, -- (PVOID)disp_ctx->EstablisherFrame, -- disp_ctx->ContextRecord, -- disp_ctx); -+ int ms_act = static_cast<int>( -+ disp_ctx->LanguageHandler(&ms_exc, (PVOID)disp_ctx->EstablisherFrame, -+ disp_ctx->ContextRecord, disp_ctx)); - _LIBUNWIND_TRACE_UNWINDING("__libunwind_seh_personality() LanguageHandler " - "returned %d", -- (int)ms_act); -+ ms_act); - switch (ms_act) { - case ExceptionContinueExecution: return _URC_END_OF_STACK; - case ExceptionContinueSearch: return _URC_CONTINUE_UNWIND; --- -2.53.0 - ===================================== projects/rust/config ===================================== @@ -1,6 +1,6 @@ # vim: filetype=yaml sw=2 filename: '[% project %]-[% c("version") %]-[% c("var/filename_targets") %]-[% c("var/build_id") %].tar.[% c("compress_tar") %]' -version: '1.94.1' +version: '1.95.0' container: use_container: 1 ===================================== projects/wasi-sysroot/build ===================================== @@ -12,6 +12,9 @@ make \ NINJA_FLAGS='-j[% c("num_procs") %]' mv build/install/wasi/share/wasi-sysroot/* $distdir/ +# Add wasip1 directories to wasi sysroot and compiler-rt. +# See firefox commit 630a929dcf8de5f46d3affe52607ed588276393a +cp -r $distdir/lib/wasm32-wasi $distdir/lib/wasm32-wasip1 cd /var/tmp/dist [% c('tar', { ===================================== projects/wasi-sysroot/build_compiler_rt ===================================== @@ -12,6 +12,9 @@ make \ rtdir=/var/tmp/dist/clang/lib/clang/[% pc("llvm-project", "var/llvm_major") %]/lib/wasi mkdir -p $rtdir mv build/compiler-rt/lib/wasi/* $rtdir/ +# Add wasip1 directories to wasi sysroot and compiler-rt. +# See firefox commit 630a929dcf8de5f46d3affe52607ed588276393a +cp -r $rtdir "$rtdir/../wasip1" cd /var/tmp/dist [% c('tar', { ===================================== projects/wasi-sysroot/wasi-sdk.patch ===================================== @@ -64,7 +64,7 @@ index f350ecb..3b73115 100644 @# TODO: As of clang 16, __GNUC_VA_LIST is #defined without a value. $(CC) $(CFLAGS) "$(SYSROOT_SHARE)/include-all.c" \ -isystem $(SYSROOT_INC) \ -@@ -691,6 +701,11 @@ check-symbols: startup_files libc +@@ -691,6 +701,12 @@ check-symbols: startup_files libc -U__clang_wide_literal_encoding__ \ -U__wasm_mutable_globals__ \ -U__wasm_sign_ext__ \ @@ -73,10 +73,11 @@ index f350ecb..3b73115 100644 + -U__wasm_nontrapping_fptoint__ \ + $(if $(filter-out wasm32-wasi-threads,$(TARGET_TRIPLE)),-U__wasm_bulk_memory__) \ + -U__wasm_bulk_memory_opt__ \ ++ -U__wasip1__ \ -U__GNUC__ \ -U__GNUC_MINOR__ \ -U__GNUC_PATCHLEVEL__ \ -@@ -702,6 +717,13 @@ check-symbols: startup_files libc +@@ -702,6 +718,13 @@ check-symbols: startup_files libc | sed -e 's/__GNUC_VA_LIST $$/__GNUC_VA_LIST 1/' \ | grep -v '^#define __\(BOOL\|INT_\(LEAST\|FAST\)\(8\|16\|32\|64\)\|INT\|LONG\|LLONG\|SHRT\)_WIDTH__' \ | grep -v '^#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_\(1\|2\|4\|8\)' \ View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/af... -- View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/af... You're receiving this email because of your account on gitlab.torproject.org. Manage all notifications: https://gitlab.torproject.org/-/profile/notifications | Help: https://gitlab.torproject.org/help
participants (1)
-
boklm (@boklm)