Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] dev-lang/tcl-8.5.13-r1 segfault when compiling
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
wolfieh
n00b
n00b


Joined: 17 Nov 2009
Posts: 52

PostPosted: Tue Feb 12, 2013 8:21 pm    Post subject: [solved] dev-lang/tcl-8.5.13-r1 segfault when compiling Reply with quote

from today's update:

Code:
# emerge -avuDN world   

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U  ] dev-lang/tcl-8.5.13-r1 [8.5.10-r1] USE="threads -debug" 0 kB
[ebuild   R    ] gnome-base/orbit-2.14.19-r1:2  USE="-debug {-test} (-doc%)" 0 kB
[ebuild     U  ] dev-lang/tk-8.5.13-r1 [8.5.10-r1] USE="threads truetype xscreensaver (-aqua) -debug {-test%}" 0 kB
[ebuild     U ~] net-libs/nodejs-0.9.9 [0.9.3-r1] 12,088 kB
[ebuild     U  ] dev-db/postgresql-base-9.1.8:9.1 [9.1.6:9.1] USE="ldap nls pam readline ssl threads zlib -doc -kerberos -pg_legacytimestamp" LINGUAS="en es -af -cs -de -fa -fr -hr -hu -it -ko -nb -pl -pt_BR -ro -ru -sk -sl -sv -tr -zh_CN -zh_TW" 15,450 kB
[ebuild     U  ] dev-db/postgresql-server-9.1.8-r1:9.1 [9.1.6:9.1] USE="nls pam perl python tcl xml -doc -kerberos% -pg_legacytimestamp (-selinux) {-test%} -uuid" LINGUAS="en es -af -cs -de -fa -fr -hr -hu -it -ko -nb -pl -pt_BR -ro -ru -sk -sl -sv -tr -zh_CN -zh_TW" PYTHON_SINGLE_TARGET="python2_7%* -python2_5% -python2_6% -python3_1% -python3_2% (-python3_3)" PYTHON_TARGETS="python2_7%* python3_2%* -python2_5% -python2_6% -python3_1% (-python3_3)" 3 kB
[ebuild     U  ] app-text/lcdf-typetools-2.97 [2.92] USE="kpathsea" 602 kB
[ebuild     U  ] dev-tex/cjk-latex-4.8.3 [4.8.2] USE="-doc -emacs" 20,457 kB

Total: 8 packages (7 upgrades, 1 reinstall), Size of downloads: 48,597 kB

WARNING: One or more updates have been skipped due to a dependency conflict:

dev-vcs/subversion:0

  (dev-vcs/subversion-1.7.7::gentoo, ebuild scheduled for merge) conflicts with
    <dev-vcs/subversion-1.7.0 required by (app-office/lyx-2.0.4::gentoo, installed)


!!! The following update(s) have been skipped due to unsatisfied dependencies
!!! triggered by backtracking:

dev-vcs/kdesvn:4


i got this error:

Code:
x86_64-pc-linux-gnu-gcc -c -O2 -march=native -O2 -pipe -fgraphite-identity -floop-block -floop-interchange -floop-strip-mine -ftree-loop-distribution -pipe  -Wall -fPIC -I"." -I/var/tmp/portage/dev-lang/tcl-8.5.13-r1/work/tcl8.5.13/unix/../unix -I/var/tmp/portage/dev-lang/tcl-8.5.13-r1/work/tcl8.5.13/unix/../generic -I/var/tmp/portage/dev-lang/tcl-8.5.13-r1/work/tcl8.5.13/unix/../libtommath -DPACKAGE_NAME=\"tcl\" -DPACKAGE_TARNAME=\"tcl\" -DPACKAGE_VERSION=\"8.5\" -DPACKAGE_STRING=\"tcl\ 8.5\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DHAVE_PTHREAD_ATTR_SETSTACKSIZE=1 -DHAVE_PTHREAD_GETATTR_NP=1 -DGETATTRNP_NOT_DECLARED=1 -DTCL_THREADS=1 -DTCL_CFGVAL_ENCODING=\"iso8859-1\" -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -DHAVE_CAST_TO_UNION=1 -DTCL_SHLIB_EXT=\".so\" -DNDEBUG=1 -DTCL_CFG_OPTIMIZED=1 -DTCL_TOMMATH=1 -DMP_PREC=4 -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_IS_LONG=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRTOL=1 -DHAVE_WAITPID=1 -DHAVE_GETADDRINFO=1 -DHAVE_GETPWUID_R_5=1 -DHAVE_GETPWUID_R=1 -DHAVE_GETPWNAM_R_5=1 -DHAVE_GETPWNAM_R=1 -DHAVE_GETGRGID_R_5=1 -DHAVE_GETGRGID_R=1 -DHAVE_GETGRNAM_R_5=1 -DHAVE_GETGRNAM_R=1 -DHAVE_GETHOSTBYNAME_R_6=1 -DHAVE_GETHOSTBYNAME_R=1 -DHAVE_GETHOSTBYADDR_R_8=1 -DHAVE_GETHOSTBYADDR_R=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_MKTIME=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_STRUCT_STAT_ST_BLOCKS=1 -DHAVE_STRUCT_STAT_ST_BLKSIZE=1 -DHAVE_BLKCNT_T=1 -DHAVE_INTPTR_T=1 -DHAVE_UINTPTR_T=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_LANGINFO=1 -DHAVE_SYS_IOCTL_H=1 -DTCL_UNLOAD_DLLS=1 -DHAVE_CPUID=1      /var/tmp/portage/dev-lang/tcl-8.5.13-r1/work/tcl8.5.13/unix/../generic/tclCompExpr.c

/var/tmp/portage/dev-lang/tcl-8.5.13-r1/work/tcl8.5.13/unix/../generic/tclCompExpr.c: In function ‘TclVariadicOpCmd’:
/var/tmp/portage/dev-lang/tcl-8.5.13-r1/work/tcl8.5.13/unix/../generic/tclCompExpr.c:2561:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.gentoo.org/> for instructions.
make: *** [tclCompExpr.o] Error 1
make: *** Waiting for unfinished jobs....
 * ERROR: dev-lang/tcl-8.5.13-r1 failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=dev-lang/tcl-8.5.13-r1'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/tcl-8.5.13-r1'`.
 * The complete build log is located at '/var/tmp/portage/dev-lang/tcl-8.5.13-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/tcl-8.5.13-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-lang/tcl-8.5.13-r1/work/tcl8.5.13/unix'
 * S: '/var/tmp/portage/dev-lang/tcl-8.5.13-r1/work/tcl8.5.13/unix'

>>> Failed to emerge dev-lang/tcl-8.5.13-r1, Log file:

>>>  '/var/tmp/portage/dev-lang/tcl-8.5.13-r1/temp/build.log'

 * Messages for package dev-lang/tcl-8.5.13-r1:

 * PLEASE NOTE: You are compiling tcl-8.5.13 with
 * threading enabled.
 * Threading is not supported by all applications
 * that compile against tcl. You use threading at
 * your own discretion.
 * ERROR: dev-lang/tcl-8.5.13-r1 failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=dev-lang/tcl-8.5.13-r1'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/tcl-8.5.13-r1'`.
 * The complete build log is located at '/var/tmp/portage/dev-lang/tcl-8.5.13-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/tcl-8.5.13-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-lang/tcl-8.5.13-r1/work/tcl8.5.13/unix'
 * S: '/var/tmp/portage/dev-lang/tcl-8.5.13-r1/work/tcl8.5.13/unix'


output of: emerge --info '=dev-lang/tcl-8.5.13-r1'

Code:
Portage 2.1.11.50 (default/linux/amd64/13.0/desktop, gcc-4.6.3, glibc-2.15-r3, 3.6.11-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.6.11-gentoo-x86_64-AMD_Phenom-tm-_II_X4_965_Processor-with-gentoo-2.1
KiB Mem:     4048740 total,   1932928 free
KiB Swap:     996024 total,    996024 free
Timestamp of tree: Tue, 12 Feb 2013 18:45:01 +0000
ld GNU ld (GNU Binutils) 2.22
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.8 [disabled]
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/ccache:          3.1.8
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo x-portage sebasmagri sunrise
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 AdobeFlash-10.3 PUEL Q3AEULA Oracle-BCLA-JavaSE google-chrome"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fgraphite-identity -floop-block -floop-interchange -floop-strip-mine -ftree-loop-distribution"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -fgraphite-identity -floop-block -floop-interchange -floop-strip-mine -ftree-loop-distribution"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://mirrors.localhost.net.ar/pub/mirrors/gentoo/ ftp://gentoo.c3sl.ufpr.br/gentoo/ ftp://ftp.las.ic.unicamp.br/pub/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
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 /var/lib/layman/sebasmagri /var/lib/layman/sunrise"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X Xaw3d a52 aac acl acpi alsa amd64 animgif apache2 archive audacious background berkdb bittorrent bluetooth branding bzip2 cairo cdda cdr cjk cli cmake consolekit cracklib crypt ctype cups curl cxx dbus djvu dri dts dvd dvdr emboss encode exif fam fat ffmpeg firefox flac fontconfig fortran ftp gdbm geoip gif gimp git glut gpm gsm gtk iconv imagemagick imlib ipv6 java jfs jpeg jpeg2k kpathsea lame latex lcms ldap libcaca libnotify lilo lm_sensors mad midi mmx mmxext mng modules mp3 mp4 mpeg mplayer msn mudflap multilib musepack mysql mysqli ncurses nls nptl nsplugin nvidia ogg openexr opengl openmp pam pango pch pcre pdf perl php png policykit ppds python qt3support qt4 rar readline reiserfs samba sdl semantic-desktop session smp sndfile soap sox spell sql sse sse2 ssl startup-notification subversion svg swat tcl tcpd theora threads tiff timidity tk truetype udev udisks unicode upnp upower usb vcd vdpau vim-syntax vorbis webkit wmf wxwidgets x264 xcb xcomposite xml xscreensaver xv xvid xvmc zlib zsh-completion" ABI_X86="64" ALSA_CARDS="ca0106" 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="krita" 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 wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="es en" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


is it a compiler bug?


Last edited by wolfieh on Sat Mar 02, 2013 7:35 pm; edited 1 time in total
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1406

PostPosted: Tue Feb 12, 2013 9:16 pm    Post subject: Reply with quote

See Here:
Gentoo GCC Upgrade Guide

i believe you may have corrupted your toolchain somehow. Gollow the steps in the guide above and let me know what happens...
_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
wolfieh
n00b
n00b


Joined: 17 Nov 2009
Posts: 52

PostPosted: Tue Feb 12, 2013 9:36 pm    Post subject: Reply with quote

compiled it without the graphite CFLAGS and it worked
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1406

PostPosted: Tue Feb 12, 2013 11:05 pm    Post subject: Reply with quote

wolfieh wrote:
compiled it without the graphite CFLAGS and it worked


Your Toolchain is now unstable.
Unset the following CXXFLAGS.

  1. -fgraphite-identity
  2. -floop-block
  3. -floop-interchange
  4. -floop-strip-mine
  5. -ftree-loop-distribution


then emerge -e world to remove those flags from every package on THE ENTIRE SYSTEM, then add the graphite use flag to /etc/make.conf, and emerge -e world again

All those flags are enabled in the graphite aware packages anyway. See 3.10 (GCC)Options That Control Optimization and Gentoo Linux Use Variable Descriptions

gcc Local Use Variables
Code:

d   Enable support for the D programming language
fixed-point   Enable fixed-point arithmetic support for MIPS targets in gcc (Warning: significantly increases compile time!)
go   Build the GCC Go language frontend.
graphite   Add support for the framework for loop optimizations based on a polyhedral intermediate representation <--ENABLE THIS FLAG!!
gtk   Useful only when building GCJ, this enables Abstract Window Toolkit (AWT) peer support on top of GTK+
ip28   Enable building a compiler capable of building a kernel for SGI Indigo2 Impact R10000 (IP28)
ip32r10k   Enable building a compiler capable of building an experimental kernel for SGI O2 w/ R1x000 CPUs (IP32)
libssp   Build SSP support into a dedicated library rather than use the code in the C library (DO NOT ENABLE THIS IF YOU DON'T KNOW WHAT IT DOES)
lto   Add support for link-time optimizations (unsupported, use at your own risk).
mudflap   Add support for mudflap, a pointer use checking library
multislot   Allow for SLOTs to include minor version (3.3.4 instead of just 3.3)
n32   Enable n32 ABI support on mips
n64   Enable n64 ABI support on mips
nopie   Disable PIE support (NOT FOR GENERAL USE)
nossp   Disable SSP support (NOT FOR GENERAL USE)
objc   Build support for the Objective C code language
objc++   Build support for the Objective C++ language
objc-gc   Build support for the Objective C code language Garbage Collector


Doing this will increase system stability as most packages don't operate too well with only half graphite support enabled, and if your curious about it, I use the graphite flag on my system, and have had no problems since I enabled it when it became available w/ GCC 4.3 IIRC.
_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
wolfieh
n00b
n00b


Joined: 17 Nov 2009
Posts: 52

PostPosted: Wed Feb 13, 2013 5:01 pm    Post subject: Reply with quote

I don't think i have time for rebuilding entire world twice.. and added graphite flags just recently, so I don't think it's worth it. Maybe a way to find all packages that were compiled with graphite?
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1406

PostPosted: Wed Feb 13, 2013 5:53 pm    Post subject: Reply with quote

wolfieh wrote:
I don't think i have time for rebuilding entire world twice.. and added graphite flags just recently, so I don't think it's worth it. Maybe a way to find all packages that were compiled with graphite?


The Graphite subsystem is an integral part of the gcc compiler. Anytime you rebuild your compiler, it is recommended to rebuild at least the toolchain. If your a purist like me, since the toolchain built the entire system, the entire system must be rebuilt. In order to see which packages contain the graphite flag:

Code:
# emerge gentoolkit
#equery --hasuse graphite


In order to rebuild the toolchain:
Code:
#install -d /etc/portage/sets/
#nano -w /etc/portage/sets/toolchain
dev-libs/mpfr
sys-libs/timezone-data
sys-devel/binutils
sys-devel/binutils-config
sys-devel/gcc
sys-devel/gcc-config
sys-kernel/linux-headers
sys-libs/glibc
(Save File)

Set Graphite use Flag, and then:
#emerge -uDN @toolchain
#emerge -uDav @toolchain

_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1406

PostPosted: Thu Feb 28, 2013 8:50 pm    Post subject: Reply with quote

Please add [Solved] to the Post Title.
_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
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