Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 64740

Summary: emerge cccc failes compiling with gcc 3.4.1-rc3 and rc2
Product: Gentoo Linux Reporter: Roland Bramm <roland>
Component: [OLD] DevelopmentAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: VERIFIED FIXED    
Severity: normal CC: dragonheart, esigra
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: GCC 3.4 compile fix

Description Roland Bramm 2004-09-20 04:18:19 UTC
emerge cccc failes compiling with gcc 3.4.1-rc3 and rc2 regardles of the optimising options

Reproducible: Always
Steps to Reproduce:
1.gcc-config  i686-pc-linux-gnu-3.4.1
2.source /etc/profile
3.emerge -v cccc

Actual Results:  
/usr/lib/gcc/i686-pc-linux-gnu/3.4.1/include/g++-v3/backward/backward_warning.h:32:2:
warning: #warning This file includes at least one deprecated or antiquated
header. Please consider using one of the 32 headers found in section 17.4.1.2 of
the C++ standard. Examples include substituting the <X> header for the <X.h>
header for C++ includes, or <iostream> instead of the deprecated header
<iostream.h>. To disable this warning use -Wno-deprecated.
g++ -c -I../pccts/h  -x c++  -DCC_INCLUDED -DJAVA_INCLUDED  ccccmain.cc
In file included from
/usr/lib/gcc/i686-pc-linux-gnu/3.4.1/include/g++-v3/backward/strstream:51,
                 from cccc.h:28,
                 from ccccmain.cc:6:
/usr/lib/gcc/i686-pc-linux-gnu/3.4.1/include/g++-v3/backward/backward_warning.h:32:2:
warning: #warning This file includes at least one deprecated or antiquated
header. Please consider using one of the 32 headers found in section 17.4.1.2 of
the C++ standard. Examples include substituting the <X> header for the <X.h>
header for C++ includes, or <iostream> instead of the deprecated header
<iostream.h>. To disable this warning use -Wno-deprecated.
In file included from cccc_rec.h:9,
                 from cccc_db.h:9,
                 from cccc_met.h:6,
                 from ccccmain.cc:24:
cccc_tbl.h:23: error: expected `;' before "iter_"
make[1]: *** [ccccmain.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/cccc-3.0_pre63/work/cccc-3.pre63/cccc'
make: *** [cccc] Error 2



Portage 2.0.51_rc1 (default-x86-2004.2, gcc-3.4.1, glibc-2.3.4.20040808-r0,
2.6.8-gentoo-r4 i686)
=================================================================
System uname: 2.6.8-gentoo-r4 i686 AMD Athlon(tm) XP 1600+
Gentoo Base System version 1.5.3
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux-headers-2.4.22
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mtune=athlon-xp -pipe -frename-registers -fomit-frame-pointer -mmmx
-msse -m3dnow -mfpmath=sse"
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/env /usr/kde/3.3/share/config
/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/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/bind
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mtune=athlon-xp -pipe -frename-registers -fomit-frame-pointer
-mmmx -msse -m3dnow -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache digest sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aalib acpi alsa apache2 apm arts avi berkdb bitmap-fonts bonobo
bzlib cdr crypt cups curl curlwrappers dba dga directfb divx4linux doc dvd
encode esd f77 fam fftw flac foomatic foomaticdb freetype gd gdbm gif gnome gpm
gstreamer gtk gtk2 gtkhtml guile hbci icq imap imlib java jpeg ldap lesstif
libg++ libwww mad mikmod mmx motif mozilla mpeg mysql nas ncurses nls objc
oggvorbis opengl oscar oss pam pda pdflib perl php png ppds python qt quicktime
readline ruby scanner sdl slang slp socks5 spell spl sse ssl svg svga tcltk tcpd
tetex tidy tiff truetype usb wmf wxwindows x86 xinerama xml xml2 xmlrpc xmms
xprint xsl xv xvid zlib"

Also tried with CFLAGS="-O2" only, with the same result.
on gcc3.3.4 everything works fine
Comment 1 Mark Loeser (RETIRED) gentoo-dev 2005-05-29 18:03:44 UTC
Created attachment 60135 [details, diff]
GCC 3.4 compile fix

This should fix the compile errors, if you bump the package to 3.0_pre84. 
Upstream looks kind of dead though, and this package needs a maintainer.
Comment 2 Mark Loeser (RETIRED) gentoo-dev 2005-05-29 18:04:05 UTC
This package needs a maintainer.
Comment 3 Daniel Black (RETIRED) gentoo-dev 2005-06-08 03:52:30 UTC
fixed - thanks. 
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-03-30 07:12:09 UTC
*** Bug 128109 has been marked as a duplicate of this bug. ***
Comment 5 Erik 2006-03-30 07:35:12 UTC
This bug should have been fixed 2005-06-08 according to a comment here, but why did I still get the bug with a freshly synced Gentoo 2006-03-30? It seems like the fix got lost on the way. Reopen?
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-03-30 07:43:21 UTC
(In reply to comment #5)
> This bug should have been fixed 2005-06-08 according to a comment here, but why
> did I still get the bug with a freshly synced Gentoo 2006-03-30? It seems like
> the fix got lost on the way. Reopen?

As I've noted on the duplicate bug, it's fixed in _pre84, *not* in _pre63. 

Comment 7 Erik 2006-03-30 07:56:30 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > This bug should have been fixed 2005-06-08 according to a comment here, but 
> > why did I still get the bug with a freshly synced Gentoo 2006-03-30? It
> > seems like the fix got lost on the way. Reopen?
> 
> As I've noted on the duplicate bug, it's fixed in _pre84, *not* in _pre63. 

Great, but as I said, the fix did not propagate to the distribution. Emerge still tries to build the broken version eventhough I have synced today. So the bug still exists IN THE DISTRIBUTION. The issue can not be considered fixed until the broken package has been replaced by the fixed package.
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-03-30 08:07:00 UTC
(In reply to comment #7)
> > As I've noted on the duplicate bug, it's fixed in _pre84, *not* in _pre63. 
> 
> Great, but as I said, the fix did not propagate to the distribution. Emerge
> still tries to build the broken version eventhough I have synced today. So the
> bug still exists IN THE DISTRIBUTION. The issue can not be considered fixed
> until the broken package has been replaced by the fixed package.

Sigh... emerge _pre84, it's FIXED. _pre63 is NOT fixed and won't be fixed... Anything unclear, still?
Comment 9 Erik 2006-03-30 08:53:27 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > > As I've noted on the duplicate bug, it's fixed in _pre84, *not* in _pre63. 
> > 
> > Great, but as I said, the fix did not propagate to the distribution. Emerge
> > still tries to build the broken version eventhough I have synced today. So the
> > bug still exists IN THE DISTRIBUTION. The issue can not be considered fixed
> > until the broken package has been replaced by the fixed package.
> 
> Sigh... emerge _pre84, it's FIXED.

Yes, I know that the package _pre84 itself is fixed. No need to discuss that any more. Thank you for taking care of that part of the problem.


> _pre63 is NOT fixed and won't be fixed...

Yes, I know that the package _pre63 is NOT fixed. And I do NOT expect that particular package to be fixed. No need to discuss that anymore either.


> Anything unclear, still?

I tried to be clear, but I try to rephrase it: What is not fixed is the DISTRIBUTION itself. It should be fixed by replacing the broken package with the fixed package. A user typing "emerge cccc" encounters a failure, which he should not.
In other words, "emerge cccc; echo $?" does not print "0". Only when "emerge cccc; echo $?" prints "0", the problem as a whole can be considered fixed.

The problem is that emerge tries to build the broken version if no version number is specified. The problem is NOT in cccc-3.0_pre84.ebuild, but in the file that controls which ebuild is used by default.
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2006-03-30 09:00:56 UTC
ZOMG. The problem we are discussing here is fixed. If you want cccc 3.0_pre84 marked stable, then file a *new* bug for keywording. Won't happen anyway most likely, since now it doesn't compile with gcc-4 (Bug 111619). This ebuild needs a maintainer and version bump. 

No point in moaning here, kindly do 'echo dev-util/cccc >> /etc/portage/package.keywords' and be done with it.

CLOSED.
Comment 11 Erik 2006-03-30 10:30:59 UTC
(In reply to comment #10)
> ZOMG. The problem we are discussing here is fixed.

Then there was a misunderstanding. My bug report (bug 128109) was labeled "emerge cccc fails" without reference to any particular ebuild. It therefore covers every problem that needs to be fixed for "emerge cccc" not to fail on a system with default settings, including problems with keywording. Since my report was marked as duplicate of this report, I concluded that this report also had the same broad scope as my report. Therefore I did not realize that the scope of this report does not cover keywording problems.


> If you want cccc 3.0_pre84 marked stable, then file a *new* bug for
> keywording.

Since I already did that, I will clarify my new report to explicitly request 3.0_pre84 to be marked stable. Then there will hopefully be no doubt what it is about.


> Won't happen anyway most likely, since now it doesn't compile with gcc-4 (Bug
> 111619).

Possibly, if the current default version works with gcc-4. But if _pre63 also fails with gcc-4, there is no reason to to keep it as the default version. Upgrading to _pre84 would fix the problem for users of the default gcc version while not making anything worse for gcc-4 users, since it is already broken for them.


> 'echo dev-util/cccc >> /etc/portage/package.keywords'

I did, but for the rest of the world it would be nice if it works out of the box. And if changing a keyword is all that is needed...