Gentoo Archives: gentoo-user

From: Andrey Utkin <andrey_utkin@××××××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] in qemu-binfmt arm chroot, emerge firefox hangs on install phase in xpcshell
Date: Sat, 10 Dec 2016 18:12:17
Message-Id: 20161210181141.GB14296@dell-m4800
1 On x86_64 machine, I'm building a complete gentoo system for ARM device,
2 starting with g.org-provided stage3 image and simplistic self-made
3 scripts I've published here https://github.com/andrey-utkin/pyra_gentoo
4
5 qemu, and qemu-binfmt service, make it easy - one just chroots into the
6 unpacked stage3, and proceeds as usual.
7
8 While I still don't have the actual device and so cannot test how it
9 works, the process of building the system with all usual desktop-ish
10 apps goes well. The only cardinal issue I ran into so far is that
11 firefox emerge hangs. I'd appreciate any suggestions on productive
12 debugging or working around this.
13
14 Attaching full build.log.
15
16 Excerpts:
17
18 ...
19 >>> Source compiled.
20 >>> Test phase [not enabled]: www-client/firefox-50.0
21
22 >>> Install firefox-50.0 into /var/tmp/portage/www-client/firefox-50.0/image/ category www-client
23 ...
24 Executing /var/tmp/portage/www-client/firefox-50.0/work/firefox-50.0/ff/dist/bin/xpcshell -g /var/tmp/portage/www-client/firefox-50.0/work/firefox-50.0/ff/dist/bin/ -a /var/tmp/portage/www-client/firefox-50.0/work/firefox-50.0/ff/dist/bin/ -f /var/tmp/portage/www-client/firefox-50.0/work/firefox-50.0/toolkit/mozapps/installer/precompile_cache.js -e precompile_startupcache("resource://gre/");
25 resource://gre/components/AlarmsManager.js
26 resource://gre/components/AppsService.js
27 ...
28 resource://gre/modules/workers/require.js
29
30
31 And there it hangs forever. I've waited for few days, and have taken new
32 attempts. Initially it was 49.0 and a bit older qemu, now I run qemu-9999 on
33 host system. Last time I'm using such settings in make.conf to eliminate
34 possible race condition issues:
35
36 MAKEOPTS="-j1"
37 EMERGE_DEFAULT_OPTS=" --jobs 1 "
38
39 I have asked about this on IRC, and I was asked which version of
40 sys-apps/sandbox I'm using. I am using sys-apps/sandbox-2.10-r2 on both guest
41 and host env, which was said to have no known issues.
42
43 Excerpt of `ps axfu | cat`:
44
45 root 17730 0.0 0.0 21972 2796 pts/4 S Oct31 0:01 | \_ /bin/bash
46 root 29641 0.0 0.0 4114992 12668 pts/4 Sl Dec03 0:01 | \_ /usr/bin/qemu-arm /bin/bash
47 root 15849 0.0 0.1 4115904 53628 pts/4 Sl+ Dec05 2:52 | \_ /usr/bin/qemu-arm /usr/bin/python3.4 -b /usr/lib/python-exec/python3.4/emerge -v --nodeps firefox
48 root 27172 0.0 0.0 4114872 5176 pts/4 Sl+ Dec07 0:00 | \_ /usr/bin/qemu-arm /usr/bin/sandbox /usr/lib/portage/python3.4/ebuild.sh install
49 root 27175 0.0 0.0 4114872 13280 pts/4 Sl+ Dec07 0:01 | \_ /usr/bin/qemu-arm /bin/bash /usr/lib/portage/python3.4/ebuild.sh install
50 root 27219 0.0 0.0 4114872 13524 pts/4 Sl+ Dec07 0:00 | \_ /usr/bin/qemu-arm /bin/bash /usr/lib/portage/python3.4/ebuild.sh install
51 root 27268 0.0 0.0 4114892 8548 pts/4 Sl+ Dec07 0:00 | \_ /usr/bin/qemu-arm /bin/bash /usr/lib/portage/python3.4/ebuild-helpers/emake DESTDIR=/var/tmp/portage/www-client/firefox-50.0/image/ install
52 root 27275 0.0 0.0 4114892 7864 pts/4 Sl+ Dec07 0:00 | \_ /usr/bin/qemu-arm /usr/bin/make -j1 DESTDIR=/var/tmp/portage/www-client/firefox-50.0/image/ install
53 root 27284 0.0 0.0 4114896 7152 pts/4 Sl+ Dec07 0:00 | \_ /usr/bin/qemu-arm /usr/bin/make -C browser/installer install
54 root 27287 0.0 0.0 4115816 28128 pts/4 Sl+ Dec07 0:36 | \_ /usr/bin/qemu-arm /var/tmp/portage/www-client/firefox-50.0/work/firefox-50.0/ff/_virtualenv/bin/python /var/tmp/portage/www-client/firefox-50.0/work/firefox-50.0/toolkit/mozapps/installer/packager.py -DMOZ_APP_NAME=firefox -DPREF_DIR=defaults/preferences -DMOZ_GTK=1 -DMOZ_GTK3=1 -DMOZ_SYSTEM_NSPR=1 -DMOZ_SYSTEM_NSS=1 -DJAREXT= -DMOZ_CHILD_PROCESS_NAME=plugin-container -DDLL_PREFIX=lib -DDLL_SUFFIX=.so -DBIN_SUFFIX= -DDIR_MACOS= -DDIR_RESOURCES= -DBINPATH=bin -DRESPATH=bin -DLPROJ_ROOT=en -DMOZ_ICU_VERSION=56 -DMOZ_ICU_DATA_ARCHIVE -DMOZ_ICU_DBG_SUFFIX= -DICU_DATA_FILE=icudt56l.dat -DA11Y_LOG=1 -DACCESSIBILITY=1 -DATK_MAJOR_VERSION=2 -DATK_MINOR_VERSION=22 -DATK_REV_VERSION=0 -DATTRIBUTE_ALIGNED_MAX=64 -DBUILD_ARM_NEON=1 -DBUILD_CTYPES=1 -DCROSS_COMPILE= -DD_INO=d_ino -DENABLE_INTL_API=1 -DENABLE_MARIONETTE=1 -DENABLE_SYSTEM_EXTENSION_DIRS=1 -DEXPOSE_INTL_API=1 -DFIREFOX_VERSION=50.0 -DFORCE_PR_LOG=1 -DFUNCPROTO=15 -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_4 -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_4 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_32 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_26 -DGL_PROVIDER_GLX=1 -DHAVE_ALLOCA_H=1 -DHAVE_ARM_NEON=1 -DHAVE_ARM_SIMD=1 -DHAVE_BYTESWAP_H=1 -DHAVE_CLOCK_MONOTONIC=1 -DHAVE_DIRENT_H=1 -DHAVE_DLADDR=1 -DHAVE_DLOPEN=1 -DHAVE_FONTCONFIG_FCFREETYPE_H=1 -DHAVE_FT_BITMAP_SIZE_Y_PPEM=1 -DHAVE_FT_GLYPHSLOT_EMBOLDEN=1 -DHAVE_FT_LOAD_SFNT_TABLE=1 -DHAVE_GETOPT_H=1 -DHAVE_GMTIME_R=1 -DHAVE_I18N_LC_MESSAGES=1 -DHAVE_INTTYPES_H=1 -DHAVE_LANGINFO_CODESET=1 -DHAVE_LCHOWN=1 -DHAVE_LIBPNG=1 -DHAVE_LIBX11_XCB=1 -DHAVE_LIBXCB=1 -DHAVE_LIBXCB_SHM=1 -DHAVE_LIBXSS=1 -DHAVE_LINUX_IF_ADDR_H=1 -DHAVE_LINUX_QUOTA_H=1 -DHAVE_LINUX_RTNETLINK_H=1 -DHAVE_LOCALECONV=1 -DHAVE_LOCALTIME_R=1 -DHAVE_LSTAT64=1 -DHAVE_MALLINFO=1 -DHAVE_MALLOC_H=1 -DHAVE_MALLOC_USABLE_SIZE=1 -DHAVE_MEMALIGN=1 -DHAVE_MEMMEM=1 -DHAVE_NETINET_IN_H=1 -DHAVE_NL_TYPES_H=1 -DHAVE_POSIX_FADVISE=1 -DHAVE_POSIX_FALLOCATE=1 -DHAVE_POSIX_MEMALIGN=1 -DHAVE_PTHREAD_H=1 -DHAVE_RES_NINIT=1 -DHAVE_SETPRIORITY=1 -DHAVE_STAT64=1 -DHAVE_STDINT_H=1 -DHAVE_STRERROR=1 -DHAVE_STRNDUP=1 -DHAVE_SYSCALL=1 -DHAVE_SYS_QUEUE_H=1 -DHAVE_SYS_QUOTA_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_THREAD_TLS_KEYWORD=1 -DHAVE_TRUNCATE64=1 -DHAVE_UNISTD_H=1 -DHAVE_VALLOC=1 -DHAVE_VA_COPY=1 -DHAVE_VISIBILITY_ATTRIBUTE=1 -DHAVE_VISIBILITY_HIDDEN_ATTRIBUTE=1 -DHAVE__UNWIND_BACKTRACE=1 -DHAVE___CXA_DEMANGLE=1 -DJS_DEFAULT_JITREPORT_GRANULARITY=3 -DMALLOC_H=<malloc.h> -DMALLOC_USABLE_SIZE_CONST_PTR= -DMOZILLA_UAVERSION="50.0" -DMOZILLA_VERSION="50.0" -DMOZILLA_VERSION_U=50.0 -DMOZ_ACCESSIBILITY_ATK=1 -DMOZ_ADDON_SIGNING=1 -DMOZ_APP_UA_NAME="" -DMOZ_APP_UA_VERSION="50.0" -DMOZ_B2G_OS_NAME="" -DMOZ_B2G_VERSION="1.0.0" -DMOZ_BUILD_APP=browser -DMOZ_BUNDLED_FONTS=1 -DMOZ_CRASHREPORTER_ENABLE_PERCENT=100 -DMOZ_DATA_REPORTING=1 -DMOZ_DEFAULT_MOZILLA_FIVE_HOME="/usr/lib/firefox" -DMOZ_DISTRIBUTION_ID="org.mozilla" -DMOZ_DLL_SUFFIX=".so" -DMOZ_EME=1 -DMOZ_ENABLE_DBUS=1 -DMOZ_ENABLE_GIO=1 -DMOZ_ENABLE_SIGNMAR=1 -DMOZ_ENABLE_SKIA=1 -DMOZ_ENABLE_STARTUP_NOTIFICATION=1 -DMOZ_ENABLE_XREMOTE=1 -DMOZ_FEEDS=1 -DMOZ_FFMPEG=1 -DMOZ_FMP4=1 -DMOZ_GAMEPAD=1 -DMOZ_GLUE_IN_PROGRAM=1 -DMOZ_INSTRUMENT_EVENT_LOOP=1 -DMOZ_JEMALLOC4=1 -DMOZ_JSDOWNLOADS=1 -DMOZ_LOGGING=1 -DMOZ_MACBUNDLE_ID=org.mozilla.firefox -DMOZ_MEMORY=1 -DMOZ_OFFICIAL_BRANDING=1 -DMOZ_PAY=1 -DMOZ_PEERCONNECTION=1 -DMOZ_PERMISSIONS=1 -DMOZ_PHOENIX=1 -DMOZ_PLACES=1 -DMOZ_RAW=1 -DMOZ_REPLACE_MALLOC=1 -DMOZ_SAFE_BROWSING=1 -DMOZ_SAMPLE_TYPE_S16=1 -DMOZ_SCTP=1 -DMOZ_SECUREELEMENT=1 -DMOZ_SERVICES_HEALTHREPORT=1 -DMOZ_SRTP=1 -DMOZ_STACKWALKING=1 -DMOZ_STATIC_JS=1 -DMOZ_TREE_CAIRO=1 -DMOZ_TREE_PIXMAN=1 -DMOZ_TREMOR=1 -DMOZ_UPDATE_CHANNEL=default -DMOZ_URL_CLASSIFIER=1 -DMOZ_USER_DIR=".mozilla" -DMOZ_VPX_ERROR_CONCEALMENT=1 -DMOZ_VPX_NO_MEM_REPORTING=1 -DMOZ_WEBGL_CONFORMANT=1 -DMOZ_WEBM_ENCODER=1 -DMOZ_WEBRTC=1 -DMOZ_WEBRTC_ASSERT_ALWAYS=1 -DMOZ_WEBRTC_SIGNALING=1 -DMOZ_WEBSPEECH=1 -DMOZ_WEBSPEECH_TEST_BACKEND=1 -DMOZ_WIDGET_GTK=3 -DMOZ_X11=1 -DMOZ_XUL=1 -DNO_NSPR_10_SUPPORT=1 -DNS_PRINTING=1 -DNS_PRINT_PREVIEW=1 -DRELEASE_BUILD=1 -DSPIDERMONKEY_PROMISE=1 -DSTATIC_JS_API=1 -DSTDC_HEADERS=1 -DTARGET_XPCOM_ABI="arm-eabi-gcc3" -DUSE_SKIA=1 -DUSE_SKIA_GPU=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DVA_COPY=va_copy -DVPX_ARM_ASM=1 -DXP_LINUX=1 -DXP_UNIX=1 -D_REENTRANT=1 -DAB_CD=en-US --format omni --removals /var/tmp/portage/www-client/firefox-50.0/work/firefox-50.0/browser/installer/removed-files.in --ignore-errors --optimizejars /var/tmp/portage/www-client/firefox-50.0/work/firefox-50.0/browser/installer/package-manifest.in ../../dist ../../dist/firefox
55 root 27319 70.8 0.5 5506364 176088 pts/4 Rl+ Dec07 3638:02 | \_ /usr/bin/qemu-arm /var/tmp/portage/www-client/firefox-50.0/work/firefox-50.0/ff/dist/bin/xpcshell -g /var/tmp/portage/www-client/firefox-50.0/work/firefox-50.0/ff/dist/bin/ -a /var/tmp/portage/www-client/firefox-50.0/work/firefox-50.0/ff/dist/bin/ -f /var/tmp/portage/www-client/firefox-50.0/work/firefox-50.0/toolkit/mozapps/installer/precompile_cache.js -e precompile_startupcache("resource://gre/");

Attachments

File name MIME type
build.log.gz application/octet-stream