Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 945801 - www-client/firefox-133.0: error: undefined symbol: mozilla::a11y::DocAccessible::FireDelayedEvent(unsigned int, mozilla::a11y::LocalAccessible*)
Summary: www-client/firefox-133.0: error: undefined symbol: mozilla::a11y::DocAccessib...
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
: 946604 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-12-03 08:26 UTC by Petr Šourek
Modified: 2024-12-18 17:20 UTC (History)
3 users (show)

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


Attachments
build.log (build.log.tar.xz,991.20 KB, application/x-xz)
2024-12-03 08:26 UTC, Petr Šourek
Details
environment (environment,250.20 KB, text/plain)
2024-12-03 08:26 UTC, Petr Šourek
Details
emerge -pvq (emerge.pvq.txt,845 bytes, text/plain)
2024-12-03 08:27 UTC, Petr Šourek
Details
emerge --info (emerge.info.txt,10.42 KB, text/plain)
2024-12-03 08:27 UTC, Petr Šourek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Šourek 2024-12-03 08:26:20 UTC
Created attachment 913149 [details]
build.log

Hello,

I have problem with firefox compilation, it compiles for some times and at the end it just ends with error.

1075:10.95 ld.lld: error: undefined symbol: mozilla::a11y::DocAccessible::FireDelayedEvent(unsigned int, mozilla::a11y::LocalAccessible*)
1075:10.96 >>> referenced by CssAltContent.cpp
1075:10.96 >>>               ../../../accessible/base/CssAltContent.o:(mozilla::a11y::CssAltContent::HandleAttributeChange(int, nsAtom*))
1075:12.01 x86_64-pc-linux-gnu-clang++-18: error: linker command failed with exit code 1 (use -v to see invocation)

I guess it might have something to do with clang18, but not sure.

Thanks,
Regards,
Petr Sourek
Comment 1 Petr Šourek 2024-12-03 08:26:44 UTC
Created attachment 913150 [details]
environment
Comment 2 Petr Šourek 2024-12-03 08:27:08 UTC
Created attachment 913151 [details]
emerge -pvq
Comment 3 Petr Šourek 2024-12-03 08:27:26 UTC
Created attachment 913155 [details]
emerge --info
Comment 4 Joonas Niilola gentoo-dev 2024-12-04 06:41:51 UTC
First of all always try without ccache if it fails using that. 2nd +pgo is very sensitive to python stuff, so I'd suggest removing whatever custom python you're using (or polluting the environment with) when compiling firefox.
Comment 5 Petr Šourek 2024-12-04 09:48:13 UTC
(In reply to Joonas Niilola from comment #4)
> First of all always try without ccache if it fails using that. 2nd +pgo is
> very sensitive to python stuff, so I'd suggest removing whatever custom
> python you're using (or polluting the environment with) when compiling
> firefox.

Ok, thanks. I had compiled without ccache (previous atempt, having this error for 3 versions), but when it failed the same I had enabled it again.

So now I am disabling ccache and -pgo and will let you know (it compiles for some time).

Thanks
Comment 6 Petr Šourek 2024-12-08 20:35:02 UTC
Disabled ccache, removed pgo and it compiled, thanks.
Comment 7 Kyle Rabago 2024-12-15 03:24:11 UTC
Same issue here but I would wonder how would this be fixed if I wanted to use pgo -jumbo-build and how would I go about fixing this so it can not fail the build I have already tried without ccache and failed with pgo still enabled but when pgo is disabled it works as stated above, how can I fix it so it works with pgo regardless of ccache/etc. Finally Joonas how do I un-pollute python and stuff so that the build works. Thanks again
Comment 8 Joonas Niilola gentoo-dev 2024-12-15 03:30:21 UTC
(In reply to Kyle Rabago from comment #7)
> how do I
> un-pollute python and stuff so that the build works. 

That may not apply to you at all.

But indeed, this seems like a "-jumbo-build" problem. I've never tested "-jumbo-build +pgo" combination but it wouldn't surprise me if it didn't work at all. I run into all kinds of random problems with -jumbo-build but they're mostly related to compiling with gcc.
Comment 9 Kyle Rabago 2024-12-15 03:37:22 UTC
(In reply to Joonas Niilola from comment #8)
> (In reply to Kyle Rabago from comment #7)
> > how do I
> > un-pollute python and stuff so that the build works. 
> 
> That may not apply to you at all.
> 
> But indeed, this seems like a "-jumbo-build" problem. I've never tested
> "-jumbo-build +pgo" combination but it wouldn't surprise me if it didn't
> work at all. I run into all kinds of random problems with -jumbo-build but
> they're mostly related to compiling with gcc.

So then how can we fix it so that it will work with clang, pgo and -jumbo-build I know that it has worked before with those flags im not sure what version but I do remeber it fully building with those use flags specifically set
Comment 10 Joonas Niilola gentoo-dev 2024-12-15 03:49:11 UTC
(In reply to Kyle Rabago from comment #9)
> 
> So then how can we fix it so that it will work with clang, pgo and
> -jumbo-build I know that it has worked before with those flags im not sure
> what version but I do remeber it fully building with those use flags
> specifically set

It should be reported upstream, especially if it used to work. "-jumbo-build" is "non-unified build" in their terms. 

But as I said, -jumbo-build is kind of random. It may start working between releases even without a bug through other updates. You'd still be best taking it upstream.
Comment 11 Kyle Rabago 2024-12-15 16:50:58 UTC
(In reply to Joonas Niilola from comment #10)
> (In reply to Kyle Rabago from comment #9)
> > 
> > So then how can we fix it so that it will work with clang, pgo and
> > -jumbo-build I know that it has worked before with those flags im not sure
> > what version but I do remeber it fully building with those use flags
> > specifically set
> 
> It should be reported upstream, especially if it used to work.
> "-jumbo-build" is "non-unified build" in their terms. 
> 
> But as I said, -jumbo-build is kind of random. It may start working between
> releases even without a bug through other updates. You'd still be best
> taking it upstream.

How would I go about reporting that upstream so it can be pushed to next release other than of course the official repo/bug reporter anything in particular I need to include specifically in my bug report that relates to gentoo?
Comment 12 Joonas Niilola gentoo-dev 2024-12-16 07:09:00 UTC
(In reply to Kyle Rabago from comment #11)
> 
> How would I go about reporting that upstream so it can be pushed to next
> release other than of course the official repo/bug reporter anything in
> particular I need to include specifically in my bug report that relates to
> gentoo?

Just summarize the issue is when trying to build with pgo, but without unified-build (+MOZ_PGO, --disable-unified-build). And post build.log - it can be compressed with "xz -9" for example if it's too large. I'd also mention that it used to work, however you're most likely asked to bisect the issue then between two releases so be prepared to do that.

And be aware non-unified builds aren't really their priority but it's the best place to try and get it fixed. If you can find out the commit that broke non-unified pgo for you, usually the person responsible for the commit will fix the regression.
Comment 13 Joonas Niilola gentoo-dev 2024-12-18 09:06:41 UTC
*** Bug 946604 has been marked as a duplicate of this bug. ***
Comment 14 Larry the Git Cow gentoo-dev 2024-12-18 17:20:51 UTC
The bug has been referenced in the following commit(s):

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

commit b4d69f169b9b980067436aa33b84398ee19ca4d2
Author:     Joonas Niilola <juippis@gentoo.org>
AuthorDate: 2024-12-18 17:12:21 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2024-12-18 17:12:21 +0000

    www-client/firefox: require 'jumbo-build' when +pgo is specified
    
     - I'm honestly surprised if it ever worked otherwise. See bugs for
       discussion.
    
    Bug: https://bugs.gentoo.org/946604
    Bug: https://bugs.gentoo.org/945801
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 www-client/firefox/firefox-128.5.0.ebuild | 1 +
 www-client/firefox/firefox-128.5.1.ebuild | 1 +
 www-client/firefox/firefox-133.0.3.ebuild | 1 +
 3 files changed, 3 insertions(+)