Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 651222 - dev-lang/rust-1.23.0-r1 - error: Could not compile `rustc`. Caused by: process didn't exit successfully: `/dev/shm/portage/dev-lang/rust-1.23.0-r1/work/rustc-1.23.0-src/build/bootstrap/debug/rustc (signal: 9, SIGKILL: kill)
Summary: dev-lang/rust-1.23.0-r1 - error: Could not compile `rustc`. Caused by: proces...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Rust Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-23 04:13 UTC by tspn
Modified: 2018-10-01 08:25 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,665.49 KB, text/plain)
2018-03-23 04:13 UTC, tspn
Details
emerge --info (emerge-info,5.43 KB, text/plain)
2018-03-23 04:14 UTC, tspn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tspn 2018-03-23 04:13:45 UTC
Created attachment 524946 [details]
build.log

The attachment is the build log of 'emerge --ask dev-lang/rust-1.23.0-r1'.
Here is the output of "emerge --info '=dev-lang/rust-1.23.0-r1::gentoo'".

```
Portage 2.3.24 (python 3.5.4-final-0, default/linux/amd64/17.0/desktop, gcc-6.4.0, glibc-2.25-r10, 4.9.76-gentoo-r1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.9.76-gentoo-r1-x86_64-Intel-R-_Core-TM-_i7-3667U_CPU_@_2.00GHz-with-gentoo-2.4.1
KiB Mem:     5994692 total,   2866980 free
KiB Swap:     524284 total,       248 free
Timestamp of repository gentoo: Fri, 16 Mar 2018 00:45:01 +0000
Head commit of repository gentoo: 5fa8ca5f43c4aa55bbb641e494db9ea76d4e57ee
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.3::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.4-r1::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.15.1-r2::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            6.4.0-r1::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r10::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: no
    sync-rsync-extra-opts: 

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -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/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.iij.ad.jp/pub/linux/gentoo/ ftp://ftp.iij.ad.jp/pub/linux/gentoo/ rsync://ftp.iij.ad.jp/pub/linux/gentoo/ http://ftp.jaist.ac.jp/pub/Linux/Gentoo/ rsync://ftp.jaist.ac.jp/pub/Linux/Gentoo/ ftp://ftp.jaist.ac.jp/pub/Linux/Gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
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="/dev/shm"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit crypt cups cxx dbus dri dts dvd dvdr emacs emboss encode exif fam flac fortran gdbm gif glamor gpm gtk ibus iconv ipv6 jpeg lcms ldap libnotify mad mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt3support qt5 readline sdl seccomp spell ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xinerama xml xv xvid zlib" ABI_X86="64" 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="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx f16c mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev synapatics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby22 ruby23" USERLAND="GNU" VIDEO_CARDS="intel i915" 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, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

```
Comment 1 tspn 2018-03-23 04:14:54 UTC
Created attachment 524948 [details]
emerge --info
Comment 2 tspn 2018-03-23 04:21:20 UTC
Here is the error messages of "emerge dev-lang/rust-1.23.0-r1". The complete build log is the one of the attachements.
```
error: Could not compile `rustc`.

Caused by:
  process didn't exit successfully: `/dev/shm/portage/dev-lang/rust-1.23.0-r1/work/rustc-1.23.0-src/build/bootstrap/debug/rustc --crate-name rustc src/librustc/lib.rs --error-format json --crate-type dylib --emit=dep-info,link -C prefer-dynamic -C opt-level=2 -C metadata=96213c2fe8dc80c2 -C extra-filename=-96213c2fe8dc80c2 --out-dir /dev/shm/portage/dev-lang/rust-1.23.0-r1/work/rustc-1.23.0-src/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps --target x86_64-unknown-linu x-gnu -L dependency=/dev/shm/portage/dev-lang/rust-1.23.0-r1/work/rustc-1.23.0-src/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps -L dependency=/dev/shm/portage/dev-lang/rust-1.23.0-r1/work/rustc-1.23.0-src/build/x86_64-unknown-linux-gnu/stage0-rustc/release/deps --extern rustc_const_math=/dev/shm/portage/dev-lang/rust-1.23.0-r1/work/rustc-1.23.0-src/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_const_math-0cf7a12a8a298946.so --extern owning_ref=/dev/shm/portage/dev-lang/rust-1.23.0-r1/work/rustc-1.23.0-src/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libowning_ref-e4b3d968eb103c5c.rlib --extern serialize=/dev/shm/portage/dev-lang/rust-1.23.0-r1/work/rustc-1.23.0-src/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libserialize-755755463e26ad06.so --extern serialize=/dev/shm/portage/dev-lang/rust-1.23.0-r1/work/rustc-1.23.0-src/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libserialize-755755463e26ad06.rlib --extern syntax=/dev/shm/portage/dev-lang/rust-1.23.0-r1/work/rustc-1.23.0-src/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libsyntax-4c1e2249d2668c0d.so --extern fmt_macros=/dev/shm/portage/dev-lang/rust-1.23.0-r1/work/rustc-1.23.0-src/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libfmt_macros-8ee71bedbae5e577.so --extern rustc_back=/dev/shm/portage/dev-lang/rust-1.23.0-r1/work/rustc-1.23.0-src/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_back-3007ab740e61410b.so --extern jobserver=/dev/shm/portage/dev-lang/rust-1.23.0-r1/work/rustc-1.23.0-src/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libjobserver-6a23524a719a6c94.rlib --extern rustc_errors=/dev/shm/portage/dev-lang/rust-1.23.0-r1/work/rustc-1.23.0-src/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_errors-7496ec0e8b62dfcb.so --extern arena=/dev/shm/portage/dev-lang/rust-1.23.0-r1/work/rustc-1.23.0-src/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libarena-b231379943620049.so --extern graphviz=/dev/shm/portage/dev-lang/rust-1.23.0-r1/work/rustc-1.23.0-src/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libgraphviz-63531a8737536e00.so --extern syntax_pos=/dev/shm/portage/dev-lang/rust-1.23.0-r1/work/rustc-1.23.0-src/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libsyntax_pos-57613c44ad58fe75.so --extern log=/dev/shm/portage/dev-lang/rust-1.23.0-r1/work/rustc-1.23.0-src/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/liblog-3dd53f037f6b33a5.rlib --extern bitflags=/dev/shm/portage/dev-lang/rust-1.23.0-r1/work/rustc-1.23.0-src/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libbitflags-4b6b260236b3ea13.rlib --extern flate2=/dev/shm/portage/dev-lang/rust-1.23.0-r1/work/rustc-1.23.0-src/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/libflate2-6ab1049553d940c2.rlib --extern rustc_data_structures=/dev/shm/portage/dev-lang/rust-1.23.0-r1/work/rustc-1.23.0-src/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_data_structures-708c295179a9b8b2.so -L native=/dev/shm/portage/dev-lang/rust-1.23.0-r1/work/rustc-1.23.0-src/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/build/miniz-sys-5eaad031d93be2b9/out` (signal: 9, SIGKILL: kill)
warning: build failed, waiting for other jobs to finish...
error: build failed
thread 'main' panicked at 'command did not execute successfully: "/dev/shm/portage/dev-lang/rust-1.23.0-r1/work/rust-stage0/bin/cargo" "build" "--target" "x86_64-unknown-linux-gnu" "-j" "2" "-v" "--release" "--locked" "--frozen" "--features" " jemalloc llvm" "--manifest-path" "/dev/shm/portage/dev-lang/rust-1.23.0-r1/work/rustc-1.23.0-src/src/rustc/Cargo.toml" "--message-format" "json"
expected success, got: exit code: 101', src/bootstrap/compile.rs:877:8
note: Run with `RUST_BACKTRACE=1` for a backtrace.
Traceback (most recent call last):
  File "./x.py", line 20, in <module>
    bootstrap.main()
  File "/dev/shm/portage/dev-lang/rust-1.23.0-r1/work/rustc-1.23.0-src/src/bootstrap/bootstrap.py", line 758, in main
    bootstrap()
  File "/dev/shm/portage/dev-lang/rust-1.23.0-r1/work/rustc-1.23.0-src/src/bootstrap/bootstrap.py", line 749, in bootstrap
    run(args, env=env, verbose=build.verbose)
  File "/dev/shm/portage/dev-lang/rust-1.23.0-r1/work/rustc-1.23.0-src/src/bootstrap/bootstrap.py", line 148, in run
    raise RuntimeError(err)
RuntimeError: failed to run: /dev/shm/portage/dev-lang/rust-1.23.0-r1/work/rustc-1.23.0-src/build/bootstrap/debug/bootstrap build --verbose --config=/dev/shm/portage/dev-lang/rust-1.23.0-r1/work/rustc-1.23.0-src/config.toml -j2
 * ERROR: dev-lang/rust-1.23.0-r1::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 124:  Called src_compile
 *   environment, line 2181:  Called die
 * The specific snippet of code:
 *       ./x.py build --verbose --config="${S}"/config.toml -j$(makeopts_jobs) || die
 * 
 * If you need support, post the output of `emerge --info '=dev-lang/rust-1.23.0-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/rust-1.23.0-r1::gentoo'`.
 * The complete build log is located at '/dev/shm/portage/dev-lang/rust-1.23.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/dev/shm/portage/dev-lang/rust-1.23.0-r1/temp/environment'.
 * Working directory: '/dev/shm/portage/dev-lang/rust-1.23.0-r1/work/rustc-1.23.0-src'
 * S: '/dev/shm/portage/dev-lang/rust-1.23.0-r1/work/rustc-1.23.0-src'

>>> Failed to emerge dev-lang/rust-1.23.0-r1, Log file:

>>>  '/dev/shm/portage/dev-lang/rust-1.23.0-r1/temp/build.log'

 * Messages for package dev-lang/rust-1.23.0-r1:

 * ERROR: dev-lang/rust-1.23.0-r1::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 124:  Called src_compile
 *   environment, line 2181:  Called die
 * The specific snippet of code:
 *       ./x.py build --verbose --config="${S}"/config.toml -j$(makeopts_jobs) || die
 * 
 * If you need support, post the output of `emerge --info '=dev-lang/rust-1.23.0-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/rust-1.23.0-r1::gentoo'`.
 * The complete build log is located at '/dev/shm/portage/dev-lang/rust-1.23.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/dev/shm/portage/dev-lang/rust-1.23.0-r1/temp/environment'.
 * Working directory: '/dev/shm/portage/dev-lang/rust-1.23.0-r1/work/rustc-1.23.0-src'
 * S: '/dev/shm/portage/dev-lang/rust-1.23.0-r1/work/rustc-1.23.0-src'
```
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2018-03-23 07:56:45 UTC
Comment on attachment 524948 [details]
emerge --info

You ran out of memory. Not sure why 6 gigabytes was not enough.
Comment 4 gentoo 2018-09-30 21:06:19 UTC
The same issue plagued me ever since www-client/firefox began to depend on dev-lang/rust and dev-util/cargo. My computer has 8GB RAM with /var/tmp/portage and /tmp mounted as tmpfs. Firefox can be built with this configuration. To build Rust and Cargo, I had to unmount *both*.
Comment 5 Dirkjan Ochtman (RETIRED) gentoo-dev 2018-10-01 08:25:20 UTC
I'm not sure there's a lot I can do. You could try reducing -j when building rust or cargo.