Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 721062 - www-client/firefox-75.0 cannot be rebuilt on arm64 after other updates in the system
Summary: www-client/firefox-75.0 cannot be rebuilt on arm64 after other updates in the...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM64 Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-05 09:08 UTC by Paul Osmialowski
Modified: 2020-06-13 16:14 UTC (History)
3 users (show)

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


Attachments
firefox-76.0 build log (as requested) (firefox-build.tar.bz2,493.74 KB, application/octet-stream)
2020-05-07 09:44 UTC, Paul Osmialowski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Osmialowski 2020-05-05 09:08:59 UTC
Recently I wanted to rebuild my firefox installation with additional I10N flag. It failed at ff/devtools/client/debugger/src, a place that is not affected by I10N settings. So I tried to just rebuild it, with the USE flags it already had. No luck, it failed at the same place. I suspect recent updates to javascript compilers (nodejs, spidermonkey) could affect this.


Reproducible: Always

Actual Results:  
620:06.10 Executing "/usr/bin/node /var/tmp/portage/www-client/firefox-75.0-r3/work/firefox-75.0/devtools/client/shared/build/build.js /var/tmp/portage/www-client/firefox-75.0-r3/work/firefox-75.0/devtools/client/debugger/src/main.development.js /var/tmp/portage/www-client/firefox-75.0-r3/work/firefox-75.0/devtools/client/debugger/src/main.js /var/tmp/portage/www-client/firefox-75.0-r3/work/firefox-75.0/devtools/client/debugger/src/vendors.js /var/tmp/portage/www-client/firefox-75.0-r3/work/firefox-75.0/ff/dist/bin/browser/chrome/devtools/modules/devtools/client/debugger/src"
620:07.16 b'/var/tmp/portage/www-client/firefox-75.0-r3/work/firefox-75.0/devtools/client/shared/build/build.js:35\n    throw new Error(`\n    ^\n\nError: \n========================\nNODE COMPILATION ERROR!\n\nFile:   /var/tmp/portage/www-client/firefox-75.0-r3/work/firefox-75.0/devtools/client/debugger/src/main.js\nStack:\n\nTypeError: this.call is not a function\n    at p.t.visit (/var/tmp/portage/www-client/firefox-75.0-r3/work/firefox-75.0/devtools/client/shared/build/babel.js:1:905203)\n    at e.t.visitQueue (/var/tmp/portage/www-client/firefox-75.0-r3/work/firefox-75.0/devtools/client/shared/build/babel.js:1:651308)\n    at e.t.visitQueue (/var/tmp/portage/www-client/firefox-75.0-r3/work/firefox-75.0/devtools/client/shared/build/babel.js:1:651366)\n    at e.t.visitSingle (/var/tmp/portage/www-client/firefox-75.0-r3/work/firefox-75.0/devtools/client/shared/build/babel.js:1:650891)\n    at e.t.visit (/var/tmp/portage/www-client/firefox-75.0-r3/work/firefox-75.0/devtools/client/shared/build/babel.js:1:651725)\n    at Function.c.node (/var/tmp/portage/www-client/firefox-75.0-r3/work/firefox-75.0/devtools/client/shared/build/babel.js:1:118394)\n    at c (/var/tmp/portage/www-client/firefox-75.0-r3/work/firefox-75.0/devtools/client/shared/build/babel.js:1:117950)\n    at /var/tmp/portage/www-client/firefox-75.0-r3/work/firefox-75.0/devtools/client/shared/build/babel.js:1:573504\n    at i (/var/tmp/portage/www-client/firefox-75.0-r3/work/firefox-75.0/devtools/client/shared/build/babel.js:1:573836)\n    at d (/var/tmp/portage/www-client/firefox-75.0-r3/work/firefox-75.0/devtools/client/shared/build/babel.js:1:1031705)\n\n========================\n\n    at transform (/var/tmp/portage/www-client/firefox-75.0-r3/work/firefox-75.0/devtools/client/shared/build/build.js:35:11)\n    at Object.<anonymous> (/var/tmp/portage/www-client/firefox-75.0-r3/work/firefox-75.0/devtools/client/shared/build/build.js:74:16)\n    at Module._compile (internal/modules/cjs/loader.js:1176:30)\n    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1196:10)\n    at Module.load (internal/modules/cjs/loader.js:1040:32)\n    at Function.Module._load (internal/modules/cjs/loader.js:929:14)\n    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)\n    at internal/main/run_main_module.js:17:47\n'
620:07.21 gmake[4]: *** [backend.mk:21: .deps/node.stub.stub] Error 1
620:07.21 gmake[4]: Leaving directory '/var/tmp/portage/www-client/firefox-75.0-r3/work/firefox-75.0/ff/devtools/client/debugger/src'
620:07.21 gmake[3]: *** [/var/tmp/portage/www-client/firefox-75.0-r3/work/firefox-75.0/config/recurse.mk:101: devtools/client/debugger/src/misc] Error 2
620:07.21 gmake[3]: Leaving directory '/var/tmp/portage/www-client/firefox-75.0-r3/work/firefox-75.0/ff'
620:07.21 gmake[2]: *** [/var/tmp/portage/www-client/firefox-75.0-r3/work/firefox-75.0/config/recurse.mk:34: misc] Error 2
620:07.21 gmake[2]: Leaving directory '/var/tmp/portage/www-client/firefox-75.0-r3/work/firefox-75.0/ff'
620:07.22 gmake[1]: *** [/var/tmp/portage/www-client/firefox-75.0-r3/work/firefox-75.0/config/rules.mk:394: default] Error 2
620:07.23 gmake[1]: Leaving directory '/var/tmp/portage/www-client/firefox-75.0-r3/work/firefox-75.0/ff'
620:07.24 gmake: *** [client.mk:125: build] Error 2
620:07.28 11 compiler warnings present.


Portage 2.3.99 (python 3.6.10-final-0, default/linux/arm64/17.0/desktop, gcc-9.3.0, glibc-2.30-r8, 4.4.38-tegra aarch64)
=================================================================
System uname: Linux-4.4.38-tegra-aarch64-with-gentoo-2.6
KiB Mem:     8039124 total,   2000900 free
KiB Swap:    4194300 total,   4166372 free
Timestamp of repository gentoo: Mon, 04 May 2020 07:00:01 +0000
Head commit of repository gentoo: 0ce9d8340c3f0afa43dc6b6e6af71a8f07739b70
sh bash 5.0_p17
ld GNU ld (Gentoo 2.33.1 p2) 2.33.1
app-shells/bash:          5.0_p17::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.1::gentoo
dev-lang/python:          2.7.18::gentoo, 3.6.10-r2::gentoo, 3.7.7-r2::gentoo, 3.8.2-r2::gentoo
dev-util/cmake:           3.17.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.15.1-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.33.1-r1::gentoo
sys-devel/gcc:            9.3.0::gentoo
sys-devel/gcc-config:     2.2.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.30-r8::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: -4
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes

jetson
    location: /usr/local/portage/overlay
    masters: gentoo
    priority: 0

armhpc
    location: /home/pawelo/portage/armhpc-gentoo-repo.git
    masters: gentoo
    priority: 1

fuverlay
    location: /var/lib/layman/fuverlay
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="arm64"
ACCEPT_LICENSE="*"
CBUILD="aarch64-unknown-linux-gnu"
CFLAGS="-O2 -pipe -march=native -mcpu=cortex-a57 -mtune=cortex-a57"
CHOST="aarch64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.6/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native -mcpu=cortex-a57 -mtune=cortex-a57"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1 -l1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="-4"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="7zip X Xaw3d a52 aac aalib acl acpi adplug alsa amrenc anacron ao arm64 aspell audiofile bat berkdb bluetooth bonjour boost branding bzip2 c++11 cacert cairo canberra caps cdda cddb cdparanoia cdr chromaprint cli conntrack contrib corefonts crypt cscope cups curl cxx dbus declarative djvu dri dri3 dts dv dvdr egl elfutils elogind emboss encode equalizer evdev exif expat extras faac faad ffmpeg fft fftw flac fontconfig fontforge fonts fortran fpx frei0r ftp games gcr gdbm gdk-pixbuf gif gimp glamor glib gme gmp gmplayer gold graphviz gsettings gsl gsm gssapi gstaudio gstreamer gstvideo gtk gtk2 gtk3 guile haptic hdf5 heif heterogeneous highlight hotkeys http hwloc iconv icu imagemagick int64 iproute2 ipv4 isabelle java javascript jbig jemalloc jms joystick jpeg jpeg2k json kdrive lame lapack lapacke largepages lcms ldap ldap-sasl ldapdb lensfun libatomic libcanberra libdrm libffi libmpeg2 libnotify libsamplerate libsoxr libtirpc lldb lmdb log4j lqr lua lvm lvm1 lz4 lzma lzo mad md5sum mdnsresponder-compat melt metis minizip mng mp3 mp3rtp mp4 mpeg mpfi mpfr mplayer multimedia ncurses netcdf nls nptl ntl numa ocr offensive ogg ompt openal opencv opendx openexr opengl openh264 openldap openmp openpgp openssl opus osmesa pam pango paraview pcre pdf perl pgm phonon physfs pie plugins png pnm policykit postproc postscript ppds pulseaudio python qml qt5 rar raw readline rle romio rustfmt seccomp secure-delete serialport servletapi sha2 sixel slang smp smpeg sndfile sound source-highlight sox soxr speex spell split-usr sqlite ssh ssl startup-notification suggested svg system-llvm szip tahoma tcl tcpd theora tiff tk toolame tools traceroute6 tre tremor truetype twm twolame udev udisks udisks2 umfpack unicode unwind upower usb utils v4l v4l2 vector-icons vidstab vnc vorbis wad wavpack wayland webkit webp widgets wmf woff2 wxwidgets x11extras x264 x265 xattr xcb xephyr xft xinetd xml xmlpatterns xmp xnest xpm xv xvfb xvid yaml yuv4mpeg z3 zeroconf zeromq zimg zlib zstd" ADA_TARGET="gnat_2018" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp thumb vfp vfpv3 vfpv4 vfp-d32 aes sha1 sha2 crc32 v4 v5 v6 v7 v8 thumb2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="pl" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby25" USERLAND="GNU" VIDEO_CARDS="tegra fbdev" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS

[ebuild   R   ~] net-libs/nodejs-14.1.0::gentoo  USE="icu npm snapshot ssl system-ssl -debug -doc -inspector -pax_kernel -systemtap -test" 0 KiB
[ebuild   R   ~] dev-lang/rust-1.43.0:stable/1.43::gentoo  USE="rustfmt -clippy -debug -doc -libressl -miri -nightly -parallel-compiler -rls -system-bootstrap -system-llvm -wasm" LLVM_TARGETS="(AArch64) -AMDGPU -ARM -BPF -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -RISCV -Sparc -SystemZ -WebAssembly -X86 -XCore" 0 KiB
[ebuild   R   ~] dev-lang/rust-bin-1.43.0:stable::gentoo  USE="(-clippy) (-doc) -libressl (-rustfmt)" 0 KiB
[ebuild   R   ~] dev-lang/spidermonkey-1.8.5-r9:0/mozjs185::gentoo  USE="-debug -minimal -static-libs -test" 0 KiB
[ebuild   R    ] dev-lang/spidermonkey-60.5.2_p0-r4:60::gentoo  USE="system-icu -custom-cflags -custom-optimization -debug (-jit) -minimal -test" 0 KiB
[ebuild  N    ~] www-client/firefox-75.0-r3::gentoo  USE="gmp-autoupdate pulseaudio screenshot startup-notification system-av1 system-harfbuzz system-icu system-jpeg system-libevent system-webp wayland -bindist -clang -custom-cflags -custom-optimization -debug (-eme-free) -geckodriver (-hardened) -hwaccel -jack -lto (-pgo) (-selinux) -system-libvpx -test -wifi" CPU_FLAGS_ARM="(-neon)" L10N="pl -ach -af -an -ar -ast -az -be -bg -bn -br -bs -ca -cak -cs -cy -da -de -dsb -el -en-CA -en-GB -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 -ia -id -is -it -ja -ka -kab -kk -km -kn -ko -lij -lt -lv -mk -mr -ms -my -nb -nl -nn -oc -pa -pt-BR -pt-PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv -ta -te -th -tr -uk -ur -uz -vi -xh -zh-CN -zh-TW" 0 KiB
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-05-06 14:03:00 UTC
Could you provide the full build.log?
Comment 2 Paul Osmialowski 2020-05-06 14:37:11 UTC
Will do, later today or tomorrow morning.
Comment 3 Paul Osmialowski 2020-05-06 14:38:09 UTC
It will be firefox-76.0 though.
Comment 4 Thomas Deutschmann (RETIRED) gentoo-dev 2020-05-06 15:34:30 UTC
I am unable to reproduce with same nodejs version in amd64 stage3 for firefox-76.0.
Comment 5 Paul Osmialowski 2020-05-07 09:44:42 UTC
Created attachment 636678 [details]
firefox-76.0 build log (as requested)

Unfortunately, www-client/firefox-76.0 fails to build at the same spot. Attached is the bzipped log.
Comment 6 tt_1 2020-05-08 11:29:29 UTC
It seems you're using wayland on aarch64, this is the most bleeding edge I can imagine of. You absolutly should checkout what fedora and the alarm team (arch port for aarch64) are doing. For fedora, I see them having trouble with aarch64 all the time.
Comment 7 Paul Osmialowski 2020-05-12 14:37:52 UTC
I've tried firefox-76.0.1 too, with and without "wayland" USE flag the result is always the same.As this bug always hits ff/devtools/client/debugger/src, is there a way to easily exclude debugger (or even all of the devtools) from being built?
Comment 8 tt_1 2020-05-23 19:29:35 UTC
I've test with these useflags: 

emerge -pv firefox 

These are the packages that would be merged, in order:

[ebuild   R   ~] www-client/firefox-76.0.1::gentoo  USE="clang system-av1 system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-webp -bindist -custom-cflags -custom-optimization -debug (-eme-free) -geckodriver -gmp-autoupdate (-hardened) -hwaccel -jack -lto (-pgo) -pulseaudio -screenshot (-selinux) -startup-notification -test -wayland -wifi" CPU_FLAGS_ARM="(-neon)" L10N="de -ach -af -an -ar -ast -az -be -bg -bn -br -bs -ca -cak -cs -cy -da -dsb -el -en-CA -en-GB -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 -ia -id -is -it -ja -ka -kab -kk -km -kn -ko -lij -lt -lv -mk -mr -ms -my -nb -nl -nn -oc -pa -pl -pt-BR -pt-PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv -ta -te -th -tr -uk -ur -uz -vi -xh -zh-CN -zh-TW" 316.254 KiB

I'm mostly on stable keywords: nodejs-12.16.1, clang/llvm-9.0.1, rust-bin-1.43.1

It might be a good idea to downgrade your nodejs, since the error message, though difficult to read, is linked to nodejs I believe. 

I can try to reproduce with the release of firefox-77.0, given no cause has been identified until then.
Comment 9 Paul Osmialowski 2020-05-24 23:18:30 UTC
Success! Indeed it builds with nodejs-12.16.1, but as I removed ~arm64 keyword from nodejs it turned out, 12.16.* versions aren't the latest stable on AArch64. I just had to mask nodejs versions later than 12.16.* in order to succeed.
Comment 10 tt_1 2020-05-26 20:39:02 UTC
excelent, can you please post your emerge -pv nodejs stuff? Also any funny stuff you might add via package.env etc. pp. 

I'll wait a bit for firefox-77.0 and will attempt to reproduce with nodejs-14
Comment 11 Paul Osmialowski 2020-05-26 21:55:10 UTC
 $ emerge -pv nodejs

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] net-libs/nodejs-12.16.1::gentoo  USE="npm snapshot ssl system-ssl -debug -doc -icu -inspector -systemtap -test" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

I had do add -icu for nodejs explicitly as nodejs-12.16.1 is incompatible with dev-libs/icu-67.1.

Note that I'm having Gentoo on this Jetson-TX2 board for couple of years now. Back when I first time connected SSD drive and installed Gentoo on it (with vendor-provided kernel), the support for AArch64 in Gentoo was very early and most of the packages were masked (namely, for the desktop profile; as Jetson is something of near-desktop capabilities, I didn't want to wait for those packages for being unmasked for AArch64 so my list of manually enabled packages in packages.accept_keywords file is huge!).
Comment 12 Paul Osmialowski 2020-06-05 10:51:45 UTC
This is bit annoying. Today there was firefox update to 77.0.1 but this was preceded by dev-lang/python-3.6.10-r2 rebuild (I assume due to USE flags change or one of the dependencies update, sadly, I don't keep record). The effect on firefox build process is this:

12:04.52    Compiling lazy_static v1.4.0
Exception in thread ProcessReader:
Traceback (most recent call last):
  File "/usr/lib64/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/usr/lib64/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "/var/tmp/portage/www-client/firefox-77.0.1/work/firefox-77.0.1/testing/mozbase/mozprocess/mozprocess/processhandler.py", line 1116, in _read
    callback(line.rstrip())
  File "/var/tmp/portage/www-client/firefox-77.0.1/work/firefox-77.0.1/testing/mozbase/mozprocess/mozprocess/processhandler.py", line 1026, in __call__
    e(*args, **kwargs)
  File "/var/tmp/portage/www-client/firefox-77.0.1/work/firefox-77.0.1/python/mach/mach/mixin/process.py", line 96, in handleLine
    line_handler(line)
  File "/var/tmp/portage/www-client/firefox-77.0.1/work/firefox-77.0.1/python/mozbuild/mozbuild/controller/building.py", line 706, in on_line
    self.log(logging.INFO, 'build_output', {'line': message}, '{line}')
  File "/var/tmp/portage/www-client/firefox-77.0.1/work/firefox-77.0.1/python/mach/mach/mixin/logging.py", line 54, in log
    extra={'action': action, 'params': params})
  File "/usr/lib64/python3.6/logging/__init__.py", line 1374, in log
    self._log(level, msg, args, **kwargs)
  File "/usr/lib64/python3.6/logging/__init__.py", line 1444, in _log
    self.handle(record)
  File "/usr/lib64/python3.6/logging/__init__.py", line 1454, in handle
    self.callHandlers(record)
  File "/usr/lib64/python3.6/logging/__init__.py", line 1516, in callHandlers
    hdlr.handle(record)
  File "/usr/lib64/python3.6/logging/__init__.py", line 865, in handle
    self.emit(record)
  File "/var/tmp/portage/www-client/firefox-77.0.1/work/firefox-77.0.1/python/mozbuild/mozbuild/controller/building.py", line 590, in emit
    self.fh.write(msg)
UnicodeEncodeError: 'ascii' codec can't encode character '\xf6' in position 239: ordinal not in range(128)
Comment 13 Thomas Deutschmann (RETIRED) gentoo-dev 2020-06-05 10:57:16 UTC
The ASCII error is https://bugs.gentoo.org/727110#c10
Comment 14 Paul Osmialowski 2020-06-05 23:20:16 UTC
Indeed, changing python version helped, building completed.
Comment 15 tt_1 2020-06-07 06:40:33 UTC
I couldn't reproduce with firefox-77.0.1 and nodejs-14.2.0:

[ebuild   R    ] net-libs/nodejs-14.2.0::gentoo  USE="ssl system-ssl -debug -doc -icu -inspector -npm -pax_kernel -snapshot -systemtap -test" 0 KiB
[ebuild   R   ~] www-client/firefox-77.0.1::gentoo  USE="clang system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-webp -bindist -custom-cflags -custom-optimization -debug (-eme-free) -geckodriver -gmp-autoupdate (-hardened) -hwaccel -jack -lto (-pgo) -pulseaudio -screenshot (-selinux) -startup-notification -system-av1 -test -wayland -wifi" CPU_FLAGS_ARM="(-neon)" L10N="de -ach -af -an -ar -ast -az -be -bg -bn -br -bs -ca -cak -cs -cy -da -dsb -el -en-CA -en-GB -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 -ia -id -is -it -ja -ka -kab -kk -km -kn -ko -lij -lt -lv -mk -mr -ms -my -nb -nl -nn -oc -pa -pl -pt-BR -pt-PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv -ta -te -th -tr -uk -ur -uz -vi -xh -zh-CN -zh-TW" 0 KiB


emerge --info
Portage 2.3.99 (python 3.7.7-final-0, default/linux/arm64/17.0, gcc-9.3.0, glibc-2.30-r8, 4.19.114-raspberrypi-v8+ aarch64)
=================================================================
System uname: Linux-4.19.114-raspberrypi-v8+-aarch64-with-gentoo-2.6
KiB Mem:      939636 total,    291304 free
KiB Swap:    4194300 total,   4189128 free
Timestamp of repository gentoo: Fri, 05 Jun 2020 08:30:01 +0000
Head commit of repository gentoo: 82166e71e1186f4b70d099c6b22da611753b26c0
sh bash 5.0_p17
ld GNU ld (Gentoo 2.34 p4) 2.34.0
app-shells/bash:          5.0_p17::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18::gentoo, 3.7.7-r2::gentoo
dev-util/cmake:           3.16.5::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.34-r1::gentoo
sys-devel/gcc:            9.3.0::gentoo
sys-devel/gcc-config:     2.2.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.30-r8::gentoo
Comment 16 Paul Osmialowski 2020-06-07 17:34:38 UTC
Trying this myself. It will take some time tho.
Comment 17 Paul Osmialowski 2020-06-08 16:08:02 UTC
So far it failed as it used to. But I've noticed you don't use default nodejs USE flags. Therefore I've rebuilt nodejs with USE="-npm -snapshot" in order to match with you. Firefox build started again, we'll see.
Comment 18 Paul Osmialowski 2020-06-09 19:26:16 UTC
Still no luck. This js debugger part just can't be built with newer nodejs. I've tried two firefox builds: with and without 'clang' USE flag.
Some other difference, I'm using vendor-locked-in 4.4.38 kernel and my CFLAGS/CXXFLAGS in /etc/portage/make.conf are "-O2 -pipe -march=native -mcpu=cortex-a57 -mtune=cortex-a57".
Comment 19 tt_1 2020-06-12 07:12:51 UTC
well, that really is a unicorn of a setup you're running

but it's not hopeless: you can use nodejs-12 for now, and it should be possible to use it for firefox-78.0, which is the new esr. That gives you plenty of time to find the problem and fix it while sticking with 78.x-esr 

also you should open a bug at mozilla and ask them how you possibly can disable the js debugger which keeps annoying you.
Comment 20 Paul Osmialowski 2020-06-13 16:14:22 UTC
Indeed, as I unmasked nodejs-12.17.0, firefox builds. I wonder who's more to blame here, firefox or nodejs. The more recent version (14.4.0) still causes problems with firefox build. Due to reports of successful aarch64 builds, I'm opting to close this one - apparently it fails only on my system.