when I try to emerge arts, I get an error in libmcop.la. Reproducible: Always Steps to Reproduce: Portage 2.0.51_rc9 (default-x86-2004.0, gcc-3.4.2, glibc-2.3.4.20041006-r0, 2.6.9-rc4 i686) ================================================================= System uname: 2.6.9-rc4 i686 mobile AMD Duron(tm) Gentoo Base System version 1.5.3 distcc 2.18 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.92.0.2-r1 Headers: sys-kernel/linux26-headers-2.6.8.1-r1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O3 -pipe -ffast-math -funroll-loops -fomit-frame-pointer -mfpmath=sse,387 -maccumulate-outgoing-args -fprefetch-loop-arrays -fforce-addr" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O3 -pipe -ffast-math -funroll-loops -fomit-frame-pointer -mfpmath=sse,387 -maccumulate-outgoing-args -fprefetch-loop-arrays -fforce-addr" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distcc distlocks sandbox" GENTOO_MIRRORS="ftp://sunsite.cnlab-switch.ch/mirror/gentoo/ http://gentoo.oregonstate.edu/" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X aalib acpi alsa apache2 arts avi berkdb bitmap-fonts crypt cups dba dvd encode esd f77 foomaticdb gd gdbm gif gpm gtk gtk2 imlib java jpeg kde libg++ libwww mad mikmod motif mozilla mpeg mysql ncurses nls oggvorbis opengl pam pdflib perl png python qt quicktime readline scanner sdl slang spell ssl svga tcltk tcpd tetex truetype x86 xml2 xmms xprint xv zlib"
Created attachment 42055 [details] emerge arts log
It seems the compiler setup is screwed up. Try disabling distcc, ccache, and lowering cflags as a start...
I see the same problem with gcc 3.4.2 and more conservative compiler settings. (No ccache or distcc, -j1, just "-march=athlon-xp -O2 -pipe" for gcc flags.) So I think this is a more general problem, not just something that happens with over-optimization. Can anyone with gcc 3.4.x emerge arts 3.1 successfully? # emerge info Portage 2.0.51_rc9 (default-x86-1.4, gcc-3.4.2, glibc-2.2.5-r2,glibc-2.3.4.20041006-r0, 2.6.8 i686) ================================================================= System uname: 2.6.8 i686 Unknown CPU Typ Gentoo Base System version 1.5.3 distcc 2.18 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.92.0.2-r1 Headers: sys-kernel/linux-headers-2.4.22 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O2 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distlocks sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ http://mirror.datapipe.net/gentoo http://128.213.5.34/gentoo/ http://mirror.datapipe.net/gentoo" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://bonnie.ripton.net/gentoo-portage" USE="3dnow X aalib alsa apache2 apm arts avi berkdb bitmap-fonts bonobo cdr crypt cups dvd encode esd f77 foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml guile imap imlib java jpeg junit kde libg++ libwww mad maildir mikmod mmx motif mozilla mozsvg mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline ruby scanner sdl slang spell sse ssl svg svga tcltk tcpd tetex truetype x86 xml2 xmms xprint xv zlib"
I disabled ccache, distcc and lowered cflags but result is the same. I reverted to gcc 3.3.4 with all cflags and it works. I's a gcc 3.4.2 bug
On the system below it works. The problem with gcc 3.4.2 seems to be "-march=athlon-xp" Portage 2.0.51_rc9 (default-x86-2004.2, gcc-3.4.2, glibc-2.3.4.20041006-r0, 2.6.9-rc4 i686) ================================================================= System uname: 2.6.9-rc4 i686 Pentium III (Katmai) Gentoo Base System version 1.5.3 distcc 2.18 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.92.0.2-r1 Headers: sys-kernel/linux26-headers-2.6.8.1-r1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O3 -pipe -ffast-math -funroll-loops -fomit-frame-pointer -mfpmath=sse,387 -maccumulate-outgoing-args -fprefetch-loop-arrays -fforce-addr" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/fax /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control /var/spool/fax/etc" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -O3 -pipe -ffast-math -funroll-loops -fomit-frame-pointer -mfpmath=sse,387 -maccumulate-outgoing-args -fprefetch-loop-arrays -fforce-addr" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distcc distlocks sandbox" GENTOO_MIRRORS="ftp://sunsite.cnlab-switch.ch/mirror/gentoo http://gentoo.oregonstate.edu/" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X aalib acpi alsa apache2 arts avi berkdb bitmap-fonts cdr crypt cups curl dba dga dvd encode esd f77 fbcon foomaticdb gd gdbm gif gpm gtk gtk2 imlibjava jpeg kde ldap libwww lzw-tiff mad mbox mikmod motif mozilla mpeg mysql ncurses nls oggvorbis opengl pam pdflib perl png python qt quicktime readline sasl scanner sdl slang spell ssl svga tcltk tcpd tetex tiff truetype usb vhost wmf x86 xml xml2 xmms xprint xv zlib"
It compile for me: gcc-3.4.2.
Mmmm maybe it's better say I've a celeron coppermine 800Mhz, not an amd.
My Athlon XP-M laptop with gcc 3.4.2 *can* compile arts-1.3.1. My Athlon XP-M desktop with gcc 3.4.2 still can't. (Also had problems with pingus, and a couple of kde-3.2 packages. I used gcc-config to use gcc 3.3.4 instead, and then the compile worked. I now suspect some kind of version skew where C++ libs compiled with gcc 3.3 and 3.4 are slightly incompatible in some cases on Athlon XP. (This used to be typical, but I though gcc finally had their ABI incompatibilities across versions straight. Maybe not quite.) Perhaps completely rebuilding the system with 3.4.2 will fix the problem. I'll try that and report back.
Bad news: arts 1.3.1 still failed to compile with gcc 3.4.2 on my Athlon XP-M desktop, even with an "emerge -e world" to ensure that all its dependencies were built with the same gcc version. Good news: gcc 3.4.3 (now with an ebuild masked ~x86), compiled arts 1.3.1 fine. So this bug no longer affects me. Other people affected by this might want to try gcc 3.4.3.
My Athlon laptop with new gcc 3.4.3 still can't. I'll try an "emerge -e world" with gcc 3.4.3
arts-1.3.2 compilation dies of segmentation fault on my machine. I traced it down to the following with gdb: pje ~/src/arts-1.3.2/flow 38 gdb /home/pje/src/arts-1.3.2/flow/.libs/lt-mcopidl GNU gdb 6.2.1 Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1". (gdb) set args -t ../flow/artsflow.idl (gdb) r Starting program: /home/pje/src/arts-1.3.2/flow/.libs/lt-mcopidl -t ../flow/artsflow.idl [Thread debugging using libthread_db enabled] [New Thread -1212451136 (LWP 17071)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1212451136 (LWP 17071)] 0x0807ba5b in std::list<std::string, std::allocator<std::string> >::erase () (gdb) bt #0 0x0807ba5b in std::list<std::string, std::allocator<std::string> >::erase () #1 0x0807b825 in std::list<std::string, std::allocator<std::string> >::erase () #2 0x0807b3ca in std::list<std::string, std::allocator<std::string> >::operator= () #3 0x0807ab45 in NamespaceHelper::setFromSymbol () #4 0x0805273d in doEnumHeader () #5 0x0805cb65 in main () (gdb) Here's my emerge info: Portage 2.0.51-r8 (default-linux/x86/2004.0, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-rc3-mm1 i686) ================================================================= System uname: 2.6.10-rc3-mm1 i686 Intel(R) Celeron(R) CPU 2.80GHz Gentoo Base System version 1.6.8 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Sep 7 2004, 13:20:27)] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.5, 1.4_p6, 1.9.3, 1.8.5-r2, 1.6.3, 1.7.9 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r2 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" LDFLAGS="" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X acl adns alsa apm arts avi berkdb bitmap-fonts cdr crypt cscope cups encode esd fam flac foomaticdb fortran gdbm gif gnome gphoto2gpm gtk gtk2 imagemagick imlib ipv6 jack java jpeg junit kde libwww mad mikmod motif mpeg mysql ncurses nls nptl oggvorbis opengl oss pam pdflib perl png python qt quicktime readline ruby sdl slang spell ssl svga tcltk tcpd tetex tiff truetype xml xml2 xmms xv zlib"
I have a narrowed down test case for GCC 3.4.3 here: http://bugs.gentoo.org/show_bug.cgi?id=77130
Can anyone (with sane compiler flags) still reproduce the problem? If so, what if you downgrade to binutils-2.15.90.0.3-r3? Please make also sure, that you don't mix the problem discussed in Bug 52533 with this bug.
Same problem for arts 1.3.2 with gcc 3.4.3-r1
Same problem with sys-devel/binutils-2.15.90.0.3-r3 Portage 2.0.51-r14 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10 i686) ================================================================= System uname: 2.6.10 i686 mobile AMD Duron(tm) Gentoo Base System version 1.6.8 Python: dev-lang/python-2.2.3-r5,dev-lang/python-2.3.4 [2.3.4 (#1, Nov 8 2004, 23:10:01)] distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [disabled] dev-lang/python: 2.2.3-r5, 2.3.4 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.3 sys-devel/binutils: 2.15.90.0.3-r3 sys-devel/libtool: 1.5.10-r2 virtual/os-headers: 2.6.8.1-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O3 -pipe -ffast-math -funroll-loops -fomit-frame-pointer -mfpmath=sse,387 -maccumulate-outgoing-args -fprefetch-loop-arrays -fforce-addr" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O3 -pipe -ffast-math -funroll-loops -fomit-frame-pointer -mfpmath=sse,387 -maccumulate-outgoing-args -fprefetch-loop-arrays -fforce-addr" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig distlocks sandbox sfperms" GENTOO_MIRRORS="ftp://sunsite.cnlab-switch.ch/mirror/gentoo/ http://gentoo.oregonstate.edu/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 3dnow X aalib acpi alsa apache2 arts avi berkdb bitmap-fonts bluetooth bzlib cpdflib crypt cscope cups dba dvd encode esd f77 fam flac font-server foomaticdb fortran gd gdbm gif gpm gtk gtk2 imagemagick imlib ipv6 java jpeg junit kde libg++ libwww mad mailwrapper mikmod mmx motif mozilla mpeg mysql ncurses nls nptl nptlonly oggvorbis opengl pam pdflib perl png python qt quicktime readline scanner sdl slang snmp speex spell sse ssl svg svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts xml xml2 xmms xprint xsl xv zlib" Unset: ASFLAGS, CBUILD, CTARGET, LDFLAGS
No more reports of this old bug, I assume it is not a problem anymore.
Created attachment 61007 [details] emerge arts log I still have this problem Gentoo Base System version 1.6.12 Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r0, 2.6.11-gentoo-r9 i686) ================================================================= System uname: 2.6.11-gentoo-r9 i686 mobile AMD Duron(tm) distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] dev-lang/python: 2.2.3-r5, 2.3.5, 2.4.1 sys-apps/sandbox: 1.2.8 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.16-r1 sys-devel/libtool: 1.5.18 virtual/os-headers: 2.6.11-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O3 -pipe -ffast-math -funroll-loops -fomit-frame-pointer -mfpmath=sse,387 -maccumulate-outgoing-args -fprefetch-loop-arrays -fforce-addr" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-march=athlon-xp -O3 -pipe -ffast-math -funroll-loops -fomit-frame-pointer -mfpmath=sse,387 -maccumulate-outgoing-args -fprefetch-loop-arrays -fforce-addr" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.ngi.it ftp://sunsite.cnlab-switch.ch/mirror/gentoo/ http://gentoo.oregonstate.edu/" LANG="it_IT.utf8" LC_ALL="it_IT.utf8" LDFLAGS="-Wl,-O1" LINGUAS="it" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 3dnow X aalib acl acpi alsa apache2 arts avi bash-completion berkdb bitmap-fonts bluetooth bonobo bzlib cpdflib crypt cscope cups curl dba dvd emboss encode esd fam ffmpeg flac foomaticdb fortran gd gdbm gif gimpprint gpm gtk gtk2 gtkhtml imagemagick imlib ipv6 java jpeg junit kde kdeenablefinal kerberos lcms ldap libcaca libg++ libwww mad mailwrapper mhash mikmod mime ming mmx mng motif mp3 mpeg mysql ncurses nls nptl nptlonly ogg oggvorbis opengl pam pcre pdflib perl plotutils png posix postgres python qt quicktime readline real samba sasl scanner sdl session sharedext sharedmem slang sms snmp speex spell sse ssl svg svga sysvipc szip tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts unicode userlocales vorbis win32codecs wmf xine xml xml2 xmms xpm xprint xsl xv xvmc zlib linguas_it userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET
(In reply to comment #17) > Created an attachment (id=61007) [edit] > emerge arts log > > I still have this problem Can you try to disable ccache, clean /var/tmp/portage and compile arts again with basic CFLAGS? Also, make sure all the dependencies are compiled with the same version of gcc (gcc-3.4 as opposed to gcc-3.3)