Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 575414 - sys-devel/gcc: gcc segfaulted compiling iconv in sys-libs/glibc
Summary: sys-devel/gcc: gcc segfaulted compiling iconv in sys-libs/glibc
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-22 23:26 UTC by Bob Wya
Modified: 2016-02-23 18:56 UTC (History)
0 users

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


Attachments
glibc-gawk_fix_gensub_usage.patch (glibc-gawk_fix_gensub_usage.patch,986 bytes, patch)
2016-02-22 23:26 UTC, Bob Wya
Details | Diff
sys-libs:glibc-2.22-r2:20160222-222856.log (sys-libs:glibc-2.22-r2:20160222-222856.log,83.83 KB, text/plain)
2016-02-23 09:05 UTC, Bob Wya
Details
sys-libs:glibc-2.22-r2:20160222-223817.log (sys-libs:glibc-2.22-r2:20160222-223817.log,83.32 KB, text/plain)
2016-02-23 17:44 UTC, Bob Wya
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bob Wya 2016-02-22 23:26:01 UTC
Created attachment 426270 [details, diff]
glibc-gawk_fix_gensub_usage.patch

Building =sys-libs/glibc-2.22-r2 fails with multiple duplicate lines:
gawk: scripts/sysd-rules.awk:56: warning: gensub: third argument `' treated as 1

Using gawk:
emerge -pv gawk
[ebuild   R   ~] sys-apps/gawk-4.1.3::gentoo  USE="nls readline -mpfr" 2,258 KiB

3rd argument to gensub() should be: "g" = global or an integer number of replacements (not "")
Comment 1 Bob Wya 2016-02-22 23:27:34 UTC
Source of patch is Upstream ML - see URL.
Comment 2 SpanKY gentoo-dev 2016-02-23 01:22:06 UTC
those warnings are just that -- warnings.  they aren't fatal.  please attach full build logs to all of your bug reports.
Comment 3 Bob Wya 2016-02-23 08:48:48 UTC
emerge --info

Portage 2.2.27 (python 3.4.3-final-0, default/linux/amd64/13.0/desktop/plasma/systemd, gcc-5.3.0, glibc-2.22-r2, 4.4.1-gentoo x86_64)
=================================================================
System uname: Linux-4.4.1-gentoo-x86_64-Intel-R-_Core-TM-_i7-4710HQ_CPU_@_2.50GHz-with-gentoo-2.2
KiB Mem:    32850992 total,  18423116 free
KiB Swap:   33554428 total,  33554428 free
Timestamp of repository gentoo: Mon, 22 Feb 2016 20:30:01 +0000
sh bash 4.3_p42-r2
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42-r2::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.22.1::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.3.5-r2::gentoo, 3.4.3-r1::gentoo
dev-util/cmake:           3.4.3::gentoo
dev-util/pkgconfig:       0.29::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.20.5::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.10.3-r2::gentoo, 1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo, 5.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: --delete-excluded --exclude-from=/etc/portage/rsync_excludes

bobwya
    location: /usr/local/portage
    masters: gentoo
    priority: 0

games-overlay
    location: /var/lib/layman/games-overlay
    sync-type: laymansync
    sync-uri: git://github.com/hasufell/games-overlay.git
    masters: gentoo
    priority: 50

gentoo-zh
    location: /var/lib/layman/gentoo-zh
    sync-type: laymansync
    sync-uri: git://github.com/microcai/gentoo-zh.git
    masters: gentoo
    priority: 50

kde
    location: /var/lib/layman/kde
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/kde.git
    masters: gentoo
    priority: 50

mrueg
    location: /var/lib/layman/mrueg
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/dev/mrueg.git
    masters: gentoo
    priority: 50

multimedia
    location: /var/lib/layman/multimedia
    sync-type: laymansync
    sync-uri: https://github.com/gentoo/multimedia.git
    masters: gentoo
    priority: 50

mva
    location: /var/lib/layman/mva
    sync-type: laymansync
    sync-uri: git://github.com/msva/mva-overlay
    masters: gentoo
    priority: 50

qt
    location: /var/lib/layman/qt
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/qt.git
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    sync-type: laymansync
    sync-uri: git://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

stuff
    location: /var/lib/layman/stuff
    sync-type: laymansync
    sync-uri: https://github.com/megabaks/stuff.git
    masters: gentoo
    priority: 50

vapoursynth
    location: /var/lib/layman/vapoursynth
    sync-type: laymansync
    sync-uri: https://github.com/4re/vapoursynth-portage.git
    masters: gentoo
    priority: 50

vmware
    location: /var/lib/layman/vmware
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/vmware.git
    masters: gentoo
    priority: 100

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -fomit-frame-pointer -ftree-vectorize -pipe -march=native -mtune=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/conf.d /etc/init.d /usr/share/config /usr/share/config/kdm /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/skel /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -fomit-frame-pointer -ftree-vectorize -pipe -march=native -mtune=native"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --jobs=8 --load-average=8  --quiet-build=y --quiet-fail=y --backtrack=0"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs compress-build-logs config-protect-if-modified distlocks fixlafiles merge-sync news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
LDFLAGS="-O2 -fomit-frame-pointer -ftree-vectorize -pipe -march=native -mtune=native -Wl,--as-needed -Wl,-O1"
MAKEOPTS="-j8 -s"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--delete-excluded --exclude-from=/etc/portage/rsync_excludes"
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="/tmp"
USE="X a52 aac accessibility acl acpi aes aiglx aim alsa amd64 artswrappersuid audiofile avahi avx avx2 bash-completion bazaar berkdb bluetooth bluray btrfs bzip2 cairo cdda cddb cdio cdr cjk cli cman corefonts cracklib crypt css cups cxx dbus declarative djvu dri dts dv dvb dvd dvdnav dvdr dvdread dvi emboss encode exif f2fs faad fam fame fat ffmpeg firefox flac fma3 fontconfig freetype gcj gdbm gif git gmp gnutls go google-gadgets gphoto2 gpm gsm gtk hfs iconv icq icu imap infinality inotify ipod ipv4 ipv6 irc irda jabber jfs joystick jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility keymap kipi kvm lame lcd lcms libnotify live lm_sensors lua lz4 lzma lzo mad mail matroska mercurial mjpeg mmx mmxext mng modules mozdevelop mp3 mp3rtp mp4 mpeg msn mtp multilib musepack musicbrainz ncurses networkmanager nfs nls nptl nsplugin ntfs nvidia offensive ogg openal opencl openexr opengl openmp osmesa pam pango pcmcia pcre pda pdf phonon plasma png policykit popcnt ppds pulseaudio python qml qt3support qt4 qt5 rar raw rdesjtio readline real reiserfs rss rtmp s3tc samba scanner sdl sdl2 seccomp semantic-desktop session sftp slp smp snmp speex spell sqlite sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification stream subversion svg sysfs systemd taglib tcpd theora thumbnail tiff tk truetype type3 udev udisks unicode upcall upower usb v4l2 vcd vdpau visualization vorbis webkit widgets wifi win32codecs wmf wxwidgets x264 x265 xattr xcb xcomposite xfs xinerama xml xpm xscreensaver xulrunner xv xvid xvmc xz yahoo zeroconf zlib" ABI_X86="32 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" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="author braindump flow karbon kexi krita sheets stage words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" DRACUT_MODULES="biosdevname systemd" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="emu multiboot pc emu multiboot pc" INPUT_DEVICES="synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="pdfimport" LINGUAS="en en_GB en_US" LIRC_DEVICES="audio audio_alsa pctv serial" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby20 ruby21 ruby22" SANE_BACKENDS="canon canon630u canon_dr canon_pp net pixma" 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"
USE_PYTHON="2.7 3.4"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 4 Bob Wya 2016-02-23 09:05:44 UTC
Created attachment 426286 [details]
sys-libs:glibc-2.22-r2:20160222-222856.log

It may just be a build failure then... I do have to throttle my laptop's i7-4710HQ (all cores) to 3.0Ghz to build reliably as it is...!!

Anyway I've attached my (failed) build log from =sys-libs/glibc-2.22-r2 ...
Comment 5 SpanKY gentoo-dev 2016-02-23 17:24:20 UTC
that logs says you hit CTRL+C:
sandbox:stop  caught signal 2 in pid 28003
Comment 6 Bob Wya 2016-02-23 17:44:19 UTC
Created attachment 426338 [details]
sys-libs:glibc-2.22-r2:20160222-223817.log

Yeah. That really is a thing. Sorry 'bout the noise.
Try looking at the log from the build I didn't manually interrupt...
Comment 7 SpanKY gentoo-dev 2016-02-23 18:56:16 UTC
your compiler crashed:
../iconv/skeleton.c:792:1: internal compiler error: Segmentation fault

your compiler settings look pretty fishy.  you should try removing -ftree-vectorize and see if things work better, perhaps even after a gcc rebuild.

your -mtune setting is redundant ... -march=native already does the same thing.

stuff your CFLAGS directly into LDFLAGS is not needed.  there should really only be -Wl settings in there.