Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
New install on my desktop | failed to emerge spidermonkey
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
MerrinX
Tux's lil' helper
Tux's lil' helper


Joined: 20 Dec 2019
Posts: 84

PostPosted: Tue Feb 01, 2022 11:32 pm    Post subject: New install on my desktop | failed to emerge spidermonkey Reply with quote

I had to boot from arch live and chroot from there into Gentoo, because I have broadcom wireless and no way using cable Also tried usb thetering, so last option was using Arch. Everything went fine until getting errors while compiling spidermonkey.

build log
Code:

checking for _aligned_malloc in malloc.h... no
updating cache ./config.cache
creating ./config.data
Creating config.status
Traceback (most recent call last):
  File "/var/tmp/portage/dev-lang/spidermonkey-78.15.0/work/firefox-78.15.0/js/src/../../configure.py", line 181, in <module>
    sys.exit(main(sys.argv))
  File "/var/tmp/portage/dev-lang/spidermonkey-78.15.0/work/firefox-78.15.0/js/src/../../configure.py", line 57, in main
    return config_status(config)
  File "/var/tmp/portage/dev-lang/spidermonkey-78.15.0/work/firefox-78.15.0/js/src/../../configure.py", line 176, in config_status
    return config_status(args=[], **normalize(sanitized_config))
  File "/var/tmp/portage/dev-lang/spidermonkey-78.15.0/work/firefox-78.15.0/python/mozbuild/mozbuild/config_status.py", line 134, in config_status
    reader = BuildReader(env)
  File "/var/tmp/portage/dev-lang/spidermonkey-78.15.0/work/firefox-78.15.0/python/mozbuild/mozbuild/frontend/reader.py", line 868, in __init__
    self._gyp_worker_pool = ProcessPoolExecutor(max_workers=max_workers)
  File "/usr/lib/python3.10/concurrent/futures/process.py", line 650, in __init__
    self._call_queue = _SafeQueue(
  File "/usr/lib/python3.10/concurrent/futures/process.py", line 165, in __init__
    super().__init__(max_size, ctx=ctx)
  File "/usr/lib/python3.10/multiprocessing/queues.py", line 43, in __init__
    self._rlock = ctx.Lock()
  File "/usr/lib/python3.10/multiprocessing/context.py", line 68, in Lock
    return Lock(ctx=self.get_context())
  File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 162, in __init__
    SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx)
  File "/usr/lib/python3.10/multiprocessing/synchronize.py", line 57, in __init__
    sl = self._semlock = _multiprocessing.SemLock(
PermissionError: [Errno 13] Permission denied

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/dev-lang/spidermonkey-78.15.0/work/build/config.log
 * ERROR: dev-lang/spidermonkey-78.15.0::gentoo failed (configure phase):
 *   econf failed
 *
 * Call stack:
 *               ebuild.sh, line  127:  Called src_configure
 *             environment, line 3623:  Called econf '--host=x86_64-pc-linux-gnu' '--target=x86_64-pc-linux-gnu' '--disable-jemalloc' '--disable-optimize' '--disable-strip' '--enable-readline' '--enable-shared-js' '--with-intl-api' '--with-system-icu' '--with-system-nspr' '--with-system-zlib' '--with-toolchain-prefix=x86_64-pc-linux-gnu-' '--disable-debug' '--enable-jit' '--disable-tests' '--enable-rust-simd' 'XARGS=/usr/bin/xargs'
 *        phase-helpers.sh, line  711:  Called __helpers_die 'econf failed'
 *   isolated-functions.sh, line  112:  Called die
 * The specific snippet of code:
 *         die "$@"
 *
 * If you need support, post the output of `emerge --info '=dev-lang/spidermonkey-78.15.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/spidermonkey-78.15.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-lang/spidermonkey-78.15.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/spidermonkey-78.15.0/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-lang/spidermonkey-78.15.0/work/build'
 * S: '/var/tmp/portage/dev-lang/spidermonkey-78.15.0/work/firefox-78.15.0/js/src'



Emerge info
Code:
# emerge
emerge: command-line interface to the Portage system
Usage:
   emerge [ options ] [ action ] [ ebuild | tbz2 | file | @set | atom ] [ ... ]
   emerge [ options ] [ action ] < @system | @world >
   emerge < --sync | --metadata | --info >
   emerge --resume [ --pretend | --ask | --skipfirst ]
   emerge --help
Options: -[abBcCdDefgGhjkKlnNoOpPqrsStuUvVwW]
          [ --color < y | n >            ] [ --columns    ]
          [ --complete-graph             ] [ --deep       ]
          [ --jobs JOBS ] [ --keep-going ] [ --load-average LOAD            ]
          [ --newrepo   ] [ --newuse     ] [ --noconfmem  ] [ --nospinner   ]
          [ --oneshot   ] [ --onlydeps   ] [ --quiet-build [ y | n ]        ]
          [ --reinstall changed-use      ] [ --with-bdeps < y | n >         ]
Actions:  [ --depclean | --list-sets | --search | --sync | --version        ]

   For more help consult the man page.


# emerge --info
Portage 3.0.30 (python 3.9.9-final-0, default/linux/amd64/17.1/desktop, gcc-11.2.1, glibc-2.34-r7, 5.16.4-arch1-1 x86_64)
=================================================================
System uname: Linux-5.16.4-arch1-1-x86_64-AMD_Ryzen_5_5600X_6-Core_Processor-with-glibc2.34
KiB Mem:    49320284 total,  32111264 free
KiB Swap:   41983996 total,  41983996 free
Timestamp of repository gentoo: Tue, 01 Feb 2022 19:00:01 +0000
Head commit of repository gentoo: 74530679b923373acc5265cb46ed1740765a176c
sh bash 5.1_p16
ld GNU ld (Gentoo 2.37_p1 p2) 2.37
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-lang/perl:             5.34.0-r6::gentoo
dev-lang/python:           3.9.9-r1::gentoo, 3.10.0_p1-r1::gentoo
dev-lang/rust:             1.58.1::gentoo
dev-util/cmake:            3.22.2::gentoo
dev-util/meson:            0.60.3::gentoo
sys-apps/baselayout:       2.8::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::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/llvm:            13.0.0::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.16::gentoo (virtual/os-headers)
sys-libs/glibc:            2.34-r7::gentoo
Repositories:

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

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE Broadcom"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --jobs=7 --load-average=7"
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="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified 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="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j10"
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="/usr/bin/zsh"
USE="X a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus dri dts dvd dvdr elgind elogind encode exif ffmpeg flac fortran gdbm gif gpm gtk gui iconv icu ipv6 jpeg lcms libglvnd libnotify libtirpc libvirt mad mmx mng mp3 mp4 mpeg multilib ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio readline sdl seccomp spell split-usr sqlite sse sse2 ssl startup-notification svg threads tiff truetype udev udisks unicode upower usb vorbis wxwidgets x x264 xattr xcb xinerama xml xorg xv xvid zlib" 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="mmx mmxext sse sse2" 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" GRUB_PLATFORMS="pcs efi-64" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" 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="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" 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"



I did follow this, but not sure if I have made it correct
Code:

 Warning
When using non-Gentoo installation media, this might not be sufficient. Some distributions make /dev/shm a symbolic link to /run/shm/ which, after the chroot, becomes invalid. Making /dev/shm/ a proper tmpfs mount up front can fix this:
root #test -L /dev/shm && rm /dev/shm && mkdir /dev/shm
root #mount --types tmpfs --options nosuid,nodev,noexec shm /dev/shm
Also ensure that mode 1777 is set:
root #chmod 1777 /dev/shm /run/shm

Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Tue Feb 01, 2022 11:44 pm    Post subject: Reply with quote

So inside the chroot plz run
Code:

ls -ld /dev/shm

Do you see
Code:

drwxrwxrwt 2 root root 40 Feb  2 01:42 /dev/shm


?
_________________
:)
Back to top
View user's profile Send private message
MerrinX
Tux's lil' helper
Tux's lil' helper


Joined: 20 Dec 2019
Posts: 84

PostPosted: Tue Feb 01, 2022 11:50 pm    Post subject: Reply with quote

alamahant wrote:
So inside the chroot plz run
Code:

ls -ld /dev/shm

Do you see
Code:

drwxrwxrwt 2 root root 40 Feb  2 01:42 /dev/shm


?


It returns nothing...
What have gone wrong here?
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Wed Feb 02, 2022 12:08 am    Post subject: Reply with quote

Quote:

It returns nothing...
What have gone wrong here?

Nothing scary.
just inside chroot issue
Code:

mount --types tmpfs --options nosuid,nodev,noexec shm /dev/shm

then re-emerge spidermonkey.
You can even use "arch-chroot" to enter the chroot and see if it works.
If you feel playful..
_________________
:)


Last edited by alamahant on Wed Feb 02, 2022 12:15 am; edited 2 times in total
Back to top
View user's profile Send private message
MerrinX
Tux's lil' helper
Tux's lil' helper


Joined: 20 Dec 2019
Posts: 84

PostPosted: Wed Feb 02, 2022 12:14 am    Post subject: Reply with quote

alamahant wrote:
Quote:

It returns nothing...
What have gone wrong here?

Nothing scary.
just inside chroot issue
Code:

mount --types tmpfs --options nosuid,nodev,noexec shm /dev/shm

then re-emerge spidermonkey.


So it was supposed to be inside chroot??
I have done it before, make sense now
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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