Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 666800

Summary: www-client/firefox-62.0.2: Error running mach ("must call (at least) setupterm() first")
Product: Gentoo Linux Reporter: Kobboi <gentoo>
Component: Current packagesAssignee: Mozilla Gentoo Team <mozilla>
Status: RESOLVED DUPLICATE    
Severity: normal CC: whissi
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Kobboi 2018-09-23 09:55:55 UTC
>>> Emerging (2 of 2) www-client/firefox-62.0.2::gentoo
>>> Failed to emerge www-client/firefox-62.0.2, Log file:
>>>  '/var/tmp/portage/www-client/firefox-62.0.2/temp/build.log'
 * Package:    www-client/firefox-62.0.2
 * Repository: gentoo
 * Maintainer: mozilla@gentoo.org
 * USE:        abi_x86_64 amd64 dbus elibc_glibc gmp-autoupdate kernel_linux pulseaudio screenshot startup-notification userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
 * 
 * You are enabling official branding. You may not redistribute this build
 * to any users on your network or the internet. Doing so puts yourself into
 * a legal problem with Mozilla Foundation.
 * You can disable it by emerging firefox _with_ the bindist USE-flag.
 * Applying patches from /var/tmp/portage/www-client/firefox-62.0.2/work/firefox ...
 *   1000_gentoo_preference_file.patch ...
 [ ok ]
 *   1001_dont_use_build_id.patch ...
 [ ok ]
 *   1002_fix_pie_detection.patch ...
 [ ok ]
 *   1003_foritify_sources_properly.patch ...
 [ ok ]
 *   2000_system_harfbuzz_support.patch ...
 [ ok ]
 *   2001_system_graphite2_support.patch ...
 [ ok ]
 *   2002_fix_profile_support_for_nonglibc.patch ...
 [ ok ]
 *   2003_musl_requires_padding_liblibc.patch ...
 [ ok ]
 *   2004_sys_auxv_non_glibc.patch ...
 [ ok ]
 *   6001_add_missing_header_for_basename.patch ...
 [ ok ]
 *   6002_add_alternate_name_for_private_siginfo_struct_member.patch ...
 [ ok ]
 *   6003_fix_syscall_wrappers_on_musl.patch ...
 [ ok ]
 *   6005_musl_memory_report.patch ...
 [ ok ]
 *   6006_musl_pthread_setname.patch ...
 [ ok ]
 *   6007_musl_fix_tools.patch ...
 [ ok ]
 * Applying firefox-60.0-blessings-TERM.patch ...
 [ ok ]
 * Applying firefox-60.0-do-not-force-lld.patch ...
 [ ok ]
 * Applying firefox-60.0-sandbox-lto.patch ...
 [ ok ]
 * Running eautoreconf in '/var/tmp/portage/www-client/firefox-62.0.2/work/firefox-62.0.2' ...
 * Running autoconf ...
 [ ok ]
 * Running elibtoolize in: firefox-62.0.2/
 * Running elibtoolize in: firefox-62.0.2/intl/icu/source/
 * Running elibtoolize in: firefox-62.0.2/js/src/
 * Running elibtoolize in: firefox-62.0.2/js/src/ctypes/libffi/
 *   Applying portage/1.2.0 patch ...
 *   Applying sed/1.5.6 patch ...
 *   Applying as-needed/2.4.2 patch ...
 *   Applying target-nm/2.4.2 patch ...
 * Running elibtoolize in: firefox-62.0.2/media/libvpx/libvpx/
 * Running elibtoolize in: firefox-62.0.2/modules/freetype2/
 * Running elibtoolize in: firefox-62.0.2/modules/freetype2/builds/unix/
 *   Applying portage/1.2.0 patch ...
 *   Applying sed/1.5.6 patch ...
 *   Applying as-needed/2.4.3 patch ...
 *   Applying ppc64le/2.4.4 patch ...
 * Running elibtoolize in: firefox-62.0.2/nsprpub/
 * Running elibtoolize in: firefox-62.0.2/python/mozbuild/mozbuild/
 * Running elibtoolize in: firefox-62.0.2/python/mozbuild/mozbuild/test/
 * Running elibtoolize in: firefox-62.0.2/third_party/aom/
 * Running elibtoolize in: firefox-62.0.2/third_party/rust/freetype/
 * Running elibtoolize in: firefox-62.0.2/third_party/rust/libz-sys/src/zlib-1.2.8/
 * Running elibtoolize in: firefox-62.0.2/toolkit/crashreporter/google-breakpad/
 * Running elibtoolize in: firefox-62.0.2/toolkit/crashreporter/google-breakpad/autotools/
 *   Applying portage/2.2 patch ...
 *   Applying sed/1.5.6 patch ...
 *   Applying as-needed/2.2.6 patch ...
 * Running autoconf old-configure.in ...
 [ ok ]
 * strip-flags: CFLAGS: changed '-march=x86-64 -pipe -fomit-frame-pointer' to '-march=x86-64 -pipe'
 * strip-flags: CXXFLAGS: changed '-march=x86-64 -pipe -fomit-frame-pointer' to '-march=x86-64 -pipe'

==========================================================
Building firefox-62.0.2 with the following configuration
    --enable-application=browser    mozilla.org default
    --enable-optimize               mozilla default
    --disable-updater               disable_update_strip
    --disable-strip                 disable_update_strip
    --disable-install-strip         disable_update_strip
    --with-system-zlib              system_libs
    --with-system-bz2               system_libs
    --enable-release                Enable by Gentoo
    --enable-linker=bfd             linker is set to bfd
    --enable-official-branding      +!bindist
    --enable-pie                    enabled by Gentoo
    --disable-debug                 -debug
    --disable-tests                 -debug
    --disable-debug-symbols         disabled by Gentoo
    --with-system-nspr              mozilla.org default
    --with-nspr-prefix=/usr         mozilla.org default
    --with-system-nss               mozilla.org default
    --with-nss-prefix=/usr          mozilla.org default
    --x-includes=/usr/include       mozilla.org default
    --x-libraries=/usr/lib64        mozilla.org default
    --prefix=/usr                   mozilla.org default
    --libdir=/usr/lib64             mozilla.org default
    --disable-crashreporter         mozilla.org default
    --with-system-png               Gentoo default
    --enable-system-ffi             mozilla.org default
    --disable-gconf                 mozilla.org default
    --with-intl-api                 mozilla.org default
    --enable-system-pixman          mozilla.org default
    --target=x86_64-pc-linux-gnu    mozilla.org default
    --host=x86_64-pc-linux-gnu      mozilla.org default
    --enable-skia                   mozilla.org default
    --enable-default-toolkit=cairo-gtk3  mozilla.org default
    --enable-startup-notification   +startup-notification
    --disable-system-sqlite         -system-sqlite
    --without-system-jpeg           -system-jpeg
    --without-system-icu            -system-icu
    --without-system-libvpx         -system-libvpx
    --without-system-harfbuzz       -system-harfbuzz
    --without-system-graphite2      -system-harfbuzz
    --enable-pulseaudio             +pulseaudio
    --without-ccache                mozilla.org default
    --enable-dbus                   +dbus
    --disable-necko-wifi            -wifi
    --disable-geckodriver           -geckodriver
    --disable-jack                  -jack
    --with-google-api-keyfile=/var/tmp/portage/www-client/firefox-62.0.2/work/firefox-62.0.2/google-api-key  mozilla.org default
    --enable-extensions=default     mozilla.org default
==========================================================

Error running mach:

    ['configure']

The error occurred in mach itself. This is likely a bug in mach itself or a
fundamental problem with a loaded module.

Please consider filing a bug against mach by going to the URL:

    https://bugzilla.mozilla.org/enter_bug.cgi?product=Firefox%20Build%20System&component=Mach%20Core


If filing a bug, please include the full output of mach, including this error
message.

The details of the failure are as follows:

error: must call (at least) setupterm() first
Comment 1 Thomas Deutschmann (RETIRED) gentoo-dev 2018-09-23 10:45:52 UTC
Please check your "TERM=" setting.
Comment 2 Kobboi 2018-09-23 10:46:06 UTC
This only happens when I do the emerge via cron or via ssh.
Comment 3 Kobboi 2018-09-23 11:10:57 UTC
For which TERM=dumb
Comment 4 Thomas Deutschmann (RETIRED) gentoo-dev 2018-09-23 11:20:13 UTC
This is weird:

> * Applying firefox-60.0-blessings-TERM.patch ...

should fix that. I just verified,

`TERM=dumb ebuild firefox-62.0.2.ebuild clean install`

works for me.
Comment 5 Thomas Deutschmann (RETIRED) gentoo-dev 2018-09-23 14:24:01 UTC
I am moving this bug into bug 666840 which has more logs.

*** This bug has been marked as a duplicate of bug 666840 ***