Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 30696 - k3b-0.9 failed to build with gcc-3.3.1-r4
Summary: k3b-0.9 failed to build with gcc-3.3.1-r4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-08 13:48 UTC by Ian Abbott
Modified: 2003-10-23 00:17 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Abbott 2003-10-08 13:48:06 UTC
When emerging app-cdr/k3b using gcc-3.3.1-r4 as the compiler, I get the
following errors:

make[6]: Entering directory
`/var/tmp/portage/k3b-0.9/work/k3b-0.9/src/audio/input/mp3'
/usr/qt/3/bin/moc ./k3bmp3module.h -o k3bmp3module.moc
/bin/sh ../../../../libtool --silent --mode=compile --tag=CXX g++
-DHAVE_CONFIG_H -I. -I. -I../../../..  -I./../../../core -I./libmad -I./../../..
-I/usr/kde/3.1/include -I/usr/qt/3/include -I/usr/X11R6/include 
-DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef
-Wall -pedantic -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500
-D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -DNDEBUG -DNO_DEBUG
-O2 -march=pentium3 -mcpu=pentium4 -O3 -pipe -Wformat-security
-Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common
-DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT
-DQT_NO_TRANSLATION  -c -o k3bmp3module.lo `test -f 'k3bmp3module.cpp' || echo
'./'`k3bmp3module.cpp
k3bmp3module.cpp: In member function `unsigned int 
   K3bMp3Module::resampleBlock(const mad_fixed_t*, unsigned int, mad_fixed_t*, 
   mad_fixed_t&, mad_fixed_t&)':
k3bmp3module.cpp:428: error: ISO C++ forbids braced-groups within expressions
k3bmp3module.cpp:428: error: ISO C++ forbids braced-groups within expressions
k3bmp3module.cpp:445: error: ISO C++ forbids braced-groups within expressions
k3bmp3module.cpp:445: error: ISO C++ forbids braced-groups within expressions
make[6]: *** [k3bmp3module.lo] Error 1
make[6]: Leaving directory
`/var/tmp/portage/k3b-0.9/work/k3b-0.9/src/audio/input/mp3'


Reproducible: Always
Steps to Reproduce:
1. ensure gcc 3.3.1-r4 is in use
2. emerge k3b



Portage 2.0.49-r7 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r1,
2.4.20-gentoo-r6-hpt374)
=================================================================
System uname: 2.4.20-gentoo-r6-hpt374 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
ccache version 2.3 [enabled]
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -mcpu=pentium4 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium3 -mcpu=pentium4 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://localhost/gentoo-portage"
USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod mmx
mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml
alsa gdbm berkdb slang readline arts tetex bonobo svga tcltk java guile X sdl
gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gnome gtk qt kde motif
opengl mozilla cdr gtk2"


My GCC -v output:

Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/specs
Configured with: /var/tmp/portage/gcc-3.3.1-r4/work/gcc-3.3.1/configure
--prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3
--includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/include
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3
--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/info --enable-shared
--host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-system-zlib
--enable-languages=c,c++,f77,objc,java --enable-threads=posix --enable-long-long
--disable-checking --enable-cstdio=stdio --enable-clocale=generic
--enable-__cxa_atexit --enable-version-specific-runtime-libs
--with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/include/g++-v3
--with-local-prefix=/usr/local --enable-shared --enable-nls
--without-included-gettext --x-includes=/usr/X11R6/include
--x-libraries=/usr/X11R6/lib --enable-interpreter --enable-java-awt=xlib
--with-x --disable-multilib
Thread model: posix
gcc version 3.3.1 20030916 (Gentoo Linux 3.3.1-r4, propolice)

I'm also using ccache, but I don't think that's the problem!
Comment 1 Caleb Tennis (RETIRED) gentoo-dev 2003-10-16 11:20:19 UTC
Does 0.10 compile any better for you?
Comment 2 Ian Abbott 2003-10-18 10:18:22 UTC
Yes, k3b-0.10 emerges fine with gcc-3.3.1-r4 (x86).
Comment 3 Joshua Kinard gentoo-dev 2003-10-23 00:17:16 UTC
As per Comment #2, the issue was fixed in a newer version of the package;
resolving as FIXED.