Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 887277 - www-client/firefox-108.0 and www-client/firefox-108.0.1 do not link on x86 (error: undefined hidden symbol: tabs_4d51_TabsBridgedEngine_store_incoming)
Summary: www-client/firefox-108.0 and www-client/firefox-108.0.1 do not link on x86 (e...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL: https://bugzilla.mozilla.org/show_bug...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-20 02:11 UTC by Martin Väth
Modified: 2023-01-05 09:23 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Relevant part of the compile log (firefox-108.0.log,139.02 KB, text/x-log)
2022-12-20 02:11 UTC, Martin Väth
Details
emerge --info (emerge.info,20.94 KB, text/plain)
2022-12-20 02:12 UTC, Martin Väth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Väth 2022-12-20 02:11:20 UTC
Created attachment 843903 [details]
Relevant part of the compile log

The linking phase of www-client/firefox-108.0 and www-client/firefox-108.0.1 fails on x86 with the error message

error: undefined hidden symbol: tabs_4d51_TabsBridgedEngine_store_incoming

On amd64 with a rather analogous setup, the compilation works fine.
Comment 1 Martin Väth 2022-12-20 02:12:03 UTC
Created attachment 843905 [details]
emerge --info
Comment 2 Joonas Niilola gentoo-dev 2022-12-20 06:03:30 UTC
Unfortunately I'm away from home so can't test this on x86 for quite some time, and it doesn't look like there's an "easy" fix either. The latest commit in the linked bug, 
  https://hg.mozilla.org/integration/autoland/rev/0c3dbe28af6a ->
  https://hg.mozilla.org/integration/autoland/raw-rev/0c3dbe28af6a

requires you to edit the ebuild with 

  moz_clear_vendor_checksums uniffi
  moz_clear_vendor_checksums uniffi_bindgen
  moz_clear_vendor_checksums uniffi_build
  moz_clear_vendor_checksums uniffi_checksum_derive
  moz_clear_vendor_checksums uniffi_macros
  moz_clear_vendor_checksums uniffi_meta

in src_prepare(). There's an example with "moz_clear_vendor_checksums bindgen". So need to place the upstream commit as a .patch into /etc/portage/patches and edit the ebuild to try the fix.
Comment 3 tt_1 2022-12-20 08:03:18 UTC
yes, I have this error on armv7 too

you can pull in patches from debian, the upstream bug is still work in progress

it seems this affects all non 64bit, debian had it reported for s390 and x86
Comment 4 tt_1 2022-12-20 08:05:22 UTC
uniffi bug report:

https://github.com/mozilla/uniffi-rs/pull/1427
Comment 5 tt_1 2022-12-29 11:18:42 UTC
You can pull in nicely backported patch, including checksums, from fedora: https://src.fedoraproject.org/rpms/firefox/blob/cd7d2b004aab96ba5a9b1545f1e5244c50f1781a/f/D164896.diff
Comment 6 Larry the Git Cow gentoo-dev 2022-12-30 08:15:03 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e06bb4c99ca4b11528f6aef0935adac2ba636dc0

commit e06bb4c99ca4b11528f6aef0935adac2ba636dc0
Author:     Joonas Niilola <juippis@gentoo.org>
AuthorDate: 2022-12-30 08:12:41 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2022-12-30 08:12:41 +0000

    profiles/arch/x86: mask >=www-client/firefox-108.0 on x86
    
    Bug: https://bugs.gentoo.org/887277
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 profiles/arch/x86/package.mask | 4 ++++
 1 file changed, 4 insertions(+)
Comment 7 Joonas Niilola gentoo-dev 2022-12-30 15:01:18 UTC
Then again, I wonder if building with -clang works for now...? Then I could temporarily package.use.force the choice for these versions instead.
Comment 8 Joonas Niilola gentoo-dev 2023-01-04 13:41:19 UTC
So I added the patch in firefox-108-patches-04j.tar.xz, 

$ diff -Naur /var/db/repos/gentoo/www-client/firefox/firefox-108.0.1.ebuild ./firefox-108.0.1.ebuild 
--- /var/db/repos/gentoo/www-client/firefox/firefox-108.0.1.ebuild	2022-12-19 08:22:06.010995118 +0200
+++ ./firefox-108.0.1.ebuild	2023-01-04 15:38:52.858513347 +0200
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-FIREFOX_PATCHSET="firefox-108-patches-03j.tar.xz"
+FIREFOX_PATCHSET="firefox-108-patches-04j.tar.xz"
 
 LLVM_MAX_SLOT=15
 
@@ -646,6 +646,12 @@
 
 	# Clearing crate checksums where we have applied patches
 	moz_clear_vendor_checksums bindgen
+	moz_clear_vendor_checksums uniffi
+	moz_clear_vendor_checksums uniffi_bindgen
+	moz_clear_vendor_checksums uniffi_build
+	moz_clear_vendor_checksums uniffi_checksum_derive
+	moz_clear_vendor_checksums uniffi_macros
+	moz_clear_vendor_checksums uniffi_meta
 
 	# Create build dir
 	BUILD_DIR="${WORKDIR}/${PN}_build"


^ this works in amd64 but on my x86 I'm getting (I guess) unrelated webrtc build issue. This is fixed in upstream for 108.0.2 which should be out ~soon so I'm tempted to wait for that before pursuing further. Although, if someone can confirm that this patch fixes the compilation, I'll push it and remove the x86 related package.mask.
Comment 9 tt_1 2023-01-05 08:28:53 UTC
firefox-108.0.2 is released, the fix for this bug was backported

will check for webrtc breakage you reported, once ebuild is in tree
Comment 10 Joonas Niilola gentoo-dev 2023-01-05 08:31:12 UTC
I managed to build firefox-108.0.2 on x86, will finish all tests on amd64 before pushing. I'll unmask 108.0.2 on x86 when pushing the new version.

Simple copypaste from 108.0.1 worked, no need to update patch sets.
Comment 11 Larry the Git Cow gentoo-dev 2023-01-05 09:23:30 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61c208fe646cb9f26b25ae54d35f3e6d0114f056

commit 61c208fe646cb9f26b25ae54d35f3e6d0114f056
Author:     Joonas Niilola <juippis@gentoo.org>
AuthorDate: 2023-01-05 09:11:18 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2023-01-05 09:23:27 +0000

    www-client/firefox: add 108.0.2
    
    Closes: https://bugs.gentoo.org/887277
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 www-client/firefox/Manifest               |   98 +++
 www-client/firefox/firefox-108.0.2.ebuild | 1330 +++++++++++++++++++++++++++++
 2 files changed, 1428 insertions(+)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9b4972530148dd2e36103d7b07c45eb8d77f7db

commit d9b4972530148dd2e36103d7b07c45eb8d77f7db
Author:     Joonas Niilola <juippis@gentoo.org>
AuthorDate: 2023-01-05 09:16:36 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2023-01-05 09:23:28 +0000

    profiles/arch/x86: unmask firefox >=108
    
     - 108.0.2 is available with an upstream fix to bug #887277.
    
    Bug: https://bugs.gentoo.org/887277
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 profiles/arch/x86/package.mask | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)