View previous topic :: View next topic |
Author |
Message |
fugrat n00b
Joined: 29 Mar 2004 Posts: 8
|
Posted: Sat Jan 04, 2020 4:03 pm Post subject: error in spidermonkey on first @world emerge |
|
|
Hi
it has been a while since I have played around with Gentoo so I am trying it out on a VM at present. I am following the current handbook and have got to 'Updating the @world set' in the base installation section. I have changed my profile to the generic desktop profile as below
Code: |
[16] default/linux/amd64/17.1 (stable)
[17] default/linux/amd64/17.1/selinux (stable)
[18] default/linux/amd64/17.1/hardened (stable)
[19] default/linux/amd64/17.1/hardened/selinux (stable)
[20] default/linux/amd64/17.1/desktop (stable) *
[21] default/linux/amd64/17.1/desktop/gnome (stable)
[22] default/linux/amd64/17.1/desktop/gnome/systemd (stable)
[23] default/linux/amd64/17.1/desktop/plasma (stable)
|
It is failing on spidermonkey with the below errors:
Code: |
{standard input}: Assembler messages:
{standard input}:263444: Warning: end of file not at end of a line; newline inserted
{standard input}:264561: Error: unknown pseudo-op: `.qu'
[01m[Kx86_64-pc-linux-gnu-g++:[m[K [01;31m[Kfatal error: [m[KKilled signal terminated program cc1plus
compilation terminated.
make[3]: *** [/var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r2/work/mozjs-60.5.2/config/rules.mk:1056: Interpreter.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r2/work/mozjs-60.5.2/jsobj/js/src'
make[2]: *** [/var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r2/work/mozjs-60.5.2/config/recurse.mk:73: js/src/target] Error 2
make[2]: Leaving directory '/var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r2/work/mozjs-60.5.2/jsobj'
make[1]: *** [/var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r2/work/mozjs-60.5.2/config/recurse.mk:33: compile] Error 2
make[1]: Leaving directory '/var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r2/work/mozjs-60.5.2/jsobj'
make: *** [/var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r2/work/mozjs-60.5.2/config/rules.mk:442: default] Error 2
[31;01m*[0m ERROR: dev-lang/spidermonkey-60.5.2_p0-r2::gentoo failed (compile phase):
[31;01m*[0m emake failed
[31;01m*[0m
|
emerge info:
Code: |
(chroot) ▒livecd /etc/portage # emerge --info '=dev-lang/spidermonkey-60.5.2_p0-r2::gentoo'
Portage 2.3.79 (python 3.6.9-final-0, default/linux/amd64/17.1/desktop, gcc-9.2.0, glibc-2.29-r7, 4.19.86-gentoo-x86_64 x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-4.19.86-gentoo-x86_64-x86_64-Intel-R-_Core-TM-_i5-8350U_CPU_@_1.70GHz-with-gentoo-2.6
KiB Mem: 1002792 total, 798028 free
KiB Swap: 1048572 total, 972980 free
Timestamp of repository gentoo: Sat, 04 Jan 2020 00:45:01 +0000
Head commit of repository gentoo: 371398bf74fa53a6ba958e029aa966c963072d58
sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.32 p2) 2.32.0
app-shells/bash: 4.4_p23-r1::gentoo
dev-lang/perl: 5.30.1::gentoo
dev-lang/python: 2.7.17::gentoo, 3.6.9::gentoo
sys-apps/baselayout: 2.6-r1::gentoo
sys-apps/openrc: 0.41.2::gentoo
sys-apps/sandbox: 2.13::gentoo
sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake: 1.16.1-r1::gentoo
sys-devel/binutils: 2.32-r1::gentoo
sys-devel/gcc: 9.2.0-r2::gentoo
sys-devel/gcc-config: 2.1::gentoo
sys-devel/libtool: 2.4.6-r3::gentoo
sys-devel/make: 4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers)
sys-libs/glibc: 2.29-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-max-age: 24
sync-rsync-verify-metamanifest: yes
sync-rsync-extra-opts:
sync-rsync-verify-jobs: 1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/var/cache/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 -pipe -march=native"
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 pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=native"
GENTOO_MIRRORS="ftp://mirror.bytemark.co.uk/gentoo/ https://mirror.bytemark.co.uk/gentoo/ http://mirror.bytemark.co.uk/gentoo/ rsync://mirror.bytemark.co.uk/gentoo/ http://mirrors.evowise.com/gentoo/ https://mirrors.evowise.com/gentoo/ https://www.mirrorservice.org/sites/distfiles.gentoo.org/ http://www.mirrorservice.org/sites/distfiles.gentoo.org/ ftp://ftp.mirrorservice.org/sites/distfiles.gentoo.org/ rsync://rsync.mirrorservice.org/distfiles.gentoo.org/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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"
USE="X a52 aac acl acpi alsa amd64 berkdb branding bzip2 cairo cdda cdr cli consolekit crypt cxx dbus dri dts dvd dvdr emboss encode exif fam flac fortran gdbm gif gpm gtk iconv icu jpeg lcms ldap libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt5 readline sdl seccomp spell split-usr ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25" 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 steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
|
emerge -pqv
Code: |
(chroot) ▒livecd /etc/portage # emerge -pqv '=dev-lang/spidermonkey-60.5.2_p0-r2::gentoo'
[ebuild N ] dev-lang/spidermonkey-60.5.2_p0-r2 USE="jit system-icu -custom-cflags -custom-optimization -debug -minimal -test"
|
The complete log file is over 512kb so I haev had to split across 2 pastebins, please see https://pastebin.com/zurhNYK8 and https://pastebin.com/aztvmP1h
Thanks
Chris |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30954 Location: here
|
Posted: Sat Jan 04, 2020 4:09 pm Post subject: |
|
|
Code: | [01m[Kx86_64-pc-linux-gnu-g++:[m[K [01;31m[Kfatal error: [m[KKilled signal terminated program cc1plus |
Out of memory error, you should increase ram of your VM _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
Ionen Developer
Joined: 06 Dec 2018 Posts: 2727
|
Posted: Sat Jan 04, 2020 4:14 pm Post subject: |
|
|
As said above. But that aside, I see MAKEOPTS is unset for you but some build system use jobserver or similar by default if unspecified (not sure for spidermonkey but I wouldn't be surprised), so could try setting MAKEOPTS to a low -jX, possibly -j1. But if your host can afford, just give your VM more ram and instead use a higher -jX so testing goes quicker.
C++ on bigger packages can need an obscene amount of ram at times. Even worse if this was rust (3.5GB rss on a single rustc process always fun to see). |
|
Back to top |
|
|
fugrat n00b
Joined: 29 Mar 2004 Posts: 8
|
Posted: Sat Jan 04, 2020 4:41 pm Post subject: |
|
|
Thanks both, I am just retrying having increased my RAM to 4GB. Just out of interest how did you tell it is out of memory from the message below
fedeliallalinea wrote: | Code: | [01m[Kx86_64-pc-linux-gnu-g++:[m[K [01;31m[Kfatal error: [m[KKilled signal terminated program cc1plus |
Out of memory error, you should increase ram of your VM |
|
|
Back to top |
|
|
Ionen Developer
Joined: 06 Dec 2018 Posts: 2727
|
Posted: Sat Jan 04, 2020 4:47 pm Post subject: |
|
|
It means something went out of its way to terminate it rather than just fail (like with kill), and it's a common occurrence for the kernel to do this if out of memory, plus your emerge --info is saying you only have 1GB(+1GB swap) so that makes it even more likely
Have a look at the "dmesg" output and you'll likely have a line about this (if haven't rebooted the VM since anyway, but you can check if it happens again). |
|
Back to top |
|
|
Banana Veteran
Joined: 21 May 2004 Posts: 1402 Location: Germany
|
|
Back to top |
|
|
phoebos n00b
Joined: 12 Dec 2020 Posts: 2
|
Posted: Sat Dec 12, 2020 12:07 pm Post subject: |
|
|
Ionen wrote: | It means something went out of its way to terminate it rather than just fail (like with kill), and it's a common occurrence for the kernel to do this if out of memory, plus your emerge --info is saying you only have 1GB(+1GB swap) so that makes it even more likely
|
I think I'm having this problem, but I'm running on bare metal and can't add more RAM - perhaps I could add more swap, would that work? |
|
Back to top |
|
|
Etal Veteran
Joined: 15 Jul 2005 Posts: 1931
|
Posted: Sat Dec 12, 2020 2:25 pm Post subject: |
|
|
You can add swap, but first I suggest first trying to run it with MAKEOPTS="-j1" so that it runs one job at a time. With less processes it will use less memory.
Code: | # MAKEOPTS="-j1" emerge -av dev-lang/spidermonkey |
|
|
Back to top |
|
|
phoebos n00b
Joined: 12 Dec 2020 Posts: 2
|
Posted: Sun Dec 13, 2020 12:05 am Post subject: |
|
|
Etal wrote: | You can add swap, but first I suggest first trying to run it with MAKEOPTS="-j1" so that it runs one job at a time.
|
In fact I'm already doing this, my ancient machine has only one core to start with. Adding a swap file let the build complete. |
|
Back to top |
|
|
|