I know that gcc4 is in testing right now, so this isn't really a bug report per se. However, the developers at Gentoo probably want to know what applications fail to build with it. So here you go. I switched back to gcc 3.4 and it compiles fine.
par2cmdline-0.4-r1 compiles fine here w/ gcc-4.1.1. If it doesn't work for you, we need some errors and emerge --info.
Portage 2.1.1-r1 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.17-ge ntoo-r8 x86_64) ================================================================= System uname: 2.6.17-gentoo-r8 x86_64 AMD Athlon(tm) 64 Processor 4000+ Gentoo Base System version 1.12.5 Last Sync: Sun, 01 Oct 2006 15:00:01 +0000 ccache version 2.3 [enabled] app-admin/eselect-compiler: [Not Present] dev-java/java-config: [Not Present] dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.3 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -pipe -msse3" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shu tdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo" CXXFLAGS="-march=athlon64 -O2 -pipe -msse3" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo/ http://gentoo.intergen ia.de http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.belnet.be/mirror/ rsync.gentoo.org/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/d istfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X alsa arts avi berkdb bitmap-fonts cairo cdr cli crypt cups dbus dll oader dri dvd dvdr eds elibc_glibc emboss encode esd fam firefox fortran gdbm gi f gpm gstreamer gtk gtk2 hal input_devices_joystick input_devices_keyboard input _devices_mouse ipv6 isdnlog jpeg kde kernel_linux ldap libg++ mad mikmod mp3 mpe g ncurses nls nptl nptlonly ogg opengl oss pam pcre pdflib perl png ppds pppd py thon qt3 qt4 quicktime readline reflection sdl session spell spl ssl tcpd truety pe truetype-fonts type1-fonts udev unicode userland_GNU video_cards_nvidia vorbi s xml xorg xv zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGU AS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
(In reply to comment #1) > par2cmdline-0.4-r1 compiles fine here w/ gcc-4.1.1. If it doesn't work for you, > we need some errors and emerge --info. > par2cmdline fails with this error: bool> >&)' must be introduced by 'template <>' reedsolomon.cpp:54: error: template-id 'SetInput<>' for 'bool ReedSolomon<Galois<8u, 285u, unsigned char> >::SetInput(const std::vector<bool, std::allocator<bool> >&)' does not match any template declaration reedsolomon.cpp:54: error: invalid function declaration reedsolomon.cpp:83: error: explicit specialization of 'bool ReedSolomon<Galois<8u, 285u, unsigned char> >::SetInput(u32)' must be introduced by 'template <>' reedsolomon.cpp:83: error: template-id 'SetInput<>' for 'bool ReedSolomon<Galois<8u, 285u, unsigned char> >::SetInput(u32)' does not match any template declaration reedsolomon.cpp:83: error: invalid function declaration reedsolomon.cpp:104: error: explicit specialization of 'bool ReedSolomon<Galois<8u, 285u, unsigned char> >::Process(size_t, u32, const void*, u32, void*)' must be introduced by 'template <>' reedsolomon.cpp:104: error: template-id 'Process<>' for 'bool ReedSolomon<Galois<8u, 285u, unsigned char> >::Process(size_t, u32, const void*, u32, void*)' does not match any template declaration reedsolomon.cpp:104: error: invalid function declaration reedsolomon.cpp:192: error: explicit specialization of 'bool ReedSolomon<Galois<16u, 69643u, short unsigned int> >::SetInput(const std::vector<bool, std::allocator<bool> >&)' must be introduced by 'template <>' reedsolomon.cpp:192: error: template-id 'SetInput<>' for 'bool ReedSolomon<Galois<16u, 69643u, short unsigned int> >::SetInput(const std::vector<bool, std::allocator<bool> >&)' does not match any template declaration reedsolomon.cpp:192: error: invalid function declaration reedsolomon.cpp:236: error: explicit specialization of 'bool ReedSolomon<Galois<16u, 69643u, short unsigned int> >::SetInput(u32)' must be introduced by 'template <>' reedsolomon.cpp:236: error: template-id 'SetInput<>' for 'bool ReedSolomon<Galois<16u, 69643u, short unsigned int> >::SetInput(u32)' does not match any template declaration reedsolomon.cpp:236: error: invalid function declaration reedsolomon.cpp:270: error: explicit specialization of 'bool ReedSolomon<Galois<16u, 69643u, short unsigned int> >::Process(size_t, u32, const void*, u32, void*)' must be introduced by 'template <>' reedsolomon.cpp:270: error: template-id 'Process<>' for 'bool ReedSolomon<Galois<16u, 69643u, short unsigned int> >::Process(size_t, u32, const void*, u32, void*)' does not match any template declaration reedsolomon.cpp:270: error: invalid function declaration make[1]: *** [reedsolomon.o] Error 1 make[1]: *** Waiting for unfinished jobs.... par2fileformat.h:67: warning: ignoring packed attribute on unpacked non-POD field 'MD5Hash PACKET_HEADER::hash' par2fileformat.h:68: warning: ignoring packed attribute on unpacked non-POD field 'MD5Hash PACKET_HEADER::setid' par2fileformat.h:79: warning: ignoring packed attribute on unpacked non-POD field 'MD5Hash FILEVERIFICATIONENTRY::hash' par2fileformat.h:86: warning: ignoring packed attribute on unpacked non-POD field 'MD5Hash FILEVERIFICATIONPACKET::fileid' par2fileformat.h:87: warning: ignoring packed attribute on unpacked non-POD field 'FILEVERIFICATIONENTRY FILEVERIFICATIONPACKET::entries [0u]' par2fileformat.h:101: warning: ignoring packed attribute on unpacked non-POD field 'MD5Hash FILEDESCRIPTIONPACKET::fileid' par2fileformat.h:102: warning: ignoring packed attribute on unpacked non-POD field 'MD5Hash FILEDESCRIPTIONPACKET::hashfull' par2fileformat.h:103: warning: ignoring packed attribute on unpacked non-POD field 'MD5Hash FILEDESCRIPTIONPACKET::hash16k' par2fileformat.h:131: warning: ignoring packed attribute on unpacked non-POD field 'MD5Hash MAINPACKET::fileid [0u]' par1fileformat.h:41: warning: ignoring packed attribute on unpacked non-POD field 'MD5Hash PAR1FILEHEADER::controlhash' par1fileformat.h:42: warning: ignoring packed attribute on unpacked non-POD field 'MD5Hash PAR1FILEHEADER::sethash' par1fileformat.h:56: warning: ignoring packed attribute on unpacked non-POD field 'MD5Hash PAR1FILEENTRY::hashfull' par1fileformat.h:57: warning: ignoring packed attribute on unpacked non-POD field 'MD5Hash PAR1FILEENTRY::hash16k' make[1]: Leaving directory `/var/tmp/portage/par2cmdline-0.4/work/par2cmdline-0.4' make: *** [all] Error 2 !!! ERROR: app-arch/par2cmdline-0.4 failed. Call stack: ebuild.sh, line 1546: Called dyn_compile ebuild.sh, line 937: Called src_compile ebuild.sh, line 608: Called die !!! emake failed !!! If you need support, post the topmost build error, and the call stack if relevant.
>=par2cmdline-0.4-r1 is patched for gcc-4