Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Firefox, chromium and thunderbird emerge fail [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
jesnow
l33t
l33t


Joined: 26 Apr 2006
Posts: 856

PostPosted: Mon May 09, 2022 3:21 am    Post subject: Firefox, chromium and thunderbird emerge fail [solved] Reply with quote

I get a new cryptic failure when compiling firefox and thunderbird, it is very similar in both cases:

Code:

... many many errors of this type, this is just the last one

811:23.34 b"/var/tmp/portage/mail-client/thunderbird-91.9.0/work/thunderbird-91.9.0/devtools/client/shared/build/build.js:31\n    throw new Error(`\n    ^\n\nError: \n========================\nNODE COMPILATION ERROR!\n\nFile:   /var/tmp/portage/mail-client/thunderbird-91.9.0/work/thunderbird-91.9.0/devtools/client/debugger/src/components/App.js\nStack:\n\nTypeError: unknown: Cannot read property '2' of null\n    at e.StringLiteral (/var/tmp/portage/mail-client/thunderbird-91.9.0/work/thunderbird-91.9.0/devtools/client/shared/build/build-debugger.js:177:62)\n    at n (/var/tmp/portage/mail-client/thunderbird-91.9.0/work/thunderbird-91.9.0/devtools/client/shared/build/babel.js:1:706249)\n    at e._call (/var/tmp/portage/mail-client/thunderbird-91.9.0/work/thunderbird-91.9.0/devtools/client/shared/build/babel.js:1:684196)\n    at e.call (/var/tmp/portage/mail-client/thunderbird-91.9.0/work/thunderbird-91.9.0/devtools/client/shared/build/babel.js:1:683913)\n    at e.visit (/var/tmp/portage/mail-client/thunderbird-91.9.0/work/thunderbird-91.9.0/devtools/client/shared/build/babel.js:1:684876)\n    at e.t.visitQueue (/var/tmp/portage/mail-client/thunderbird-91.9.0/work/thunderbird-91.9.0/devtools/client/shared/build/babel.js:1:703440)\n    at e.t.visitMultiple (/var/tmp/portage/mail-client/thunderbird-91.9.0/work/thunderbird-91.9.0/devtools/client/shared/build/babel.js:1:702943)\n    at e.t.visit (/var/tmp/portage/mail-client/thunderbird-91.9.0/work/thunderbird-91.9.0/devtools/client/shared/build/babel.js:1:703831)\n    at Function.sA.node (/var/tmp/portage/mail-client/thunderbird-91.9.0/work/thunderbird-91.9.0/devtools/client/shared/build/babel.js:1:794691)\n    at e.visit (/var/tmp/portage/mail-client/thunderbird-91.9.0/work/thunderbird-91.9.0/devtools/client/shared/build/babel.js:1:684983)\n\n========================\n\n    at transform (/var/tmp/portage/mail-client/thunderbird-91.9.0/work/thunderbird-91.9.0/devtools/client/shared/build/build.js:31:11)\n    at Object.<anonymous> (/var/tmp/portage/mail-client/thunderbird-91.9.0/work/thunderbird-91.9.0/devtools/client/shared/build/build.js:70:16)\n    at Module._compile (internal/modules/cjs/loader.js:1085:14)\n    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)\n    at Module.load (internal/modules/cjs/loader.js:950:32)\n    at Function.Module._load (internal/modules/cjs/loader.js:790:12)\n    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:75:12)\n    at internal/main/run_main_module.js:17:47\n"
811:23.34 gmake[3]: *** [backend.mk:1001: devtools/client/debugger/src/components/Editor/Preview/.deps/node.stub.stub] Error 1
811:23.35 gmake[3]: *** [backend.mk:950: devtools/client/debugger/src/components/.deps/node.stub.stub] Error 1
811:23.36 gmake[3]: *** [backend.mk:990: devtools/client/debugger/src/components/Editor/menus/.deps/node.stub.stub] Error 1
811:23.36 gmake[3]: *** [backend.mk:936: devtools/client/debugger/src/client/firefox/.deps/node.stub.stub] Error 1
811:23.36 gmake[3]: Leaving directory '/var/tmp/portage/mail-client/thunderbird-91.9.0/work/thunderbird_build'
811:23.36 gmake[2]: *** [/var/tmp/portage/mail-client/thunderbird-91.9.0/work/thunderbird-91.9.0/config/recurse.mk:34: misc] Error 2
811:23.36 gmake[2]: Leaving directory '/var/tmp/portage/mail-client/thunderbird-91.9.0/work/thunderbird_build'
811:23.36 gmake[1]: *** [/var/tmp/portage/mail-client/thunderbird-91.9.0/work/thunderbird-91.9.0/config/rules.mk:355: default] Error 2
811:23.36 gmake[1]: Leaving directory '/var/tmp/portage/mail-client/thunderbird-91.9.0/work/thunderbird_build'
811:23.36 gmake: *** [client.mk:65: build] Error 2
811:23.36 2191 compiler warnings present.
8 * ERROR: mail-client/thunderbird-91.9.0::gentoo failed (compile phase):
 *   (no error message)




The key seems to be

Code:

TypeError: unknown: Cannot read property '2' of null\n    at e.StringLiteral ( ...


But I can't make heads or tails of it.

Any help would be most welcome.

Cheers,
Jon.


Last edited by jesnow on Sun May 22, 2022 1:13 pm; edited 2 times in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30915
Location: here

PostPosted: Mon May 09, 2022 5:08 am    Post subject: Reply with quote

Can you post emerge -pv net-libs/nodejs and your emerge --info?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30915
Location: here

PostPosted: Mon May 09, 2022 5:08 am    Post subject: Reply with quote

Moved from Unsupported Software to Portage & Programming.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
jesnow
l33t
l33t


Joined: 26 Apr 2006
Posts: 856

PostPosted: Mon May 09, 2022 1:09 pm    Post subject: Reply with quote

Code:


bartali /home/jesnow # emerge -pv1 nodejs

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

Calculating dependencies... done!
[ebuild   R   #] net-libs/nodejs-14.19.0:0/14::gentoo  USE="icu inspector npm snapshot ssl system-icu system-ssl -debug -doc -lto -pax-kernel -systemtap -test" CPU_FLAGS_X86="sse2" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB
bartali /home/jesnow # equery list nodejs -p
 * Searching for nodejs ...
[-P-] [  ] net-libs/nodejs-14.17.5-r1:0/14
[-P-] [  ] net-libs/nodejs-14.17.6:0/14
[IP-] [  ] net-libs/nodejs-14.19.0:0/14
[-P-] [ ~] net-libs/nodejs-16.14.2:0/16
[-P-] [ ~] net-libs/nodejs-18.1.0:0/18
[-P-] [ -] net-libs/nodejs-99999999:0
bartali /home/jesnow #
 



Code:


bartali /home/jesnow # emerge --info
Portage 3.0.30 (python 3.9.12-final-0, default/linux/amd64/17.1/hardened, gcc-11.2.1, glibc-2.34-r10, 5.10.27-gentoo x86_64)
=================================================================
System uname: Linux-5.10.27-gentoo-x86_64-AMD_Ryzen_5_3600_6-Core_Processor-with-glibc2.34
KiB Mem:    49273852 total,  10976448 free
KiB Swap:   22330364 total,  22312956 free
Timestamp of repository gentoo: Sun, 08 May 2022 21:30:01 +0000
Head commit of repository gentoo: 758a5f0dcbd5ff618e8733066603a05548583299
sh bash 5.1_p16
ld GNU ld (Gentoo 2.37_p1 p2) 2.37
distcc 3.4 x86_64-pc-linux-gnu [enabled]
ccache version 4.5.1 [enabled]
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.0-r9::gentoo
dev-lang/python:           3.9.12::gentoo, 3.10.4::gentoo
dev-lang/rust:             1.59.0::gentoo
dev-util/ccache:           4.5.1::gentoo
dev-util/cmake:            3.22.2::gentoo
dev-util/meson:            0.61.4-r2::gentoo
sys-apps/baselayout:       2.7-r3::gentoo
sys-apps/openrc:           0.44.10::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.37_p1-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           13.0.1::gentoo
sys-devel/gcc:             11.2.1_p20220115::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.6-r6::gentoo
sys-devel/lld:             13.0.1::gentoo
sys-devel/llvm:            13.0.1::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.34-r10::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://merckx/gentoo-portage/
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts:
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
AR="gcc-ar"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
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="-march=x86-64 -mtune=generic -Ofast -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS=" --jobs 10 --load-average 20"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH 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="-march=x86-64 -mtune=generic -Ofast -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live ccache config-protect-if-modified distcc distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=x86-64 -mtune=generic -Ofast -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j15 -l12"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
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"
SHELL="/bin/bash"
USE="X \ acl aio alsa amd64 bindist bzip2 clang cli crypt cups dga dri dri3 egl elogind exif fftw gif graphite hardened iconv ipv6 jack jit joystick jpeg lcms libglvnd libtirpc minimal multilib ncurses nptl numa offensive opencl openexr opengl openmp openssl otr pam pcre pie png policykit pulseaudio qt5 raw readline samba seccomp split-usr ssl ssp system-av1 system-binutils system-cairo system-clang system-cmark system-compress system-digest system-ffmpeg system-harfbuzz system-heimdal system-icu system-images system-jpeg system-lcms system-leveldb system-libevent system-libmspack system-libs system-libvpx system-libyaml system-llvm system-lua system-lz4 system-nss system-openjpeg system-pixman system-renpy system-snappy system-sqlite system-tbb system-uulib system-vpx system-zlib threads unicode v4l2 vaapi vdpau vulkan win32codecs xattr xinerama xorg xtpax zlib zsh-completion" ABI_X86="64" ADA_TARGET="gnat_2020" 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_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" 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" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="NVPTX X86" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS



Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30915
Location: here

PostPosted: Mon May 09, 2022 6:21 pm    Post subject: Reply with quote

Try disabling distcc and ccache.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4554
Location: Germany

PostPosted: Mon May 09, 2022 9:21 pm    Post subject: Reply with quote

^ If that not work, then next I would try without -Ofast
with -O2
Back to top
View user's profile Send private message
jesnow
l33t
l33t


Joined: 26 Apr 2006
Posts: 856

PostPosted: Mon May 09, 2022 9:56 pm    Post subject: Reply with quote

Stochastic debugging, where you just sort of randomly try stuff rather than trying to identify the root cause, is not a good practice. "Try turning the machine off and on again".

Interesting part is they both failed within a few seconds of each other both times, but I hope we can stop with the "just try random stuff". Each try takes about an hour to get to the crashy part.

Cheers,
Jon.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9679
Location: almost Mile High in the USA

PostPosted: Mon May 09, 2022 10:33 pm    Post subject: Reply with quote

sometimes (and more frequently than not) experimentation provides clues that lead to the proper diagnosis that you can't get by just looking at logfiles...
Granted it also can lead to "it works now, don't fix it" deals...
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
jesnow
l33t
l33t


Joined: 26 Apr 2006
Posts: 856

PostPosted: Sat May 14, 2022 9:52 pm    Post subject: Reply with quote

And still they are failing to emerge. Everything suggested here so far has failed. The problem seems to be something to do with node.js

Any help gratefully accepted.
Cheers,
Jon.
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Sat May 14, 2022 11:25 pm    Post subject: Reply with quote

I see
Code:

CFLAGS="-O2 -pipe"
CXXFLAGS="-march=x86-64 -mtune=generic -Ofast -pipe"

Maybe try
Code:

CFLAGS="-O2 -pipe"
CXXFLAGS="-O2 -pipe"

I see for example that thunderbird is written in C and C++.
Better keep the two uniform.
_________________
:)
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9679
Location: almost Mile High in the USA

PostPosted: Sat May 14, 2022 11:47 pm    Post subject: Reply with quote

hmm...not sure, did the full build log get posted somewhere?
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Juippisi
Developer
Developer


Joined: 30 Sep 2005
Posts: 724
Location: /home

PostPosted: Mon May 16, 2022 6:53 am    Post subject: Reply with quote

Please post the full build.log somewhere. You can compress it with xz -9 build.log to reduce size.

Could use a bug report in bugs.gentoo.org.
Back to top
View user's profile Send private message
jesnow
l33t
l33t


Joined: 26 Apr 2006
Posts: 856

PostPosted: Sun May 22, 2022 1:10 pm    Post subject: Reply with quote

On my next emerge --sync && emerge -DNua @world the problem went away by itself.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum