% emerge -pqv '=www-client/firefox-52.5.2::gentoo' [ebuild U ] www-client/firefox-52.5.2 [52.5.0] USE="dbus gmp-autoupdate gtk2 hwaccel jemalloc startup-notification system-harfbuzz system-icu system-jpeg system-libvpx system-sqlite -bindist -custom-cflags -custom-optimization -debug -eme-free -hardened -jack (-neon) -pgo -pulseaudio (-rust) (-selinux) (-system-cairo) -system-libevent {-test} -wifi" L10N="ru sv -ach -af -an -ar -as -ast -az -bg -bn-BD -bn-IN -br -bs -ca -cak -cs -cy -da -de -dsb -el -en-GB -en-ZA -eo -es-AR -es-CL -es-ES -es-MX -et -eu -fa -ff -fi -fr -fy -ga -gd -gl -gn -gu -he -hi -hr -hsb -hu -hy -id -is -it -ja -ka -kab -kk -km -kn -ko -lij -lt -lv -mai -mk -ml -mr -ms -nb -nl -nn -or -pa -pl -pt-BR -pt-PT -rm -ro -si -sk -sl -son -sq -sr -ta -te -th -tr -uk -uz -vi -xh -zh-CN -zh-TW" ------- In file included from /var/tmp/portage/www-client/firefox-52.5.2/work/firefox-52.5.2esr/ff/gfx/thebes/Unified_cpp_gfx_ thebes0.cpp:65:0: /var/tmp/portage/www-client/firefox-52.5.2/work/firefox-52.5.2esr/gfx/thebes/gfxFont.cpp:2625:29: error: ‘mozilla::gfx ::ShapedTextFlags’ has not been declared gfx::ShapedTextFlags aFlags, ^~~~~~~~~~~~~~~ /var/tmp/portage/www-client/firefox-52.5.2/work/firefox-52.5.2esr/gfx/thebes/gfxFont.cpp:2626:24: error: ‘RoundingFlag s’ has not been declared RoundingFlags aRounding, ^~~~~~~~~~~~~ /var/tmp/portage/www-client/firefox-52.5.2/work/firefox-52.5.2esr/gfx/thebes/gfxFont.cpp:2618:1: error: template-id ‘G etShapedWord<>’ for ‘gfxShapedWord* gfxFont::GetShapedWord(gfxFont::DrawTarget*, const uint8_t*, uint32_t, uint32_t, g fxFont::Script, bool, int32_t, int, int, gfxTextPerfMetrics*)’ does not match any template declaration gfxFont::GetShapedWord(DrawTarget *aDrawTarget, ^~~~~~~ -------
Created attachment 509548 [details] Full www-client/firefox-52.5.2 build.log
Created attachment 509550 [details] emerge --info '=www-client/firefox-52.5.2::gentoo'
Builds fine without 2005_fix_pgo_build.patch.
I got the same build failure. Grepping the FF src I cannot find the definition of ShapedTextFlags
commit f11302032225f773c67d4c4f6686dea491a12b0d Author: Jory A. Pratt <anarchy@gentoo.org> Date: Tue Dec 12 07:46:09 2017 -0600 www-client/firefox: drop pgo build fix bug #640770 Package-Manager: Portage-2.3.18, Repoman-2.3.6
*** Bug 640826 has been marked as a duplicate of this bug. ***