Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 644580 - sys-devel/gcc-6.4.0-r1 fails to build: {standard input}: Internal error (Segmentation fault).
Summary: sys-devel/gcc-6.4.0-r1 fails to build: {standard input}: Internal error (Segm...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-14 18:17 UTC by Mauro Maroni
Modified: 2018-01-15 22:48 UTC (History)
2 users (show)

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


Attachments
emerge --info '=sys-devel/gcc-6.4.0-r1::gentoo' (emerge-info-gcc.txt,5.47 KB, text/plain)
2018-01-14 18:18 UTC, Mauro Maroni
Details
emerge -pqv '=sys-devel/gcc-6.4.0-r1::gentoo' (emerge-pqv-gcc.txt,280 bytes, text/plain)
2018-01-14 18:19 UTC, Mauro Maroni
Details
environment (environment,160.21 KB, text/plain)
2018-01-14 18:22 UTC, Mauro Maroni
Details
gcc-build-logs.tar.bz2 (gcc-build-logs.tar.bz2,258.20 KB, application/x-bzip)
2018-01-14 18:23 UTC, Mauro Maroni
Details
build.log (build.log.bz2,98.59 KB, application/x-bzip)
2018-01-14 18:25 UTC, Mauro Maroni
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mauro Maroni 2018-01-14 18:17:42 UTC
gcc-6.4.0-r1 fails to compile when making regular world update.

Reproducible: Always

Steps to Reproduce:
1.emerge -av --deep --update --newuse --with-bdeps=y @world

Actual Results:  
{standard input}: Assembler messages:
{standard input}: Internal error (Segmentation fault).
Please report this bug.



Portage 2.3.13 (python 3.5.4-final-0, default/linux/amd64/17.0/desktop/plasma, gcc-6.4.0, glibc-2.25-r9, 4.12.12-gentoo x86_64)
=================================================================
System uname: Linux-4.12.12-gentoo-x86_64-AMD_FX-tm-8150_Eight-Core_Processor-with-gentoo-2.4.1
KiB Mem:     8123856 total,     94684 free
KiB Swap:    8392296 total,   7831400 free
Timestamp of repository gentoo: Sun, 14 Jan 2018 05:45:01 +0000
Head commit of repository gentoo: d232fdd0a3e616e2e212d79dfd160c6ddc5aa29e
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::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.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            6.4.0::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-r9::gentoo
Repositories:

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /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="-march=native -O2 -pipe -fomit-frame-pointer"
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"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en es"
MAKEOPTS="-j9"
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="/var/tmp"
USE="3dnow X a52 aac acl acpi activities alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdda cddb cdparanoia cdr cli consolekit crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fortran gdbm gif glamor gpm hddtemp iconv ios ipod ipv6 jabber jpeg kde kipi kwallet lame lcms ldap libnotify lm_sensors mad mms mng modules mozilla mp3 mp4 mpeg msn multilib ncurses nls nptl nsplugin nvidia ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds qml qt3support qt5 quicktime readline samba sdl seccomp semantic-desktop smp snmp sound sox spell sse3 ssl startup-notification svg taglib tcpd threads tiff truetype udev udisks unicode upower usb v4l vdpau vnc vorbis webkit widgets win32codecs wxwidgets x264 xattr xcb xcomposite xine xml xmpp xv xvid xvmc zlib" ABI_X86="64 32" ALSA_CARDS="hda-intel" 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 fma4 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" 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="efi-64 pc" INPUT_DEVICES="evdev keyboard mouse" 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" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Mauro Maroni 2018-01-14 18:18:50 UTC
Created attachment 514796 [details]
emerge --info '=sys-devel/gcc-6.4.0-r1::gentoo'
Comment 2 Mauro Maroni 2018-01-14 18:19:20 UTC
Created attachment 514798 [details]
emerge -pqv '=sys-devel/gcc-6.4.0-r1::gentoo'
Comment 3 Ben Kohler gentoo-dev 2018-01-14 18:19:56 UTC
Does dmesg tell what binary is segfaulting?
Comment 4 Mauro Maroni 2018-01-14 18:22:45 UTC
Created attachment 514800 [details]
environment
Comment 5 Mauro Maroni 2018-01-14 18:23:16 UTC
Created attachment 514802 [details]
gcc-build-logs.tar.bz2
Comment 6 Mauro Maroni 2018-01-14 18:25:27 UTC
Created attachment 514804 [details]
build.log
Comment 7 Mauro Maroni 2018-01-14 19:14:05 UTC
(In reply to Ben Kohler from comment #3)
> Does dmesg tell what binary is segfaulting?

there are two segfault messages in dmesg, one from chromium and one from vlc, not sure if they are related to this anyway. Just in case:

[430690.901164] Chrome_ChildThr[23395]: segfault at 0 ip 0000559e99a5dbd1 sp 00007f012d7fe490 error 6 in plugin-container[559e99a56000+41000]
[487108.607417] vlc[32102]: segfault at 7f1100000000 ip 00007f1205e729a2 sp 00007f1208efd900 error 4 in libvdpau_nvidia.so.387.22[7f1205e08000+7d000]
Comment 8 Tomáš Mózes 2018-01-15 05:58:07 UTC
Not much memory left on the machine:
KiB Mem:     94684 free

Please try freeing up some memory or compile with MAKEOPTS="-j1". I've just tested building gcc-6.4.0-r1 on amd64 and it worked fine.
Comment 9 Mauro Maroni 2018-01-15 10:25:39 UTC
(In reply to Tomáš Mózes from comment #8)
> Not much memory left on the machine:
> KiB Mem:     94684 free
> 
> Please try freeing up some memory or compile with MAKEOPTS="-j1". I've just
> tested building gcc-6.4.0-r1 on amd64 and it worked fine.

Yes, freeing up some memory and compiling with -j5 instead of -j9 made it. Thank you.
Comment 10 Tomáš Mózes 2018-01-15 12:07:37 UTC
Glad it works for you.