Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
V8, chromium, lots of others, compiler segmentation fault
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
sl70
Guru
Guru


Joined: 18 Jun 2002
Posts: 449
Location: Saitama, JP

PostPosted: Thu Oct 18, 2012 9:15 pm    Post subject: V8, chromium, lots of others, compiler segmentation fault Reply with quote

For the last week or so I have been getting compiler segmentation faults trying to compile Chromium 23.0.1271.(26|40). Now lots of other packages are doing the same thing. I was beginning to think it was some hardware failing, but now I'm getting V8 failing every time in the exact same spot:
Code:
  x86_64-pc-linux-gnu-g++ '-DENABLE_DEBUGGER_SUPPORT' '-DENABLE_EXTRA_CHECKS' '-DV8_TARGET_ARCH_X64' '-DBUILDING_V8_SHARED' '-DV8_SHARED' -I../src  -Wall -W -Wno-unused-parameter -Wnon-virtual-dtor -pthread -fno-rtti -fno-exceptions -pedantic -ansi -fvisibility=hidden -fPIC -fdata-sections -ffunction-sections -O3  -MMD -MF /var/tmp/portage/dev-lang/v8-3.13.7.4/work/v8-3.13.7.4/out/x64.release/.deps//var/tmp/portage/dev-lang/v8-3.13.7.4/work/v8-3.13.7.4/out/x64.release/obj.target/v8_base/src/full-codegen.o.d.raw -O2 -pipe -c -o /var/tmp/portage/dev-lang/v8-3.13.7.4/work/v8-3.13.7.4/out/x64.release/obj.target/v8_base/src/full-codegen.o ../src/full-codegen.cc
../src/flags.cc: In static member function ‘ótatic v8::internal::List<const char*>* v8::internal::FlagList::argv()
../src/flags.cc:230:20: internal compiler error: Segmentation fault
Please submit a full bug report,


Here's my emerge --info:
Code:
Portage 2.1.11.9 (default/linux/amd64/10.0, gcc-4.5.4, glibc-2.15-r2, 3.4.9-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.4.9-gentoo-x86_64-AMD_Athlon-tm-_II_X4_620_Processor-with-gentoo-2.1
Timestamp of tree: Thu, 18 Oct 2012 08:00:01 +0000
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.6.8, 2.7.3-r2, 3.1.5, 3.2.3
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.5, 1.9.6-r2, 1.10.3, 1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.3.4, 4.4.5, 4.5.4
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo sunrise x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 AdobeFlash-10.3 AdobeFlash-10 skype-eula Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en ja"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X Xaw3d aac acl alsa amd64 apm arts atlas audiofile avi berkdb blas browserplugin bzip2 canna
cjk cli consolekit cracklib crypt cups curl cxx dbus dmix dri dvd dvdr emacs encode esd f77 faad firefox
flac fortran freewnn gdbm gif glitz gnome gnutls gpg gpm gtk gtk2 iconv imlib immqt-bc ipv6 jack java jpeg
kde lapack leim libg++ libwww live mikmod mmx modules mozsvg mp3 mpeg mudflap multilib musepack ncurses
nls nptl nptlonly nsplugin ogg opengl openmp oss pam pcre pdflib png policykit pppd python qt qt3support
qtmt quicktime readline sdl semantic-desktop session slang spell sse sse2 ssl svg tcpd truetype udev uim
unicode usb userlocales vorbis wma x86_64 xcomposite xfs xml xml2 xulrunner xv zlib"
ALSA_CARDS="intel_hda"
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" 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"
CAMERAS="ptp2"
COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog"
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 ubx"                                                 
INPUT_DEVICES="keyboard mouse evdev"
KERNEL="linux"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer"
LINGUAS="en ja" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19"
USERLAND="GNU" VIDEO_CARDS="ati radeon radeonhd vesa vga"
XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4optionsipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


Anyone have any ideas?

TIA.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Thu Oct 18, 2012 9:34 pm    Post subject: Reply with quote

Try to get the same error with MAKEOPTS="-j1" perhaps?
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
sl70
Guru
Guru


Joined: 18 Jun 2002
Posts: 449
Location: Saitama, JP

PostPosted: Thu Oct 18, 2012 9:51 pm    Post subject: Reply with quote

Thanks for your help, Jaglover.

Interesting. It failed the same way but in a different place:
Code:
  x86_64-pc-linux-gnu-g++ '-DENABLE_DEBUGGER_SUPPORT' '-DENABLE_EXTRA_CHECKS' '-DV8_TARGET_ARCH_X64' '-DBUILDING_V8_SHARED' '-DV8_SHARED' -I../src  -Wall -W -Wno-unused-parameter -Wnon-virtual-dtor -pthread -fno-rtti -fno-exceptions -pedantic -ansi -fvisibility=hidden -fPIC -fdata-sections -ffunction-sections -O3  -MMD -MF /var/tmp/portage/dev-lang/v8-3.13.7.4/work/v8-3.13.7.4/out/x64.release/.deps//var/tmp/portage/dev-lang/v8-3.13.7.4/work/v8-3.13.7.4/out/x64.release/obj.target/v8_base/src/flags.o.d.raw -O2 -pipe -c -o /var/tmp/portage/dev-lang/v8-3.13.7.4/work/v8-3.13.7.4/out/x64.release/obj.target/v8_base/src/flags.o ../src/flags.cc
../src/flags.cc: In static member function ‘ótatic v8::internal::List<const char*>* v8::internal::FlagList::argv()
../src/flags.cc:230:20: internal compiler error: Segmentation fault


I ran it like this:
Code:
MAKEOPTS="-j1" emerge -uDN chromium


Is that OK? I don't see a "-j1" in the compiler output anywhere. I don't need to modify make.conf, do I?
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Thu Oct 18, 2012 10:13 pm    Post subject: Reply with quote

You said lots of other packages do the same, keep using -j1 and see if they segfault always in same place, if not it may be a hardware issue after all.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
pigeon768
l33t
l33t


Joined: 02 Jan 2006
Posts: 683

PostPosted: Thu Oct 18, 2012 10:19 pm    Post subject: Reply with quote

Try a memtest?
Back to top
View user's profile Send private message
sl70
Guru
Guru


Joined: 18 Jun 2002
Posts: 449
Location: Saitama, JP

PostPosted: Thu Oct 18, 2012 10:56 pm    Post subject: Reply with quote

I tried emerging pango regularly and with MAKEOPTS="-j1". It segfaulted in the same place:

pango -j5
Code:

make[4]: Entering directory `/var/tmp/portage/x11-libs/pango-1.30.1/work/pango-1.30.1/pango/opentype'
  CC     libharfbuzz_la-hb-blob.lo
  CC     libharfbuzz_la-hb-buffer.lo
  CXX    libharfbuzz_la-hb-font.lo
  CC     libharfbuzz_la-hb-glib.lo
  CC     libharfbuzz_la-hb-shape.lo
  CC     libharfbuzz_la-hb-unicode.lo
  CXX    libharfbuzz_la-hb-ot-layout.lo
  CXX    main-main.o
In file included from hb-ot-layout.cc:35:0:
hb-ot-layout-gpos-private.hh: In member function ‘âool PairPosFormat1::sanitize(hb_sanitize_context_t*)’º
hb-ot-layout-gpos-private.hh:614:15: internal compiler error: Segmentation fault
Please submit a full bug report,


pango -j1

Code:

make  all-recursive
make[3]: Entering directory `/var/tmp/portage/x11-libs/pango-1.30.1/work/pango-1.30.1/pango'
Making all in opentype
make[4]: Entering directory `/var/tmp/portage/x11-libs/pango-1.30.1/work/pango-1.30.1/pango/opentype'
  CC     libharfbuzz_la-hb-blob.lo
  CC     libharfbuzz_la-hb-buffer.lo
  CXX    libharfbuzz_la-hb-font.lo
  CC     libharfbuzz_la-hb-glib.lo
  CC     libharfbuzz_la-hb-shape.lo
  CC     libharfbuzz_la-hb-unicode.lo
  CXX    libharfbuzz_la-hb-ot-layout.lo
In file included from hb-ot-layout.cc:35:0:
hb-ot-layout-gpos-private.hh: In member function ‘âool PairPosFormat1::sanitize(hb_sanitize_context_t*)’º
hb-ot-layout-gpos-private.hh:614:15: internal compiler error: Segmentation fault
Please submit a full bug report,


I'm going to try a memtest anyway.
Back to top
View user's profile Send private message
MustrumR
n00b
n00b


Joined: 15 Nov 2011
Posts: 71
Location: Right here

PostPosted: Fri Oct 19, 2012 1:59 pm    Post subject: Reply with quote

Wait... gcc-4.5 is old. As of Oct 19 2012 gcc-4.7.2 is THE current stable version. http://gcc.gnu.org/
Oh and I made a 6-liner that crashes g++-4.7.2 -std=c++11. No crash with clang.
Back to top
View user's profile Send private message
sl70
Guru
Guru


Joined: 18 Jun 2002
Posts: 449
Location: Saitama, JP

PostPosted: Sat Oct 20, 2012 7:37 pm    Post subject: Reply with quote

Well, I haven't gotten the chance to do memtest yet, but I've noticed that there are four packages that always generate a compiler segfault, while everything else builds fine. Very strange. Those four are:
Code:
 The following 4 packages have failed to build or install:
 *
 *  (dev-lang/v8-3.13.7.4::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/tmp/portage/dev-lang/v8-3.13.7.4/temp/build.log'
 *  (x11-libs/pango-1.30.1::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/tmp/portage/x11-libs/pango-1.30.1/temp/build.log'
 *  (www-client/chromium-23.0.1271.40::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/tmp/portage/www-client/chromium-23.0.1271.40/temp/build.log'
 *  (net-libs/libproxy-0.4.10::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/tmp/portage/net-libs/libproxy-0.4.10/temp/build.log'
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21607

PostPosted: Sat Oct 20, 2012 8:40 pm    Post subject: Reply with quote

MustrumR wrote:
Wait... gcc-4.5 is old. As of Oct 19 2012 gcc-4.7.2 is THE current stable version. http://gcc.gnu.org/
Oh and I made a 6-liner that crashes g++-4.7.2 -std=c++11. No crash with clang.
gcc-4.5 is still the stable version for Gentoo. Newer versions are not in stable yet, since they may fail to build packages which are in stable. Sometimes, that is a compiler bug. Sometimes, it is a bug in the package which fails to build. Regardless, the maintainers try to hold gcc to a level that can compile all common packages.

If you want to use gcc-4.7.2, you can. It is in Portage. However, if you have problems with it, you may not get much (if any) support from the Gentoo maintainers.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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